Hippo,
I fixed the boot-up problem, and I was able to add the altcf driver to the kernel. It boots up nicely, and I able to mount the Compact-Flash disk.
Now I'm trying to add to the busybox "fsck". I can not get it to compile, do you have any idea how to fix this. If you don't have the time to fix this, is there a document that explains how to add software to busybox.
Thanks
--- Quote Start ---
originally posted by hippo+oct 26 2006, 08:32 pm--><div class='quotetop'>quote (hippo @ oct 26 2006, 08:32 pm)</div>
--- quote start ---
--- quote start ---
originally posted by horacioesta@oct 27 2006, 05:31 am
--- quote start ---
originally posted by hippo@oct 26 2006, 01:35 am
<!--quotebegin-nacide@Oct 24 2006, 06:29 PM
hippo,
after doing all exactly as stated in the uclinux-dist tutorial, the kernel compiled and a zimage was made but the compile ends with an error.
i dont know what is missing:
/bin/sh: nios2-elf-gcc: command not found
make[3]: entering directory `/home/nios2/uclinux-dist/uclibc'
/bin/sh: nios2-elf-gcc: command not found
+ ./extra/scripts/fix_includes.sh -k '~/uclinux-dist-test/linux-2.6.x' -t nios2 -n
the file ~/uclinux-dist-test/linux-2.6.x/makefile or ~/uclinux-dist-test/linux-2.6.x/include/linux/version.h is missing!
perhaps your kernel source is broken?
make[3]: *** [headers] error 1
make[3]: leaving directory `/home/nios2/uclinux-dist/uclibc'
make[2]: *** [uclibc] error 2
make[2]: leaving directory `/home/nios2/uclinux-dist/lib'
make[1]: *** [all] error 2
make[1]: leaving directory `/home/nios2/uclinux-dist/lib'
make: *** [subdirs] error 1
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18868)
--- quote end ---
--- Quote End ---
make menuconfig
check if you have the correct target? Altera, nios2nommu, and Libc version must be None.
Vendor/Product Selection --->
--- Select the Vendor you wish to target
(Altera) Vendor
--- Select the Product you wish to target
(nios2nommu) Altera Products
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>
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18918)</div>
[/b]
--- Quote End ---
Hippo,
I just tried compilying the new kernel, I applied the patches to it. I also enabled the SMC 91C111 support for my ALtera Development Board. This is what I get when I try to boot up:
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: 14512k/16384k RAM, 0k/0k ROM (1261k kernel code, 453k 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)
NIOS serial driver version 0.0
ttyS0 (irq = 4) is a builtin NIOS UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
smc91x: not found (-19).
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)
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18936)</div>
[/b]
--- Quote End ---
Thank you.
The smc91x instant still has problem.
I will add all the old drivers. And check new drivers later.
Please run " make linux image" again, it will inculde romfs as root dir on initramfs.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18939)</div>
[/b]
--- Quote End ---