CONFIG_NLS_CODEPAGE_437=y
CONFIG_NLS_CODEPAGE_737=m
# CONFIG_NLS_CODEPAGE_775 is not set
-CONFIG_NLS_CODEPAGE_850=m
+CONFIG_NLS_CODEPAGE_850=y
CONFIG_NLS_CODEPAGE_852=m
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
CONFIG_NLS_CODEPAGE_936=m
CONFIG_NLS_CODEPAGE_950=m
CONFIG_NLS_CODEPAGE_932=m
-# CONFIG_NLS_CODEPAGE_949 is not set
+CONFIG_NLS_CODEPAGE_949=m
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
DESCRIPTION = "Unslung kernel for the Linksys NSLU2 device"
MAINTAINER = "NSLU2 Linux <www.nlsu2-linux.org>"
-PR = "r10"
+PR = "r11"
KERNEL_SUFFIX = "unslung"
LICENSE = MIT
-PR = "r13"
+PR = "r14"
IMAGE_BASENAME = "unslung"
# Strip symbols and fix permissions on the libgcc_s.so.1 library
${STRIP} ${IMAGE_ROOTFS}/lib/libgcc_s.so.1
chmod ugo+x ${IMAGE_ROOTFS}/lib/libgcc_s.so.1
-
- # Remove some of the Samba codepages to make space
- # 437 (USA) - keep
- # 737 (Greek)
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/codepage.737
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/unicode_map.737
- # 850 (Latin1) - keep
- # 852 (Latin2)
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/codepage.852
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/unicode_map.852
- # 861 (Iceland)
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/codepage.861
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/unicode_map.861
- # 866 (Russian)
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/codepage.866
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/unicode_map.866
- # 932 (Japanese Shift-JIS)
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/codepage.932
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/unicode_map.932
- # 936 (Simplified Chinese)
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/codepage.936
- # 949 (Korean)
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/codepage.949
- # 950 (Chinese BIG-5)
- rm -f ${IMAGE_ROOTFS}/etc/samba/codepages/codepage.950
- # ISO8859-1 (Latin 1) - keep
}
python () {
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 - )
}
--- /dev/null
+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")
+}
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).
---- 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
--- /dev/null
+--- 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
+++ /dev/null
-#!/bin/sh
-
-/sbin/devio ">>/dev/mtdblock5" "fb#255" 2>/dev/null
-/usr/sbin/DO_Reboot 2>/dev/null
<meta HTTP-EQUIV="Expires" CONTENT="Mon, 06 Jan 1990 00:00:01 GMT">
<script language="JavaScript" type="text/javascript" src="../stdlib.js"></script>
<script language="JavaScript" type="text/javascript" src="../message.js"></script>
-<script language="JavaScript" type="text/javascript">
-<!-- Start Script
-
-function checkUpgrade()
-{
- var cf=document.upgrade;
-
- if(!confirm("Your NSLU2 will now enter RedBoot Upgrade Mode\n(Ready/Status LED will be flashing red and green).\nYou will require either the Linux UpSlug tool or the\nWindows SerComm Upgrade tool to upload firmware.\nNote that you will not be able to access your NSLU2\nuntil you have successfully uploaded new firmware.\nClick OK to continue, Cancel to abort."))
- return;
- cf.submit();
- return;
-}
-
-// end script -->
-</script>
</head>
<body bgcolor="white" onLoad="showMsg()" marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
<tr>
<td colspan="3" bgcolor="#e7e7e7" height="6"><img src="TRANSPAR.GIF" width="1" height="6" alt="" border="0"></td>
</tr>
-
-
<tr>
<th width="165" height="24">Current Firmware </th>
<td width="409"><img src="TRANSPAR.GIF" width="409" height="6" alt="" border="0"></td>
<td width="409"><div class="std"><table border=0 cellspacing=0 cellpadding=4>
<tr>
<td nowrap>Current Firmware Version:</td>
- <td nowrap>@ds_sw_version# </td></tr>
- <tr><td>
- <div align="left"><a href="http://www.linksys.com" target="new_win"><img src="button_checkupdate.jpg" width="107" height="20" alt="" border="0"></a></div>
- </td>
+ <td nowrap>@ds_sw_version# </td>
</tr>
</table></div> </td>
<td width="176" bgcolor="#6666cc"><img border="0" src="../UI_05.gif" height="80" width="15"></td>
</tr>
+<tr>
+ <th width="165" height="24">Upgrade </th>
+ <td width="409"><img src="TRANSPAR.GIF" width="409" height="6" alt="" border="0"></td>
+ <td width="176" bgcolor="#6666cc"><img border="0" src="../UI_05.gif" height="24" width="15"></td>
+</tr>
+<tr>
+ <td bgcolor="#e7e7e7" align="right"><img border="0" src="../UI_04.gif" width="8" hspace="0" vspace="0" height="120"></td>
+ <td width="409"><div class="std"><table border=0 cellspacing=0 cellpadding=4>
+ <tr>
+ </tr>
+ <tr>
+<td colspan="2" align="left" class="smsg">
+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.
+</td>
+ </tr>
+ </table></div> </td>
+ <td width="176" bgcolor="#6666cc"><img border="0" src="../UI_05.gif" height="120" width="15"></td>
+</tr>
+
<tr>
<td bgcolor="#e7e7e7" height="30" align="right"><img border="0" src="../UI_04.gif" width="8" hspace="0" vspace="0" height="30"></td>
<td height="30"> </td>
<tr>
<td bgcolor="black" height="34"> </td>
- <td bgcolor="#6666cc" align="right" height="33" valign="middle"><a class="textbutton" href="javascript:checkUpgrade();" style="{padding:3px}">
- Enter Upgrade Mode </a> <a class="textbutton" href="javascript:openHelpWin('help/util_upg.htm')" style="{padding:3px}">
- Help </a> </td>
+ <td bgcolor="#6666cc" align="right" height="33" valign="middle">
+ </td>
</tr>
-
</table>
</div>
<input type="Hidden" name="message" value="@message#">
<input type="Hidden" name="todo" value="@todo#">
<input type="Hidden" name="finish" value="@finish#">
</form>
-
</body>
-
</html>
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 \
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 \
"
install -m 644 ${WORKDIR}/telnet.htm ${S}/home/httpd/html/Management/telnet.htm
sed -i -e 's/@version#</@version#-uNSLUng-'${DISTRO_VERSION}'</' ${S}/home/httpd/html/home.htm
+ install -m 644 ${WORKDIR}/upgrade.htm ${S}/home/httpd/html/Management/upgrade.htm
sed -i -e s/@ds_sw_version#/@ds_sw_version#-uNSLUng-${DISTRO_VERSION}/ \
${S}/home/httpd/html/Management/upgrade.htm
# Remove the libraries, because they are in nslu2-linksys-libs now
rm -rf ${S}/lib
+
+ # Remove some unnecessary web stuff to free space
+ rm -f ${S}/home/httpd/html/Management/upgrade.cgi
+ rm -f ${S}/home/httpd/html/Management/upgrade_ui.htm
+ rm -f ${S}/home/httpd/html/Management/upgrade_ui.cgi
+
+ # Remove some of the Samba codepages to make space
+ # These will have to be separately packaged, like the libraries...
+ # 437 (USA) - keep
+ # 737 (Greek)
+ rm -f ${S}/etc/samba/codepages/codepage.737
+ rm -f ${S}/etc/samba/codepages/unicode_map.737
+ # 850 (Latin1) - keep
+ # 852 (Latin2)
+ rm -f ${S}/etc/samba/codepages/codepage.852
+ rm -f ${S}/etc/samba/codepages/unicode_map.852
+ # 861 (Iceland)
+ rm -f ${S}/etc/samba/codepages/codepage.861
+ rm -f ${S}/etc/samba/codepages/unicode_map.861
+ # 866 (Russian)
+ rm -f ${S}/etc/samba/codepages/codepage.866
+ rm -f ${S}/etc/samba/codepages/unicode_map.866
+ # 932 (Japanese Shift-JIS)
+ rm -f ${S}/etc/samba/codepages/codepage.932
+ rm -f ${S}/etc/samba/codepages/unicode_map.932
+ # 936 (Simplified Chinese)
+ rm -f ${S}/etc/samba/codepages/codepage.936
+ # 949 (Korean)
+ rm -f ${S}/etc/samba/codepages/codepage.949
+ # 950 (Chinese BIG-5)
+ rm -f ${S}/etc/samba/codepages/codepage.950
+ # ISO8859-1 (Latin 1) - keep
}
do_install () {