Forum Discussion
Altera_Forum
Honored Contributor
20 years agoAlex,
ftp://linuxforum.net/ftp.gcc.gnu.org/rele...c-3.4.3.tar.bz2 (ftp://linuxforum.net/ftp.gcc.gnu.org/releases/gcc-3.4.3/gcc-3.4.3.tar.bz2) The buildroot.config uses bintuils-0.15,gcc-3.4.3,kernel header 2.6.11, uClibc snapshot, busybox snapshot.tar jxf buildroot-snapshot.tar.bz2
mkdir buildroot/dl in buildroot dir, make menuconfig, and just save and exit. unzip the configs.zip into buildroot/dl, copy buildroot.config to buildroot/.config. then in buildroot dir, make. it will build the compiler,uclibc,busybox and rootfs.nios2.ext2. the only problem remained, is the elf2flt. use the old one as in post#24, add the line LDFLAGS+=-Wl,-elf2flt="-s 16000" -Wl,-v -Wl,-d to buildroot/build-nios2/busybox/Rules.mak remove file buildroot/build-nios2/busybox/busybox and in buildroot dir, make again. The rootfs is built into a ext2 image. Login as root account. Mount it and copy to your rootfs, mkdir /mnt/v1
mount -o loop buildroot/rootfs.nios2.ext2 /mnt/v1
cp -a /mnt/v1/* your_rootfs_dir
chown -R your_username:your_username your_rootfs_dir
umount /mnt/v1