Forum Discussion
Altera_Forum
Honored Contributor
20 years agoya, that's the busybox I tried building earlier today - I will copy it over to linux just like the kernel tree. So I guess I need to know if I need uclibc also?? ANd when I run make, that make is the host make, not nios2-elf-gcc correct (as in not make ARCH=nios2nommu ...)??
--- Quote Start --- originally posted by hippo@Nov 28 2005, 09:39 PM to create the file system, some reading from the "linux from scratch" will help.it is simple, just mkdir of all of them. and copy some of the dev nodes from you linux host.
eg, cp -a /dev/console /dev/zero /dev/null .... uc_rootfs/dev
you don't need the jtag device, because it is registered as "/dev/console".
from boot, the kernel mount initramfs as root, execute /init, which is symlink to /sbin/init,
and symlink to busybox, it reads /etc/inittab.
the line in my sample inittab,
::askfirst:/bin/sh
execute the /bin/sh on console, and was symlink to busybox (msh).
freeing unused kernel memory: 272k freed (0x138000 - 0x17b000)
init started: busybox v1.00-pre8 (2005.10.28-01:02+0000) multi-call binary
please press enter to activate this console.
busybox v1.00-pre8 (2005.10.28-01:02+0000) built-in shell (msh)
enter 'help' for a list of built-in commands.# ls
bin etc init mnt proc sbin tmp var
dev home lib opt root sys usr#
to build busybox, you can use the altera/kits/nios2/examples/softeware/linux/busybox.
it should the same as marc's. do "zip -r and unzip -a" to convert crlf.
make menuconfig, make, make install.
i was using marc's buildroot. i will check if we have to build uclibc before busybox.
you could also try marc's page.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11225)
--- quote end ---
--- Quote End ---