The first nvram is supposed to end at 0x2 00000, and the second nvram isn't nvram at all. Creating 2 MTD partitions on "firmware": 2 trx partitions found on MTD device firmware Creating 4 MTD partitions on "brcmnand.0": 4 bcm47xxpart partitions found on MTD device brcmnand.0 That shouldn't be done either, though, without other modifications, because openwrt's partition table is wrong. Something like # dd if=/dev/zero of=/dev/mtd2 bs=1024 count=31744 I should be able to replicate the effect with an extra line in the first-run script. Somewhere, it would have to be made clear that extra steps are required in the installation. What I did still shouldn't actually be done without the CFE workaround I described. The fallback image fails its CRC check and the main image boots instead. *** openwrt boots normally starting from here. Loader:raw Filesys:raw Dev:nflash0.os2 File: Options:(null) Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)Ĭhanged to the other image 0 (maxpartialboots exceeded) But as a workaround, it is also sufficient to nuke the entire fallback image partition in the CFE: CFE> flash -erase x The real solution is to find the relevant piece of deep magic and zero it on successful boot, just like the stock images do. So, every third boot, the CFE switches to the backup firmware and things explode from there. The stock firmware resets that count somewhere to tell the CFE the boot had succeeded, and openwrt does not. (I use five zeros in groups because that's exactly 1MiB, so you can tell that the deep magic is 2 MiB long.)ĬFE keeps a count of the number of failed boots somewhere in the deep magic, incrementing on every failed boot. The openwrt nand flash layout is: 0x00 00000 deep magicĠx02 00000 fallback image aka x, xĠx1f 00000 main image aka x2, x2 So yeah.Īnyway, I figured out the problem. Some are all like "DOANT NEKROOOOOOO!!!~!!1" and others are like "DUPLIKIT POAAAAST!!121!!". I never know the policy with a new forum.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |