[FS#4137] OpenWRT 21.02.1 doesn't completely boot on RaidSonic IB-NAS4220-B

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Tue Nov 23 12:52:03 PST 2021


The following task has a new comment added:

FS#4137 - OpenWRT 21.02.1 doesn't completely boot on RaidSonic IB-NAS4220-B
User who did this - Christian Lamparter (chunkeey)

the provided flashdump has something that resembles a partition table right at 0xfe0000.

and from your post:

> root at OpenWrt:/# cat /sys/class/mtd/mtd0/erasesize 
> 131072

This means that your flash chip reports a 128KiB erasesize (and not the assumed 32 KiB)

if you could patch that 0x1fc value in the device-tree [[https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/gemini-nas4220b.dts?h=linux-5.10.y#n87|gemini-nas4220b.dts]]

to (0xfe0000 / 131072) = 127 = 0x7f. Then everything should fall into place and everything "should" work.

There's something to watch out though: manufacturers sometimes have to switch to a different flash chip. I looked around if I could find any mentions of what other flash chips are used. 
I looked around and found a review which had  [[https://bit-tech.net/reviews/tech/storage/icy-box-ib-nas4220-b-network-storage/2/|PCB shots]]. Their sample had a S29GL128N(11TFI01 - somewhat unreadable). This is a Spanion Parallel NOR MirrorBit™ Flash chip. The Spanion datasheet says "S29GL128N: One hundred twenty-eight 64 Kword (128 Kbyte) sectors".


(It seems the "kernel" is called "kern" instead. Still, I don't think this is an issue
since it seems that the gemini's sysupgrade platform.sh only supports the DIR-685)


More information can be found at the following URL:

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.

More information about the openwrt-bugs mailing list