Boot image from SPI-flash LIME2

Started by iggor96, April 19, 2021, 10:00:14 PM

Previous topic - Next topic

iggor96

Hello, I try to load linux image from spi onboard flash to RAM. I want to use LIME2 only with spi-flash. I installed U-Boot on spi-flash with use of sunxi-tools and viewed output in serial port(https://linux-sunxi.org/Bootable_SPI_flash). Can you explain to me how to load linux image and rootfs to spi-flash and then write script for u-boot.

iggor96

Today I tried command sf probe and get:
"Invalid bus 0(err=-19)
Failed to initialize SPI flash at 0:0(error=-19)".

iggor96

I modified dts and command sf start working. Then I compile linux kernel with dtbs and get zImage and dtb. With using sunxi-tools I written u-boot with offset 0, dtb with offset 0x100000, kernel with offset 0x110000 and initramfs with offset 0x510000.
In U-Boot console i try to execute next commands:
sf probe 0                          
sf read 0x43000000 0x100000 0x10000 
sf read 0x42000000 0x110000 0x400000
sf read 0x49CE1000 0x510000 0x400000
bootz 0x42000000 0x49CE1000 0x43000000
After that i get:
Data abort