Flashing your onion omega via serial
-
Flashing your onion omega via serial
Credits to @Zheng-Han and @Johannes-Zellner for the images and content!
@Chris-McCaslin for making the nice wiki post
Required Materials:
- ( 8 ) 100Ω* resistors
- ( 4 the image shows 5 though) 0.1µF* capacitors
*Note: There is no exact requirement for the capacitors and resistors values, however capacitor shouldn't be too big. (for example: 0.1µF and 100Ω should work)
The schematic
The Breadboard
The process
Here are the necessary steps after wiring the network connection:
-
boot the good omega -- let's call it omega-good
-
connect the bricked omega (omega-bricked) with an USB cable with a linux pc (expansion switch still off)
-
connect to omega-bricked with
screen /dev/ttyUSB0 115200
-
power on the switch of the expansion board of omega-bricked and immediately hit enter in the screen session to get into uboot on omega-bricked
-
printenv in uboot on omega-bricked shows that the ethernet ip is configured to be
192.168.1.1
-
configure the ethernet connection of omega-good to use the static ip
192.168.1.100
, either by modifying /etc/config/network and restarting the network or by something like ifconfig eth0192.168.1.100
up -
While in uboot in omega-bricked verify with ping 192.168.1.100 that the network connection to omega-good works
-
While in uboot in omega-bricked start httpd
-
create an ssh tunnel from the linux pc to omega-bricked via omega-good with
ssh -L 8080:192.168.1.1:80
omega-good (ssh connection to omega-good is via wifi) -
open
http://localhost:8080/
in a browser on the linux pc. The ssh tunnel redirects this to the httpd of omega-bricked → you see the uboot httpd upgrade page in your browser and can proceed to upload a bin image.
-
@Chris-McCaslin Thanks for submitting this to the wiki!
I've made some edits and tried to make it pretty: https://wiki.onion.io/Tutorials/Reflash-the-Firmware-with-Improvised-Ethernet
-
@Lazar-Demin on step 11 can you Put the link in ` 's so it shows up
Red
-
@Chris-McCaslin I bolded it, in the backticks it probably wouldn't become a hyperlink.
Also, you're free to submit pull requests for existing articles