openwrt/target/linux
Ahmed Naseef 83c6b5b5d0 econet: en75_bmt: add configurable BBT table size
Different vendor firmware versions use different BBT table sizes. The
checksum is calculated over the entire table, so the size must match
what the bootloader expects.

The Genexis Platinum-4410 bootloader was compiled with a BBT table
size of 250 entries (MAX_RAW_BAD_BLOCK_SIZE as found in vendor code).
Without this fix, the BBT checksum validation fails:

    [    0.391948] spi-nand spi0.0: Dosilicon SPI NAND was found.
    [    0.397651] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
    [    0.407370] en75_bmt: found BMT in block 1023
    [    0.450160] en75_bmt: BBT not found and econet,can-write-factory-bbt is unset, giving up

Add a new DTS property 'econet,bbt-table-size' to configure the BBT
table size. If not specified, defaults to 1000.

After this patch:

    [    0.407021] en75_bmt: found BMT in block 1023
    [    0.449159] en75_bmt: found BBT in block 943
    [    0.453491] en75_bmt: BBT & BMT found
    [    0.457152] en75_bmt: blocks: total: 1024, user: 943, factory_bad: 0, worn: 0 reserve: 81
    [    0.465390] en75_bmt: 117 MiB usable space

Signed-off-by: Ahmed Naseef <naseefkm@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21326
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-02-15 01:12:52 +01:00
..
airoha kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
apm821xx
armsr
at91
ath79 kernel: bump 6.12 to 6.12.70 2026-02-14 18:30:02 +01:00
bcm27xx kernel: bump 6.12 to 6.12.70 2026-02-14 18:30:02 +01:00
bcm47xx
bcm53xx
bcm4908
bmips
d1
econet econet: en75_bmt: add configurable BBT table size 2026-02-15 01:12:52 +01:00
gemini
generic kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
imx
ipq40xx kernel: bump 6.12 to 6.12.70 2026-02-14 18:30:02 +01:00
ipq806x
ixp4xx
kirkwood
lantiq
layerscape kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
loongarch64
malta
mediatek
microchipsw
mpc85xx
mvebu
mxs
octeon
omap
pistachio
qoriq
qualcommax kernel: bump 6.12 to 6.12.70 2026-02-14 18:30:02 +01:00
qualcommbe kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
ramips kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
realtek realtek: pcs: rtl931x: fix SerDes link status reading 2026-02-14 20:40:40 +01:00
rockchip
sifiveu
siflower
starfive
stm32
sunxi
tegra
uml
x86
zynq
Makefile