Unslung and OpenSlug both working with switchbox. Updated CVSDATE stuff in nslu2...
authorRod Whitby <rod@whitby.id.au>
Mon, 21 Feb 2005 13:03:11 +0000 (13:03 +0000)
committerRod Whitby <rod@whitby.id.au>
Mon, 21 Feb 2005 13:03:11 +0000 (13:03 +0000)
BKrev: 4219dc0fM9IKay9jW_b1WMSP_N7e1w

conf/machine/nslu2.conf
packages/base-files/base-files/nslu2/fstab
packages/busybox/slingbox-1.00/defconfig
packages/busybox/slingbox_1.00.bb
packages/busybox/switchbox-1.00/defconfig
packages/busybox/switchbox-1.00/linuxrc
packages/busybox/switchbox_1.00.bb
packages/linux/openslug-kernel_2.6.9.bb
packages/nslu2-binary-only/nslu2-switchbox-firmware.bb
packages/openslug-init/openslug-init_0.10.bb

index 0b4ede3..dc2b08f 100644 (file)
@@ -15,7 +15,8 @@ SERIAL_CONSOLE = "115200 ttyS0"
 KERNEL_CONSOLE = "ttyS0,115200n8"
 USE_VT = "0"
 
-CVSDATE_gnu-config-native ?= "20041130"
-CVSDATE_ipkg-utils-native ?= "20041130"
-CVSDATE_ipkg-link ?= "20041130"
-CVSDATE_uclibc ?= "20041130"
+CVSDATE_gnu-config-native ?= "20050221"
+CVSDATE_ipkg-utils-native ?= "20050221"
+CVSDATE_ipkg-link ?= "20050221"
+CVSDATE_uclibc ?= "20050221"
+CVSDATE_genext2fs ?= "20050221"
\ No newline at end of file
index e69de29..941dfa3 100644 (file)
@@ -0,0 +1,5 @@
+rootfs         /               auto    defaults        1  1
+proc            /proc          proc    defaults        0  0
+tmpfs          /var            tmpfs   defaults        0  0
+tmpfs          /mnt/ram        tmpfs   defaults        0  0
+usbdevfs       /proc/bus/usb   usbdevfs noauto         0  0
index 001b79b..192d218 100644 (file)
@@ -30,7 +30,7 @@ EXTRA_CFLAGS_OPTIONS=""
 #
 # Installation Options
 #
-CONFIG_INSTALL_NO_USR=y
+# CONFIG_INSTALL_NO_USR is not set
 PREFIX="/"
 
 #
index eeb9622..7429f8a 100644 (file)
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.busybox.net"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
-PR = "r4"
+PR = "r6"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
            file://defconfig \
@@ -22,7 +22,7 @@ export EXTRA_CFLAGS = "${CFLAGS}"
 EXTRA_OEMAKE_append = " CROSS=${HOST_PREFIX}"
 
 PACKAGES = "${PN}"
-FILES_${PN} = "/bin /sbin"
+FILES_${PN} = "/"
 FILES_${PN}-doc = ""
 FILES_${PN}-dev = ""
 FILES_${PN}-locale = ""
index 40f6b41..ad94247 100644 (file)
@@ -31,7 +31,7 @@ EXTRA_CFLAGS_OPTIONS=""
 #
 # Installation Options
 #
-CONFIG_INSTALL_NO_USR=y
+# CONFIG_INSTALL_NO_USR is not set
 PREFIX="/"
 
 #
index 90e3651..da50030 100644 (file)
@@ -7,14 +7,14 @@ prefroot=
 /bin/mount -t proc proc /proc
 /bin/echo "0x0100" > /proc/sys/kernel/real-root-dev
 
-sysconflen=`/bin/dd if=/dev/mtd1 bs=4 count=1 2>/dev/null | hexdump -n 6 -e '"%02d"'`
+sysconflen=`/bin/dd if=/dev/mtd1 bs=4 count=1 2>/dev/null | /usr/bin/hexdump -n 6 -e '"%02d"'`
 ipaddr=`/bin/dd if=/dev/mtd1 bs=1 count=$sysconflen skip=4 2>/dev/null | grep ip_addr | sed -e s/ip_addr=//`
 netmask=`/bin/dd if=/dev/mtd1 bs=1 count=$sysconflen skip=4 2>/dev/null | grep netmask | sed -e s/netmask=//`
 gateway=`/bin/dd if=/dev/mtd1 bs=1 count=$sysconflen skip=4 2>/dev/null | grep gateway | sed -e s/gateway=//`
 nfsrootloc=`/bin/dd if=/dev/mtd1 bs=1 count=$sysconflen skip=4 2>/dev/null | grep nfsroot | sed -e s/nfsroot=// | cut -d, -f 1`
 nfsrootopts=`/bin/dd if=/dev/mtd1 bs=1 count=$sysconflen skip=4 2>/dev/null | grep nfsroot | sed -e s/nfsroot=// | cut -d, -f 2- | sed -e s/\"//g` 
 device=/dev/`/bin/sed -n -e 's/^\(mtd[0-9]*\): .* "FIS directory"/\1/p' /proc/mtd`   
-length=`/bin/dd if=$device bs=2 skip=2048 2>/dev/null | /bin/hexdump -n 4 -e '4/1 "%02X"' $device`
+length=`/bin/dd if=$device bs=2 skip=2048 2>/dev/null | /usr/bin/hexdump -n 4 -e '4/1 "%02X"' $device`
 
 # Determine desired rootfs
 if [ -z "$mounted" ] && /bin/mount -rt jffs2 /dev/mtdblock4 /mnt/jffs2 ; then
@@ -144,7 +144,7 @@ fi
 # Pivot
 if [ -n "$mounted" ] ; then
     if [ $prefroot = "nfsroot" ] ; then
-       /bin/killall portmap
+       /usr/bin/killall portmap
     fi
     if [ $mounted != "/mnt/jffs2" ] ; then
         sleep 1
@@ -162,7 +162,7 @@ if [ -n "$mounted" ] ; then
        runboot=/bin/sh
     fi
     /sbin/pivot_root . initrd
-    exec chroot . $runboot  < dev/console > dev/console 2>&1
+    exec /usr/sbin/chroot . $runboot  < dev/console > dev/console 2>&1
 fi
 
 #if [ -z "$mounted" ] ; then
index 9d5b86c..c8d3ff5 100644 (file)
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.busybox.net"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
-PR = "r7"
+PR = "r9"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
            file://defconfig \
index a4ee115..15497bf 100644 (file)
@@ -28,8 +28,8 @@ ARCH = "arm"
 KERNEL_IMAGETYPE = "zImage"
 CMDLINE_CONSOLE ?= "ttyS0,115200n8"
 #CMDLINE_ROOT = "root=/dev/slug rootfstype=ext2,jffs2 initrd=0x01000000,10M mem=32M@0x00000000"
-CMDLINE_ROOT = "root=/dev/mtdblock4 rootfstype=jffs2 mem=32M@0x00000000"
-#CMDLINE_ROOT = "root=/dev/ram0 rootfstype=ext2,jffs2 initrd=0x01000000,10M /init=/linuxrc mem=32M@0x00000000"
+#CMDLINE_ROOT = "root=/dev/mtdblock4 rootfstype=jffs2 mem=32M@0x00000000"
+CMDLINE_ROOT = "root=/dev/ram0 rootfstype=ext2,jffs2 initrd=0x01000000,10M init=/linuxrc mem=32M@0x00000000"
 CMDLINE = "${CMDLINE_ROOT} ${CMDLINE_CONSOLE}"
 
 do_configure_prepend() {
index 0ed74e2..9778896 100644 (file)
@@ -2,9 +2,9 @@ SECTION = "base"
 DEPENDS = ""
 PACKAGES = ""
 INHIBIT_DEFAULT_DEPS = "1"
-PR = "r15"
+PR = "r16"
 
-SRC_URI = "http://nslu.sf.net/downloads/switchbox-4.7.tar.gz"
+SRC_URI = "http://nslu.sf.net/downloads/switchbox-4.8.tar.gz"
 S = "${WORKDIR}"
 
 python () {
index 731f6de..ed5b440 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Openslug initial network config via sysconf"
 SECTION = "console/network"
 LICENSE = "GPL"
 DEPENDS = "base-files"
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "file://sysconfsetup \
           file://kern_header.c"
@@ -28,3 +28,5 @@ do_install() {
        install -m 0755 ${D}/../sysconfsetup ${D}/${sysconfdir}/init.d/
        ln  -s /etc/init.d/sysconfsetup ${D}/${sysconfdir}/rcS.d/S39sysconfsetup
 }
+
+FILES_${PN} += "/initrd"