Forum Discussion
Altera_Forum
Honored Contributor
20 years agohow to build ext2 rootfs in EP2C35 (dev kit)
I would like to use a ext2 fs instead of a romfs for my rootfs
I tried genext2fs, but it doesn't work. (pb with device file ??). When I boot , I have the followin message : "Freeing unused kernel memory: 60k freed (0x413c000 - 0x414a000) EXT2-fs error (device mtdblock0): ext2_check_page: bad entry in directory# 2: re c_len is smaller than minimal - offset=0, inode=0, rec_len=0, name_len=0" Thanks Laurent PS : My board is the NIOSII EP2C35( altera DEV KIT ) . I tried jffs2 fs ( with mkfs.jffs2) and it doesn't work.3 Replies
- Altera_Forum
Honored Contributor
Ext2 takes a lot of space, and you should not use it on flash.
You should use the newer initramfs to replace romfs. Follow the link to build tools/kernel/apps. http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174) - Altera_Forum
Honored Contributor
Can I create initramfs easily with cygwin and Nios2 IDE ( version 5.0) ??
Laurent - Altera_Forum
Honored Contributor
Hi grassay,
You'd better do it on Linux. Jdhar and I had tried a lot on Windows/cygwin, but failed. Unless you are too bored, do'nt try it on Windows again.