Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI found where is the problem. Here it is: http://www.alterawiki.com/wiki/linux_config
"The zImage load address is ( your sdram base address + link address offset ). The boot loader will uncompress the code to the beginning of sdram. If the uncompressed code is bigger than the default 5M, the two area will overlap and corrupt. The compressed image offset should be adjusted to a higher value when the kernel image is big, eg, large files in romfs dir. You can change this value to about 2/3 of the size of your sdram, eg, 20M out fo 32M. I suggest 2/3 because the gzip compression ratio is about 1:2. The zImage boot loader does not relocate/move itself." In Kernel Settings I can set the offset value. My kernel size is: 3529KB. My sdram is 8MB only. Addresses are: 0x00800000 - 0x00FFFFFF I gave the biggest offset I could: 0x00480000 to make a space for uncompressed kernel but it is still to few:( I have to make the kernel smaller. This is how it looks like: nios2-download -g images/zImage Using cable "USB-Blaster [USB 1-1.3.3]", device 1, instance 0x00 Pausing target processor: OK Initializing CPU cache (if present) OK Downloaded 3529KB in 19.5s (180.9KB/s) Verified OK Starting processor at address 0xC0C80000 In nios2-terminal: nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [USB 1-1.3.3]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) Uncompressing Linux... And silence.. Wenn offset is smaller: Uncompressing Linux... �▒��� In my case two area overlap and corrupt.