linux 2.6.25 ds1307驱动问题

我的内核是linux 2.6.25  at91rm9200,写ds1307测试程序在linux 2.4下运行正常,在linux 2.6下运行有问题

## Booting image at 21000000 ...
   Image Name:
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    1295899 Bytes =  1.2 MB
   Load Address: 20008000
   Entry Point:  20008000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.25 ([email protected]) (gcc version 3.4.1) #160 Wed May
26 10:40:49 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0003177
Machine: Atmel AT91RM9200-DK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: root=/dev/ram rw initrd=0x21300000,8000000 ramdisk_size=200
00 console=ttyS0,115200,mem=32M
AT91: 128 gpio irqs in 4 banks
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 21928KB available (2404K code, 186K data, 108K init)
SLUB: Genslabs=12, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
NET: Registered protocol family 16
&&&&&&&&&&&&&&&&&&&&&&&&i2c1
SCSI subsystem initialized
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 7812K
NetWinder Floating Point Emulator V0.97 (double precision)
DLM (built May 12 2010 16:22:39) installed
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfffc0000 (irq = 6) is a ATMEL_SERIAL
atmel_usart.2: ttyS2 at MMIO 0xfffc4000 (irq = 7) is a ATMEL_SERIAL
brd: module loaded
---------------c2820000sw sw sw sw sw sw sw sw sw sw  170--------------
eth0: Link now 100-FullDuplex
eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (12:34:56:78:99:aa)
eth0: Davicom 9161 PHY (Copper)
Driver 'sd' needs updating - please use bus_type methods
SCSI Media Changer driver v0.25
Driver 'ch' needs updating - please use bus_type methods
physmap platform flash device: 00200000 at 10000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
NOR chip too large to fit in mapping. Attempting to cope...
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Reducing visibility of 16384KiB chip to 2048KiB
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Generic platform RAM MTD, (c) 2004 Simtec Electronics
mice: PS/2 mouse device common for all mice
at91_rtc at91_rtc: rtc core: registered at91_rtc as rtc0
AT91 Real Time Clock driver.
&&&&&&&&&&&&&&&&&&&&7ds1307_init
i2c /dev entries driver
i2c-gpio i2c-gpio: using pins 57 (SDA) and 58 (SCL)
AT91 Watchdog Timer enabled (5 seconds, nowayout)
at91_mci at91_mci: 4 wire bus mode not supported - using 1 wire
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
SCTP: Hash tables configured (established 1024 bind 2048)
RAMDISK: Compressed image found at block 0
mmc0: host does not support reading read-only switch.  Assuming write-enable.
mmc0: new SDHC card at address 1234
mmcblk0: mmc0:1234 SA04G 3864576KiB
 mmcblk0:<7>mmc0: starting CMD18 arg 00000000 flags 000000b5
 p1
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 108K
Bad inittab entry at line 6
eth0: Setting MAC address to 12:34:56:78:90:99
eth0: Link now 100-FullDuplex
/etc/rc.d/rc.sysinit: line 62: dmesg: not found
ln: /dev/tty1: File exists
[root@]$ftpget 192.168.1.102 ds1309 ds1307
ftpget: unexpected server response to RETR: 550 /ds1307:No such file or director
y.
[root@]$ftpget 192.168.1.102 ds1307 ds1309
[root@]$chmod 777 ds1307
[root@]$./ds1307
i2cdev_open
minor=0
i2c_dev=-1069294352
Start test DS1307
Do you want to Reset Time(Y/N)n
Now is =    ' 0-error-2000   0: 0: 0   error '
Now is =    ' 0-error-2000   0: 0: 0   error '
Now is =    ' 0-error-2000   0: 0: 0   error '
Now is =    ' 0-error-2000   0: 0: 0   error '
Now is =    ' 0-error-2000   0: 0: 0   error '
Now is =    ' 0-error-2000   0: 0: 0   error '
Now is =    ' 0-error-2000   0: 0: 0   error '
Now is =    ' 0-error-2000   0: 0: 0   error '

你可能感兴趣的:(linux 2.6.25 ds1307驱动问题)