Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Yocto image upgrade procedure from inside OpenWrt OS: (Better approach is welcome)

Go back to OpenWrt OS (please refer Fallback to OpenWrt OS section above ).

Have Ethernet connection from your PC to LAN port of Turris Omnia.

Run following commands from inside OpenWrt OS.

Keep rootfs(rdkb-generic-broadband-image_default_*.rootfs.tar.gz) and zImage(zImage--4.14.22-r0-turris-*.bin) files in home directory of your PC.

In OpenWrt OS, create a script(yocto-fw-upgrade.sh) with following commands with updates as it needs.

Code Block
MYPC_IP=192.168.1.83
USER_NAME=manigandan
scp $USER_NAME@$MYPC_IP:*
Code Block
root@OpenWrt:/# scp manigandan@<Your-PC-IP>:BOX/*$1* /tmp/
root@OpenWrt:/# mount /dev/mmcblk0p3 /mnt
root@OpenWrt:/#  /mnt
mv /tmp/zImage-* /mnt/zImage
root@OpenWrt:/# umount /mnt
root@OpenWrt:/# mount /dev/mmcblk0p5 /mnt
root@OpenWrt:/# rm -rf /mnt/*
root@OpenWrt:/# tar -xzf /tmp/rdkb-* -C /mnt/
root@OpenWrt:/# umount /mnt
reboot

Run the script from inside OpenWrt OS.

Code Block
languageperl
root@OpenWrt:/# reboot./yocto-fw-upgrade.sh <image-timestamp>

Press enter while turris omnia reboots to get into u-boot prompt. Then type following u-boot commands to get back to Yocto based RDKB image.

...