From f5193e9a40465133df954d44a1a0e0c0abc36ec7 Mon Sep 17 00:00:00 2001 From: Mike Westerhof Date: Sat, 15 Apr 2006 18:04:12 +0000 Subject: Unslung: unslung-rootfs, unslung-kernel, unslung-image - rearranged NLS support, removed Linksys upgrade page --- .../nslu2-binary-only/nslu2-linksys-libs_2.3r63.bb | 2 +- .../nslu2-linksys-sambacodepages_2.3r63.bb | 29 +++++++++++++ packages/nslu2-binary-only/unslung-rootfs/NOTES | 25 +++++++++++ .../unslung-rootfs/rc.modules-diversion.patch | 12 +++--- .../unslung-rootfs/rc.modules-nls.patch | 10 +++++ .../nslu2-binary-only/unslung-rootfs/upgrade.cgi | 4 -- .../nslu2-binary-only/unslung-rootfs/upgrade.htm | 50 ++++++++++------------ .../nslu2-binary-only/unslung-rootfs_2.3r63.bb | 39 +++++++++++++++-- 8 files changed, 131 insertions(+), 40 deletions(-) create mode 100644 packages/nslu2-binary-only/nslu2-linksys-sambacodepages_2.3r63.bb create mode 100644 packages/nslu2-binary-only/unslung-rootfs/rc.modules-nls.patch delete mode 100755 packages/nslu2-binary-only/unslung-rootfs/upgrade.cgi (limited to 'packages/nslu2-binary-only') diff --git a/packages/nslu2-binary-only/nslu2-linksys-libs_2.3r63.bb b/packages/nslu2-binary-only/nslu2-linksys-libs_2.3r63.bb index 1843de069c..4424e99d19 100644 --- a/packages/nslu2-binary-only/nslu2-linksys-libs_2.3r63.bb +++ b/packages/nslu2-binary-only/nslu2-linksys-libs_2.3r63.bb @@ -9,7 +9,7 @@ SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r63-2.tar.bz2" S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r63" do_install () { - ( cd ${S} ; rm -rf bin dev etc home mnt proc sbin share tmp upload usr var ) + ( cd ${S} ; rm -rf bin dev etc home lost+found mnt proc sbin share tmp upload usr var ) ( cd ${S} ; tar cvf - . ) | ( cd ${D} ; tar xvf - ) } diff --git a/packages/nslu2-binary-only/nslu2-linksys-sambacodepages_2.3r63.bb b/packages/nslu2-binary-only/nslu2-linksys-sambacodepages_2.3r63.bb new file mode 100644 index 0000000000..4aace52412 --- /dev/null +++ b/packages/nslu2-binary-only/nslu2-linksys-sambacodepages_2.3r63.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "Linksys NSLU2 Stock Firmware Samba Code Pages." +PACKAGE_ARCH = "nslu2" +SECTION = "base" +PRIORITY = "required" +PR = "r1" + +SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r63-2.tar.bz2" + +S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r63" + +do_install () { + ( cd ${S} ; mkdir unslung-tmp ) + ( cd ${S}/etc ; tar cvf - samba/codepages ) | ( cd ${S}/unslung-tmp; tar xvf - ) + ( cd ${S} ; rm -rf bin dev etc home lib lost+found mnt proc sbin share tmp upload usr var ) + ( cd ${S} ; mv unslung-tmp etc ) + ( cd ${S}/etc/samba/codepages; rm -f codepage.437 unicode_map.437 ) + ( cd ${S}/etc/samba/codepages; rm -f codepage.850 unicode_map.850 ) + ( cd ${S}/etc/samba/codepages; rm -f unicode_map.ISO8859-1 ) + ( cd ${S} ; tar cvf - . ) | ( cd ${D} ; tar xvf - ) +} + +PACKAGES = "${PN}" +FILES_${PN} = "/etc/samba/codepages" + +python () { + # Don't build unless we're targeting an nslu2 + if bb.data.getVar("MACHINE", d, 1) != "nslu2": + raise bb.parse.SkipPackage("NSLU2 stock firmware Samba code pages only builds for the Linksys NSLU2") +} diff --git a/packages/nslu2-binary-only/unslung-rootfs/NOTES b/packages/nslu2-binary-only/unslung-rootfs/NOTES index ae9d7c607c..82d7448a80 100644 --- a/packages/nslu2-binary-only/unslung-rootfs/NOTES +++ b/packages/nslu2-binary-only/unslung-rootfs/NOTES @@ -487,3 +487,28 @@ Added original "netconsole" code as a kernel module Fixed problem with password changing from the GUI and automatic mounting of drives and flash devices in port 1. Remove unnecessary directory /lib/modules/2.4.22-xfs/pcmcia. + +6.8: + +First beta release. + +6.9: + +Modified /etc/rc.d/rc.modules to "insmod" any nls code page modules present. + +Code Page 850 is now compiled into the kernel instead of a kernel module, +and added Code Page 949 (as a module). + +Updated the upgrade.htm file to reflect redboot as the upgrade means. + +Remove the upgrade.cgi, upgrade_ui.htm, and upgrade_ui.cgi files from the +root image as they are no longer used, and we can always use free space. + +Rearranged portions of the build procedure to remove the samba code pages in +the rootfs bb, create a new package with the removed code pages in a new +nslu2-linksys-sambacodepages.bb file (to restore the code pages, use ipkg to +install package "nslu2-linksys-sambacodepages". Note that the rootfs and the +sambacodepages bb files must be kept in sync regarding the samba code pages +that are left in the image and the ones that are added to the package (and it +is also a good idea if the kernel defconfig reflects the inclusion of NLS +support for the code pages that are left in the image, of course). diff --git a/packages/nslu2-binary-only/unslung-rootfs/rc.modules-diversion.patch b/packages/nslu2-binary-only/unslung-rootfs/rc.modules-diversion.patch index fa7532401d..d1de027f9a 100644 --- a/packages/nslu2-binary-only/unslung-rootfs/rc.modules-diversion.patch +++ b/packages/nslu2-binary-only/unslung-rootfs/rc.modules-diversion.patch @@ -1,8 +1,10 @@ ---- nslu2-linksys-ramdisk-2.3r25/etc/rc.d/rc.modules.orig 2004-07-27 23:37:55.000000000 -0400 -+++ nslu2-linksys-ramdisk-2.3r25/etc/rc.d/rc.modules 2004-09-01 21:57:34.000000000 -0400 -@@ -1,2 +1,5 @@ +--- nslu2-linksys-ramdisk-2.3r63/etc/rc.d/rc.modules.orig 2006-04-14 21:00:58.000000000 -0500 ++++ nslu2-linksys-ramdisk-2.3r63/etc/rc.d/rc.modules 2006-04-14 21:05:47.000000000 -0500 +@@ -1,4 +1,7 @@ + #!/bin/sh + +if ( [ -f /unslung/rc.modules ] && . /unslung/rc.modules ) ; then return 0 ; fi + - insmod rbuttons &>/dev/null - insmod x1226-rtc &>/dev/null + insmod pbuttons 2>/dev/null + insmod rbuttons 2>/dev/null + insmod x1226-rtc 2>/dev/null diff --git a/packages/nslu2-binary-only/unslung-rootfs/rc.modules-nls.patch b/packages/nslu2-binary-only/unslung-rootfs/rc.modules-nls.patch new file mode 100644 index 0000000000..1eb342b715 --- /dev/null +++ b/packages/nslu2-binary-only/unslung-rootfs/rc.modules-nls.patch @@ -0,0 +1,10 @@ +--- nslu2-linksys-ramdisk-2.3r63/etc/rc.d/rc.modules.orig 2006-04-14 21:05:47.000000000 -0500 ++++ nslu2-linksys-ramdisk-2.3r63/etc/rc.d/rc.modules 2006-04-14 19:56:29.000000000 -0500 +@@ -6,3 +6,7 @@ + insmod rbuttons 2>/dev/null + insmod x1226-rtc 2>/dev/null + insmod ufsd 2>/dev/null ++ ++for i in /lib/modules/`/bin/uname -r`/kernel/fs/nls/nls_cp*.o ; do ++ insmod "$i" 2>/dev/null ++done diff --git a/packages/nslu2-binary-only/unslung-rootfs/upgrade.cgi b/packages/nslu2-binary-only/unslung-rootfs/upgrade.cgi deleted file mode 100755 index 0eee123550..0000000000 --- a/packages/nslu2-binary-only/unslung-rootfs/upgrade.cgi +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -/sbin/devio ">>/dev/mtdblock5" "fb#255" 2>/dev/null -/usr/sbin/DO_Reboot 2>/dev/null diff --git a/packages/nslu2-binary-only/unslung-rootfs/upgrade.htm b/packages/nslu2-binary-only/unslung-rootfs/upgrade.htm index 88644e305e..2301a89c0f 100644 --- a/packages/nslu2-binary-only/unslung-rootfs/upgrade.htm +++ b/packages/nslu2-binary-only/unslung-rootfs/upgrade.htm @@ -4,21 +4,6 @@ - @@ -81,8 +66,6 @@ function checkUpgrade() - - Current Firmware   @@ -93,15 +76,32 @@ function checkUpgrade()
- - +
Current Firmware Version:@ds_sw_version#
-
-
@ds_sw_version#
+ + Upgrade   + + + + + +
+ + + + + +
+NOTE: You cannot use this upgrade page to install new firmware on Unslung. +You must use the Redboot mechanism in order to install new firmware instead. +
+ + +   @@ -110,12 +110,10 @@ function checkUpgrade()   -   - Enter Upgrade Mode   - Help       + +     - @@ -123,7 +121,5 @@ function checkUpgrade() - - diff --git a/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb b/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb index 910ad102a9..f105e6830a 100644 --- a/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb +++ b/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb @@ -1,8 +1,8 @@ SECTION = "base" -PR = "r11" +PR = "r12" -DEPENDS = "nslu2-linksys-libs" +DEPENDS = "nslu2-linksys-libs nslu2-linksys-sambacodepages" SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r63-2.tar.bz2 \ file://README \ @@ -43,8 +43,8 @@ SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r63-2.tar.bz2 \ file://mount_usbdevfs.patch;patch=1 \ file://security-fixes.patch;patch=1 \ file://rc.sysinit-clean_var.patch;patch=1 \ + file://rc.modules-nls.patch;patch=1 \ file://upgrade.htm \ - file://upgrade.cgi \ file://telnet.htm \ file://rc.bootbin \ " @@ -66,6 +66,7 @@ do_compile () { install -m 644 ${WORKDIR}/telnet.htm ${S}/home/httpd/html/Management/telnet.htm sed -i -e 's/@version#