Ramips bad block management table mt7621

Ivan Grynko spam at ivanich.net
Fri Oct 23 18:13:01 EDT 2020


Hi,
Seen this commit in your branch https://git.openwrt.org/?p=openwrt/staging/
nbd.git;a=commit;h=b18993dcaf5ae57d4569a9606dd707e5380e9382 and have couple of 
questions:
- Will this work on ramips mt7621?
- Could this potentially solve a problem in current master with kernel 5.4 
when flashing openwrt builds randomly soft bricks endgerouterx due to bad 
blocks(not sure but this particular device has 1 bad block in kernel2 and one 
in the ubi partion) ?

I have the same symptoms as described here https://github.com/freifunk-gluon/
gluon/issues/1937 

Part of dmesg
[    1.046059] Bad eraseblock 36 at 0x000000480000
[    2.389258] Bad eraseblock 1089 at 0x000008820000
[    3.613784] 6 fixed-partitions partitions found on MTD device mt7621-nand
[    3.627314] Creating 6 MTD partitions on "mt7621-nand":
[    3.637740] 0x000000000000-0x000000080000 : "u-boot"
[    3.648784] 0x000000080000-0x0000000e0000 : "u-boot-env"
[    3.660548] 0x0000000e0000-0x000000140000 : "factory"
[    3.671742] 0x000000140000-0x000000440000 : "kernel1"
[    3.683089] 0x000000440000-0x000000740000 : "kernel2"
[    3.694255] 0x000000740000-0x00000ff00000 : "ubi"

Regards,
Ivan





More information about the openwrt-devel mailing list