Forum Discussion
Altera_Forum
Honored Contributor
20 years agoTo 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.