Forums » Software Development »
Compiling Memory Size into U-boot
Added by Julio Liriano over 10 years ago
I read this link:
https://support.criticallink.com/redmine/projects/mityarm-5cs/wiki/ARM_Software_FAQs
And I know how to manually set the memory size for my system during the uBoot process. However,
I would like to set the memory size for my system when I compile uBoot. The version I downloaded
sets the memory to be 512 MB.
Which u-boot source file do I edit to do this?
Replies (3)
RE: Compiling Memory Size into U-boot - Added by Daniel Vincelette over 10 years ago
We actually create the environment using mkenvimage, which takes a text file and then store this on the SD card, which uboot reads on startup. Here is the instructions on how to do that: https://support.criticallink.com/redmine/projects/mityarm-5cs/wiki/Building_u-Boot_and_Preloader#Creating-the-u-Boot-environment-for-the-MitySOM-5CSX-Dev-Kit.
-Dan
RE: Compiling Memory Size into U-boot - Added by Julio Liriano over 10 years ago
From that script to combine the uBoot image with the rootFS as well as the uBoot blob, I gleaned that
to write the uBoot blob only is to do execute this command:
dd if=ubootenv.bin of=/dev/sdb2 bs-512 seek=1
However when I insert the built card for boot, I get a CRC error when the environment gets loaded.
RE: Compiling Memory Size into U-boot - Added by Julio Liriano over 10 years ago
I think I see my error.
The ubootenv.bin file doesn't go into any of the three partitions generated by that automated script.
If you wish to just update the ubootenv.bin file this is the command you need:
dd if=ubootenv.bin of=/dev/sdb bs=512 seek=1
(Assuming your SD card root is located at sdb.)
Thanks!