Hello everbody!
The last few days I spent my time with my Olimex SAM9-L9260 board and it seems if I would do some progress in learning linux.
I’ve already compiled a new kernel (2.6.27) for my board, but unfortunately it is not working properly.
I set up uboot to load the new kernel with tftpboot. And it works. As I’ve seen the kernel is directly loaded into SDRAM (0x21500000) as it is suggested by Olimex. Does anybody knows, why the kernel should be loaded to this address and not to the start address 0x20000000?
Executing bootm 0x21500000 starts my new loaded kernel from SDRAM. The root has been configured in uboot to be located on an external USB device.
I repeat the complete loading cycle and instead of booting the kernel from SDRAM I write it into my NAND device by executing the following commands:
nand erase 0x00100000 0x200000
nand write 0x21500000 0x00100000 0x200000
After that I start the kernel from the SDRAM again by executing bootm.
It works until I do a reboot. The kernel seems to have a bad crc and unpacking the kernel failed.
In uboot I echoed the settings via printenv.
The bootcmd is nand read 0x21500000 0x00100000 0x001A2828; bootm 0x21500000
The old linux kernel (2.6.23) has a size of 1709012 bytes, the new one (2.6.27) has a size of 1789868. Obviously I’ve to change the value 0x001A2828 (1714216) but don’t know to which value as this value does not comply to the size of the linux kernel.
Any suggestions? Must uboot recompiled as well to be used for the new kernel?
The root filesystem, the kernel and uboot reside in the same memory device (NAND). Please correct me if I’m wrong. Which memory locations are reserved for those three scopes? Where can I change them?
One last question…
To reprogram the filesystem Olimex states in its document to execute the following commands:
flash_eraseall –j /dev/mtd1
nandwrite –a /dev/mtd1 /rootjffs2.img
I’m a little bit confused what mtd1 stands for. If I take a look onto the mounted devices I can’t find /dev/mtd1. Where is mtd1 defined? Which memory location?
Thanks a lot for your help!!!
Regards,
Rooney