sunxi-tools icon indicating copy to clipboard operation
sunxi-tools copied to clipboard

T113 burn packed image?

Open thevirtualdj opened this issue 3 years ago • 6 comments

Is there a way to write SP-NOR packed image with sunxi-fel or other source available tool? We tried to build it for ARM armv7l (A20) armbian and when try to burn: sunxi-fel -p -v spiflash-write 0 ./t113_linux_evb1_auto_nor_uart0_nor.img we get: SPI support not implemented yet for 0 ((null))! Any other way of doing this from armbian A20 linux?

thevirtualdj avatar Jun 20 '22 10:06 thevirtualdj

I wouldn't know that the T113 is supported already by sunxi-fel. What does $ sunxi-fel ver give you? Surely it complains about now knowing the SoC? In that case you would need to add the information into soc_info.c. On top of this you would need to make sure to have SPI flash support enabled for that SoC, mostly in fel-spiflash.c. If you have U-Boot or Linux running (booting via SD card or FEL), you should be able to write it from there, check sunxi.rst in U-Boot.

apritzel avatar Jun 20 '22 23:06 apritzel

@thevirtualdj: so T113 support has been merged today, although without SPI flash support (yet). It would seem my MangoPi has a SPI flash foot print, but I haven't soldered anything on it. If you have SPI flash on your board, it would be great if you could try to add support for it, look at fel-spiflash.c and previous commits to this file.

apritzel avatar Jul 29 '22 22:07 apritzel

I solved it. It was missing kernel setup configs and dts spi clock had to be lowered to 30MHz for jffs2 filesistem. Had to fix makescripts for packing and building myself but it really has support for my w25 flash and just needa a little attention.

thevirtualdj avatar Jul 30 '22 09:07 thevirtualdj