Old olinuxino a20 kernel image loading from flash

Started by luimarma, July 25, 2025, 08:16:46 PM

Previous topic - Next topic

luimarma

I am trying to boot from SPI flash an old kernel image 3.4 series in an Olinuxino A20 board.
There use to be a file called migrate_to_SPI_eMMC_boot.txt, but I cannot find it anymore.
Anyone can point me to the right information?

Regards

Lu

LubOlimex

Which A20 board exactly? Images with older sunxi kernel can be found at our FTP, but each A20 board has own image.
Technical support and documentation manager at Olimex

luimarma

This is an Olinuxino A20 micro REV. M.
My intention is to boot from SPI flash a custom kernel of 3.4 series

LubOlimex

I am not sure if there is SPI boot in the image. We have both NAND and eMMC boot, but not sure if the eMMC boot utilizes SPI boot first. The images are here:

https://ftp.olimex.com/Allwinner_Images/A20-OLinuXino-MICRO/Debian/sd/
Technical support and documentation manager at Olimex

luimarma

I have copied the image to an sd card. Inside there is no flashcp program and /dev/mtd0 doesn't exist, so I cant flash the u-boot to the SPI flash.
Is maybe this covered in this file commented in another thread?
migrate_to_SPI_eMMC_boot.txt
The thread is this one:
https://www.olimex.com/forum/index.php?topic=7252.0

LubOlimex

I have no idea what is this file, even if there was one, it is probably gone by now.

If your board has eMMC download the A20_OLinuxino_Micro_debian_Jessie_34_103_2G_eMMC_release_18.zip   archive, extract it prepare an SD card with it, boot and type ./emmc.sh - this will install the Linux image to the eMMC.

It is quite likely that the release above does what you want (e.g. boots from SPI then transfers the boot process to eMMC).
Technical support and documentation manager at Olimex