Altera_Forum
Honored Contributor
21 years agoProblems with BusyBox
I'm trying to use busybox for my root filesystem instead of the standard filesystem.
Following the Reference Guide I was able to create the busybox, the symlinks, the inittab and rcS file. In this configuration the kernel boots well, but the shell will start without the login prompt; so I tried to modify the inittab as follows <div class='quotetop'>QUOTE </div> --- Quote Start --- #::askfirst:-/bin/sh ::respawn:/sbin/getty -L ttyS0 115200 vt100[/b] --- Quote End --- to get back the login prompt, but when the system boots I cannot log in with the standard username and password (nios and uClinux). What's wrong ? Furthermore, using the standard filesystem, I have built a second romfs filesystem, succesfully mounted into a custom directory (/usr/apps), but when I try to boot using the busybox and the same mount command into the rcS file (mount -t romfs /dev/mtdblock1 /usr/apps -n), I get the following <div class='quotetop'>QUOTE </div> --- Quote Start --- microtronix[mtd]: RAM probe address=0x200000 size=0x600000 Creating 2 MTD partitions on "RAM": 0x00000000-0x00400000 : "ROMfs" 0x00400000-0x00500000 : "USERfs" microtronix[mtd]: set ROMfs to be root filesystem . . . . VFS: Mounted root (romfs filesystem) readonly. Freeing unused kernel memory: 44k freed (0x11c4000 - 0x11ce000) mount: Mounting /dev/mtdblock1 on /usr/apps failed: Permission denied /usr/apps/mytestapp: not found expand: from=/ramfs.img to=/dev/ram0 . .[/b] --- Quote End --- I don't know which kind of permissions I need, nor where to set them. Thanks Fab