Repository navigation
ipq40xx: switch to Kernel 5.10 - #4620
PolynomialDivision wants to merge 1 commit into
Conversation
|
Note that all of these "switch to" commits will need commit messages eventually. These drafts are only helpful to have something to discuss and build images against. |
|
There seem to be issues with the mikrotik subtarget: https://github.com/aparcar/openwrt/actions/runs/1296535398 |
|
I have been using ipq40xx 5.10 with out-of-tree mikrotik devices without any issues, but mine are not buildbot config. In your CI pipeline, I can only see one ipq40xx/generic device—cellc_rtl30vw failing for image size: openwrt/target/linux/ipq40xx/image/generic.mk Line 268 in 21c7a85 |
|
Anything we can do about that? |
Signed-off-by: Nick Hainke <[email protected]>
e86eb5f to
684915a
Compare
It looks like generic has issues? btw: I updatet the PR and removed the part where I deleted all 5.4 stuff. |
|
I don't have any issues building generic device with my normal buildroot. |
|
No, I don't have device anymore. |
|
There was a whole bunch of devices that failed during full build, just look at my commit message here: There is probably at least one more of them ... |
|
Apart from that, testing support has been out for 7 days. I think we should give this one or two months before we switch. |
Fine with me, this PR is mostly to collect feedback and create an overview. |
This comment has been minimized.
This comment has been minimized.
GL-iNet GL-B1300 is on the list. And it looks like with it's first version of U-Boot ( Debrick via U-Boot works. Once I get serial access, I will test newer vendor U-Boot releases. (For the record, I already notified / asked the vendor about this Good news! Log of FIT generating with buildbot settings and all feeds installed: And the oneliners: diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk
index 18f5d238c7..e0cfa07541 100644
--- a/target/linux/ipq40xx/image/generic.mk
+++ b/target/linux/ipq40xx/image/generic.mk
@@ -495,7 +495,7 @@ endef
TARGET_DEVICES += glinet_gl-ap1300
define Device/glinet_gl-b1300
- $(call Device/FitImage)
+ $(call Device/FitzImage)
DEVICE_VENDOR := GL.iNet
DEVICE_MODEL := GL-B1300
BOARD_NAME := gl-b1300
@@ -507,7 +507,7 @@ endef
TARGET_DEVICES += glinet_gl-b1300
define Device/glinet_gl-s1300
- $(call Device/FitImage)
+ $(call Device/FitzImage)
DEVICE_VENDOR := GL.iNet
DEVICE_MODEL := GL-S1300
SOC := qcom-ipq40295.10.70 ( |
|
@xabolcs It would probably be best if you open a separate PR for this when it's ready. |
Hi @adschm , should I test (and include the results to the commit message) the newer vendor U-Boot releases (do they work with 4M+ kernels, do they work with zImage)? Would it be nice to include serial logs? |
GL.iNet GL-B1300 vs.
|
| vendor U-Boot date | oversized gzip uImage | lzma uImage | zImage |
|---|---|---|---|
Apr 13 2018 - 13:54:46 |
❌ (after U-Boot upgrade/downgrade) Config not availabale |
❌ Unimplemented compression type 3 |
✔️ |
Sep 01 2019 - 16:25:43 |
❌ Config not availabale |
❌ --||-- | ✔️ |
Mar 24 2021 - 17:28:16 |
❌ --||-- | ❌ --||-- | ✔️ |
Jul 05 2021 - 17:42:35 |
❌ --||-- | ❌ --||-- | ✔️ |
Summarizing:
- the
KERNEL_SIZE := 4096klimit doesn't need any update - zImage (recipe
Device/FitzImage) does work and saves ~1200k (4116k -> 2909k)
It would probably be best if you ...
@adschm , sure! Will do at the weekend.
In the "ipq40xx: switch to Kernel 5.10" discussion at GitHub, Adrian noted [0] that these GL.iNet Conexa series devices, GL-B1300 and GL-S1300 failed their image generation [1] as their gzipped uImage kernel went above 4096k. While notifying the vendor about this problem [2], I tested all U-Boot releases from GL.iNet: - they really fail to boot kernel above 4096k - they don't support lzma: "Unimplemented compression type 3" - but they boot zImage Using zImage (xz compression) the kernel is 2909k which is more than a megabyte away from the KERNEL_SIZE := 4096k limit. The gzip compressed version would be 4116k. [0]: openwrt#4620 (comment) [1]: commit 7b1fa27 ("ipq40xx: add testing support for kernel 5.10") [2]: https://forum.gl-inet.com/t/ipq40xx-kernel-size-and-u-boot-v5-10-is-too-big-for-4-mb/17619 Signed-off-by: Szabolcs Hubai <[email protected]>
In the "ipq40xx: switch to Kernel 5.10" discussion at GitHub, Adrian noted [0] that these GL.iNet Conexa series devices, GL-B1300 and GL-S1300 failed their image generation [1] as their gzipped uImage kernel went above 4096k. While notifying the vendor about this problem [2], I tested all U-Boot releases from GL.iNet: - they really fail to boot kernel above 4096k - they don't support lzma: "Unimplemented compression type 3" - but they boot zImage Using zImage (xz compression) the kernel is 2909k which is more than a megabyte away from the KERNEL_SIZE := 4096k limit. The gzip compressed version would be 4116k. [0]: #4620 (comment) [1]: commit 7b1fa27 ("ipq40xx: add testing support for kernel 5.10") [2]: https://forum.gl-inet.com/t/ipq40xx-kernel-size-and-u-boot-v5-10-is-too-big-for-4-mb/17619 Signed-off-by: Szabolcs Hubai <[email protected]>
In the "ipq40xx: switch to Kernel 5.10" discussion at GitHub, Adrian noted [0] that these GL.iNet Conexa series devices, GL-B1300 and GL-S1300 failed their image generation [1] as their gzipped uImage kernel went above 4096k. While notifying the vendor about this problem [2], I tested all U-Boot releases from GL.iNet: - they really fail to boot kernel above 4096k - they don't support lzma: "Unimplemented compression type 3" - but they boot zImage Using zImage (xz compression) the kernel is 2909k which is more than a megabyte away from the KERNEL_SIZE := 4096k limit. The gzip compressed version would be 4116k. [0]: openwrt#4620 (comment) [1]: commit 7b1fa27 ("ipq40xx: add testing support for kernel 5.10") [2]: https://forum.gl-inet.com/t/ipq40xx-kernel-size-and-u-boot-v5-10-is-too-big-for-4-mb/17619 Signed-off-by: Szabolcs Hubai <[email protected]>
|
@john-tho Will we face the 4k sector problems here with 5.10? |
|
No 4k sector problems for the ipq40xx_mikrotik subtarget. |
Well, I enabled: I dont see anything else relevant |
Buildbots have CONFIG_ALL_KMODS=y This will increase kernel size as several of these packages enable kernel symbols with "=y". As a consequence, the buildbot kernel typically is a few 100 kiB bigger than the one with default settings. And of course, my criterion to merge this is whether or not the buildbots will fail afterwards. |
|
@adschm Enabled CONFIG_BUILDBOT=y and even CONFIG_COLLECT_KERNEL_DEBUG and I don't see any build errors at all. |
Okay, I'll retry. |
|
My CI builds fine as well using the Buildbot settings (nevermind the MacOS failure): https://github.com/aparcar/openwrt/actions/runs/1387549572 |
Then it's probably just a build problem on my side. |
|
I'm already building ipq40xx images with DSA support (that needs 5.10) kernel. Whats blocking this PR? |
@xabolcs Good catch, you're right! It wasn't in my staging tree and therefore build the Kernel 5.4 - thanks! Building with 5.10 results in breakage: https://github.com/aparcar/openwrt/runs/4085044480?check_suite_focus=true |
So, is there a comfortable way to identify all devices not building without having to individually disable and rebuild until it works? |
|
I still don't understand why it builds locally for me just fine with the buildbot config, I dont get a single too large error. |
Size is exceeded only by 43 kB. If you have feeds installed and build-settings as you stated, maybe there is one or two additional options that reduze size again below the threshold? What I do for testing in these cases is quite trivial: |
|
Yeah, I cleaned everything up in my env today. I don't know where can we save the additional 43kB, even if it squeeze it now it's gonna pop up back in a couple of months. |
My plan actually is to bump ASAP, disable all affected devices, and then wait for people to make them work again. But this requires quite some time, so I haven't done it yet. If somebody likes to identify all affected devices, please do so. |
|
@aparcar How hard would it be to set up a CI that builds all devices one-by-one? I.e.
? (One wouldn't even have to track build status, just look which sysupgrade files are found in the bin dir afterwards) |
|
@adschm I manually went and disabled the devices that were falling. |
|
@robimarko Thanks. Can I use (=merge) that patch as-is if the target builds with that and 5.10? |
|
Sure, that is why I shared it. |
|
@adschm , but please don't disable those |
|
Merged. Thanks for helping me out here ... |
|
I prepared switch to zImage for Cell-C: |
In the "ipq40xx: switch to Kernel 5.10" discussion at GitHub, Adrian noted [0] that these GL.iNet Conexa series devices, GL-B1300 and GL-S1300 failed their image generation [1] as their gzipped uImage kernel went above 4096k. While notifying the vendor about this problem [2], I tested all U-Boot releases from GL.iNet: - they really fail to boot kernel above 4096k - they don't support lzma: "Unimplemented compression type 3" - but they boot zImage Using zImage (xz compression) the kernel is 2909k which is more than a megabyte away from the KERNEL_SIZE := 4096k limit. The gzip compressed version would be 4116k. [0]: openwrt/openwrt#4620 (comment) [1]: commit 7b1fa27 ("ipq40xx: add testing support for kernel 5.10") [2]: https://forum.gl-inet.com/t/ipq40xx-kernel-size-and-u-boot-v5-10-is-too-big-for-4-mb/17619 Signed-off-by: Szabolcs Hubai <[email protected]>
Upstream in commit 81d694e ("ipq40xx: use zImage for GL.iNet GL-B1300, GL-S1300 to shrink below 4096k") has changed the compression type of kernel in order to overcome bootloader kernel size constraint of 4M. References: openwrt/openwrt#4620 (comment) Signed-off-by: Petr Štetiar <[email protected]>
Upstream in commit 81d694e ("ipq40xx: use zImage for GL.iNet GL-B1300, GL-S1300 to shrink below 4096k") has changed the compression type of kernel in order to overcome bootloader kernel size constraint of 4M. References: openwrt/openwrt#4620 (comment) Signed-off-by: Petr Štetiar <[email protected]>
Upstream in commit 81d694e ("ipq40xx: use zImage for GL.iNet GL-B1300, GL-S1300 to shrink below 4096k") has changed the compression type of kernel in order to overcome bootloader kernel size constraint of 4M. References: openwrt/openwrt#4620 (comment) Signed-off-by: Petr Štetiar <[email protected]>
Upstream in commit 81d694e ("ipq40xx: use zImage for GL.iNet GL-B1300, GL-S1300 to shrink below 4096k") has changed the compression type of kernel in order to overcome bootloader kernel size constraint of 4M. References: openwrt/openwrt#4620 (comment) Signed-off-by: Petr Štetiar <[email protected]>
Upstream in commit 81d694e ("ipq40xx: use zImage for GL.iNet GL-B1300, GL-S1300 to shrink below 4096k") has changed the compression type of kernel in order to overcome bootloader kernel size constraint of 4M. References: openwrt/openwrt#4620 (comment) Signed-off-by: Petr Štetiar <[email protected]>
In the "ipq40xx: switch to Kernel 5.10" discussion at GitHub, Adrian noted [0] that these GL.iNet Conexa series devices, GL-B1300 and GL-S1300 failed their image generation [1] as their gzipped uImage kernel went above 4096k. While notifying the vendor about this problem [2], I tested all U-Boot releases from GL.iNet: - they really fail to boot kernel above 4096k - they don't support lzma: "Unimplemented compression type 3" - but they boot zImage Using zImage (xz compression) the kernel is 2909k which is more than a megabyte away from the KERNEL_SIZE := 4096k limit. The gzip compressed version would be 4116k. [0]: openwrt#4620 (comment) [1]: commit 5fade31 ("ipq40xx: add testing support for kernel 5.10") [2]: https://forum.gl-inet.com/t/ipq40xx-kernel-size-and-u-boot-v5-10-is-too-big-for-4-mb/17619 Signed-off-by: Szabolcs Hubai <[email protected]>
Devices I tested: