[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Seeking I2C Driver for MPC824x (kurobox/HG)



かわうちと申します。現在、玄箱/HGにNetBSD/sandpointを移植しています。

だいたい動いたのですが、MPC824x用のI2Cドライバで困っています。
現在はモトローラのDINK32のサンプルコードにラッピングして動かしているの
ですが、どこかに(ちゃんとした;-)ドライバは無いでしょうか。
情報をお持ちの方が居られましたらよろしくお願いします。

# 自前で途中まで書いたのですが、どうもうまく動かないのです...

以下、ちょっと長いですが、現時点のブートメッセージを付けます。
------------------------------------------------------------------------
# insmod nbloader.o kernel=netbsd.bin
NetBSD loader module loaded
kernel=netbsd.bin
cmdline=-s
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.0_STABLE (KUROBOX_HG) #8: Sun Aug  7 23:00:37 JST 2005
	kawauchi@KURO-BOX:/sys/arch/sandpoint/compile/KUROBOX_HG
total memory = 128 MB
avail memory = 120 MB
mainbus0 (root)
cpu0 at mainbus0: 8245 (Revision 0.4), ID 0 (primary)
cpu0: HID0 90c000<DOZE,DPM,ICE,DCE>
eumb0 at mainbus0
ociic0 at eumb0 addr 0xfc003000 irq 5: On-Chip I2C controller
iic0 at ociic0: I2C bus
rsrtc0 at iic0 addr 0x32: Ricoh RS5C372 Real-time Clock
com0 at eumb0 addr 0xfc004600 irq 14: ns16550a, working fifo
com0: console
com1 at eumb0 addr 0xfc004500 irq 13: ns16550a, working fifo
pci0 at mainbus0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1057 product 0x0006 (rev. 0x14)
re0 at pci0 dev 11 function 0: RealTek 8169S Single-chip Gigabit Ethernet
ukphy0 at re0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00e04c, model 0x0011, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT,
1000baseT-FDX, auto
re0: interrupting at irq 0
cmdide0 at pci0 dev 12 function 0
cmdide0: Silicon Image 0680 (rev. 0x02)
cmdide0: bus-master DMA support present
cmdide0: primary channel wired to native-PCI mode
cmdide0: using irq 1 for native-PCI interrupt
atabus0 at cmdide0 channel 0
cmdide0: secondary channel wired to native-PCI mode
atabus1 at cmdide0 channel 1
ohci0 at pci0 dev 14 function 0: vendor 0x1033 product 0x0035 (rev. 0x43)
ohci0: interrupting at irq 3
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 14 function 1: vendor 0x1033 product 0x0035 (rev. 0x43)
ohci1: interrupting at irq 3
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 14 function 2: vendor 0x1033 product 0x00e0 (rev. 0x04)
ehci0: interrupting at irq 3
ehci0: EHCI version 1.0
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
biomask a netmask b ttymask b
umass0 at uhub2 port 1 configuration 1 interface 0
umass0: SanDisk Corporation Cruzer Mini, rev 2.00/0.10, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <SanDisk, Cruzer Mini, 0.1> disk removable
sd0: 244 MB, 979 cyl, 16 head, 32 sec, 512 bytes/sect x 501759 sectors
wd0 at atabus0 drive 0: <HDS722525VLAT80>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(cmdide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using
DMA data transfers)
boot device: <unknown>
root device: sd0
dump device (default sd0b): none
file system (default generic):
root on sd0a
root file system type: ffs
init path (default /sbin/init):
init: trying /sbin/init
Mon Aug  8 00:27:26 JST 2005
Checking for botched superblock upgrades: done.
Starting file system checks:
/dev/rsd0a: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: KURO-BOX
Configuring network interfaces: re0.
Adding interface aliases:
Building databases...
Starting syslogd.
Mounting all filesystems...
Clearing /tmp.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Starting local daemons:.
Updating motd.
Starting sshd.
Starting inetd.
Starting cron.
Mon Aug  8 00:27:45 JST 2005

NetBSD/sandpoint (KURO-BOX) (console)

login:

--
Eiji Kawauchi