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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

MTD Support and uClinux 2.6

Altera_Forum
Honored Contributor II
1,396 Views

Hi: 

 

Am running Microtronix uClinux v2.6 on a NiosII custom design. 

 

As of now, the only way that I can get the kernel to boot through to a login prompt is if I enable MTD partitioning support and use the mapping driver for the Altera Nios Development Board which will mount my flash as mtdblock0 and partition it into mtd0, mtd1 etc, identical to that used on the development boards. 

 

How do I configure the kernel to simply mount the flash file system, using the kernel command line "root=/dev/rom0 ro" or "root=/dev/mtdblock0 ro", without partitioning it further? i.e. how can I mount the flash file system as was done in the 2.4 kernel? 

 

At this point, it looks I MUST have the "Maps for Altera Nios Development Kit"option selected or else I will get the error "Cannot open root device "mtdblock0" or unknown block(0,0)". I do have mtdblock0,b,31,0 in my /dev directory. 

 

Thanks! 

 

Nick
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
671 Views

Hi Nick, 

 

> How do I configure the kernel to simply mount the flash file system, 

> using the kernel command line "root=/dev/rom0 ro" or "root=/dev/mtdblock0 ro",  

> without partitioning it further? i.e. how can I mount the flash file system as 

> was done in the 2.4 kernel? 

 

It really hasn't changed much at all ... setup a mapping driver appropriate for 

your custom hardware. (see the sources in drivers/mtd/maps). 

 

Pick one that's close to what you want, then copy & edit for your board :-) 

 

Regards, 

--Scott
0 Kudos
Altera_Forum
Honored Contributor II
671 Views

Thanks SMC! 

 

I will try your suggestion within the next day or so an post my results. 

 

Nick
0 Kudos
Reply