Hi Experts,
How to move the rootfs and uimage into the RAM and to start executing program from RAM ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Lyf,
I'm not expert (just community member), but what do you mean by moving uImage&rootfs to ram ?
after boot the ram is zeroed, so somehow both uImage and filesystem should get to RAM and run in RAM. So the real question is where do we take it from (before putting in ram) ? usually it is from nand flash or sd card ? but sometimes it can be from ethernet (with tftp) , and more rarely with serial (because uImage and root are very large and it will take a long time to do this) .
If you intend to do this from ethernet than you can do tftp for uImage and ramdisk as part of the boot (automate it with bootcmd and bootargs) as you can find here:
http://processors.wiki.ti.com/index.php/Initrd
Thanks,
Ran
Hi lyf sci,
lyf said:How to move the rootfs and uimage into the RAM and to start executing program from RAM ?
Please visit : http://processors.wiki.ti.com/index.php/Booting_Linux_kernel_using_U-Boot
Basically, you are looking for "Booting linux" on target board. Right? If you specify the processor name, I can re-direct you to appropriate TI WIKI link.
However, the following links will give you details about flashing and booting uboot, kernel, creating filesystem e.t.c.
http://processors.wiki.ti.com/index.php/Getting_Started_Guide_for_OMAP-L1
http://processors.wiki.ti.com/index.php/Writing_Kernel_Image_to_NAND_Flash
Regards,
Shankari
-------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.
--------------------------------------------------------------------------------------------------------
Hi Lyf,
As Ran suggested, you can boot ROOTFS from initrd or initramfs.
For kernel, you can get the kernel via tftp or SD card or flash