ramrootfs patch --------------- -- CAUTION -- CAUTION -- CAUTION -- CAUTION -- CAUTION -- CAUTION -- The script which build the filesystem needs to run as root, I can not be held responsible for any damage it could make, check carefully the following files: vendor/Exys/de2/Makefile vendor/Exys/de2/rootfs2ram.sh If you are not sure that they will not break something, or you don't fully understand what they are doing, don't use this patch. -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Once the patch has been applied, you will have to activate some config options: in 'Target Selection', say Y to 'Customize Kernel Settings' in 'Processor type and features', say Y to 'Root filesystem in RAM' and enter the needed size in 'Root filesystem size'. the default size is 1024 KB, the build process may have trouble to generate a ramfs of more the 4096 KB, this depend on your linux machine, modify your linux config to allow ramfs bigger than 4096 KB, the script wich build the root filesystem is uClinux-dist/vendor/Exys/de2/rootfs2ram.sh. To build the image, follow exactly theses steps: 1) do a full build with the usual: make dep; make clean; make 2) type: make vendor_ramrootfs you will be asked to enter your linux password: enter it 3) type: make image this will recreate an image (and a compressed image) with the root filesystem in RAM. the step 2 is needed because of the way the root filesystem is build by the script rootfs2ram.sh. This script needs to run as root because of the mknod and mount commands. The makefile take care of calling the script with 'sudo', you need to have it installed and configured for the step 2 to work, and that's why you are asked for your password (not the root password). If you don't have 'sudo', do this instead (but you need to be able to run rootfs2ram.sh as root...) 1) as normal user: do a full build 2) as root: sh vendors/Exys/de2/rootfs2ram.sh linux-2.4.x romfs images/rootfs.img 3) as normal user: make image Building the regular (readonly) root filesystem ----------------------------------------------- If you want to build the normal image, without the root filesystem in RAM, deactivate the following option: in 'Target Selection', say Y to 'Customize Kernel Settings' in 'Processor type and features', say N to 'Root filesystem in RAM'. then do a regular build