Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi scott:
First > How did you do this? You must use the bootm command to correctly boot a kernel. I use bootm command to boot a kernel: bootm BASE_ADDR_SDRAM >But the kernel stop What does this mean? Please provide some details -- it is difficult for us to guess what you are observing ;-) when the code run to the function kernel( ), in the nios2-terminal : the last line : Uncompressing Kernel Image ...........OK cursor wink > see the file nios_linux.c I don't know what is the function kernel() The _variable_ "kernel" is a function pointer ... it points to the entry point of the kernel. When you create a u-boot kernel image with mkimage, you specify this address with the -e option. I use the printf("%08x\n",hdr->ih_ep); the hdr->ih_ep is 0x000000001 (entry_point should be 0x1000000 (BASE_ADDR_SDRAM ) ) >> I use go command but error below: > > *****warning unimplemented trap @ 0x100015c Please provide more details ... what address did you specify? ... what is at the address that you specify? What are you trying to do? I think the method is wrong . 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. Best Regards jigdo