-
Notifications
You must be signed in to change notification settings - Fork 5
Turris Omnia: Updating U Boot and rescue
Tomas Hlavacek edited this page Mar 28, 2020
·
4 revisions
Needed sources are:
- U-Boot image - to be written to /dev/mtd0
- rescue image - that should end up in /dev/mtd1
mkdir tmp/; cd tmp/
wget https://repo.turris.cz/hbl/omnia/packages/turrispackages/u-boot-omnia_2019-07-7_arm_cortex-a9_vfpv3.ipk
tar xf u-boot-omnia_2019-07-7_arm_cortex-a9_vfpv3.ipk
tar xf data.tar.gz
cd usr/share/omnia/
flash_eraseall /dev/mtd0
nandwrite /dev/mtd0 uboot-devel
cd ../../../..
rm -rf tmp
mkdir tmp; cd tmp/
wget https://repo.turris.cz/hbl/omnia/packages/turrispackages/rescue-image_3.2-1_arm_cortex-a9_vfpv3.ipk
tar xf rescue-image_3.2-1_arm_cortex-a9_vfpv3.ipk
tar xf data.tar.gz
cd usr/share/rescue-image/
flash_eraseall /dev/mtd1
nandwrite /dev/mtd1 image.fit.lzma
cd ../../../..
rm -rf tmp
TODO: U-Boot from sources https://gitlab.labs.nic.cz/turris/turris-omnia-uboot
TODO: Build rescue image either from Turris OS or any other distribution. The result should be packaged as FIT image. Please note: FIT image works only with the recent - 2019+-produced Turris Omnia stock U-Boot. If you have a router from older production batches you need to update U-Boot to be able to accept FIT image. And conversely, rescue mode on newer U-Boot does not work with legacy rescue image.
Therefore both U-Boot and rescue should be updated together.