Forum Discussion
Altera_Forum
Honored Contributor
19 years agouClinux-dist-20060803 released
uClinux-dist-20060803 had been released for more two months.
The greatest news: Nios II arch is included now. !!! http://www.uclinux.org/pub/uclinux/dist/uc...0060803.tar.bz2 (http://www.uclinux.org/pub/uclinux/dist/uclinux-dist-20060803.tar.bz2) faster mirror, http://www.esrac.ele.tue.nl/~leon/linux/uc...0060803.tar.bz2 (http://www.esrac.ele.tue.nl/~leon/linux/uclinux/uclinux-dist-20060803.tar.bz2) (I had been very busy, and didn't get a break to look at it until now.) Best thanks to uClinux maintainers and Altera's Nios II team.22 Replies
- Altera_Forum
Honored Contributor
There are still a lot of things to clear up in this release.
It is not ready for real usage yet. Not even compile. Some include files need update. More Kconfig need to enable for Nios2. I am not sure if the initramfs build script's bug was fixed in it. - Altera_Forum
Honored Contributor
I have updated the nios wiki, please find the new uClinux-dist patches.
- Altera_Forum
Honored Contributor
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: .......... LD vmlinux SYSMAP System.map OBJCOPY arch/nios2nommu/boot/compressed/vmlinux.bin GZIP arch/nios2nommu/boot/compressed/vmlinux.bin.gz LD arch/nios2nommu/boot/compressed/piggy.o LD arch/nios2nommu/boot/compressed/vmlinux OBJCOPY arch/nios2nommu/boot/zImage Kernel: arch/nios2nommu/boot/zImage is ready make[1]: Leaving directory `/home/nios2/uClinux-dist/linux-2.6.x' if [ -f linux-2.6.x/vmlinux ]; then ln -f linux-2.6.x/vmlinux linux-2.6.x/linux ; fi . linux-2.6.x/.config; if [ "$CONFIG_MODULES" = "y" ]; then [ -d linux-2.6.x/modules ] || mkdir linux-2.6.x/modules; make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -C linux-2.6.x modules; fi for dir in include lib include user ; do [ ! -d $dir ] || make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -C $dir || exit 1 ; done make[1]: Entering directory `/home/nios2/uClinux-dist/include' find . -depth -type l -a ! -name Makefile | xargs rm > /dev/null 2>&1 || exit 0 find . -depth -type d | grep -v .svn | xargs rmdir > /dev/null 2>&1 || exit 0 Making symlinks in include/ Making include/c++ symlink to compiler c++ includes make[1]: Leaving directory `/home/nios2/uClinux-dist/include' make[1]: Entering directory `/home/nios2/uClinux-dist/lib' make -j1 -C ../include || exit $? make[2]: Entering directory `/home/nios2/uClinux-dist/include' find . -depth -type l -a ! -name Makefile | xargs rm > /dev/null 2>&1 || exit 0 find . -depth -type d | grep -v .svn | xargs rmdir > /dev/null 2>&1 || exit 0 Making symlinks in include/ Making include/c++ symlink to compiler c++ includes make[2]: Leaving directory `/home/nios2/uClinux-dist/include' [ -z "uClibc" ] || make -j1 uClibc || exit $? make[2]: Entering directory `/home/nios2/uClinux-dist/lib' [ ! -d "uClibc" ] || ( touch uClibc/.sgbuilt_lib && make -j1 -C uClibc ) || exit $? /bin/sh: nios2-elf-gcc: command not found /bin/sh: nios2-elf-gcc: command not found /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 - Altera_Forum
Honored Contributor
Please find the patches and uages on the second half of this page,
http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist) Please help the testing of the new smc ethernet driver , if you have altera dev boards. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by 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>
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo+oct 26 2006, 01:35 am--><div class='quotetop'>quote (hippo @ oct 26 2006, 01:35 am)</div>--- quote start ---
<!--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)
- Altera_Forum
Honored Contributor
TO_BE_DONE
- Altera_Forum
Honored Contributor
Hello,
I had a few questions about compilation. 1.) The patch which is provided in the wiki does not succedd every where instead there are a lot of failures for the new uclinux distribution not the test distribution. 2.) Should I go yes for all the patching question about changing the already patched files for nios. 3.) Even after doing that it says. your ptf file is not a SYSTEM ptf file--> This lead me to change the perl script by hard-coding the ptf file itself this makes the nios_system.h file but again the make fails I do not understand why? Any help would be appreciated. regards, - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by madman23@Oct 27 2006, 03:05 PM hello,i had a few questions about compilation.
1.) the patch which is provided in the wiki does not succedd every where instead there are a lot of failures for the new uclinux distribution not the test distribution.
2.) should i go yes for all the patching question about changing the already patched files for nios.
3.) even after doing that it says. your ptf file is not a system ptf file--> this lead me to change the perl script by hard-coding the ptf file itself this makes the nios_system.h file but again the make fails i do not understand why?
any help would be appreciated.
regards,
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18946)
--- quote end ---
--- Quote End --- Don't get mad. You should not use the old patches uClinux-dist.diff.gz , which is for old uClinux-dist-test-20060511. You should use ONLY ONCE uClinux-dist-20060803-nios2-02.diff.gz, and apply to uClinux-dist-20060803.tar.bz2 . I checked again, and didn't see any patch erro. Please remove old dirs, rm -rf ~/uClinux-dist and try again.. zcat ~/download/uClinux-dist-20060803-nios2-02.diff.gz | patch -p0 patching file vendors/Altera/nios2nommu/config.vendor patching file vendors/Altera/nios2nommu/config.arch patching file vendors/Altera/nios2nommu/config.linux-2.6.x patching file vendors/Altera/nios2nommu/Makefile patching file linux-2.6.x/include/asm-nios2nommu/futex.h patching file linux-2.6.x/include/asm-nios2nommu/poll.h patching file linux-2.6.x/include/asm-nios2nommu/bitops.h patching file linux-2.6.x/include/asm-nios2nommu/nios.h patching file linux-2.6.x/include/asm-nios2nommu/atomic.h patching file linux-2.6.x/include/asm-nios2nommu/io.h patching file linux-2.6.x/scripts/gen_initramfs_list.sh patching file linux-2.6.x/fs/ramfs/file-nommu.c patching file linux-2.6.x/usr/Makefile patching file linux-2.6.x/arch/nios2nommu/kernel/setup.c patching file linux-2.6.x/arch/nios2nommu/kernel/vmlinux.lds.S patching file linux-2.6.x/arch/nios2nommu/Kconfig patching file linux-2.6.x/arch/nios2nommu/scripts/PTF/SystemPTF/Module.pm patching file linux-2.6.x/arch/nios2nommu/mm/init.c patching file linux-2.6.x/drivers/net/Kconfig patching file Makefile patching file user/wireless_tools/Makefile
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo+oct 27 2006, 08:45 pm--><div class='quotetop'>quote (hippo @ oct 27 2006, 08:45 pm)</div>--- quote start ---
<!--quotebegin-madman23@Oct 27 2006, 03:05 PM hello,
i had a few questions about compilation.
1.) the patch which is provided in the wiki does not succedd every where instead there are a lot of failures for the new uclinux distribution not the test distribution.
2.) should i go yes for all the patching question about changing the already patched files for nios.
3.) even after doing that it says. your ptf file is not a system ptf file--> this lead me to change the perl script by hard-coding the ptf file itself this makes the nios_system.h file but again the make fails i do not understand why?
any help would be appreciated.
regards,
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18946)
--- quote end ---
--- Quote End --- Don't get mad. You should not use the old patches uClinux-dist.diff.gz , which is for old uClinux-dist-test-20060511. You should use ONLY ONCE uClinux-dist-20060803-nios2-02.diff.gz, and apply to uClinux-dist-20060803.tar.bz2 . I checked again, and didn't see any patch erro. Please remove old dirs, rm -rf ~/uClinux-dist and try again.. zcat ~/download/uClinux-dist-20060803-nios2-02.diff.gz | patch -p0 patching file vendors/Altera/nios2nommu/config.vendor patching file vendors/Altera/nios2nommu/config.arch patching file vendors/Altera/nios2nommu/config.linux-2.6.x patching file vendors/Altera/nios2nommu/Makefile patching file linux-2.6.x/include/asm-nios2nommu/futex.h patching file linux-2.6.x/include/asm-nios2nommu/poll.h patching file linux-2.6.x/include/asm-nios2nommu/bitops.h patching file linux-2.6.x/include/asm-nios2nommu/nios.h patching file linux-2.6.x/include/asm-nios2nommu/atomic.h patching file linux-2.6.x/include/asm-nios2nommu/io.h patching file linux-2.6.x/scripts/gen_initramfs_list.sh patching file linux-2.6.x/fs/ramfs/file-nommu.c patching file linux-2.6.x/usr/Makefile patching file linux-2.6.x/arch/nios2nommu/kernel/setup.c patching file linux-2.6.x/arch/nios2nommu/kernel/vmlinux.lds.S patching file linux-2.6.x/arch/nios2nommu/Kconfig patching file linux-2.6.x/arch/nios2nommu/scripts/PTF/SystemPTF/Module.pm patching file linux-2.6.x/arch/nios2nommu/mm/init.c patching file linux-2.6.x/drivers/net/Kconfig patching file Makefile patching file user/wireless_tools/Makefile <div align='right'><{post_snapback}> (index.php?act=findpost&pid=18948)</div> [/b] --- Quote End --- Thanks for the quick reply