Forum Discussion

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi hippo:

    You added boa, net-snmp, dhcp in your new toolschain.It is very helpful.

    Thank you.I will try it in my cyclone1c20 dvb later.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi hippo,

    First, many thanks for your excellent buildroot guide. My toolchain built just fine, so I compiled a (minimal) uClinux kernel. Unfortunately it fails to boot....

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    Linux version 2.6.11-uc0 (hootsmon@ce00205) (gcc version 3.4.5)# 3 Thu Feb 16 17:2 9:58 EST 2006

    uClinux/Nios II

    Altera Nios II support © 2004 Microtronix Datacom Ltd.

    Built 1 zonelists

    Kernel command line:

    PID hash table entries: 128 (order: 7, 2048 bytes)

    Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

    Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

    Memory available: 15232k/16384k RAM, 0k/0k ROM (836k kernel code, 139k data)

    Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

    NET: Registered protocol family 16

    Serial: JTAG UART driver $Revision: 1.4 $

    ttyJ0 at MMIO 0x821208b0 (irq = 1) is a jtag_uart

    io scheduler noop registered

    io scheduler deadline registered

    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)[/b]

    --- Quote End ---

    Looks like I haven&#39;t got a filesystem yet? Can anyone help pls?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Your problem is definitely lack of initramfs... check out the post, and make sure you generate your filesystem correctly, with the appropriate device nodes in /dev (you need to be root to do this)!

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by jdhar@Feb 17 2006, 11:44 PM

    your problem is definitely lack of initramfs... check out the post, and make sure you generate your filesystem correctly, with the appropriate device nodes in /dev (you need to be root to do this)!

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=12772)

    --- quote end ---

    --- Quote End ---

    Hi Jdhar,

    I updated the initamfs config, add a text file ~/download/rootfs_list for the list of /dev nodes and the /init link, so that a root login is not required now.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I struggled to get uClinux working with INITRAMFS, but eventually I had to admit defeat :-( A pity, because initramfs sounds good.

    But some good news is I have managed to boot uClinux with ROMFS, so at least I have a useable development platform now. And it proves the toolchain is OK.

    Many thanks to hippo and jdhar for your help.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Never give up. I did struggle a lots before I sucessed with initramfs, because it was new to uClinux.

    Check your kernel&#39;s .config, it should have,

    CONFIG_INITRAMFS_SOURCE="~/rootfs ~/download/rootfs_list"

    Build the kernel, and show me the file, ~/linux-2.6.x/usr/initramfs_list .

    The file contains a list of what are built into initramfs.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yeehaa! I have a minimal uClinux working nicely now, complete with initramfs and busybox. Persistence pays off. For the record, I used buildroot snapshot 20060208 this time, and this worked better for me.

    Thanks hippo for your generous help.