カーネルソースのマージ


たつやさんのソースをベースにして 2.4.20 までパッチをあててきたカーネルソースに HD-LAN V1 固有のコードをマージして、 一本のソースツリーで、 LinkStation シリーズ、玄箱に対応できるようにした。
(といっても、確認しているのは、HD-LAN V1 と玄箱だけだが)

HD-LAN V1

******* Product Information *******
----------------------------------
Product Name: HD-LAN
          VER: 1.23
         Date: 2004/5/10 11:24:1
----------------------------------
Firmware check:done.

>>root=/dev/hda12
second kernel

******* Product Information *******
----------------------------------
Product Name: KURO-BOX(nishiki)
          VER: 1.02
         Date: 2004/9/26 17:44:26
----------------------------------
Firmware check:Warning:invalid data size
done.

>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.20_kuro-box (yasunari@seco) (gcc version 2.95.3 20010315 (release/franzo/20010312)) #5 Sun Sep 26 17:43:00
 JST 2004
BUFFALO Network Attached Storage Series
(C) 2002-2004 BUFFALO INC.
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 139 IRQ sources) at 80040000
decrementer frequency = 24.589372 MHz 
Calibrating delay loop... 131.07 BogoMIPS
Memory: 62980k available (1104k kernel code, 452k data, 228k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
BUFFALO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x80004600 (irq = 138) is a 16550A
ttyS01 at 0x80004500 (irq = 137) is a 16550A
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
    ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: WDC WD1200AB-00CBA1, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
blk: queue c01ba248, I/O limit 4095Mb (mask 0xffffffff)
hda: 234441648 sectors (120034 MB) w/2048KiB Cache, CHS=232581/16/63, UDMA(100)
Partition check:
 hda: hda1 hda2
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
FLASHDISK:Initialized [TOSHIBA VT641FT] 
Linux Tulip driver version 0.9.15-pre12 (Aug 9, 2002)
tulip0:  MII transceiver #1 config 3100 status 7849 advertising 05e1.
eth0: ADMtek Comet rev 17 at 0xbfff00, 00:07:40:60:xx:yy, IRQ 16.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 228k init
modprobe: modprobe: Can't locate module char-major-4
INIT: version 2.78 booting
			Welcome to Vine Linux
		Press 'I' to enter interactive startup.
Mounting proc filesystem:  [  OK  ]
Configuring kernel parameters:  [  OK  ]
hwclock: ioctl() to /dev/rtc to turn on update interrupts failed unexpectedly, errno=515: Unknown error 515.
Setting clock  (localtime): Sun Sep 26 18:36:17 JST 2004 [  OK  ]
Activating swap partitions:  [  OK  ]
Setting hostname seco:  [  OK  ]
Checking root filesystem
/dev/hda1: clean, 98339/14630912 files, 2983256/29239662 blocks
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/hda1 
[  OK  ]
Remounting root filesystem in read-write mode:  [  OK  ]
Finding module dependencies:  [  OK  ]
Checking filesystems
Checking all file systems.
[  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling local filesystem quotas:  [  OK  ]
Enabling swap space:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Setting network parameters:  [  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:  [  OK  ]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Initializing random number generator:  [  OK  ]
Mounting other filesystems:  [  OK  ]
Start services: ppc_uartd
Starting INET services: [  OK  ]
Starting keytable:  [  OK  ]
Starting crond: [  OK  ]
Starting SMB services: [  OK  ]
Starting NMB services: [  OK  ]
Starting atd: [  OK  ]


Vine Linux 2.6 (La Fleur de Bouard)
Kernel 2.4.20_kuro-box on a ppc

seco login: 
firminfo.txt や .hhl_target_lspname は玄箱のをそのまま使っているが、
FLASHDISK:Initialized [TOSHIBA VT641FT] 
あたりで HD-LAN だとわかっていただけるだろう。

玄箱


******* Product Information *******
----------------------------------
Product Name: KURO-BOX(nishiki)
          VER: 1.02
         Date: 2004/9/26 18:34:25
----------------------------------
Firmware check:Warning:invalid data size
done.

>>root=/dev/hda1
Now Loading...done.
Now Booting
Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.20_kuro-box (yasunari@hackkit) (gcc version 2.95.3 20010315 (release/franzo/20010312)) #1 Sun Sep 26 18:01
:31 JST 2004
KURO-BOX (C) 2004 KUROUTO-SHIKOU.
On node 0 totalpages: 16384
zone(0): 16384 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda1
OpenPIC Version 1.2 (1 CPUs and 139 IRQ sources) at 80040000
decrementer frequency = 24.495328 MHz 
Calibrating delay loop... 130.25 BogoMIPS
Memory: 62580k available (1448k kernel code, 664k data, 72k init, 0k highmem)
Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
Inode cache hash table entries: 4096 (order: 3, 32768 bytes)
Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
Buffer-cache hash table entries: 4096 (order: 2, 16384 bytes)
Page-cache hash table entries: 16384 (order: 4, 65536 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
VFS: Diskquotas version dquot_6.4.0 initialized
Journalled Block Device driver loaded
NTFS driver v1.1.22 [Flags: R/O]
pty: 256 Unix98 ptys configured
BUFFALO INC. RTC driver ver 1.00
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
ttyS00 at 0x80004600 (irq = 138) is a 16550A
ttyS01 at 0x80004500 (irq = 137) is a 16550A
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
CMD680: IDE controller on PCI bus 00 dev 60
CMD680: chipset revision 2
CMD680: 100% native mode on irq 17
    ide0: BM-DMA at 0xbffed0-0xbffed7, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xbffed8-0xbffedf, BIOS settings: hdc:pio, hdd:pio
hda: FUJITSU MPC3032AT, ATA DISK drive
ide0 at 0xbffef8-0xbffeff,0xbffef6 on irq 17
blk: queue c021e1e8, I/O limit 4095Mb (mask 0xffffffff)
hda: 6335280 sectors (3244 MB), CHS=6704/15/63, UDMA(33)
Partition check:
 hda: hda1 hda2 hda3
RAMDISK driver initialized: 16 RAM disks of 10000K size 1024 blocksize
Compaq SMART2 Driver (v 2.4.21)
FLASHDISK:Initialized [FUJITSU MBM29PL32TM] 
Linux Tulip driver version 0.9.15-pre12 (Aug 9, 2002)
tulip0:  MII transceiver #1 config 3100 status 7849 advertising 05e1.
eth0: ADMtek Comet rev 17 at 0xbfff00, 00:07:40:A4:xx:yy, IRQ 16.
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
hcd.c: ehci-hcd @ 00:0e.2, NEC Corporation USB 2.0
hcd.c: irq 19, pci mem c5000f00
usb.c: new USB bus registered, assigned bus number 1
hcd/ehci-hcd.c: USB 2.0 support enabled, EHCI rev 1. 0
hub.c: USB hub found
hub.c: 5 ports detected
usb-ohci.c: USB OHCI at membase 0xc5002000, IRQ 19
usb-ohci.c: usb-00:0e.0, NEC Corporation USB
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
usb-ohci.c: USB OHCI at membase 0xc5004000, IRQ 19
usb-ohci.c: usb-00:0e.1, NEC Corporation USB (#2)
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
usb.c: registered new driver usblp
printer.c: v0.11: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 4096 bind 4096)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NET4: AppleTalk 0.18a for Linux NET4.0
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 72k init
modprobe: modprobe: Can't locate module char-major-4
INIT: version 2.78 booting
			Welcome to Vine Linux
		Press 'I' to enter interactive startup.
Mounting proc filesystem:  [  OK  ]
Configuring kernel parameters:  [  OK  ]
hwclock: ioctl() to /dev/rtc to turn on update interrupts failed unexpectedly, errno=515: Unknown error 515.
Setting clock  (localtime): Sun Sep 26 20:28:49 JST 2004 [  OK  ]
Activating swap partitions:  [  OK  ]
Setting hostname hackkit:  [  OK  ]
Mounting USB filesystem:  [  OK  ]
Checking root filesystem
/dev/hda1: clean, 40306/131328 files, 178694/262144 blocks
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/hda1 
[  OK  ]
Remounting root filesystem in read-write mode:  [  OK  ]
Finding module dependencies:  [  OK  ]
Checking filesystems
Checking all file systems.
[  OK  ]
Mounting local filesystems:  [  OK  ]
Enabling local filesystem quotas:  [  OK  ]
Enabling swap space:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
Setting network parameters:  [  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0:  [  OK  ]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Initializing random number generator:  [  OK  ]
Mounting other filesystems:  [  OK  ]
Start services: ppc_uartd
Starting INET services: [  OK  ]
Starting lpd: Warning - lp: cannot open lp device '/dev/usb/lp0' - No such device
[  OK  ]
Starting keytable:  [  OK  ]
Starting crond: [  OK  ]
Starting SMB services: [  OK  ]
Starting NMB services: [  OK  ]
Starting atd: [  OK  ]


Vine Linux 2.6 (La Fleur de Bouard)
Kernel 2.4.20_kuro-box on a ppc

hackkit login: 

ハックの記録 → Vine Seed

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