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++
12618 Discussions

uClinux-dist added to buildroot guide

Altera_Forum
Honored Contributor II
1,496 Views

The uClinux-dist has a lots of apps ported to uClinux, such as BOA(httpd), dhcpd, net-snmap... etc. 

Now included in the buildroot guide, 

http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174)
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
487 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
487 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
487 Views

Hi hootsmon, please check post#27 of the buildroot guide.

0 Kudos
Altera_Forum
Honored Contributor II
487 Views

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)!

0 Kudos
Altera_Forum
Honored Contributor II
487 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
487 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
487 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
487 Views

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.
0 Kudos
Reply