Welcome to AVR32 Linux... Users Groups

Busybox for AVR32 Linux

BusyBox is a single binary implementing many of the basic commands you'll find on any Linux system, for example ls, cat, grep, etc. It is extremely configurable, so it's especially suited for small systems where you only want to include the bare minimum of functionality, but it's also full-featured enough to be used on a development system.

BusyBox Binary

* busybox-1.8.2-avr32-bin.tar.bz2: Busybox 1.8.2 binary for AVR32

Building BusyBox

The source code for the latest version of BusyBox can be downloaded from http://www.busybox.net/downloads/. No patches are necessary for it to work on AVR32.

The latest BusyBox builds like the kernel. Configuring it can be done like this:

make ARCH=avr32 CROSS_COMPILE=avr32-linux- KBUILD_HAVE_NLS=yes xconfig (or with the text based menuconfig)

Compile like this:

make ARCH=avr32 CROSS_COMPILE=avr32-linux- KBUILD_HAVE_NLS=yes

Configure BusyBox by running make menuconfig and select the features you need. Make sure you select avr32-linux- as cross-compiler prefix. It's probably a good idea to use the attached example configuration as a starting point. Just save it to the BusyBox source directory and rename it .config.

Build the busybox program by running make and install it to the location specified during the configuration stage by running make install.

Tested versions

Usage

To see a list of all the individual programs supported by your particular busybox binary, simply run busybox with no arguments. The programs should behave just like the regular system utilities included with other Linux distributions.

Setting up mdev

mdev is a small replacement for udev, used by most modern Linux distributions to manage the special files under /dev. To use it, add the following lines to your start-up script:
mount -ttmpfs mdev /dev
mkdir /dev/shm
chmod 01777 /dev/shm
mkdir /dev/pts
mount -tdevpts pts /dev/pts

echo /sbin/mdev > /proc/sys/kernel/hotplug
/sbin/mdev -s

After doing this, all necessary device files will be created automatically as they appear. Note, however, that ALSA expects to find its device files under /dev/snd, and mdev doesn't currently support creating device files in subdirectories. A possible workaround is to create /dev/snd as a symlink pointing back to the /dev directory.

Links

* dot-config: Full-featured BusyBox 1.8.2 dot-config

  File Size Date By Actions
else busybox-1.8.2-avr32-bin.tar.bz2
Busybox 1.8.2 binary for AVR32
390.5 K 2007-12-28 - 22:03 JohnVoltz props, move
else busybox-dot-config
Example configuration for BusyBox
14.5 K 2006-11-09 - 12:16 HaavardSkinnemoen props, move
else dot-config
Full-featured BusyBox 1.8.2 dot-config
17.5 K 2007-12-28 - 22:21 JohnVoltz props, move
r3 - 2007-12-28 - 22:21:20 - JohnVoltz
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Atmel®, AVR® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries.
All other trademarks are the property of their respective owners.
Syndicate this site RSSATOM