Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12596 Discussions

how to build ext2 rootfs in EP2C35 (dev kit)

Altera_Forum
Honored Contributor II
1,012 Views

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.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
266 Views

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)
0 Kudos
Altera_Forum
Honored Contributor II
266 Views

Can I create initramfs easily with cygwin and Nios2 IDE ( version 5.0) ?? 

 

Laurent
0 Kudos
Altera_Forum
Honored Contributor II
266 Views

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.
0 Kudos
Reply