我的内核是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 (root@thkjtx.localdomain) (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 cach