カーネル 2.6.32.11 のインストール

SheevaPlug

最新のカーネル 2.6.32.11 をインストールしたら、 Buffalo WLI-UC-GNP を認識しないだろうか????しないだろうな。。。

インストーラの取得

http://sheeva.with-linux.com/sheeva/ から README-2.6.32.11 をいただく
root@debian:~# wget http://sheeva.with-linux.com/sheeva/README-2.6.32.11
--2010-04-16 21:38:36--  http://sheeva.with-linux.com/sheeva/README-2.6.32.11
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3766 (3.7K) [text/plain]
Saving to: `README-2.6.32.11'

100%[======================================>] 3,766       --.-K/s   in 0.04s

2010-04-16 21:38:36 (82.7 KB/s) - `README-2.6.32.11' saved [3766/3766]

root@debian:~#

インストーラの実行

root@debian:~# wget http://sheeva.with-linux.com/sheeva/README-2.6.32.11
--2010-04-16 21:38:36--  http://sheeva.with-linux.com/sheeva/README-2.6.32.11
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3766 (3.7K) [text/plain]
Saving to: `README-2.6.32.11'

100%[======================================>] 3,766       --.-K/s   in 0.04s

2010-04-16 21:38:36 (82.7 KB/s) - `README-2.6.32.11' saved [3766/3766]

root@debian:~# bash -x README-2.6.32.11 --nandkernel
+ set -e
+ set -u
+ KVer=2.6.32.11
+ [[ 1 < 1 ]]
+ [[ --nandkernel == \-\-\n\a\n\d\k\e\r\n\e\l ]]
+ Download
+ echo 'Downloading files'
Downloading files
+ local f=
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.32.11-Modules.tar.gz ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-Modules.tar.gz
--2010-04-16 21:39:57--  http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-Modules.tar.gz
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4259210 (4.1M) [application/x-tar]
Saving to: `sheeva-2.6.32.11-Modules.tar.gz'

100%[======================================>] 4,259,210   49.9K/s   in 79s

2010-04-16 21:41:17 (52.4 KB/s) - `sheeva-2.6.32.11-Modules.tar.gz' saved [4259210/4259210]

+ [[ ! -f sheeva-2.6.32.11-Modules.tar.gz ]]
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.32.11-Modules.tar.gz.md5 ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-Modules.tar.gz.md5
--2010-04-16 21:41:17--  http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-Modules.tar.gz.md5
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66 [text/plain]
Saving to: `sheeva-2.6.32.11-Modules.tar.gz.md5'

100%[======================================>] 66          --.-K/s   in 0s

2010-04-16 21:41:17 (1.46 MB/s) - `sheeva-2.6.32.11-Modules.tar.gz.md5' saved [66/66]

+ [[ ! -f sheeva-2.6.32.11-Modules.tar.gz.md5 ]]
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.32.11-uImage ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-uImage
--2010-04-16 21:41:17--  http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-uImage
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2676940 (2.6M) [application/octet-stream]
Saving to: `sheeva-2.6.32.11-uImage'

100%[======================================>] 2,676,940   52.6K/s   in 50s

2010-04-16 21:42:07 (52.5 KB/s) - `sheeva-2.6.32.11-uImage' saved [2676940/2676940]

+ [[ ! -f sheeva-2.6.32.11-uImage ]]
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.32.11-uImage.md5 ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-uImage.md5
--2010-04-16 21:42:07--  http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-uImage.md5
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58 [text/plain]
Saving to: `sheeva-2.6.32.11-uImage.md5'

100%[======================================>] 58          --.-K/s   in 0s

2010-04-16 21:42:08 (1.30 MB/s) - `sheeva-2.6.32.11-uImage.md5' saved [58/58]

+ [[ ! -f sheeva-2.6.32.11-uImage.md5 ]]
+ for f in Modules.tar.gz Modules.tar.gz.md5 uImage uImage.md5 System.map
+ [[ ! -f sheeva-2.6.32.11-System.map ]]
++ which wget
+ [[ -z /usr/bin/wget ]]
+ wget -c http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-System.map
--2010-04-16 21:42:08--  http://sheeva.with-linux.com/sheeva/2.6.32.11/sheeva-2.6.32.11-System.map
Resolving sheeva.with-linux.com... 216.146.103.100
Connecting to sheeva.with-linux.com|216.146.103.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1028193 (1004K) [text/plain]
Saving to: `sheeva-2.6.32.11-System.map'

100%[======================================>] 1,028,193   52.7K/s   in 19s

2010-04-16 21:42:27 (52.2 KB/s) - `sheeva-2.6.32.11-System.map' saved [1028193/1028193]

+ [[ ! -f sheeva-2.6.32.11-System.map ]]
+ Md5Compare sheeva-2.6.32.11-Modules.tar.gz sheeva-2.6.32.11-Modules.tar.gz.md5
++ cut '-d ' -f1
++ cat sheeva-2.6.32.11-Modules.tar.gz.md5
++ cut '-d ' -f1
++ md5sum sheeva-2.6.32.11-Modules.tar.gz
+ [[ 6c60f4e904aab0f59ef4ba458dbfd00f != 6c60f4e904aab0f59ef4ba458dbfd00f ]]
+ Md5Compare sheeva-2.6.32.11-uImage sheeva-2.6.32.11-uImage.md5
++ cut '-d ' -f1
++ cat sheeva-2.6.32.11-uImage.md5
++ cut '-d ' -f1
++ md5sum sheeva-2.6.32.11-uImage
+ [[ ca5c2e9b9414bc7c6ec329eeefe1db18 != ca5c2e9b9414bc7c6ec329eeefe1db18 ]]
+ CheckSize
+ local uImageFile=sheeva-2.6.32.11-uImage
++ cut '-d ' -f1
++ sed s#:##
++ grep uImage /proc/mtd
+ local mtd=mtd0
++ cut '-d ' -f2
++ grep uImage /proc/mtd
+ local mtdHexSize=00400000
+ local mtdSize=
+ let mtdSize=0x00400000
++ stat -c%s sheeva-2.6.32.11-uImage
+ local uImageSize=2676940
+ ((  uImageSize > mtdSize  ))
+ ExtractModules
+ echo 'Extracting modules'
Extracting modules
+ tar x -C / --overwrite -zf sheeva-2.6.32.11-Modules.tar.gz
+ [[ -d /boot ]]
+ cp sheeva-2.6.32.11-System.map /boot/
+ depmod -eF /boot/sheeva-2.6.32.11-System.map 2.6.32.11
+ NandKernel
+ echo 'Flashing kernel to NAND'
Flashing kernel to NAND
++ cut '-d ' -f1
++ sed s#:##
++ grep uImage /proc/mtd
+ local Mtd=mtd0
+ flash_eraseall -j /dev/mtd0
Erasing 128 Kibyte @ 3e0000 -- 96 % complete. Cleanmarker written at 3e0000.
+ nandwrite -pm /dev/mtd0 sheeva-2.6.32.11-uImage
Writing data to block 0
Writing data to block 20000
Writing data to block 40000
Writing data to block 60000
Writing data to block 80000
Writing data to block a0000
Writing data to block c0000
Writing data to block e0000
Writing data to block 100000
Writing data to block 120000
Writing data to block 140000
Writing data to block 160000
Writing data to block 180000
Writing data to block 1a0000
Writing data to block 1c0000
Writing data to block 1e0000
Writing data to block 200000
Writing data to block 220000
Writing data to block 240000
Writing data to block 260000
Writing data to block 280000
root@debian:~#

再起動

root@debian:~# shutdown -r now
	:
	:

Buffalo WLI-UC-GNP の認識

root@debian:~# tail -f /var/log/messages
	:
	:
Apr 16 21:46:47 debian kernel: usb 1-1: new high speed USB device using orion-ehci and address 2
Apr 16 21:46:47 debian kernel: usb 1-1: configuration #1 chosen from 1 choice

あかん


←(前のページ)
Buffalo WLI-UC-GNP 入手
当月のハックの記録
SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ
(次のページ)→
Buffalo WLI-UC-GNP 用ドライバのコンパイル

Copyright (C) 2003-2010 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市