Write Failing Without Error on Qspi (Spansion S25Hs512T) - U-Boot

Spansion S25HS512T NOR Flash not working on linux or u-boot

Support for S25HL/S25HS series has been added in u-boot 2021.10-rc3.

Ensure:

CONFIG_SPI_FLASH_SFDP_SUPPORT is set and
CONFIG_SPI_FLASH_BAR is not set

Thanks to Mr. Kuwano of Infineon for the support.

PS:
Not tested on Linux. Not working on Barebox yet (getting detected but not writing).

DFU not transferring data in barebox

A regression matching your problem was recently reported as being caused by

697f53a90224 ("usb: gadget: dfu: Wrap fs operation in workqueue")

There has been a first fix here:

https://lore.barebox.org/barebox/20210830144835.27458-1-jmaselbas@kalray.eu

Try and see if that fixes your issue.

It's unfortunate the regression slipped through, but most users seem to either use fastboot or DFU with the multigadget functionality (usbgadget -D command instead of dfu command). I'd suggest you do likewise with a new project. fastboot has special support for UBI (u) flag, which allows it to call ubiformat transparently on a volume when updating and it can reeexport barebox_update handlers, so you could just update with e.g.:

fastboot flash bbu-nand barebox-myboard.img
fastboot flash rootfs-nand my.ubi

The usbgadget command allows the gadget to work in the 'background'. So you can continue to use the shell and export more than one gadget at the same time: e.g. a USB serial console and DFU at the same time. This should still work despite the aforementioned regression as that one only broke the dfu command.



Related Topics



Leave a reply



Submit