- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello All !
I built Kernel success on platform linux . but I got error when I load kernel to board . .... cannot open root device "NULL" or unknown-block(0,0) please append a correct "root =" boot option kernel panic - not syncing : VFS: unable to mount root fs on unknown-block(0,0) I think need to modify "Default kernel command string" when I configure kernel is it correct ? and I don't know how to modify that . please help me !!! thanks .Link Copied
14 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, you should use initramfs and don't specify kernel command string.
The problem maybe you miss the rootfs. did you follow the uclinux-dist wiki page? http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist) Check if files exist in uClinux-dist/romfs. And run "make" and "make linux image" again.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Nov 18 2006, 02:50 AM no, you should use initramfs and don't specify kernel command string.
the problem maybe you miss the rootfs.
did you follow the uclinux-dist wiki page?
http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist)
check if files exist in uclinux-dist/romfs.
and run "make" and "make linux image" again.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19505)
--- quote end ---
--- Quote End --- Hi Hippo thanks for reply ! Yes I did step by step uclinux-dist wiki page and I have uClinux-dist/romfs . i using uClinux-dist-20060803.tar.bz2 . I built for board 1c12 and 2s60es but I got the same error : " ....... Serial: JTAG UART driver $Revision: 1.1 $ ttyJ0 at MMIO 0x80801080 (irq = 2) is a jtag_uart dm9000 Ethernet Driver TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Cannot open root device "NULL" or unknown-block(0,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) " Can you help me ? Why ???? thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by dai_minh+nov 19 2006, 10:27 am--><div class='quotetop'>quote (dai_minh @ nov 19 2006, 10:27 am)</div>
--- quote start ---
<!--quotebegin-hippo@Nov 18 2006, 02:50 AM no, you should use initramfs and don't specify kernel command string.
the problem maybe you miss the rootfs.
did you follow the uclinux-dist wiki page?
http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist)
check if files exist in uclinux-dist/romfs.
and run "make" and "make linux image" again.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19505)
--- quote end ---
--- Quote End --- Hi Hippo thanks for reply ! Yes I did step by step uclinux-dist wiki page and I have uClinux-dist/romfs . i using uClinux-dist-20060803.tar.bz2 . I built for board 1c12 and 2s60es but I got the same error : " ....... Serial: JTAG UART driver $Revision: 1.1 $ ttyJ0 at MMIO 0x80801080 (irq = 2) is a jtag_uart dm9000 Ethernet Driver TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Cannot open root device "NULL" or unknown-block(0,0) Please append a correct "root=" boot option Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) " Can you help me ? Why ???? thanks <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19513)</div> [/b] --- Quote End --- Check if files exist in uClinux-dist/romfs. And run "make" and "make linux image" again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Hippo !
I did but I got the same message error . "..... TCP: Hash tables configured (established 1024 bind 1024)TCP reno registeredio scheduler noop registeredio scheduler deadline registered (default)Serial: JTAG UART driver $Revision: 1.1 $ttyJ0 at MMIO 0x80801080 (irq = 2) is a jtag_uartTCP bic registeredNET: Registered protocol family 1NET: Registered protocol family 17VFS: cannot open root device "<null>" or unknown-block(0,0)please append a correct "root=" boot optionkernel panic - not syncing: vfs:
unable to mount root fs on unknown-block(0,0) " I have uClinux-dist/romfs dir but romfs/bin and romfs/dev ,./lib ,../ mnt ,../proc ,../sys ,../tmp ,../usr , ../var dir is empty --> what wrong ???? thanks .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by vietluong@Nov 19 2006, 12:09 PM hi hippo !
i did but i got the same message error .
".....
tcp: hash tables configured (established 1024 bind 1024)tcp reno registeredio scheduler noop registeredio scheduler deadline registered (default)serial: jtag uart driver $revision: 1.1 $ttyj0 at mmio 0x80801080 (irq = 2) is a jtag_uarttcp bic registerednet: registered protocol family 1net: registered protocol family 17vfs:
Cannot open root device "<NULL>" or unknown-block(0,0) Please append a correct "root=" boot optionKernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)[/b] " I have uClinux-dist/romfs dir but romfs/bin and romfs/dev ,./lib ,../ mnt ,../proc ,../sys ,../tmp ,../usr , ../var dir is empty --> what wrong ???? thanks . <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19515) --- Quote End --- [/b] --- Quote End --- Please restore to default setting, and try again, make clean make menuconfig Kernel/Library/Defaults Selection ---> (linux-2.6.x) Kernel Version (None) Libc Version [*] Default all settings (lose changes) [ ] Customize Kernel Settings [ ] Customize Vendor/User Settings [ ] Update Default Vendor Settings Then <exit> <exit> <yes> do not change any other setting until first boot successfully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi hippo !
I did : + make clean + rm -rf romfs + make vendor_hwselect SYSPTF=~/...../standard_1c12.ptf + make romfs + make menuconfig [*] Default all settings (lose changes) [ ] Customize Kernel Settings [ ] Customize Vendor/User Settings [ ] Update Default Vendor Settings Then <exit> <exit> <yes> + make + make linux image . then I load zImage to board and this is message I got : uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: PID hash table entries: 128 (order: 7, 512 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 14872k/16384k RAM, 0k/0k ROM (1195k kernel code, 157k data) Mount-cache hash table entries: 512 NET: Registered protocol family 16 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 0, 4096 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered io scheduler noop registered io scheduler deadline registered (default) Serial: JTAG UART driver $Revision: 1.1 $ ttyJ0 at MMIO 0x80801080 (irq = 2) is a jtag_uart dm9000 Ethernet Driver TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 No filesystem could mount root, tried: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) thank very much !!!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like the initramfs was empty,
please check if you have files in romfs/bin ? Please check initramfs content as in the wiki page, http://nioswiki.jot.com/wikihome/operating...initramfsupdate (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/initramfsupdate) Which Linux distro do you use?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Nov 19 2006, 10:36 PM it looks like the initramfs was empty,
please check if you have files in romfs/bin ?
please check initramfs content as in the wiki page,
http://nioswiki.jot.com/wikihome/operating...initramfsupdate (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/initramfsupdate)
which linux distro do you use?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19527)
--- quote end ---
--- Quote End --- Hi hippo ! yes . I don't have any file in romfs/bin . I build kernel on Linux platform . I have 3 file : nios2gcc.tar.bz2 + uClinux-dist-20060803.tar.bz2 + uClinux-dist-200608003-nios2-02.diff.gz and i did step by step in uclinux-dist wiki page . I think some file is wrong ? is it correct !!! thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by vietluong+nov 20 2006, 12:20 pm--><div class='quotetop'>quote (vietluong @ nov 20 2006, 12:20 pm)</div>
--- quote start ---
<!--quotebegin-hippo@Nov 19 2006, 10:36 PM it looks like the initramfs was empty,
please check if you have files in romfs/bin ?
please check initramfs content as in the wiki page,
http://nioswiki.jot.com/wikihome/operating...initramfsupdate (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/initramfsupdate)
which linux distro do you use?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19527)
--- quote end ---
--- Quote End --- Hi hippo ! yes . I don't have any file in romfs/bin . I build kernel on Linux platform . I have 3 file : nios2gcc.tar.bz2 + uClinux-dist-20060803.tar.bz2 + uClinux-dist-200608003-nios2-02.diff.gz and i did step by step in uclinux-dist wiki page . I think some file is wrong ? is it correct !!! thanks ! <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19528)</div> [/b] --- Quote End --- What Linux platform do you use? It maybe romfs install problem. Check if busybox built, ls -l user/busybox/busybox
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Hippo !
yes I think it have problem when install romfs . but how is it resolve ? I use Fedora core 5 . thank very much for help !!!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by dai_minh@Nov 20 2006, 03:35 PM hi hippo !
yes i think it have problem when install romfs . but how is it resolve ?
i use fedora core 5 .
thank very much for help !!!
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19531)
--- quote end ---
--- Quote End --- I will check fc5 later. Please run "make romfs" again, and check the romfs dir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Hippo .
thanks for quick reply ! I did "rm -rf romfs" and "make romfs " again but result is same . romfs/bin is empty . thanks .- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo+nov 20 2006, 02:39 am--><div class='quotetop'>quote (hippo @ nov 20 2006, 02:39 am)</div>
--- quote start ---
<!--quotebegin-dai_minh@Nov 20 2006, 03:35 PM hi hippo !
yes i think it have problem when install romfs . but how is it resolve ?
i use fedora core 5 .
thank very much for help !!!
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19531)
--- quote end ---
--- Quote End --- I will check fc5 later. Please run "make romfs" again, and check the romfs dir. <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19532)</div> [/b] --- Quote End --- Hello, I had the same problem. I fixed it by specifying the path to the boot image. For some reason it was poininting to something else. When one starts specifying the Kernel options, one of the entries idicates where that image is. I don't have the machine next to me, so I can not tell you where exactly it is. Sorry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote End --- Hello, I had the same problem. I fixed it by specifying the path to the boot image. For some reason it was poininting to something else. When one starts specifying the Kernel options, one of the entries idicates where that image is. I don't have the machine next to me, so I can not tell you where exactly it is. Sorry. --- Quote End --- Hello . thank for help ! You fixed it by specifying the path to the boot Image . you mean is modify "Default kernel command string" and How about your romfs dir . the most subdir in my romfs dir is empty except romfs/etc and romf/home . thanks .

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