From d87928112084bc8b3d38856a01f335807c0eb7a6 Mon Sep 17 00:00:00 2001 From: Giammarco Date: Sun, 2 Jun 2024 16:55:08 +0200 Subject: Update ont-technicolor-afm0003.md 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