Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T113 burn packed image? #176

Open
thevirtualdj opened this issue Jun 20, 2022 · 3 comments
Open

T113 burn packed image? #176

thevirtualdj opened this issue Jun 20, 2022 · 3 comments

Comments

@thevirtualdj
Copy link

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?

@apritzel
Copy link
Contributor

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
Copy link
Contributor

@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.

@thevirtualdj
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants