Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi jigdo,
> I use bootm command to boot a kernel: > bootm BASE_ADDR_SDRAM ... > Uncompressing Kernel Image ...........OK ... > Besides ,I use the nios2-flash-programmer to download the u-boot and kernel. ... > in the mkimage,the load_address and the entry_address both > are BASE_ADDR_SDRAM. I _think_ I understand ... but I'm not sure. Based on your comments, you should be doing the following: -Use the flash programmer to download your compressed u-boot kernel image to flash. This is the binary file you create using mkimage. -From the u-boot command line, you should specify the address (in flash) of the image file. This tells u-boot to read the image from flash, uncompress it and write the uncompressed data to the "load address". U-boot will then disable interrupts, and jump to the "entry point address". When you try to uncompress a u-boot image to the same address as the u-boot image, the uncompressed data will overwrite the compressed data ... and bad things will happen ;-) Regards, --Scott