Omega 2+ USB Firmware Install after Brick. [Resolved]
-
This sounds like what I need to do. I don't understand where you'll see "option #2" though? Maybe I need to research how to connect via USB to Serial but if you power it on with the reset button down, there must me some steps that will give you options on your screen. Am I missing something?
-
@Marty-Mickelson Yes, you need to be able to see what the Omega2 spits out on uart0. If you have reset-button down, or connected to 3.3V with a wire, the boot-loader will present you with a menu for 40 seconds, where you can choose an option for flashing from a USB-drive and such.
-
Ok. I will search the web for how to do that with my Mac. I'm connected from my Mac USB to the dock mini USB port. If you know the url of a resource on the web, I'd love to hear it.
Currently, when I turn it on while holding down reset, the amber light blinks rapidly for 30 seconds, then goes dark. I'm guessing this is the period where it would be asking to reset.
-
@Marty-Mickelson I ain't got a single Apple-device or any experience with OSX, so I can't help you there.
-
@WereCatf said in Omega 2+ USB Firmware Install after Brick. [Resolved]:
@Marty-Mickelson If you have reset-button down, or connected to 3.3V with a wire, the boot-loader will present you with a menu for 40 seconds, where you can choose an option for flashing from a USB-drive and such.
Ah so that is probably how you access "safe mode" etc.
So without any docks but dozens of Prolific PL2303HX USB to TTL adapters is it simply hook one up to RX0 and RX1 or the USB pins (D+ and D-) and then ensuring the drivers are available?
-
@Costas-Costas said in Omega 2+ USB Firmware Install after Brick. [Resolved]:
Ah so that is probably how you access "safe mode" etc.
So without any docks but dozens of Prolific PL2303HX USB to TTL adapters is it simply hook one up to RX0 and RX1 or the USB pins (D+ and D-) and then ensuring the drivers are available?The prompt for safe mode comes after u-boot has already loaded up and booted the Linux-kernel, ie. it comes a few seconds later and the safe mode - prompt only lasts for like two seconds. As for using a USB-to-TTL adapter, you need to hook the adapter's RX to Omega2's TX and adapter's TX to Omega2's RX. You do not connect them to the USB-pins.
How the u-boot menu looks like:
____ _ ____ / __ \___ (_)__ ___ / __ \__ _ ___ ___ ____ _ / /_/ / _ \/ / _ \/ _ \ / /_/ / ' \/ -_) _ `/ _ `/ \____/_//_/_/\___/_//_/ \____/_/_/_/\__/\_, /\_,_/ W H A T W I L L Y O U I N V E N T ? /___/" Board: Onion Omega2 APSoC DRAM: 128 MB relocate_code Pointer at: 87f60000 flash manufacture id: c2, device id 20 19 find flash: MX25L25635E *** Warning - bad CRC, using default environment ============================================ Onion Omega2 UBoot Version: 4.3.0.3 -------------------------------------------- ASIC 7628_MP (Port5<->None) DRAM component: 1024 Mbits DDR, width 16 DRAM bus: 16 bit Total memory: 128 MBytes Flash component: SPI Flash Date:Oct 18 2016 Time:17:29:05 ============================================ icache: sets:512, ways:4, linesz:32 ,total:65536 dcache: sets:256, ways:4, linesz:32 ,total:32768 CPU freq = 575 MHZ Estimated memory size = 128 Mbytes Resetting MT7628 PHY. Initializing MT7688 GPIO system. ************************************** * Hold Reset button for more options * ************************************** You have 40 seconds left to select a menu option... Please select option: [ Enter ]: Boot Omega2. [ 0 ]: Start Web recovery mode. [ 1 ]: Start command line mode. [ 2 ]: Flash firmware from USB storage.
How the safe-mode prompt looks like:
-------I CUT A LOT OF TEXT OUT BEFORE THIS----- [ 7.335576] MTK MSDC device init. [ 7.378336] mtk-sd: MediaTek MT6575 MSDC Driver [ 7.388919] sdhci: Secure Digital Host Controller Interface driver [ 7.395213] sdhci: Copyright(c) Pierre Ossman [ 7.401405] sdhci-pltfm: SDHCI platform and OF driver helper [ 7.413483] usbcore: registered new interface driver usb-storage [ 7.431112] init: - preinit - [ 7.866305] mmc0: new SD card at address bf77 [ 8.036661] mmcblk0: mmc0:bf77 SD01G 983 MiB [ 8.042870] mmcblk0: p1 [ 8.058552] random: procd: uninitialized urandom read (4 bytes read, 14 bits of entropy available) [ 8.485567] rt3050-esw 10110000.esw: link changed 0x00 Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
May take a few tries to learn to spot this prompt.
-
@WereCatf I have a linux laptop, but not a USB to TTL adapter. Maybe I'm screwed until I can get one.
-
@Marty-Mickelson Take a look at https://docs.onion.io/omega2-docs/connecting-to-the-omega-terminal.html#connecting-via-serial-mac
-
@WereCatf thanks for the info. May I ask what are the 2 USB pins for on the Omega?
-
@Costas-Costas For connecting USB-devices to it. You know, there is a full-size USB-port on the docks -- its data-lines are connected to those pins.
-
I installled the driver linked to from https://docs.onion.io/omega2-docs/connecting-to-the-omega-terminal.html#connecting-via-serial-mac, but the device never showed up when using ls tty.*. Either the driver didn't install correctly or my Omega2+ is really dead.
-
Marty,
Try ls /dev/tty*, does that work? Also, what dock are you using? If expansion or mini dock it should be there, if you're on arduino or power the USB-Serial connection won't work.Here's my adventure with un-bricking my device using the arduino dock for reference:
http://community.onion.io/topic/1377/might-have-bricked-my-omega2-can-t-connect-via-serial/8
edit: try restarting your computer also, I think I had to do that before the driver worked.
-
@cusackph When I use ls /dev/tty* and I get a lot more items (expected).
I'm using the expansion dock, powered from the USB cable attached to my computer.
I restarted but still no luck.Well done documenting your steps in the un-bricking adventure. I've ordered the USB adapter and will push forward when it arrives.
-
@Marty-Mickelson With the expansion dock plugged in and the omega2+ running, could you take a screenshot or copy the output when you run the ls /dev/tty* command? Maybe the Omega2 is showing up as something unexpected.
-
The output is the same when the dock is unplugged vs plugged in and lights flashing, during the 30 sec it flashes after turning it on with the reset button pressed. I copied the list and diff'd it to make sure. Here's what I get though:
/dev > ls -al tty* crw-rw-rw- 1 root wheel 2, 0 Jan 25 11:59 tty crw-rw-rw- 1 root wheel 31, 0 Jan 25 12:01 tty.Bluetooth-Incoming-Port crw-rw-rw- 1 root wheel 31, 2 Jan 25 12:01 tty.Bluetooth-Modem crw-rw-rw- 1 root wheel 31, 4 Jan 25 12:01 tty.MickelsonsiPad-Wireless crw-rw-rw- 1 root wheel 4, 0 Jan 25 11:59 ttyp0 crw-rw-rw- 1 root wheel 4, 1 Jan 25 11:59 ttyp1 crw-rw-rw- 1 root wheel 4, 2 Jan 25 11:59 ttyp2 crw-rw-rw- 1 root wheel 4, 3 Jan 25 11:59 ttyp3 crw-rw-rw- 1 root wheel 4, 4 Jan 25 11:59 ttyp4 crw-rw-rw- 1 root wheel 4, 5 Jan 25 11:59 ttyp5 crw-rw-rw- 1 root wheel 4, 6 Jan 25 11:59 ttyp6 crw-rw-rw- 1 root wheel 4, 7 Jan 25 11:59 ttyp7 crw-rw-rw- 1 root wheel 4, 8 Jan 25 11:59 ttyp8 crw-rw-rw- 1 root wheel 4, 9 Jan 25 11:59 ttyp9 crw-rw-rw- 1 root wheel 4, 10 Jan 25 11:59 ttypa crw-rw-rw- 1 root wheel 4, 11 Jan 25 11:59 ttypb crw-rw-rw- 1 root wheel 4, 12 Jan 25 11:59 ttypc crw-rw-rw- 1 root wheel 4, 13 Jan 25 11:59 ttypd crw-rw-rw- 1 root wheel 4, 14 Jan 25 11:59 ttype crw-rw-rw- 1 root wheel 4, 15 Jan 25 11:59 ttypf crw-rw-rw- 1 root wheel 4, 16 Jan 25 11:59 ttyq0 crw-rw-rw- 1 root wheel 4, 17 Jan 25 11:59 ttyq1 crw-rw-rw- 1 root wheel 4, 18 Jan 25 11:59 ttyq2 crw-rw-rw- 1 root wheel 4, 19 Jan 25 11:59 ttyq3 crw-rw-rw- 1 root wheel 4, 20 Jan 25 11:59 ttyq4 crw-rw-rw- 1 root wheel 4, 21 Jan 25 11:59 ttyq5 crw-rw-rw- 1 root wheel 4, 22 Jan 25 11:59 ttyq6 crw-rw-rw- 1 root wheel 4, 23 Jan 25 11:59 ttyq7 crw-rw-rw- 1 root wheel 4, 24 Jan 25 11:59 ttyq8 crw-rw-rw- 1 root wheel 4, 25 Jan 25 11:59 ttyq9 crw-rw-rw- 1 root wheel 4, 26 Jan 25 11:59 ttyqa crw-rw-rw- 1 root wheel 4, 27 Jan 25 11:59 ttyqb crw-rw-rw- 1 root wheel 4, 28 Jan 25 11:59 ttyqc crw-rw-rw- 1 root wheel 4, 29 Jan 25 11:59 ttyqd crw-rw-rw- 1 root wheel 4, 30 Jan 25 11:59 ttyqe crw-rw-rw- 1 root wheel 4, 31 Jan 25 11:59 ttyqf crw-rw-rw- 1 root wheel 4, 32 Jan 25 11:59 ttyr0 crw-rw-rw- 1 root wheel 4, 33 Jan 25 11:59 ttyr1 crw-rw-rw- 1 root wheel 4, 34 Jan 25 11:59 ttyr2 crw-rw-rw- 1 root wheel 4, 35 Jan 25 11:59 ttyr3 crw-rw-rw- 1 root wheel 4, 36 Jan 25 11:59 ttyr4 crw-rw-rw- 1 root wheel 4, 37 Jan 25 11:59 ttyr5 crw-rw-rw- 1 root wheel 4, 38 Jan 25 11:59 ttyr6 crw-rw-rw- 1 root wheel 4, 39 Jan 25 11:59 ttyr7 crw-rw-rw- 1 root wheel 4, 40 Jan 25 11:59 ttyr8 crw-rw-rw- 1 root wheel 4, 41 Jan 25 11:59 ttyr9 crw-rw-rw- 1 root wheel 4, 42 Jan 25 11:59 ttyra crw-rw-rw- 1 root wheel 4, 43 Jan 25 11:59 ttyrb crw-rw-rw- 1 root wheel 4, 44 Jan 25 11:59 ttyrc crw-rw-rw- 1 root wheel 4, 45 Jan 25 11:59 ttyrd crw-rw-rw- 1 root wheel 4, 46 Jan 25 11:59 ttyre crw-rw-rw- 1 root wheel 4, 47 Jan 25 11:59 ttyrf crw-rw-rw- 1 root wheel 4, 48 Jan 25 11:59 ttys0 crw--w---- 1 mmickelson tty 16, 0 Jan 25 12:59 ttys000 crw--w---- 1 mmickelson tty 16, 1 Jan 25 12:57 ttys001 crw--w---- 1 mmickelson tty 16, 2 Jan 25 12:57 ttys002 crw--w---- 1 mmickelson tty 16, 3 Jan 25 12:57 ttys003 crw--w---- 1 mmickelson tty 16, 4 Jan 25 12:57 ttys004 crw--w---- 1 mmickelson tty 16, 5 Jan 25 12:57 ttys005 crw--w---- 1 mmickelson tty 16, 6 Jan 25 12:57 ttys006 crw-rw-rw- 1 root wheel 4, 49 Jan 25 11:59 ttys1 crw-rw-rw- 1 root wheel 4, 50 Jan 25 11:59 ttys2 crw-rw-rw- 1 root wheel 4, 51 Jan 25 11:59 ttys3 crw-rw-rw- 1 root wheel 4, 52 Jan 25 11:59 ttys4 crw-rw-rw- 1 root wheel 4, 53 Jan 25 11:59 ttys5 crw-rw-rw- 1 root wheel 4, 54 Jan 25 11:59 ttys6 crw-rw-rw- 1 root wheel 4, 55 Jan 25 11:59 ttys7 crw-rw-rw- 1 root wheel 4, 56 Jan 25 11:59 ttys8 crw-rw-rw- 1 root wheel 4, 57 Jan 25 11:59 ttys9 crw-rw-rw- 1 root wheel 4, 58 Jan 25 11:59 ttysa crw-rw-rw- 1 root wheel 4, 59 Jan 25 11:59 ttysb crw-rw-rw- 1 root wheel 4, 60 Jan 25 11:59 ttysc crw-rw-rw- 1 root wheel 4, 61 Jan 25 11:59 ttysd crw-rw-rw- 1 root wheel 4, 62 Jan 25 11:59 ttyse crw-rw-rw- 1 root wheel 4, 63 Jan 25 11:59 ttysf crw-rw-rw- 1 root wheel 4, 64 Jan 25 11:59 ttyt0 crw-rw-rw- 1 root wheel 4, 65 Jan 25 11:59 ttyt1 crw-rw-rw- 1 root wheel 4, 66 Jan 25 11:59 ttyt2 crw-rw-rw- 1 root wheel 4, 67 Jan 25 11:59 ttyt3 crw-rw-rw- 1 root wheel 4, 68 Jan 25 11:59 ttyt4 crw-rw-rw- 1 root wheel 4, 69 Jan 25 11:59 ttyt5 crw-rw-rw- 1 root wheel 4, 70 Jan 25 11:59 ttyt6 crw-rw-rw- 1 root wheel 4, 71 Jan 25 11:59 ttyt7 crw-rw-rw- 1 root wheel 4, 72 Jan 25 11:59 ttyt8 crw-rw-rw- 1 root wheel 4, 73 Jan 25 11:59 ttyt9 crw-rw-rw- 1 root wheel 4, 74 Jan 25 11:59 ttyta crw-rw-rw- 1 root wheel 4, 75 Jan 25 11:59 ttytb crw-rw-rw- 1 root wheel 4, 76 Jan 25 11:59 ttytc crw-rw-rw- 1 root wheel 4, 77 Jan 25 11:59 ttytd crw-rw-rw- 1 root wheel 4, 78 Jan 25 11:59 ttyte crw-rw-rw- 1 root wheel 4, 79 Jan 25 11:59 ttytf crw-rw-rw- 1 root wheel 4, 80 Jan 25 11:59 ttyu0 crw-rw-rw- 1 root wheel 4, 81 Jan 25 11:59 ttyu1 crw-rw-rw- 1 root wheel 4, 82 Jan 25 11:59 ttyu2 crw-rw-rw- 1 root wheel 4, 83 Jan 25 11:59 ttyu3 crw-rw-rw- 1 root wheel 4, 84 Jan 25 11:59 ttyu4 crw-rw-rw- 1 root wheel 4, 85 Jan 25 11:59 ttyu5 crw-rw-rw- 1 root wheel 4, 86 Jan 25 11:59 ttyu6 crw-rw-rw- 1 root wheel 4, 87 Jan 25 11:59 ttyu7 crw-rw-rw- 1 root wheel 4, 88 Jan 25 11:59 ttyu8 crw-rw-rw- 1 root wheel 4, 89 Jan 25 11:59 ttyu9 crw-rw-rw- 1 root wheel 4, 90 Jan 25 11:59 ttyua crw-rw-rw- 1 root wheel 4, 91 Jan 25 11:59 ttyub crw-rw-rw- 1 root wheel 4, 92 Jan 25 11:59 ttyuc crw-rw-rw- 1 root wheel 4, 93 Jan 25 11:59 ttyud crw-rw-rw- 1 root wheel 4, 94 Jan 25 11:59 ttyue crw-rw-rw- 1 root wheel 4, 95 Jan 25 11:59 ttyuf crw-rw-rw- 1 root wheel 4, 96 Jan 25 11:59 ttyv0 crw-rw-rw- 1 root wheel 4, 97 Jan 25 11:59 ttyv1 crw-rw-rw- 1 root wheel 4, 98 Jan 25 11:59 ttyv2 crw-rw-rw- 1 root wheel 4, 99 Jan 25 11:59 ttyv3 crw-rw-rw- 1 root wheel 4, 100 Jan 25 11:59 ttyv4 crw-rw-rw- 1 root wheel 4, 101 Jan 25 11:59 ttyv5 crw-rw-rw- 1 root wheel 4, 102 Jan 25 11:59 ttyv6 crw-rw-rw- 1 root wheel 4, 103 Jan 25 11:59 ttyv7 crw-rw-rw- 1 root wheel 4, 104 Jan 25 11:59 ttyv8 crw-rw-rw- 1 root wheel 4, 105 Jan 25 11:59 ttyv9 crw-rw-rw- 1 root wheel 4, 106 Jan 25 11:59 ttyva crw-rw-rw- 1 root wheel 4, 107 Jan 25 11:59 ttyvb crw-rw-rw- 1 root wheel 4, 108 Jan 25 11:59 ttyvc crw-rw-rw- 1 root wheel 4, 109 Jan 25 11:59 ttyvd crw-rw-rw- 1 root wheel 4, 110 Jan 25 11:59 ttyve crw-rw-rw- 1 root wheel 4, 111 Jan 25 11:59 ttyvf crw-rw-rw- 1 root wheel 4, 112 Jan 25 11:59 ttyw0 crw-rw-rw- 1 root wheel 4, 113 Jan 25 11:59 ttyw1 crw-rw-rw- 1 root wheel 4, 114 Jan 25 11:59 ttyw2 crw-rw-rw- 1 root wheel 4, 115 Jan 25 11:59 ttyw3 crw-rw-rw- 1 root wheel 4, 116 Jan 25 11:59 ttyw4 crw-rw-rw- 1 root wheel 4, 117 Jan 25 11:59 ttyw5 crw-rw-rw- 1 root wheel 4, 118 Jan 25 11:59 ttyw6 crw-rw-rw- 1 root wheel 4, 119 Jan 25 11:59 ttyw7 crw-rw-rw- 1 root wheel 4, 120 Jan 25 11:59 ttyw8 crw-rw-rw- 1 root wheel 4, 121 Jan 25 11:59 ttyw9 crw-rw-rw- 1 root wheel 4, 122 Jan 25 11:59 ttywa crw-rw-rw- 1 root wheel 4, 123 Jan 25 11:59 ttywb crw-rw-rw- 1 root wheel 4, 124 Jan 25 11:59 ttywc crw-rw-rw- 1 root wheel 4, 125 Jan 25 11:59 ttywd crw-rw-rw- 1 root wheel 4, 126 Jan 25 11:59 ttywe crw-rw-rw- 1 root wheel 4, 127 Jan 25 11:59 ttywf
-
Home now, I checked and with the power switch flipped to off on my mini dock, plugging it into my laptop via the microusb port (NOT the full size port) I can get the correct serial port to show up when I run ls /dev/tty* The expansion dock should function the same way.
I'd try installing the driver again and see what happens, or maybe a different microusb cable. They're rare but I have a cable that doesn't transmit data, drove me nuts when I was trying to put some stuff on an old kindle.
-
I try to power up (connected to the serial) while holding the reset. but the Onion 2 just tries to boot. never noticing that the reset was pressed. Is there another way to do the reset button? Maybe my mini-doc is defective?
-
@Brian-Wharton32 My mini dock also does not recognize the reset button hold. I had to use an arduino dock 2 and a usb-serial adapter to re-flash a bricked unit. I submitted a ticket but havnen't heard back yet. Especially for the mini dock, the usb-serial connection should work as it doesn't do much else compared to the other docks.
-
@cusackph I have the same problems with the Mini docks. - If the reset button or the USB -> Omega2 UART-to-serial bi-directional connection works for you with a Mini Dock, ie Putty shows any keyboard entries, then I am keen to learn how you are doing this!
https://community.onion.io/topic/1451I have isolated my Mini Dock RXO problem to the Mini Dock's on-board UART not communicating with my Omega2s, the same docks work fine with an Omega1. Also sans dock, a direct serial connection via a USB to serial adapter (HAOYU) to the same Omega2s work fine.
See also others related problems -
https://community.onion.io/topic/1153/how-to-reset-onion-omega-2
https://community.onion.io/topic/1321/possible-bad-omega2-and-mini-dock
-
@WereCatf your post on console access was a life saver today after I messed up an init.d script, thanks.