From: Eric Andersen Date: Fri, 26 Apr 2002 22:01:43 +0000 (-0000) Subject: With this update, everything now works as expected. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8262508fc4456b5230216473ea14c897268ba791;p=buildroot.git With this update, everything now works as expected. -Erik --- diff --git a/.cvsignore b/.cvsignore index 9171c49791..0b8f84f66c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1,3 @@ UMlinux root_fs +build diff --git a/sources/.cvsignore b/sources/.cvsignore new file mode 100644 index 0000000000..5c488628e4 --- /dev/null +++ b/sources/.cvsignore @@ -0,0 +1 @@ +dl diff --git a/sources/busybox.patch b/sources/busybox.patch index 2ad7bf0182..66986bad50 100644 --- a/sources/busybox.patch +++ b/sources/busybox.patch @@ -1,5 +1,5 @@ --- busybox/Config.h 6 Apr 2002 04:22:15 -0000 1.116 -+++ busybox/Config.h 26 Apr 2002 10:54:28 -0000 ++++ busybox/Config.h 26 Apr 2002 21:58:07 -0000 @@ -18,9 +18,9 @@ #define BB_CHROOT #define BB_CHVT @@ -21,24 +21,15 @@ //#define BB_DPKG //#define BB_DPKG_DEB //#define BB_DUTMP -@@ -37,13 +37,13 @@ +@@ -37,7 +37,7 @@ //#define BB_DUMPKMAP #define BB_ECHO #define BB_ENV -//#define BB_EXPR --//#define BB_FBSET +#define BB_EXPR -+#define BB_FBSET + //#define BB_FBSET //#define BB_FDFLUSH #define BB_FIND - #define BB_FREE --//#define BB_FREERAMDISK --//#define BB_FSCK_MINIX -+#define BB_FREERAMDISK -+#define BB_FSCK_MINIX - //#define BB_GETOPT - #define BB_GREP - #define BB_GUNZIP @@ -51,12 +51,12 @@ #define BB_HALT #define BB_HEAD @@ -55,7 +46,7 @@ #define BB_KILL #define BB_KILLALL #define BB_KLOGD -@@ -72,10 +72,10 @@ +@@ -72,7 +72,7 @@ #define BB_LS #define BB_LSMOD //#define BB_MAKEDEVS @@ -63,12 +54,8 @@ +#define BB_MD5SUM #define BB_MKDIR //#define BB_MKFIFO --//#define BB_MKFS_MINIX -+#define BB_MKFS_MINIX - #define BB_MKNOD - #define BB_MKSWAP - //#define BB_MKTEMP -@@ -85,24 +85,24 @@ + //#define BB_MKFS_MINIX +@@ -85,58 +85,58 @@ //#define BB_MSH //#define BB_MT #define BB_MV @@ -100,7 +87,12 @@ //#define BB_RPM2CPIO #define BB_SED //#define BB_SETKEYCODES -@@ -114,29 +114,29 @@ + #define BB_SLEEP + #define BB_SORT + //#define BB_STTY +-#define BB_SWAPONOFF ++//#define BB_SWAPONOFF + #define BB_SYNC #define BB_SYSLOGD #define BB_TAIL #define BB_TAR diff --git a/sources/device_table.txt b/sources/device_table.txt index f4a3e9b764..a023e6f80c 100644 --- a/sources/device_table.txt +++ b/sources/device_table.txt @@ -26,6 +26,10 @@ #/dev/rtc c 640 0 0 10 135 0 0 - #/dev/fd b 640 0 0 2 0 0 0 1 # +# User-mode Linux stuff +/dev/ubda b 640 0 0 98 0 0 0 - +/dev/ubda b 640 0 0 98 1 1 1 15 +# # Raid device directories /dev/cciss d 755 0 0 - - - - - /dev/ida d 755 0 0 - - - - - diff --git a/sources/skel.tar.gz b/sources/skel.tar.gz index b351737c87..a0c9d77cec 100644 Binary files a/sources/skel.tar.gz and b/sources/skel.tar.gz differ diff --git a/sources/target_skeleton/etc/fstab b/sources/target_skeleton/etc/fstab index 2ca20a4926..525a95b1e0 100644 --- a/sources/target_skeleton/etc/fstab +++ b/sources/target_skeleton/etc/fstab @@ -1,6 +1,6 @@ # /etc/fstab: static file system information. # -# -/dev/root / ext2 rw 0 1 +# +/dev/ubda / ext2 defaults,rw 0 1 proc /proc proc defaults 0 0 tmpfs /tmp tmpfs defaults 0 0 diff --git a/sources/target_skeleton/etc/hostname b/sources/target_skeleton/etc/hostname new file mode 100644 index 0000000000..46f514d137 --- /dev/null +++ b/sources/target_skeleton/etc/hostname @@ -0,0 +1 @@ +dev.null diff --git a/sources/target_skeleton/etc/hosts b/sources/target_skeleton/etc/hosts new file mode 100644 index 0000000000..ba712fe033 --- /dev/null +++ b/sources/target_skeleton/etc/hosts @@ -0,0 +1 @@ +127.0.0.1 localhost diff --git a/sources/target_skeleton/etc/init.d/S01mount b/sources/target_skeleton/etc/init.d/S01mount index 85d3ab5a65..45d0e7bca8 100755 --- a/sources/target_skeleton/etc/init.d/S01mount +++ b/sources/target_skeleton/etc/init.d/S01mount @@ -4,6 +4,7 @@ # fsck, since we don't need it here... echo -n "Mounting local file systems: " +/bin/mount / -o remount,rw > /dev/null 2>&1 /bin/mount -a > /dev/null 2>&1 if [ $? = 0 ] ; then echo "ok" diff --git a/sources/target_skeleton/etc/init.d/S20syslogd b/sources/target_skeleton/etc/init.d/S20syslogd new file mode 100755 index 0000000000..e3b0e7de4f --- /dev/null +++ b/sources/target_skeleton/etc/init.d/S20syslogd @@ -0,0 +1,6 @@ +#!/bin/sh + +echo -n "Starting system log daemon: " +# start syslogging +/sbin/syslogd -m 0 +echo "ok" diff --git a/sources/target_skeleton/etc/init.d/S20urandom b/sources/target_skeleton/etc/init.d/S20urandom new file mode 100755 index 0000000000..433fafee4e --- /dev/null +++ b/sources/target_skeleton/etc/init.d/S20urandom @@ -0,0 +1,44 @@ +#! /bin/sh +# +# urandom This script saves the random seed between reboots. +# It is called from the boot, halt and reboot scripts. +# +# Version: @(#)urandom 1.33 22-Jun-1998 miquels@cistron.nl +# + +[ -c /dev/urandom ] || exit 0 +#. /etc/default/rcS + +case "$1" in + start|"") + if [ "$VERBOSE" != no ] + then + echo -n "Initializing random number generator... " + fi + # Load and then save 512 bytes, + # which is the size of the entropy pool + if [ -f /etc/random-seed ] + then + cat /etc/random-seed >/dev/urandom + fi + rm -f /etc/random-seed + umask 077 + dd if=/dev/urandom of=/etc/random-seed count=1 \ + >/dev/null 2>&1 || echo "urandom start: failed." + umask 022 + [ "$VERBOSE" != no ] && echo "done." + ;; + stop) + # Carry a random seed from shut-down to start-up; + # see documentation in linux/drivers/char/random.c + [ "$VERBOSE" != no ] && echo -n "Saving random seed... " + umask 077 + dd if=/dev/urandom of=/etc/random-seed count=1 \ + >/dev/null 2>&1 || echo "urandom stop: failed." + [ "$VERBOSE" != no ] && echo "done." + ;; + *) + echo "Usage: urandom {start|stop}" >&2 + exit 1 + ;; +esac diff --git a/sources/target_skeleton/etc/init.d/S50networking b/sources/target_skeleton/etc/init.d/S50networking index 7104f33216..db60359f92 100755 --- a/sources/target_skeleton/etc/init.d/S50networking +++ b/sources/target_skeleton/etc/init.d/S50networking @@ -4,4 +4,4 @@ ifconfig lo 127.0.0.1 up route add -net 127.0.0.0 netmask 255.0.0.0 lo -hostname dev.null +hostname -F /etc/hostname diff --git a/sources/target_skeleton/etc/inittab b/sources/target_skeleton/etc/inittab index 2e91bd1e65..8575ced997 100644 --- a/sources/target_skeleton/etc/inittab +++ b/sources/target_skeleton/etc/inittab @@ -24,10 +24,9 @@ tty2::respawn:/sbin/getty 38400 tty2 #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # Logging junk -tty2::once:/bin/touch /var/log/messages +tty3::once:/bin/touch /var/log/messages tty3::respawn:/usr/bin/tail -f /var/log/messages -tty4::once:/bin/dmesg -tty4::respawn:/usr/bin/tail -f /proc/kmsg +::respawn:/sbin/klogd -n # Stuff to do for the 3-finger salute ::ctrlaltdel:/sbin/reboot diff --git a/sources/target_skeleton/etc/protocols b/sources/target_skeleton/etc/protocols index b175544a4f..e717657c59 100644 --- a/sources/target_skeleton/etc/protocols +++ b/sources/target_skeleton/etc/protocols @@ -1,5 +1,5 @@ # /etc/protocols: -# $Id: protocols,v 1.2 2002/04/26 11:45:52 andersen Exp $ +# $Id: protocols,v 1.3 2002/04/26 22:01:41 andersen Exp $ # # Internet (IP) protocols # diff --git a/sources/target_skeleton/etc/random-seed b/sources/target_skeleton/etc/random-seed new file mode 100644 index 0000000000..f26038adc5 Binary files /dev/null and b/sources/target_skeleton/etc/random-seed differ diff --git a/sources/target_skeleton/etc/resolv.conf b/sources/target_skeleton/etc/resolv.conf index 423dd57a42..71a86dd76c 100644 --- a/sources/target_skeleton/etc/resolv.conf +++ b/sources/target_skeleton/etc/resolv.conf @@ -1,2 +1,2 @@ domain dev.null -nameserver 10.0.0.1 +nameserver 127.0.0.1 diff --git a/sources/target_skeleton/etc/services b/sources/target_skeleton/etc/services index 49d6e4c7cc..9462af38c2 100644 --- a/sources/target_skeleton/etc/services +++ b/sources/target_skeleton/etc/services @@ -1,5 +1,5 @@ # /etc/services: -# $Id: services,v 1.2 2002/04/26 11:45:52 andersen Exp $ +# $Id: services,v 1.3 2002/04/26 22:01:41 andersen Exp $ # # Network services, Internet style #