Altera_Forum
Honored Contributor
9 years agou-boot multi image
Hello,
Has anyone successfully used a u-boot Multi image to boot into Linux? I have zImage, initrd, and dtb that I want put into the image. My attempts so far have always resulted in: SOCFPGA_CYCLONE5# fatload mmc 0 0x2000000 zzzmultiimage reading zzzmultiimage 31098855 bytes read in 2718 ms (10.9 MiB/s) SOCFPGA_CYCLONE5# bootm 0x2000000 ## Booting kernel from Legacy Image at 02000000 ... Image Name: Multi image Image Type: ARM Linux Multi-File Image (gzip compressed) Data Size: 31098791 Bytes = 29.7 MiB Load Address: 00008000 Entry Point: 00008000 Contents: Image 0: 3407918 Bytes = 3.3 MiB Image 1: 27671672 Bytes = 26.4 MiB Image 2: 19183 Bytes = 18.7 KiB ## Loading init Ramdisk from multi component Legacy Image at 02000000 ... ## Flattened Device Tree from multi component Image at 02000000 Booting using the fdt at 0x03da3cf8 Uncompressing Multi-File Image ... Error: Bad gzipped data GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover resetting .. I have tried a range of load addresses (0x2000000 pictured above), all get the same message. I build the multi-image on the workstation using: mkimage -A arm -O linux -T multi -a 0x8000 -e 0x8000 -C gzip -n 'Multi image' -d uImage:uRamdiskExt3ARM:socfpga_cyclone5_sockit.dtb zzzMultiImage The .dtb comes straight from the kernel build. For the uImage I have tried:- using the zImage straight from the kernel build,
- the zImage wrapped by mkimage with:
- the Image straight from the kernel build, compressed with gzip -9, and then wrapped by mkimage with: