Forum Discussion
Altera_Forum
Honored Contributor
20 years agobuilding custom uClinux on DE2
hello,
i downloaded the prebuild uclinux from nioswiki and that worked fine for me, but i need to put my own software there to be run and so i got to compile myself everything. i can compile, but i cant make it boot http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif i then look the prebuilt for some clues, but as mine, it passes no kernel comand line, it detects no devices ... where to boot from ? where is my / mounted ? is there any need to populate /dev before generating image ( i sometimes think this is the problem, even though i dont know how and where to do this http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif if someone knows, http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif thanks in advance matheus2 Replies
- Altera_Forum
Honored Contributor
just to put more info
Uncompressing Linux... Ok, booting the kernel. Linux version 2.6.16-uc0 (matheus@microbio) (gcc version 3.4.6)# 23 PREEMPT Mon Aug 7 15:11:38 BRT 2006 uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: root=/dev/sdram ro PID hash table entries: 64 (order: 6, 1024 bytes) Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) Memory available: 6480k/8192k RAM, 0k/0k ROM (1435k kernel code, 182k data) Mount-cache hash table entries: 512 NET: Registered protocol family 16 io scheduler noop registered io scheduler deadline registered (default) Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x81004000 (irq = 1) is a jtag_uart RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize loop: loaded (max 8 devices) NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $ INFTL: inftlcore.c $Revision: 1.19 $, inftlmount.c $Revision: 1.18 $ No recognised DiskOnChip devices found slram: not enough parameters. blkmtd: version $Revision: 1.27 $ blkmtd: error: missing `device' name block2mtd: version $Revision: 1.30 $ No valid DiskOnChip devices found NET: Registered protocol family 2 IP route cache hash table entries: 128 (order: -3, 512 bytes) TCP established hash table entries: 512 (order: -1, 2048 bytes) TCP bind hash table entries: 512 (order: -1, 2048 bytes) TCP: Hash tables configured (established 512 bind 512) TCP reno registered TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 *** VFS: test name = </dev/root> VFS: fs_name = <ext2> VFS: fs_name = <romfs> VFS: tried fs_name = <ext2> err= -6 VFS: Cannot open root device "sdram" 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 have romfs and ext2 support in kernel, and i did make romfs as said in the wiki ... matheus - Altera_Forum
Honored Contributor
Matheus,
Are you using the NIOS IDE? If that's the case, you should create a File System Project in order to it work. I recommend you to follow all steps presented in nios2colinux (http://nioswiki.jot.com/wikihome/operatingsystems/nios2colinux). It worked fine for me. I had some problems myself using NIOS IDE, but everything worked with this tutorial. After that, I could make the NIOS IDE work, too. Good Luck Alair