Forum Discussion
Altera_Forum
Honored Contributor
16 years agoLinux, U-Boot, and Root File Systems
I'm working with a Nios II design with an MMU, on a Nios II Development Kit, Cyclone II Edition board (EP2C35). I'm trying to figure out how to get to a system that boots with some sort of root...
Altera_Forum
Honored Contributor
16 years agozlib: zlib-devel was the problem. lzo-devel is also required.
I also realized I was using the wrong branch of the U-Boot repository. Thats why the bootargs were not being passed. When I switched to the "nios2" branch, bootargs worked. Now that I can get kernel arguments passed in, my life should be easier. Next I'm trying to figure out what to do with the rootfs.jffs2 file. I think I need to:- Compile MTDPARTS and JFFS2 support into U-Boot
- Define a Partition Table in U-Boot
- Define a matching Linux partition table in arch/nios2/kernel/config.c after the line "static struct mtd_partition nios2_partitions
- Burn rootfs.jffs2 to flash