Ok, so I've poked around a bit on master and for a similar device it looks like it is partitioning the NAND flash only through 0x7e00000, rather than to the end of the address space at 0x8000000 (-1). Am I interpreting the DTS correctly?
From target/linux/ath79/dts/qca9531_glinet_ar300m-nand.dts
So, if I've interpreted that right, it seems that OpenWrt is only going to write a 130,023,424 byte (124 MB) "ubi" (I assume shared between ROM and JFFS), after the 2 MB for the "kernel" partition, for a total of 126 MB (of 128 MB).
any way to repair the bad blocks? ECC algo included in u-boot seems helpless. i've seen some yt videos where they repair bad blocks on xbox nand storage.
if not could nand init from u-boot clear bad block informations? as read on another site bad blocks that happened due to improper write are actually artificial bad blocks so i gues they should be recoverable.
dd can read nand without problems, but writing will produce bad block
Based on the wiki page that @tmomas linked to, dd will read both data and parity information off a nand chip. Which will make the backup files it produces a bit useless. nandread and nandwrite should only be used as they are both aware of the nand parity info.
used dd from linksys fw here to dump whole nand. ended up with 134,217,728 bytes large file. i can see within empty parts of dump or calibration data there is no OOB records stored
I directly connected to my ea8100 Linksys router using serial port after I connected wrongly and without knowing the dangers of two commands (never test these two)
nand erase ubifs
nand erase syscfg
I wrote, after turning the router off and on again, the router did not boot, and even its lights did not turn on, and serial communication was not established, and nothing booted at all!!!!
Is there a way to fix the router?
How can I check if the bootloader is damaged or not?
Should I use CFE files if I want to rewrite the bootloader or ubifs? Where should I find the file for this router?
I don't know much about electronics and the destructive effects of these two commands on NAND.