DENX . DULG . RamdiskGreaterThan4MBCausesProblems

14.3.18. Ramdisk Greater than 4 MB Causes Problems

I built a ramdisk image which is bigger than 4 MB. I run into problems when I try to boot Linux with this image, while other (smaller) ramdisk images work fine.

The Linux kernel has a default maximum ramdisk size of 4096 kB. To boot with a bigger ramdisk image, you must raise this value. There are two methods:
=> setenv rd_size 6144
=> setenv bootargs ... ramdisk_size=\${rd_size} ...
=> saveenv
If you later find out that you need an even bigger ramdisk image, or that a smaller one is sufficient, all that needs changing is the value of the "rd_size" environment variable.

----- Revision r1.4 - 30 Nov 2005 - 17:08 - Main.www-data
Copyright © 2002-2018 by DENX Software Engineering