Wed 12/06, 2006

Linux kernel 2.6.17 on USL-5P [Computer and Networking ]

先日仕込んだ Debian26 環境をいじる。kernel 2.6.14 を 2.6.17 にする。ネタ元は「LANDISKで漕ぎいでな〜♪ / Kernel 関連」で、ここにある .deb パッケージをインストールすればよい。kernel-header も入れておこう。最初から 2.6.17 にしておけば良かったのにとのツッコミは無しだ。

landisk@usl5p:~# dpkg -i kernel-headers-2.6.17-sh_landisk.0.1_sh4.deb
Selecting previously deselected package kernel-headers-2.6.17-sh.
(Reading database ... 16374 files and directories currently installed.)
Unpacking kernel-headers-2.6.17-sh (from kernel-headers-2.6.17-sh_landisk.0.1_sh4.deb) ...
Setting up kernel-headers-2.6.17-sh (landisk.0.1) ...

usl5p:~# dpkg -i kernel-image-2.6.17-sh_landisk.0.1_sh4.deb
Selecting previously deselected package kernel-image-2.6.17-sh.
(Reading database ... 25927 files and directories currently installed.)
Unpacking kernel-image-2.6.17-sh (from kernel-image-2.6.17-sh_landisk.0.1_sh4.deb) ...
Setting up kernel-image-2.6.17-sh (landisk.0.1) ...

 Hmm. There is a symbolic link /lib/modules/2.6.17-sh/build
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/2.6.17-sh/build


 Hmm. The package shipped with a symbolic link /lib/modules/2.6.17-sh/source
 However, I can not read it: No such file or directory
 Therefore, I am deleting /lib/modules/2.6.17-sh/source

I have determined no bootloader is required for your architecure.  This is
either because there is no boot loader for your architecture, or because I
did not change anything that would cause the boot loader to be run.  However,
I could be wrong, and, if that is the case, I would appreciate it if you would
please report a bug against the kernel-package package.

Done.

usl5p:~#

何やら言って来るが前半は気にしない。/dev/hda3 を rootfs とする debian26 環境で作業をしている場合、このままでは新しいカーネルでブートできない。また、パネルスイッチによるブートセレクタでの切替えを可能にするため、/boot/vmlinuz-2.6.17-sh を /dev/hda1 の boot ディレクトリ以下にコピーし、lilo.conf の起動ラベル3を変更してから、lilo を再インストールする。

landisk@usl5p:~# cat /etc/lilo.conf
linear
boot=/dev/hda
disk=/dev/hda
bios=0x80
timeout=50
install=/boot/boot.b-selk
default=USL-5P
image=/boot/zImage
        label=USL-5P
        root=/dev/hda1
        read-only
        append="mem=64M console=ttySC1,9600 root=/dev/hda1"

image=/boot/vmlinuz-2.6.14-sh
        label=debian26-14
        root=/dev/hda3
        read-only
        append="mem=64M console=ttySC1,9600 root=/dev/hda3"

image=/boot/vmlinuz-2.6.17-sh
        label=debian26-17
        root=/dev/hda3
        read-only
        append="mem=64M console=ttySC1,9600 root=/dev/hda3"

landisk@usl5p:~# lilo -C /etc/lilo.conf

ブートラベルの三番目が 2.6.17 だから、USP-5P の「取り外し」ボタンを押しながら電源を投入する。念のために 2.6.14 も残している。

usl-5p:~# dmesg
Linux version 2.6.17-sh (root@landisk0) (gcc version 3.4.5 20050821 (prerelease) (Debian 3.4.4-8)) #1 Thu Jul 13 22:49:53 JST 2006
I-O DATA DEVICE, INC. "LANDISK Series" support.
On node 0 totalpages: 16384
  DMA zone: 16384 pages, LIFO batch:3
Built 1 zonelists
Kernel command line: ro root=303 mem=64M console=ttySC1,9600 root=/dev/hda3
Setting GDB trap vector to 0x80000100
PID hash table entries: 512 (order: 9, 2048 bytes)
Interval = 83333
Using tmu for system timer
Console: colour dummy device 80x25
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 62464k/65536k available (1925k kernel code, 3044k reserved, 373k data, 68k init)
PVR=04050005 CVR=20480000 PRR=00000113
I-cache : n_ways=2 n_sets=256 way_incr=8192
I-cache : entry_mask=0x00001fe0 alias_mask=0x00001000 n_aliases=2
D-cache : n_ways=2 n_sets=512 way_incr=16384
D-cache : entry_mask=0x00003fe0 alias_mask=0x00003000 n_aliases=4
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
CPU: SH7751R
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
Autoconfig PCI channel 0x8c207f18
Scanning bus 00, I/O 0x00004000:0x00044000, Mem 0xfd000000:0xfe000000
00:00.0 Class 0200: 10ec:8139 (rev 20)
        I/O at 0x00004000 [size=0x100]
        Mem at 0xfd000000 [size=0x100]
00:02.0 Class 0c03: 1033:0035 (rev 43)
        Mem at 0xfd001000 [size=0x1000]
00:02.1 Class 0c03: 1033:0035 (rev 43)
        Mem at 0xfd002000 [size=0x1000]
00:02.2 Class 0c03: 1033:00e0 (rev 04)
        Mem at 0xfd003000 [size=0x100]
PCI: Using configuration type 1
DMA: Registering DMA API.
DMA: Registering sh_dmac handler (4 channels).
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
Allocate Area5/6 success.
LANDISK and USL-5P Button, LED and GIO driver initialized
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
RICHO RS5C313 Real Time Clock Driver v1.12
SuperH SCI(F) driver initialized
ttySC0 at MMIO 0xffe00000 (irq = 25) is a sci
ttySC1 at MMIO 0xffe80000 (irq = 43) is a scif
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
eth0: RTL-8139C+ at 0xfd000000, 00:a0:b0:6c:d4:ae, IRQ 5
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide: SuperH generic IDE interface
ide-sh: Attempting to register ide2 when only 1 interfaces are available.
Probing IDE interface ide0...
hda: IBM-DSCM-11000, CFA DISK drive
Probing IDE interface ide1...
ide0 at 0x1f0-0x1f7,0x3f6 on irq 10
hda: max request size: 128KiB
hda: 2104704 sectors (1077 MB) w/60KiB Cache, CHS=2088/16/63
 hda: hda1 hda2 hda3
QLogic Fibre Channel HBA Driver
ehci_hcd 0000:00:02.2: EHCI Host Controller
ehci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:02.2: irq 5, io mem 0xfd003000
ehci_hcd 0000:00:02.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 5 ports detected
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd 0000:00:02.0: OHCI Host Controller
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:02.0: irq 7, io mem 0xfd001000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
ohci_hcd 0000:00:02.1: OHCI Host Controller
ohci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 3
ohci_hcd 0000:00:02.1: irq 8, io mem 0xfd002000
usb 1-2: new high speed USB device using ehci_hcd and address 2
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
usb 1-2: configuration #1 chosen from 1 choice
mice: PS/2 mouse device common for all mice
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
IP-Config: Incomplete network configuration information.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 68k freed
Adding 98776k swap on /dev/hda2.  Priority:-1 extents:1 across:98776k
EXT3 FS on hda3, internal journal
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
  Vendor: IBM-DBCA  Model: -204860           Rev: 0811
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 8007552 512-byte hdwr sectors (4100 MB)
sda: test WP failed, assume Write Enabled
sda: assuming drive cache: write through
SCSI device sda: 8007552 512-byte hdwr sectors (4100 MB)
sda: test WP failed, assume Write Enabled
sda: assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: Attached scsi disk sda
usb-storage: device scan complete
usl5p:~#

という風にめでたく更新成功。順番は逆だが、開発環境をインストールしてカーネルのセルフビルドにもトライする。例によって「LANDISKで漕ぎいでな〜♪ / 開発環境 (debian26版)」に書かれている通りにすれば良い。USL-5P 本体で差し替えた 1G のマイクロドライブではカーネルのソースコードを展開して build するには容量が不足するから、外付の USB ディスクを使う。ディスクは USL-5P オリジナルシステムで起動して接続し専用形式でフォーマットしておけば debian26 環境でも ext2 形式でマウントできる。デバイス名は dmesg コマンドで確認。複数つないだ場合は接続順に sda1、sdb1 となるようだ。で、現在 make 中。さすがに時間がかかるが、なんとか出来上がり。

Posted by masato at 09:26 PM
このエントリーのトラックバックURL: http://bird.dip.jp/cgi-bin/mt/mt-tb.cgi/1257
コメントする

おそらく携帯電話等からは投稿できません。日本語文字列を含まないコメントやトラックバック、および当サイトへの言及を含まないトラックバックは御遠慮いただいております。また、90日以上経過した記事へのコメントはできません。










名前、アドレスを登録しますか?