Hi every body,
I am a new guy in SOC development and I got stucked a bit. I created my own system for the DE0-SOC and started to go steb by step trough the boot process. I created u-boot, rbf, device tree, boot script and all seems to be working until I try to start kernel. Then I get Bad Linux ARM zImage magic! error and end up in the command line of u-boot. I am vhdl developer but in this I am quite lost already for about a week. I would apreciate any help or hint what is wrong here.
I got the same issue by replacing files at default system drive keeping original zImage and with compiled zImage.
U-Boot 2013.01.01 (Nov 28 2016 - 16:50:04)
CPU : Altera SOCFPGA Platform
BOARD : Altera SOCFPGA Cyclone V Board
I2C: ready
DRAM: 1 GiB
MMC: ALTERA DWMMC: 0
In: serial
Out: serial
Err: serial
Skipped ethaddr assignment due to invalid EMAC address in EEPROM
Net: mii0
Warning: failed to set MAC address
Hit any key to stop autoboot: 0
reading u-boot.scr
1387 bytes read in 5 ms (270.5 KiB/s)
## Executing script at 02000000
-- Programming FPGA --
reading UQDSxDAQ.rbf
1822536 bytes read in 167 ms (10.4 MiB/s)
/$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$
| $$ | $$ /$$__ $$| $$__ $$ /$$__ $$ | $$__ $$ /$$__ $$ /$$__ $$
| $$ | $$| $$ \ $$| $$ \ $$| $$ \__//$$ /$$| $$ \ $$| $$ \ $$| $$ \ $$
| $$ | $$| $$ | $$| $$ | $$| $$$$$$| $$ /$$/| $$ | $$| $$$$$$$$| $$ | $$
| $$ | $$| $$ | $$| $$ | $$ \____ $$\ $$$$/ | $$ | $$| $$__ $$| $$ | $$
| $$ | $$| $$/$$ $$| $$ | $$ /$$ \ $$ >$$ $$ | $$ | $$| $$ | $$| $$/$$ $$
| $$$$$$/| $$$$$$/| $$$$$$$/| $$$$$$//$$/\ $$| $$$$$$$/| $$ | $$| $$$$$$/
\______/ \____ $$$|_______/ \______/|__/ \__/|_______/ |__/ |__/ \____ $$$
\__/ \__/
## Starting application at 0x3FF795A4 ...
## Application terminated, rc = 0x0
-- Setting Env Variables --
reading zImage
3606616 bytes read in 323 ms (10.6 MiB/s)
reading UQDS.dtb
74210 bytes read in 12 ms (5.9 MiB/s)
Bad Linux ARM zImage magic!
reading zImage
3606616 bytes read in 324 ms (10.6 MiB/s)
reading UQDS.dtb
74210 bytes read in 12 ms (5.9 MiB/s)
## Starting application at 0x3FF795A4 ...
## Application terminated, rc = 0x0
Bad Linux ARM zImage magic!
boot script
echo -- Programming FPGA --;
fatload mmc 0:1 $fpgadata UQDSxDAQ.rbf;
echo;
echo ' /$$ /$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ ';
echo '| $$ | $$ /$$__ $$| $$__ $$ /$$__ $$ | $$__ $$ /$$__ $$ /$$__ $$';
echo '| $$ | $$| $$ \\ $$| $$ \\ $$| $$ \\__//$$ /$$| $$ \\ $$| $$ \\ $$| $$ \\ $$';
echo '| $$ | $$| $$ | $$| $$ | $$| $$$$$$| $$ /$$/| $$ | $$| $$$$$$$$| $$ | $$';
echo '| $$ | $$| $$ | $$| $$ | $$ \\____ $$\\ $$$$/ | $$ | $$| $$__ $$| $$ | $$';
echo '| $$ | $$| $$/$$ $$| $$ | $$ /$$ \\ $$ >$$ $$ | $$ | $$| $$ | $$| $$/$$ $$';
echo '| $$$$$$/| $$$$$$/| $$$$$$$/| $$$$$$//$$/\\ $$| $$$$$$$/| $$ | $$| $$$$$$/';
echo ' \\______/ \\____ $$$|_______/ \\______/|__/ \\__/|_______/ |__/ |__/ \\____ $$$';
echo ' \\__/ \\__/';
fpga load 0 $fpgadata $filesize
run bridge_enable_handoff
echo -- Setting Env Variables --
setenv fdtimage UQDS.dtb
setenv mmcroot /dev/mmcblk0p2
setenv mmcload 'mmc rescan;${mmcloadcmd} mmc 0:${mmcloadpart} ${loadaddr} ${bootimage};${mmcloadcmd} mmc 0:${mmcloadpart} ${fdtaddr} ${fdtimage}'
setenv mmcboot 'setenv bootargs console=ttyS0,115200 root=${mmcroot} rw rootwait; bootz ${loadaddr} - ${fdtaddr}'
run mmcload
run mmcboot
printenv command
axibridge=ffd0501c
axibridge_handoff=0x00000000
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait
bootcmd=run callscript;run mmcload;run bridge_enable_handoff;run mmcboot
bootdelay=5
bootimage=zImage
bootimagesize=0x600000
bridge_disable=mw $fpgaintf 0; mw $fpga2sdram 0; go $fpga2sdram_apply; mw $axibridge 0; mw $l3remap 0x1
bridge_enable_handoff=mw $fpgaintf ${fpgaintf_handoff}; go $fpga2sdram_apply; mw $fpga2sdram ${fpga2sdram_handoff}; mw $axibridge ${axibridge_handoff}; mw $l3remap ${l3remap_handoff}
callscript=if fatload mmc 0:1 $fpgadata $scriptfile;then source $fpgadata; else echo Optional boot script not found. Continuing to boot normally; fi;
ethact=mii0
fdtaddr=0x00000100
fdtimage=UQDS.dtb
fdtimagesize=0x5000
filesize=0x121e2
fpga=0
fpga2sdram=ffc25080
fpga2sdram_apply=3ff795a4
fpga2sdram_handoff=0x00000000
fpgadata=0x2000000
fpgadatasize=0x700000
fpgaintf=ffd08028
fpgaintf_handoff=0x00000000
l3remap=ff800000
l3remap_handoff=0x00000019
loadaddr=0x8000
micrel-ksz9021-clk-skew=0xf0f0
micrel-ksz9021-data-skew=0x0
mmcboot=setenv bootargs console=ttyS0,115200 root=${mmcroot} rw rootwait; bootz ${loadaddr} - ${fdtaddr}
mmcload=mmc rescan;${mmcloadcmd} mmc 0:${mmcloadpart} ${loadaddr} ${bootimage};${mmcloadcmd} mmc 0:${mmcloadpart} ${fdtaddr} ${fdtimage}
mmcloadcmd=fatload
mmcloadpart=1
mmcroot=/dev/mmcblk0p2
netboot=dhcp ${bootimage} ; tftp ${fdtaddr} ${fdtimage} ; run ramboot
qspiboot=setenv bootargs console=ttyS0,115200 root=${qspiroot} rw rootfstype=${qspirootfstype};bootz ${loadaddr} - ${fdtaddr}
qspibootimageaddr=0xa0000
qspifdtaddr=0x50000
qspiload=sf probe ${qspiloadcs};sf read ${loadaddr} ${qspibootimageaddr} ${bootimagesize};sf read ${fdtaddr} ${qspifdtaddr} ${fdtimagesize};
qspiloadcs=0
qspiroot=/dev/mtdblock1
qspirootfstype=jffs2
ramboot=setenv bootargs console=ttyS0,115200;bootz ${loadaddr} - ${fdtaddr}
scriptfile=u-boot.scr
setenv_ethaddr_eeprom=3ff9acb9
stderr=serial
stdin=serial
stdout=serial
verify=n
Environment size: 2083/4092 bytes