Forum Discussion
Altera_Forum
Honored Contributor
22 years agoHow do I rebuild the ramfs.img file?
I am doing this development using a cyclone board with a custom FPGA configuration. With this build the kernel and ROM file system seem to work fine but I have no access to the ram file system. I ass...
Altera_Forum
Honored Contributor
22 years agoHello HalfDome,
If you're talking about Linux the procedure is something like this: dd from /dev/zero to /dev/ram0 mke2fs on /dev/ram0 tune2fs on /dev/ram0 dd from /dev/ram0 to ramfs.img run 'holes' on ramfs.img (this last step is required so that the reverse 'expand' command works) I think the ramfs.img that is included with distribution is a couple of years old so I'll run through the procedure today and elaborate a bit on the above steps. If you have access to a Linux Host workstation, check out /usr/src/linux/Documentation/ramdisk.txt (i think) -- there should be some overlap. mike