mbox series

[0/6] rb532: update to kernel 5.4

Message ID 20200822110752.32600-1-freifunk@adrianschmutzler.de
Headers show
Series rb532: update to kernel 5.4 | expand

Message

Adrian Schmutzler Aug. 22, 2020, 11:07 a.m. UTC
** I do not own this device, please test! **

This updates rb532 from kernel 4.14 to 5.4. Based on the code this
was actually quite easy, let's see whether it works on the devices.

Adrian Schmutzler (6):
  rb532: copy files from 4.14 to 5.4
  rb532: refresh patches for kernel 5.4
  rb532: refresh config for kernel 5.4
  rb532: use 5.4 as default kernel
  rb532: use vendor_model scheme
  rb532: determine sysupgrade-* directory for upgrade automatically

 target/linux/rb532/Makefile                   |   2 +-
 .../rb532/base-files/lib/preinit/01_sysinfo   |   2 +-
 .../rb532/base-files/lib/upgrade/platform.sh  |  11 +-
 target/linux/rb532/config-5.4                 | 218 ++++++++++++++++++
 target/linux/rb532/image/Makefile             |   7 +-
 .../rb532/patches-5.4/001-cmdline_hack.patch  |  20 ++
 .../004-rb532-fix-partition-info.patch        |  17 ++
 7 files changed, 269 insertions(+), 8 deletions(-)
 create mode 100644 target/linux/rb532/config-5.4
 create mode 100644 target/linux/rb532/patches-5.4/001-cmdline_hack.patch
 create mode 100644 target/linux/rb532/patches-5.4/004-rb532-fix-partition-info.patch

Comments

Adrian Schmutzler Aug. 24, 2020, 9:59 a.m. UTC | #1
Hi,

> -----Original Message-----
> From: Raylynn Knight [mailto:rayknight@me.com]
> Sent: Montag, 24. August 2020 10:00
> To: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> Cc: OpenWrt Development List <openwrt-devel@lists.openwrt.org>;
> roman@advem.lv
> Subject: Re: [PATCH 0/6] rb532: update to kernel 5.4
> 
> Result from using sysupgrade:
> 
> ------------------------------
> sysupgrade successful
> umount: can't unmount /dev: Resource busy
> umount: can't unmount /tmp: Resource busy [  298.546770] rc32434_wdt:
> Stopped watchdog timer [  298.551917] reboot: Restarting system
> 
> 
> RouterBOOT booter 2.18
> 
> RouterBoard 532A
> 
> CPU frequency: 399 MHz
>   Memory size:  64 MB
> 
> Press any key within 4 seconds to enter setup....
> loading kernel from nand... OK
> setting up elf image... OK
> jumping to kernel code
> ------------------------------
> 
> System just hangs at this point.  I let it set for more than 5 minutes.
> 
> Result when attempting to boot openwrt-rb532-combined-squashfs.bin
> from CompactFlash card:
> 
> ------------------------------
> RouterBoard 532A
> 
> CPU frequency: 399 MHz
>   Memory size:  64 MB
> 
> Press any key within 4 seconds to enter setup....
> Booting CF
> Loading kernel... done
> setting up elf image... kernel out of range kernel loading failed
> 
> 
> RouterBOOT booter 2.18
> 
> RouterBoard 532A
> 
> CPU frequency: 399 MHz
>   Memory size:  64 MB
> 
> Press any key within 4 seconds to enter setup.
> ------------------------------
> 
> For what it's worth the current snapshot build from Mon Aug 24 04:19:14
> 2020 behaves the same way.

So, it's probably not an issue of my patches, but of an earlier change in master?

Best

Adrian

> 
> I was able to restore some functionality by booting the openwrt-19.07.3-
> rb532-combined-squashfs.bin from CompactFlash and using sysupgrade.
> Even this image has issues as I can login with Luci, but the Status page hangs
> with "Loading view….”.  Functionality from command line appears OK.  No
> issues appear with release 18.06.8
> 
> 
> Ray
> 
> 
> > On Aug 22, 2020, at 7:07 AM, Adrian Schmutzler
> <freifunk@adrianschmutzler.de> wrote:
> >
> > ** I do not own this device, please test! **
> >
> > This updates rb532 from kernel 4.14 to 5.4. Based on the code this was
> > actually quite easy, let's see whether it works on the devices.
> >
> > Adrian Schmutzler (6):
> >  rb532: copy files from 4.14 to 5.4
> >  rb532: refresh patches for kernel 5.4
> >  rb532: refresh config for kernel 5.4
> >  rb532: use 5.4 as default kernel
> >  rb532: use vendor_model scheme
> >  rb532: determine sysupgrade-* directory for upgrade automatically
> >
> > target/linux/rb532/Makefile                   |   2 +-
> > .../rb532/base-files/lib/preinit/01_sysinfo   |   2 +-
> > .../rb532/base-files/lib/upgrade/platform.sh  |  11 +-
> > target/linux/rb532/config-5.4                 | 218 ++++++++++++++++++
> > target/linux/rb532/image/Makefile             |   7 +-
> > .../rb532/patches-5.4/001-cmdline_hack.patch  |  20 ++
> > .../004-rb532-fix-partition-info.patch        |  17 ++
> > 7 files changed, 269 insertions(+), 8 deletions(-) create mode 100644
> > target/linux/rb532/config-5.4 create mode 100644
> > target/linux/rb532/patches-5.4/001-cmdline_hack.patch
> > create mode 100644
> > target/linux/rb532/patches-5.4/004-rb532-fix-partition-info.patch
> >
> > --
> > 2.20.1
> >
> >
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Adrian Schmutzler Aug. 24, 2020, 10:46 a.m. UTC | #2
Hi,

> -----Original Message-----
> From: Raylynn Knight [mailto:rayknight@me.com]
> Sent: Montag, 24. August 2020 10:00
> To: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> Cc: OpenWrt Development List <openwrt-devel@lists.openwrt.org>;
> roman@advem.lv
> Subject: Re: [PATCH 0/6] rb532: update to kernel 5.4
> 
> Result from using sysupgrade:
> 
> ------------------------------
> sysupgrade successful
> umount: can't unmount /dev: Resource busy
> umount: can't unmount /tmp: Resource busy [  298.546770] rc32434_wdt:
> Stopped watchdog timer [  298.551917] reboot: Restarting system
> 
> 
> RouterBOOT booter 2.18
> 
> RouterBoard 532A
> 
> CPU frequency: 399 MHz
>   Memory size:  64 MB
> 
> Press any key within 4 seconds to enter setup....
> loading kernel from nand... OK
> setting up elf image... OK
> jumping to kernel code
> ------------------------------
> 
> System just hangs at this point.  I let it set for more than 5 minutes.
> 
> Result when attempting to boot openwrt-rb532-combined-squashfs.bin
> from CompactFlash card:
> 
> ------------------------------
> RouterBoard 532A
> 
> CPU frequency: 399 MHz
>   Memory size:  64 MB
> 
> Press any key within 4 seconds to enter setup....
> Booting CF
> Loading kernel... done
> setting up elf image... kernel out of range kernel loading failed
> 
> 
> RouterBOOT booter 2.18
> 
> RouterBoard 532A
> 
> CPU frequency: 399 MHz
>   Memory size:  64 MB
> 
> Press any key within 4 seconds to enter setup.
> ------------------------------
> 
> For what it's worth the current snapshot build from Mon Aug 24 04:19:14
> 2020 behaves the same way.
> 
> I was able to restore some functionality by booting the openwrt-19.07.3-
> rb532-combined-squashfs.bin from CompactFlash and using sysupgrade.
> Even this image has issues as I can login with Luci, but the Status page hangs
> with "Loading view….”.  Functionality from command line appears OK.  No
> issues appear with release 18.06.8
> 

Changes between 19.07 and master with 4.14 are only cosmetic. I don't see a relevant difference from the code.

We just discussed this in IRC and the (only) likely idea we had was NAND wear issues, i.e. some bad blocks that were not recognized during flashing.

It would help tremendously if the same could be checked on one or two additional devices.

Best

Adrian

> 
> Ray
> 
> 
> > On Aug 22, 2020, at 7:07 AM, Adrian Schmutzler
> <freifunk@adrianschmutzler.de> wrote:
> >
> > ** I do not own this device, please test! **
> >
> > This updates rb532 from kernel 4.14 to 5.4. Based on the code this was
> > actually quite easy, let's see whether it works on the devices.
> >
> > Adrian Schmutzler (6):
> >  rb532: copy files from 4.14 to 5.4
> >  rb532: refresh patches for kernel 5.4
> >  rb532: refresh config for kernel 5.4
> >  rb532: use 5.4 as default kernel
> >  rb532: use vendor_model scheme
> >  rb532: determine sysupgrade-* directory for upgrade automatically
> >
> > target/linux/rb532/Makefile                   |   2 +-
> > .../rb532/base-files/lib/preinit/01_sysinfo   |   2 +-
> > .../rb532/base-files/lib/upgrade/platform.sh  |  11 +-
> > target/linux/rb532/config-5.4                 | 218 ++++++++++++++++++
> > target/linux/rb532/image/Makefile             |   7 +-
> > .../rb532/patches-5.4/001-cmdline_hack.patch  |  20 ++
> > .../004-rb532-fix-partition-info.patch        |  17 ++
> > 7 files changed, 269 insertions(+), 8 deletions(-) create mode 100644
> > target/linux/rb532/config-5.4 create mode 100644
> > target/linux/rb532/patches-5.4/001-cmdline_hack.patch
> > create mode 100644
> > target/linux/rb532/patches-5.4/004-rb532-fix-partition-info.patch
> >
> > --
> > 2.20.1
> >
> >
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Adrian Schmutzler Aug. 31, 2020, 11:28 p.m. UTC | #3
Hi again,

> -----Original Message-----
> From: Raylynn Knight [mailto:rayknight@me.com]
> Sent: Montag, 24. August 2020 10:00
> To: Adrian Schmutzler <freifunk@adrianschmutzler.de>
> Cc: OpenWrt Development List <openwrt-devel@lists.openwrt.org>;
> roman@advem.lv
> Subject: Re: [PATCH 0/6] rb532: update to kernel 5.4
> 
> Result from using sysupgrade:
> 
> ------------------------------
> sysupgrade successful
> umount: can't unmount /dev: Resource busy
> umount: can't unmount /tmp: Resource busy [  298.546770] rc32434_wdt:
> Stopped watchdog timer [  298.551917] reboot: Restarting system
> 
> 
> RouterBOOT booter 2.18
> 
> RouterBoard 532A
> 
> CPU frequency: 399 MHz
>   Memory size:  64 MB
> 
> Press any key within 4 seconds to enter setup....
> loading kernel from nand... OK
> setting up elf image... OK
> jumping to kernel code
> ------------------------------
> 
> System just hangs at this point.  I let it set for more than 5 minutes.
> 
> Result when attempting to boot openwrt-rb532-combined-squashfs.bin
> from CompactFlash card:
> 
> ------------------------------
> RouterBoard 532A
> 
> CPU frequency: 399 MHz
>   Memory size:  64 MB
> 
> Press any key within 4 seconds to enter setup....
> Booting CF
> Loading kernel... done
> setting up elf image... kernel out of range kernel loading failed
> 
> 
> RouterBOOT booter 2.18
> 
> RouterBoard 532A
> 
> CPU frequency: 399 MHz
>   Memory size:  64 MB
> 
> Press any key within 4 seconds to enter setup.
> ------------------------------
> 
> For what it's worth the current snapshot build from Mon Aug 24 04:19:14
> 2020 behaves the same way.
> 
> I was able to restore some functionality by booting the openwrt-19.07.3-
> rb532-combined-squashfs.bin from CompactFlash and using sysupgrade.
> Even this image has issues as I can login with Luci, but the Status page hangs
> with "Loading view….”.  Functionality from command line appears OK.  No
> issues appear with release 18.06.8

Thanks for testing all of this.
Unfortunately, it doesn't look like there is a cheap solution for this problem.

Assuming this problem exists in master before the 5.4 bumps as you report, and taking into account the age of the device/target, the fact that it's a single-device target, and the (very low) activity besides my bump, I decided to not invest further time and drop this together with the other 4.14 targets. Sorry.

Best

Adrian

> 
> 
> Ray
> 
> 
> > On Aug 22, 2020, at 7:07 AM, Adrian Schmutzler
> <freifunk@adrianschmutzler.de> wrote:
> >
> > ** I do not own this device, please test! **
> >
> > This updates rb532 from kernel 4.14 to 5.4. Based on the code this was
> > actually quite easy, let's see whether it works on the devices.
> >
> > Adrian Schmutzler (6):
> >  rb532: copy files from 4.14 to 5.4
> >  rb532: refresh patches for kernel 5.4
> >  rb532: refresh config for kernel 5.4
> >  rb532: use 5.4 as default kernel
> >  rb532: use vendor_model scheme
> >  rb532: determine sysupgrade-* directory for upgrade automatically
> >
> > target/linux/rb532/Makefile                   |   2 +-
> > .../rb532/base-files/lib/preinit/01_sysinfo   |   2 +-
> > .../rb532/base-files/lib/upgrade/platform.sh  |  11 +-
> > target/linux/rb532/config-5.4                 | 218 ++++++++++++++++++
> > target/linux/rb532/image/Makefile             |   7 +-
> > .../rb532/patches-5.4/001-cmdline_hack.patch  |  20 ++
> > .../004-rb532-fix-partition-info.patch        |  17 ++
> > 7 files changed, 269 insertions(+), 8 deletions(-) create mode 100644
> > target/linux/rb532/config-5.4 create mode 100644
> > target/linux/rb532/patches-5.4/001-cmdline_hack.patch
> > create mode 100644
> > target/linux/rb532/patches-5.4/004-rb532-fix-partition-info.patch
> >
> > --
> > 2.20.1
> >
> >
> > _______________________________________________
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel