- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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! NickLink Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks SMC!
I will try your suggestion within the next day or so an post my results. Nick
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page