*libata試行メモ [#k0fffe1b]
landisk、usl-5p共にとりあえず動きました。。~
以下そのメモです。

-linux-2.6.21-rc2の差分パッチ -- &ref(linux-2.6.21-rc2-landisk.patch);~
--主要変更点
---arch/sh/boards/landisk/Makefile
---arch/sh/boards/landisk/irq2.c
---arch/sh/boards/landisk/landisk_drv.c
---arch/sh/boards/landisk/psw.c
---arch/sh/boards/landisk/setup2.c
---arch/sh/configs/landisk_defconfig-ata
---drivers/rtc/rtc-rs5c313.c
~
-kernelバイナリ/モジュール -- LANDISK & USL-5P 両対応
-- &ref(zImage-2.6.21-rc2-landisk.tgz);~
-- &ref(lib-2.6.21-rc2-landisk.tgz);~
-landisk-tools 
--btnctrl3 … push-switchインタフェース対応
--&ref(landisk-tools-20070307.tgz);~
-.config 
--&ref(landisk_defconfig-ata.txt);
-kexecを使ったブートの例~
#pre{{
# kexec --append="mem=64M console=ttySC1,9600 &color(red){root=/dev/sda3};" zImage-2.6.21-rc4-landisk
}}
-libataを使ってみての注意点等
--従来/dev/hda[123]で参照していた箇所が全て/dev/sda[123]へ変わります。/etc/fstab、/etc/lilo.conf 等がその該当箇所です。
--USBストレージのデバイスの割り当てが /dev/sda -> /dev/sdb 等へ変わってしまうかもしれません。
~
**dmesg [#p7fb5a72]
-dmesg -- LANDISK HDL-160U~
#pre{{
Linux version 2.6.21-rc2-landisk (root@landisk) (gcc version 3.4.5 20050821 (prerelease) (Debian 3.4.4-8)) #1 Tue Mar 6 21:07:03 JST 2007
I-O DATA DEVICE, INC. "LANDISK Series" support.
On node 0 totalpages: 16384
  Normal zone: 128 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 16256 pages, LIFO batch:3
Built 1 zonelists.  Total pages: 16256
Kernel command line: ro root=804 mem=64M console=ttySC1,9600 root=/dev/sda4
Setting GDB trap vector to 0x80000100
PID hash table entries: 256 (order: 8, 1024 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: 62500k/65536k available (2072k kernel code, 2972k reserved, 164k data, 64k 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
libata version 2.20 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Autoconfig PCI channel 0x8c229dcc
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:01.0 Class 0180: 1191:0009 (rev 06)
        I/O at 0x00004100 [size=0x8]
        I/O at 0x00004108 [size=0x4]
        I/O at 0x00004110 [size=0x8]
        I/O at 0x00004118 [size=0x4]
        I/O at 0x00004120 [size=0x10]
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 (8 channels).
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
Allocate Area5 success.
LANDISK and USL-5P LED and GIO driver initialized
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
SuperH SCI(F) driver initialized
sh-sci: ttySC0 at MMIO 0xffe00000 (irq = 25) is a sci
sh-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.3 (Mar 22, 2004)
eth0: RTL-8139C+ at 0xfd000000, xx:xx:xx:xx:xx:xx, IRQ 5
pata_artop 0000:00:01.0: version 0.4.2
ata1: PATA max UDMA/133 cmd 0xfe244100 ctl 0xfe24410a bmdma 0xfe244120 irq 6
ata2: PATA max UDMA/133 cmd 0xfe244110 ctl 0xfe24411a bmdma 0xfe244128 irq 6
scsi0 : pata_artop
ata1.00: ATA-7: SAMSUNG SV1604N, TR100-23, max UDMA/133
ata1.00: 312581808 sectors, multi 0: LBA48 
ata1.00: configured for UDMA/133
scsi1 : pata_artop
ATA: abnormal status 0x7F on port 0xfe244117
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SV1604N  TR10 PQ: 0 ANSI: 5
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
ata3: PATA max PIO0 cmd 0xc0100040 ctl 0xc010002c bmdma 0x00000000 irq 10
scsi2 : pata_platform
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: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
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 usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
RICHO RS5C313 Real Time Clock Driver v1.20
rtc-rs5c313 rtc-rs5c313.0: rtc core: registered rs5c313 as rtc0
push-switch: version 0.1.1 loaded
heartbeat: version 0.1.0 loaded
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-rs5c313 rtc-rs5c313.0: setting the system clock to 2007-03-06 13:32:55 (1173187975)
ReiserFS: sda4: found reiserfs format "3.6" with standard journal
ReiserFS: sda4: using ordered data mode
ReiserFS: sda4: journal params: device sda4, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: sda4: checking transaction log (sda4)
ReiserFS: sda4: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 64k freed
eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
}}
-dmesg -- USL-5P
#pre{{
…省略…
ata1: PATA max PIO0 cmd 0xc0100040 ctl 0xc010002c bmdma 0x00000000 irq 10
scsi0 : pata_platform
ata1.00: CFA: HMS360402D5CF00, DNBOCA2A, max UDMA/33
ata1.00: 3999744 sectors, multi 0: LBA
ata1.00: configured for PIO
scsi 0:0:0:0: Direct-Access     ATA      HMS360402D5CF00  DNBO PQ: 0 ANSI: 5
SCSI device sda: 3999744 512-byte hdwr sectors (2048 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: disabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sda: 3999744 512-byte hdwr sectors (2048 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi removable disk sda
…省略…
}}

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS