El lun, 14 feb 2022 a las 20:34, Florian Fainelli (<f.faine...@gmail.com>) escribió: > > On 2/14/22 11:07 AM, Hauke Mehrtens wrote: > > On 2/4/22 00:48, Hauke Mehrtens wrote: > >> Hi, > >> > >> We would like to switch the bcm63xx target to kernel 5.10. Paul > >> created a pull request for that: > >> https://github.com/openwrt/openwrt/pull/4616 > >> > >> There is still a problem with Macronix NAND flash chips, see the > >> comments from the pull request. > >> > >> Could someone please have a look into this problem. > >> > >> Does this change in the upstream kernel help? > >> https://github.com/torvalds/linux/commit/22ca05b82d3e3abc2b116a11ee41b6b692b95530 > >> > >> > >> Hauke > > > > Hi, > > > > I read that Daniel's device is now completely broken, probably > > bootloader was overwritten. > > > > The bcm63xx target is the last one using kernel 5.4. We would like to > > remove kernel 5.4 support from OpenWrt master soon and branch off the > > next major release. How do we want to go forward with this topic? > > > > Should we apply this hack? > > I would be inclined to apply this hack and make it bcm63xx specific > unless other platforms suffer from that problem. > > Meanwhile, I would reach out to the MTD maintainers to understand what > is going on, mentioning what we have found, which is that the brcmnand > controller prior to version 4.0 does not support the {GET,SET}_FEATURES > command. > > Daniel, any hope of recovering your device somehow?
Not sure, right now without a NAND programmer I can use another router (AD1018) to recover this one, wiring the NAND pads on the alive to the dead one, to make a recovery booting from SPI a copy of Openwrt. It might also be posible to locate the JTAG tests points on the board, and then with OpenOCD initialize the CPU to load the RAM bootloader, and then load an OpenWrt RAM firmware to finally flash sane bootloaders ROM+RAM into the NAND flash. But I have no idea how to initialize a BCM63268 CPU using OpenOCD in the case I was able to locate the JTAG pinout. About this patch: --- a/drivers/mtd/nand/raw/nand_macronix.c +++ b/drivers/mtd/nand/raw/nand_macronix.c @@ -323,7 +323,7 @@ macronix_nand_fix_broken_get_timings(chip); macronix_nand_onfi_init(chip); - macronix_nand_block_protection_support(chip); + //macronix_nand_block_protection_support(chip); macronix_nand_deep_power_down_support(chip); return 0; It works quite fine, and it's harmless. Regards Daniel. > -- > Florian _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel