diff options
Diffstat (limited to 'release/src/router/busybox/examples/bootfloppy')
-rw-r--r-- | release/src/router/busybox/examples/bootfloppy/bootfloppy.txt | 18 | ||||
-rw-r--r--[-rwxr-xr-x] | release/src/router/busybox/examples/bootfloppy/etc/fstab | 0 | ||||
-rwxr-xr-x | release/src/router/busybox/examples/bootfloppy/etc/init.d/rcS | 3 | ||||
-rw-r--r--[-rwxr-xr-x] | release/src/router/busybox/examples/bootfloppy/etc/inittab | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | release/src/router/busybox/examples/bootfloppy/etc/profile | 2 | ||||
-rwxr-xr-x | release/src/router/busybox/examples/bootfloppy/mkdevs.sh | 2 | ||||
-rwxr-xr-x | release/src/router/busybox/examples/bootfloppy/mkrootfs.sh | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | release/src/router/busybox/examples/bootfloppy/syslinux.cfg | 2 |
8 files changed, 18 insertions, 15 deletions
diff --git a/release/src/router/busybox/examples/bootfloppy/bootfloppy.txt b/release/src/router/busybox/examples/bootfloppy/bootfloppy.txt index 090ef049..9e2cbe2b 100644 --- a/release/src/router/busybox/examples/bootfloppy/bootfloppy.txt +++ b/release/src/router/busybox/examples/bootfloppy/bootfloppy.txt @@ -5,7 +5,7 @@ This document describes how to buid a boot floppy using the following components: - Linux Kernel (http://www.kernel.org) - - uClibc: C library (http://cvs.uclinux.org/uClibc.html) + - uClibc: C library (http://www.uclibc.org/) - Busybox: Unix utilities (http://busybox.net/) - Syslinux: bootloader (http://syslinux.zytor.com) @@ -38,13 +38,13 @@ Making a Root File System The following steps will create a root file system. - Create an empty file that you can format as a filesystem: - + dd if=/dev/zero of=rootfs bs=1k count=4000 - Set up the rootfs file we just created to be used as a loop device (may not - be necessary) + be necessary) - losetup /dev/loop0 rootfs + losetup /dev/loop0 rootfs - Format the rootfs file with a filesystem: @@ -72,11 +72,11 @@ The following steps will create a root file system. - Install the Busybox binary and accompanying symlinks: (chdir to busybox directory) - make PREFIX=(path to)loop/ install + make CONFIG_PREFIX=(path to)loop/ install - Make device files in /dev: - This can be done by running the 'mkdevs.sh' script. If you want the gory + This can be done by running the 'mkdevs.sh' script. If you want the gory details, you can read the script. - Make necessary files in /etc: @@ -101,15 +101,15 @@ The following steps will create the boot floppy. Note: You will need to have the mtools package installed beforehand. - Insert a floppy in the drive and format it with an MSDOS filesystem: - + mformat a: (if the system doesn't know what device 'a:' is, look at /etc/mtools.conf) - Run syslinux on the floppy: - + syslinux -s /dev/fd0 - + (the -s stands for "safe, slow, and stupid" and should work better with buggy BIOSes; it can be omitted) diff --git a/release/src/router/busybox/examples/bootfloppy/etc/fstab b/release/src/router/busybox/examples/bootfloppy/etc/fstab index ef14ca2c..ef14ca2c 100755..100644 --- a/release/src/router/busybox/examples/bootfloppy/etc/fstab +++ b/release/src/router/busybox/examples/bootfloppy/etc/fstab diff --git a/release/src/router/busybox/examples/bootfloppy/etc/init.d/rcS b/release/src/router/busybox/examples/bootfloppy/etc/init.d/rcS new file mode 100755 index 00000000..4f29b923 --- /dev/null +++ b/release/src/router/busybox/examples/bootfloppy/etc/init.d/rcS @@ -0,0 +1,3 @@ +#! /bin/sh + +/bin/mount -a diff --git a/release/src/router/busybox/examples/bootfloppy/etc/inittab b/release/src/router/busybox/examples/bootfloppy/etc/inittab index eb3e979c..eb3e979c 100755..100644 --- a/release/src/router/busybox/examples/bootfloppy/etc/inittab +++ b/release/src/router/busybox/examples/bootfloppy/etc/inittab diff --git a/release/src/router/busybox/examples/bootfloppy/etc/profile b/release/src/router/busybox/examples/bootfloppy/etc/profile index e9b11e90..8a7c77d7 100755..100644 --- a/release/src/router/busybox/examples/bootfloppy/etc/profile +++ b/release/src/router/busybox/examples/bootfloppy/etc/profile @@ -4,5 +4,5 @@ echo echo -n "Processing /etc/profile... " # no-op echo "Done" -echo +echo diff --git a/release/src/router/busybox/examples/bootfloppy/mkdevs.sh b/release/src/router/busybox/examples/bootfloppy/mkdevs.sh index 03a1a855..8e9512f8 100755 --- a/release/src/router/busybox/examples/bootfloppy/mkdevs.sh +++ b/release/src/router/busybox/examples/bootfloppy/mkdevs.sh @@ -57,6 +57,6 @@ ln -s vcs0 vcs # virtual console screen w/ attributes devs for i in `seq 0 9`; do - mknod vcsa$i b 7 $i + mknod vcsa$i b 7 $((128 + i)) done ln -s vcsa0 vcsa diff --git a/release/src/router/busybox/examples/bootfloppy/mkrootfs.sh b/release/src/router/busybox/examples/bootfloppy/mkrootfs.sh index e56d1046..5cdff21a 100755 --- a/release/src/router/busybox/examples/bootfloppy/mkrootfs.sh +++ b/release/src/router/busybox/examples/bootfloppy/mkrootfs.sh @@ -63,10 +63,10 @@ mount -o loop,exec rootfs $TARGET_DIR # must be root # install uClibc mkdir -p $TARGET_DIR/lib cd $UCLIBC_DIR -make INSTALL_DIR= +make INSTALL_DIR= cp -a libc.so* $BASE_DIR/$TARGET_DIR/lib cp -a uClibc*.so $BASE_DIR/$TARGET_DIR/lib -cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib +cp -a ld.so-1/d-link/ld-linux-uclibc.so* $BASE_DIR/$TARGET_DIR/lib cp -a ld.so-1/libdl/libdl.so* $BASE_DIR/$TARGET_DIR/lib cp -a crypt/libcrypt.so* $BASE_DIR/$TARGET_DIR/lib cd $BASE_DIR @@ -76,7 +76,7 @@ cd $BASE_DIR cd $BUSYBOX_DIR make distclean make CC=$BASE_DIR/$UCLIBC_DIR/extra/gcc-uClibc/i386-uclibc-gcc -make PREFIX=$BASE_DIR/$TARGET_DIR install +make CONFIG_PREFIX=$BASE_DIR/$TARGET_DIR install cd $BASE_DIR diff --git a/release/src/router/busybox/examples/bootfloppy/syslinux.cfg b/release/src/router/busybox/examples/bootfloppy/syslinux.cfg index 8d407cad..fa2677ca 100755..100644 --- a/release/src/router/busybox/examples/bootfloppy/syslinux.cfg +++ b/release/src/router/busybox/examples/bootfloppy/syslinux.cfg @@ -4,4 +4,4 @@ timeout 10 prompt 1 label linux kernel linux - append initrd=rootfs.gz root=/dev/ram0 + append initrd=rootfs.gz root=/dev/ram0 |