Title: Linux Zaurus Kernel Updating Author(s): Koshiro Mitsuya Masafumi Watari Date: 11/17/2003 ============================================================ Linux Zaurus Kernel Updating with IPv6 support ============================================================ 1. Make cross compile environment Install compiler(arm-linux-gcc), library(glibc-arm), header file(linux-headers-arm) and utilities(bin-utils-cross-arm). You can get those from the web site, "TAKARABAKO Pro, SL series realted, List of Development tools", http://developer.ezaurus.com/sl_j/tool/tools.htm#Linux . ============================================================ http://www.zaurus.com/dev/tools/downloads/tools/gcc-cross-sa1100-2.95.2-0.i386.rpm http://www.zaurus.com/dev/tools/downloads/tools/glibc-arm-2.2.2-0.i386.rpm http://www.zaurus.com/dev/tools/downloads/tools/linux-headers-arm-sa1100-2.4.6-3.i386.rpm http://www.zaurus.com/dev/tools/downloads/tools/binutils-cross-arm-2.11.2-0.i386.rpm ============================================================ [PC] $ su [PC] # rpm -i gcc-cross-sa1100-2.95.2-0.i386.rpm glibc-arm-2.2.2-0.i386.rpm linux-headers-arm-sa1100-2.4.6-3.i386.rpm ------------------------------------------------------------ Next, add the installed directory to your $PATH. [PC] $ setenv PATH /opt/Embedix/tools/bin:$PATH ============================================================ 2. Make source tree for Zaurus Download USAGI source tree, it should be kernel 2.4.18. For example, ============================================================ ftp://ftp.linux-ipv6.org/pub/usagi/snap/kit/usagi-linux24-s20020722.tar.bz2 ============================================================ Download Zaurus patch from the web site, "TAKARABAKO Pro, SL series realted, Source code download", http://more.sbc.co.jp/sl_j/source/source_dl.htm#source-C750-110JP ============================================================ http://more.sbc.co.jp/sl_j/source/c750/20030620/linux-2.4.18-rmk7-pxa3-embedix-slc750-20030620-rom1_10.bz2 ============================================================ ------------------------------------------------------------ Download ARM patch, ============================================================ ftp://ftp.arm.linux.org.uk/pub/armlinux/source/kernel-patches/v2.4/patch-2.4.18-rmk7.bz2;type=i ftp://ftp.arm.linux.org.uk/pub/linux/arm/people/nico/diff-2.4.18-rmk7-pxa3.gz;type=i ============================================================ ------------------------------------------------------------ Download a patch for usagi. ============================================================ http://developer.ezaurus.com/download/ipv6/doc/patch-usazau.txt ============================================================ ------------------------------------------------------------ Make source tree. [PC] $ tar xvfj usagi-linux24-s20020722.tar.bz2 [PC] $ bzip2 -d diff-2.4.18-rmk7-pxa3.gz [PC] $ bzip2 -d linux-2.4.18-rmk7-pxa3-embedix-slc700-slb500-20021214-rom1_00.bz2 [PC] $ gzip -d diff-2.4.18-rmk7-pxa3.gz [PC] $ cd usagi [PC] $ make TARGET=linux24 prepare [PC] $ cd kernel/linux24 [PC] $ patch -p1 < /[prefix]/patch-2.4.18-rmk7 [PC] $ patch -p1 < /[prefix]/diff-2.4.18-rmk7-pxa3 [PC] $ patch -p1 < /[prefix]/linux-2.4.18-rmk7-pxa3-embedix-slc700-slb500-20021214-rom1_00 [PC] $ patch -p1 < /[prefix]/patch-usazau.txt ============================================================ I had a error when applying patch-usazau.txt, but it's easy to apply the modification by your self ;-) ============================================================ ------------------------------------------------------------ Prepare kernel configuration file. [PC]$ cp arch/arm/def-config/husky-j .config [PC]$ make menuconfig networking option [*] The IPv6 Protocol [*] IPv6:drop packet with fake ipv4-mapped address(es) ============================================================ 3. Compile [PC] $ make dep && make zImage && make modules ============================================================ 4. Install the compiled kernel to Zaurus Copy the kernel image to SD card. [Zaurus] $ su [Zaurus] # scp USER@PC:/[prefix]/arch/arm/boot/zImage /mnt/card/zImage.bin ------------------------------------------------------------ Download data file for the updates from Sharp. Http://more.sbc.co.jp/sl_j/source/c750/kernel_update_c750c760.htm ============================================================ http://more.sbc.co.jp/sl_j/source/c760/20030620/updater.sh.c760 http://more.sbc.co.jp/sl_j/source/c750/consolescroll ============================================================ [Zaurus] # cp [prefix]/updater.sh.c760 /mnt/card/updater.sh [Zaurus] # cp [prefix]/consolescroll /mnt/card/ ------------------------------------------------------------ Update the kernel: 1. Backup 2. Turn off the C760 3. Remove a card which is not related with this install. Only install SD memory card. 4. Plug the power AC adapter. And please also charge the battery enought. 5. Change the battery exchange switch at reverse side, to the release, "解除(交換時)" side. 6. Wait 5 seconds. The battery exchange switch is changed to lock "ロック(使用時)" side, pushing the "Fn" key and the "HOME" key simultaneously. 7. Wait 1 seconds. Power on, pushing the "OK" key. 8. A maintenance menu is displayed on Zaurus, select "4. Update". It's written in Japanese like "4. アップデート". 9. Select "3. SD" and "Yes(Y)" in Japanese like "はい(Y)". 10. After writing finishes, the message of "Please reset" is displayed. ============================================================