BUG: as of 2967e24d0 "ramips: switch to Linux 6.6' ERX kernel is too big

Russell Senior russell at personaltelco.net
Sun May 19 18:50:04 PDT 2024

(try#2, damn you gmail)

I mentioned this on IRC and as a github comment on the commit

My build started failing on the commit. The message I get from the
build system is:

  "WARNING: Image file
is too big: 3165615 > 3145728"

I tried a vanilla config:


  "WARNING: Image file
is too big: 3165361 > 3145728"

I notice that there are two kernel partitions on the NAND flash, each
of which is 3MB:

[    1.011604] 6 fixed-partitions partitions found on MTD device mt7621-nand
[    1.025136] Creating 6 MTD partitions on "mt7621-nand":
[    1.035552] 0x000000000000-0x000000080000 : "u-boot"
[    1.054525] 0x000000080000-0x0000000e0000 : "u-boot-env"
[    1.072180] 0x0000000e0000-0x000000140000 : "factory"
[    1.089606] 0x000000140000-0x000000440000 : "kernel1"
[    1.147424] 0x000000440000-0x000000740000 : "kernel2"
[    1.204979] 0x000000740000-0x00000ff00000 : "ubi"

Which suggests two possible fixes:

 a) cannibalize the second kernel parition (might require a different
u-boot?); or

 b) use an intermediate u-boot that looks for the kernel in a ubi partition.


 c) make the damn kernel smaller.


Russell Senior
russell at personaltelco.net

More information about the openwrt-devel mailing list