Forum Discussion
Altera_Forum
Honored Contributor
20 years agoU-BOOT !!!!!!!!!!!!
Hi http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wacko.gif , that u-boot is really driving me crazy. This is what I've done: 1- Compiled u-boot (got the .bin and the .srec)...
Altera_Forum
Honored Contributor
20 years agoHi MFM,
I'm trying to re-synchronize with this thread since I've been away, please excuse the multiple posts ... > Besides, I feel confused between Flash and SDRAM adresses, I can't even decide > what adresses to submit to mkimage, is the adress I've programmed u-boot at is Always use the address where you want the image to be loaded and executed from. In your case, SDRAM. There are two addresses you need to specify: (1) the load address, and (2) the entry point address. The load address is address where you want u-boot to copy the kernel image. It is _not_ the addres where the .img file is loaded. You can put the .img file anywhere in memory (flash, tftp into sdram, whatever). When you run bootm, you specify the address of the .img, u-boot will then copy the kernel from the .img to the load address. If the kernel image is compressed, u-boot will decompress as it copies. The entry point address is the address that u-boot jumps to after loading the kernel to its load address (and flushing cache, and disabling interrupts, etc). Normally, for Nios-II/uClinux, the entry point address and the load address are the same. Since the kernel start code is usually placed at the beginning of the kernel image. For other architectures/kernels the entry point may actually be at some offset from the start of the kernel image -- that's why you have the option of setting it with mkimage. Hope this helps. Regards, --Scott