Forum Discussion
Altera_Forum
Honored Contributor
20 years agobuild uclinux error
THANKS
I WANT TO DO ACCORDING TO hippo,I downloads the Nios II Linux Distribution v1.4 ,and build.zip.BECAUSE THE NET DOWLOAD IS SLOW,SO I DOWNLOAD THIS FILES:uClinux-dist-20051110.tar.bz2,busybox-20060320.tar.bz2,uClibc-20060320.tar.bz2 AND buildroot-20060320.tar.bz2 ,then I place this files in ~/download instead of WGET commond. COULD YOU HELP HOW TO MODIFY THE BUID FILE: # !/bin/bash# rm -rf ~/buildroot ~/rootfs ~/linux-2.6.x ~/download/mx140 ~/uClinux-dist ~/apps# to prepare kernel source cd ~/download mkdir mx140 cd mx140# convert the crlf with unzip -a echo "prepare kernel source" unzip -aoq ../nios2linux-1.4.zip# kernel 2.6.11-uc0 source ported by microtronix cp -a plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x ~ cd ~/linux-2.6.x patch -p0 <~/download/kernel.diff cp ~/download/kernel.config ~/linux-2.6.x/.config# apps ported by microtronix, only Makefile of inetd, ftpd and boa are patched to use the toolchains mkdir ~/apps cp -a ~/download/mx140/examples/software/linux/apps/* ~/apps cd ~/apps patch -p1 <~/download/mx140apps.diff# to prepare uClinux-dist source cd ~/download echo "prepare uClinux-dist source" wget -N http://www.uclinux.org/pub/uclinux/dist/uc...0051110.tar.bz2 (http://www.uclinux.org/pub/uclinux/dist/uc...0051110.tar.bz2) cd ~ tar jxf ~/download/uClinux-dist-20051110.tar.bz2 cd ~/uClinux-dist patch -p0 <~/download/uClinux-dist.diff touch ~/uClinux-dist/vendors/Altera/nios2nommu/inittab# download buildroot snapshot cd ~/download SNAPSHOT=20060320 rm -f buildroot-snapshot.tar.bz2 uClibc-snapshot.tar.bz2 busybox-snapshot.tar.bz2 # wget -N http://buildroot.uclibc.org/downloads/snap...napshot.tar.bz2 (http://buildroot.uclibc.org/downloads/snap...napshot.tar.bz2)# wget -N http://www.uclibc.org/downloads/snapshots/...napshot.tar.bz2 (http://www.uclibc.org/downloads/snapshots/...napshot.tar.bz2)# wget -N http://busybox.net/downloads/snapshots/bus...napshot.tar.bz2 (http://busybox.net/downloads/snapshots/bus...napshot.tar.bz2) wget -N http://hungryhippo.jot.com/wikihome/buildr...0060320.tar.bz2 (http://hungryhippo.jot.com/wikihome/buildr...0060320.tar.bz2) wget -N http://hungryhippo.jot.com/wikihome/uclibc-20060320.tar.bz2 (http://hungryhippo.jot.com/wikihome/uclibc-20060320.tar.bz2) wget -N http://hungryhippo.jot.com/wikihome/busybox-20060320.tar.bz2 (http://hungryhippo.jot.com/wikihome/busybox-20060320.tar.bz2) ln -s buildroot-$SNAPSHOT.tar.bz2 buildroot-snapshot.tar.bz2 ln -s uClibc-$SNAPSHOT.tar.bz2 uClibc-snapshot.tar.bz2 ln -s busybox-$SNAPSHOT.tar.bz2 busybox-snapshot.tar.bz2 cd ~ tar jxf ~/download/buildroot-snapshot.tar.bz2 cd ~/buildroot ln -s ~/download dl# patches for configs, add elf2flt to busybox patch -p0 <~/download/buildroot.diff make oldconfig make# clean headers for uClinux-dist cd ~/buildroot/build_nios2/staging_dir/include/linux rm config.h autoconf.h touch config.h autoconf.h# prepare root fs rm -rf ~/rootfs mkdir ~/rootfs cp -a ~/buildroot/build_nios2/root/* ~/rootfs cd ~/rootfs# remove include and lib to save space# the dev nodes are generated via ~/download/rootfs_list rm -rf dev usr/include usr/lib# you may use this instead of the one from buildroot cp ~/download/inittab etc15 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by nwpu_zhf2004@May 29 2006, 06:14 PM thanks,i don't use fedora and vmware ,i only use the red hat 9.0 on pc directly ,pls help me !!!<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15656)
--- quote end ---
--- Quote End --- fedora core is redhat linux. cd into your redhat CD's RedHat/RPMS , rpm -Uvh ncurses*.rpm
- Altera_Forum
Honored Contributor
[root@localhost RPMS]# rpm -Uvh ncurses*.rpm
warning: ncurses-5.3-4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing... # ########################################## [100%] package ncurses-5.3-4 is already installed then i execute the command:make menuconfig this is the information : [wangdengke@localhost uClinux-dist-test]$ make menuconfig config/mkconfig > config.in /bin/sh: line 1: config.in: 权限不够 make: *** [config.in] Error 1 [wangdengke@localhost uClinux-dist-test]$ thx! - Altera_Forum
Honored Contributor
dear all,
I executed the kernal config,the error information is below,could you help me? [root@localhost linux-2.6.x]# make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=cpu.ptf no emulation specific options. RUNNING hwselect --- Please select which CPU you wish to build the kernel against: (1) cpu_0 - Class: altera_nios2 Type: s Version: 5.0 Selection: 1 --- Please select a device to upload the kernel to: (1) flash Class: altera_avalon_cfi_flash Size: 8388608 bytes Selection: 1 --- Please select a device to execute kernel from: (1) number_device_0 Class: number_device Size: 4 bytes (2) sdram Class: altera_avalon_new_sdram_controller Size: 8388608 bytes Selection: 2 --- Summary using PTF: cpu.ptf CPU: cpu_0 Device to upload to: flash Program memory to execute from: sdram --- Settings written to /home/wangdengke/linux-2.6.x/arch/nios2nommu/hardware.mk then execute : [root@localhost linux-2.6.x]# make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- menuconfig no emulation specific options. CHK include/linux/version.h UPD include/linux/version.h SYMLINK include/asm -> include/asm-nios2nommu no emulation specific options. HOSTCC scripts/basic/fixdep /bin/sh: line 1: gcc: command not found make[2]: *** [scripts/basic/fixdep] Error 127 make[1]: *** [scripts_basic] Error 2 make: *** [include/linux/autoconf.h] Error 2 - Altera_Forum
Honored Contributor
It looks like that you didn't select software development package during redhat linux installataion.
You need to install gcc. Try "gcc -v", if not work, use rpm to install gcc. NOTE, you should NOT cd linux-2.6.x in uClinux-dist to build kernel. (This is different from the old buildroot guide) READ the WIKI, http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist) You should do all the make commands in ~/uClinux-dist-test dir. - Altera_Forum
Honored Contributor
OR, you should backup your data, and reinstall fedora core 5 with software development packages selected during installation.