UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Scholar norman_wong
Scholar
11,770 Views
Registered: ‎05-28-2012

BusyBox Config

Jump to solution

I am migrating from v14.1-build3-trd to v2014.1. Problem is that the busybox in v2014.1 has much less applets than v14.3-build2. In particular useful applets like mke2fs. Where can I get the busybox config file for v14.1-build3-trd or v2014.1? I would like to use those as a starting point. A pre-built ramdisk image with a full-featured busybox would be better but that's not likely.

v14.1-build3-trd ramdisk8M.image.gz
BusyBox v1.18.4 (2012-01-09 15:03:52 PST)
[, [[, acpid, add-shell, addgroup, adduser, adjtimex, ar, arp, arping, ash, awk, base64, basename, beep, blkid, blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, dpkg, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, flash_eraseall, flash_lock, flash_unlock, flashcp, flock, fold, free, freeramdisk, fsck, fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, insmod, install, ionice, iostat, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd, last, length, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lspci, lsusb, lzcat, lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more, mount, mountpoint, mpstat, mt, mv, nameif, nanddump, nandwrite, nbd-client, nc, netstat, nice, nmeter, nohup, nslookup, ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, printf, ps, pscan, pwd, raidautorun, rdate, rdev, readahead, readlink, readprofile, realpath, reboot, reformime, remove-shell, renice, reset, resize, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont, setkeycodes, setlogcons, setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum, showkey, slattach, sleep, smemcap, softlimit, sort, split, start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true, tty, ttysize, tunctl, udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unxz, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch, watchdog, wc, wget, which, who, whoami, xargs, xz, xzcat, yes, zcat, zcip

v2014.1 uramdisk.image.gz
BusyBox v1.20.2 (2013-11-21 16:56:55 EST)
[, [[, ar, ash, awk, basename, cat, chattr, chgrp, chmod, chown, chroot, chvt, clear, cmp, cp, cpio, cut, date, dc, dd, deallocvt, devmem, df, diff, dirname, dmesg, dnsdomainname, du, dumpkmap, dumpleases, echo, egrep, env, expr, false, fbset, fdisk, fgrep, find, flock, free, fsck, fsck.minix, ftpd, ftpget, ftpput, fuser, getopt, grep, groups, gunzip, gzip, halt, hd, head, hexdump, hostname, httpd, hwclock, id, ifconfig, ifdown, ifup, inetd, insmod, ip, kill, killall, klogd, less, ln, loadfont, loadkmap, logger, logname, logread, losetup, ls, lsmod, md5sum, mdev, microcom, mkdir, mkdosfs, mkfifo, mkfs.minix, mkfs.vfat, mknod, mkswap, mktemp, modprobe, more, mount, mv, netstat, nice, nohup, nslookup, od, openvt, patch, pidof, ping, ping6, pivot_root, poweroff, printf, ps, pwd, rdate, readlink, realpath, reboot, renice, reset, rm, rmdir, rmmod, route, run-parts, sed, seq, setconsole, sh, sha1sum, sha256sum, sha512sum, sleep, sort, start-stop-daemon, stat, strings, stty, swapoff, swapon, switch_root, sync, sysctl, syslogd, tail, tar, tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty, udhcpc, udhcpd, umount, uname, uniq, unzip, uptime, users, usleep, vi, watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat

0 Kudos
1 Solution

Accepted Solutions
Scholar norman_wong
Scholar
16,969 Views
Registered: ‎05-28-2012

Re: BusyBox Config

Jump to solution

Looks like the BusyBox init conflicts with the pre-built rootfs which uses sysvinit. Disabling BusyBox init fixes the boot.

View solution in original post

0 Kudos
10 Replies
Xilinx Employee
Xilinx Employee
11,768 Views
Registered: ‎03-13-2012

Re: BusyBox Config

Jump to solution

The more recent ramdisks are created with Petalinux. I think the busybox in Petalinux is a pre-built binary. I'm not sure where exactly the config resides, probably in the meta-petalinux yocto layer.

0 Kudos
Scholar norman_wong
Scholar
11,760 Views
Registered: ‎05-28-2012

Re: BusyBox Config

Jump to solution

I've been trying avoid buildroot and yocto. Not fond of these automated build systems. So far, I've gotten away with manually building u-boot/linux and modifying the pre-built file system. Hopefully the yocto recipe files for busybox are easy to decipher. The PetaLinux releases seem to use more memory, take more time to boot, more complicated rootfs with full runlevel support and have less functionality. I assume I am stuck with the PetaLinux as they will be the only supported version?

0 Kudos
Xilinx Employee
Xilinx Employee
11,753 Views
Registered: ‎03-13-2012

Re: BusyBox Config

Jump to solution

Busybox is not that complex. That shouldn't be too hard to just create your own config. The 2013.1 tarball includes a busybox config to start with if you need one (http://www.wiki.xilinx.com/Zynq+14.5+-+2013.1+Release )

0 Kudos
Scholar norman_wong
Scholar
11,750 Views
Registered: ‎05-28-2012

Re: BusyBox Config

Jump to solution

I'll take a look at that config. Can the  v14.5 / v2013.1 BusyBox config be used with PetaLinux? Which releases are PetaLinux based?

 

The Yocto recipe does quite a few things including modifying script files on the file system. Still reviewing which BusyBox configs that get changed.

 

I have tried compiling the latest BusyBox from source. I used the defconfig target. It seems to cause grief with the inittab scripts and the boot fails.

 

[   12.877312] Freeing unused kernel memory: 192K (c0621000 - c0651000)
Bad inittab entry at line 5
can't open /dev/si: No such file or directory
can't open /dev/~~: No such file or directory

...

0 Kudos
Xilinx Employee
Xilinx Employee
11,740 Views
Registered: ‎03-13-2012

Re: BusyBox Config

Jump to solution

I don't know what may go wrong there.

I think you should rather use either of the tools to build a rootfs (yocto, petalinux, buildroot, ...). Hacking one and replace something to fix one thing, may break something else. Especially in the long run, it will likely pay off to have a consistent way to build the ramdisk.

For PetaLinux BSPs are available to start from. The above mentioned wiki page also has buildroot config as alternative.

Customizing a yocto build is something I haven't mastered myself (yet).

0 Kudos
Scholar norman_wong
Scholar
16,970 Views
Registered: ‎05-28-2012

Re: BusyBox Config

Jump to solution

Looks like the BusyBox init conflicts with the pre-built rootfs which uses sysvinit. Disabling BusyBox init fixes the boot.

View solution in original post

0 Kudos
Newbie chenhao8956
Newbie
8,597 Views
Registered: ‎07-20-2015

Re: BusyBox Config

Jump to solution

Hi,

    Can you give me more hints on how to delete the busybox init?

 

regards 

0 Kudos
Scholar vanmierlo
Scholar
7,999 Views
Registered: ‎06-10-2008

Re: BusyBox Config

Jump to solution

We also very much would like a much richer busybox with petalinux (2015.2.1). But the busybox seems to come from some .deb package. How can we substitute the default busybox with another one? How should it be configured?

 

As an alternative, would it be possible to add a configuration option to petalinux-config -c rootfs to choose either the current minimal or a (new) complete busybox?

0 Kudos
Scholar vanmierlo
Scholar
7,986 Views
Registered: ‎06-10-2008

Re: BusyBox Config

Jump to solution

It is clear that the busybox config at http://www.wiki.xilinx.com/file/detail/busybox-config is not the one used for building the 1.23 busybox that comes with petalinux 2015.2.1. But where can we find the config that actually was used?

0 Kudos
Scholar vanmierlo
Scholar
3,113 Views
Registered: ‎06-10-2008

Re: BusyBox Config

Jump to solution

I think I need to rephrase that as: where are the two busybox configs that were used to build the busybox executables busybox.nosuid and busybox.suid?

0 Kudos