- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello everyone:
I have questions about the boot procedure of Microtronix's Nios II linux distribution. 1. Is there a bootloader?If yes,how does it work?Is there any document available about this topic? 2.I want to create a root filesystem using just busybox,i followed the busybox section in the reference guide,now i am confused about the Busybox's "init" application. please tell me how to create proper "/etc/inittab" and "/etc/init.d/rcs" file for booting the Microtronix's linux refernce design built from quick start guide. Can i just copy the content of the original filesystem's "/etc/inittab" and "/etc/rc" to the busybox's 2 init files mentioned above respectively? thanks http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gifLink Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi trout,
1. Microtronix's distribution has no bootloader, but someone have ported uboot to Nios II and posted it on this forum. You can have a search. 2. An example inittab can be found in busybox/examples. And rcS is just an init script, I think you can copy the old rc file and have a try.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. I think that there is a boot loader to load the kernel from flash into ram. It allows to execute the kernel code from ram. Also, the root file system is mounted into the ram...
But I didn't find any information about boot loader. Christian- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Christian,
Yes you are right, there is some bootstrap code to copy the kernel into ram from flash. I don't know if that is the kind of bootloader trout is thinking about. All it did is copying text and data into ram (as far as I know, root file system is not copied) and jump to the entry point...- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I would like to have a confirmation about the root filesystem. The root filesystem is accessed from the flash or copied into the RAM? Where can I find the answer in the kernel source code (directory/source file). Best regards Christian- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The romfs is accessed from flash. You can check this file:
drivers/mtd/maps/microtronix.c You can also make the /dev/hda1 (compact flash) as the root filesystem. Still no files are copied to ram. If you are using ramdisk as the root filesystem, they are in ram.
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