From a0086d63cd9fae15e43b9a965b1708b3a64f7b66 Mon Sep 17 00:00:00 2001 From: Giammarco Date: Sun, 2 Jun 2024 16:56:40 +0200 Subject: Update ont-technicolor-afm0003.md (#343) Add workaround to write mtd on AFM0003 stick --- _ont/ont-technicolor-afm0003.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/_ont/ont-technicolor-afm0003.md b/_ont/ont-technicolor-afm0003.md index ad5eabe..625f752 100644 --- a/_ont/ont-technicolor-afm0003.md +++ b/_ont/ont-technicolor-afm0003.md @@ -116,6 +116,22 @@ The following commands are used to flash a new rootfs to image1 and then boot to ```sh # flash_eraseall /dev/mtd7 # cat /tmp/rootfs.new > /dev/mtd7 +``` + +If you get this error on `cat` command +```sh +# cat /tmp/rootfs.new > /dev/mtd7 +cat: write error: Invalid Argument +``` + +Use this proceudre instead to write firmware back to mtd: +```sh +# flash_eraseall /dev/mtd7 +# cat /tmp/rootfs.new > /dev/mtdblock7 +``` + +Then make new firmware bootable +```sh # nv setenv sw_version1 NEW_SOFTWARE_VERSION # nv setenv sw_commit 1 # reboot -- cgit v1.2.3