This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

omapl138 sata diver can't work

Other Parts Discussed in Thread: OMAP-L138, OMAPL138, TCA6416, DA8XX, PMP

first part:

Image Name: Linux-3.3.0
Image Type: ARM Linux Kernel Image (uncompressed)

when i make the kernel ,i disable the PM,and it print as the following:

Image Name: Linux-3.3.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2592264 Bytes = 2.5 MB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0
Linux version 3.3.0 (lvzesi@lvzesi-desktop) (gcc version 4.3.3 (Sourcery G++ Lit e 2009q1-203) ) #1 PREEMPT Mon Apr 15 17:40:04 CST 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DA850/OMAP-L138/AM18x EVM
Memory policy: ECC disabled, Data cache writeback
BUG: mapping for 0x80000000 at 0xfffe0000 out of vmalloc space
DaVinci da850/omap-l138 variant 0x0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS2,115200n8 noinitrd rw ip=192.168.1.3 root=/dev /nfs nfsroot=192.168.1.103:/home/omapl138/filesys,nolock mem=32M
PID hash table entries: 128 (order: -3, 512 bytes)
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: 26968k/26968k available, 5800k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc2800000 - 0xff000000 ( 968 MB)
lowmem : 0xc0000000 - 0xc2000000 ( 32 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc04d3000 (4908 kB)
.init : 0xc04d3000 - 0xc04fe000 ( 172 kB)
.data : 0xc04fe000 - 0xc0539f00 ( 240 kB)
.bss : 0xc0539f24 - 0xc0557aac ( 119 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:245
Console: colour dummy device 80x30
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc03a8668 - 0xc03a86c0
gpiochip_add: registered GPIOs 0 to 31 on device: DaVinci
gpiochip_add: registered GPIOs 32 to 63 on device: DaVinci
gpiochip_add: registered GPIOs 64 to 95 on device: DaVinci
gpiochip_add: registered GPIOs 96 to 127 on device: DaVinci
gpiochip_add: registered GPIOs 128 to 143 on device: DaVinci
DaVinci: 144 gpio irqs
print_constraints: dummy:
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
print_constraints: VDCDC1: 3200 <--> 3300 mV at 3300 mV
print_constraints: VDCDC2: 1750 <--> 3300 mV at 3300 mV
print_constraints: VDCDC3: 950 <--> 1350 mV at 1200 mV
print_constraints: LDO1: 1800 mV
print_constraints: LDO2: 1150 <--> 1300 mV at 1200 mV
pca953x 1-0020: failed reading register
pca953x 1-0021: interrupt support not compiled in
gpiochip_add: registered GPIOs 160 to 175 on device: tca6416
i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
Advanced Linux Sound Architecture Driver Version 1.0.24.
Switching to clocksource timer0_1
musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
musb-hdrc musb-hdrc: dma type: dma-cppi41
MUSB255 controller's USBSS revision = 4ea11003
Waiting for USB PHY clock good...
musb-hdrc musb-hdrc: USB OTG mode controller at fee00000 using DMA, IRQ 58
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
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
EMAC: MII PHY configured, RMII PHY will not be functional
JFFS2 version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
msgmni has been set to 52
io scheduler noop registered (default)
da8xx_lcdc da8xx_lcdc.0: GLCD: Found Sharp_LK043T1DG01 panel
Console: switching to colour frame buffer device 60x34
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
console [ttyS2] enabled
brd: module loaded
Uniform Multi-Platform E-IDE driver
ide-gd driver 1.18
ahci ahci: forcing PORTS_IMPL to 0x1
ahci ahci: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
ahci ahci: flags: ncq sntf pm led clo only pmp pio slum part ccc
scsi0 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x01e18000-0x01e19fff] port 0x100 irq 67
spi_davinci spi_davinci.1: DMA: supported
spi_davinci spi_davinci.1: DMA: RX channel: 18, TX channel: 19, event queue: 0
m25p80 spi1.0: m25p64 (8192 Kbytes)
Creating 6 MTD partitions on "m25p80":
0x000000000000-0x000000010000 : "UBL"
0x000000010000-0x000000090000 : "U-Boot"
0x000000090000-0x0000000a0000 : "U-Boot-Env"
0x0000000a0000-0x000000320000 : "Kernel"
0x000000320000-0x000000720000 : "Filesystem"
0x0000007f0000-0x000000800000 : "MAC-Address"
Read MAC addr from SPI Flash: 00:08:ee:03:d6:8a
spi_davinci spi_davinci.1: Controller at 0xfef0e000
davinci_mdio davinci_mdio.0: davinci mdio revision 1.5
davinci_mdio davinci_mdio.0: detected phy mask fffffffe
davinci_mdio.0: probed
davinci_mdio davinci_mdio.0: phy[0]: device davinci_mdio-0:00, driver SMSC LAN87 10/LAN8720
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci ohci.0: DA8xx OHCI
ohci ohci.0: new USB bus registered, assigned bus number 1
Waiting for USB PHY clock good...
ohci ohci.0: irq 59, io mem 0x01e25000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
input: gpio-keys-polled as /devices/platform/gpio-keys-polled.1/input/input0
input: TPS6507x Touchscreen as /devices/platform/i2c-gpio.1/i2c-1/1-0048/input/i nput1
omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
omap_rtc: RTC power up reset detected
i2c /dev entries driver
lirc_dev: IR Remote Control driver registered, major 253
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
IR NEC protocol handler initialized
IR RC5(x) protocol handler initialized
ata1.00: ATA-8: ST3500418AS, CC38, max UDMA/133
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
IR RC5 (streamzap) protocol handler initialized
IR SANYO protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
ata1.00: configured for UDMA/133
IR LIRC bridge handler initialized
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
scsi 0:0:0:0: Direct-Access ATA ST3500418AS CC38 PQ: 0 ANSI: 5
USB Video Class driver (1.1.1)
watchdog watchdog: heartbeat 60 sec
cpuidle: using governor ladder
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
cpuidle: using governor menu
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver snd-usb-audio
soc-audio soc-audio.0: ASoC: Failed to create card debugfs directory
_regulator_get: 1-0018 supply IOVDD not found, using dummy regulator
_regulator_get: 1-0018 supply DVDD not found, using dummy regulator
_regulator_get: 1-0018 supply AVDD not found, using dummy regulator
_regulator_get: 1-0018 supply DRVDD not found, using dummy regulator
sda: sda1 < sda5 >
sd 0:0:0:0: [sda] Attached SCSI disk
asoc: tlv320aic3x-hifi <-> davinci-mcasp.0 mapping ok
ALSA device list:
#0: DA850/OMAP-L138 EVM
TCP cubic registered
NET: Registered protocol family 17
regulator_init_complete: LDO2: incomplete constraints, leaving on
regulator_init_complete: LDO1: incomplete constraints, leaving on
regulator_init_complete: VDCDC3: incomplete constraints, leaving on
regulator_init_complete: VDCDC2: incomplete constraints, leaving on
regulator_init_complete: VDCDC1: incomplete constraints, leaving on
console [netcon0] enabled
netconsole: network logging started
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
davinci_mdio davinci_mdio.0: resetting idled controller
net eth0: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=davinci_m dio-0:00, id=7c0f1)
PHY: davinci_mdio-0:00 - Link is Up - 100/Full
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.1.3, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.1.3, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.1.103, rootpath=
VFS: Mounted root (nfs filesystem) on device 0:13.
Freeing init memory: 172K
INIT: version 2.86 booting
Please wait: booting...
Starting udev
udevd (627): /proc/627/oom_adj is deprecated, please use /proc/627/oom_score_adj instead.
ata1.00: exception Emask 0x12 SAct 0x1 SErr 0x1a80501 action 0x6 frozen
ata1.00: irq_stat 0x0c000000, interface fatal error
ata1: SError: { RecovData UnrecovData Proto 10B8B BadCRC LinkSeq TrStaTrns }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/00:00:20:01:00/01:00:00:00:00/40 tag 0 ncq 131072 in
res 40/00:00:20:01:00/00:00:00:00:00/40 Emask 0x12 (ATA bus error)
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1.00: exception Emask 0x2 SAct 0x1 SErr 0x1080400 action 0x6 frozen
ata1: SError: { Proto 10B8B TrStaTrns }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/02:00:7c:01:00/00:00:00:00:00/40 tag 0 ncq 1024 in
res 40/00:00:20:01:00/00:00:00:00:00/40 Emask 0x6 (timeout)
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1.00: exception Emask 0x12 SAct 0x1 SErr 0x1280500 action 0x6 frozen
ata1.00: irq_stat 0x08000000, interface fatal error
ata1: SError: { UnrecovData Proto 10B8B BadCRC TrStaTrns }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/40:00:a0:48:3d/00:00:39:00:00/40 tag 0 ncq 32768 in
res 40/00:00:a0:48:3d/00:00:39:00:00/40 Emask 0x12 (ATA bus error)
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: configured for UDMA/133
ata1: EH complete
ata1: limiting SATA link speed to 1.5 Gbps
ata1.00: exception Emask 0x10 SAct 0x3 SErr 0x280100 action 0x6 frozen
ata1.00: irq_stat 0x08000000, interface fatal error
ata1: SError: { UnrecovData 10B8B BadCRC }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/40:00:a0:48:3d/00:00:39:00:00/40 tag 0 ncq 32768 in
res 40/00:08:40:4c:38/00:00:3a:00:00/40 Emask 0x10 (ATA bus error)
ata1.00: status: { DRDY }
ata1.00: failed command: READ FPDMA QUEUED
ata1.00: cmd 60/01:08:40:4c:38/00:00:3a:00:00/40 tag 1 ncq 512 in
res 40/00:08:40:4c:38/00:00:3a:00:00/40 Emask 0x10 (ATA bus error)
ata1.00: status: { DRDY }
ata1: hard resetting link
ata1: SATA link down (SStatus 1 SControl 310)
ata1: hard resetting link
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
ata1.00: configured for UDMA/133
ata1: EH complete
attempt to access beyond end of device
sda1: rw=0, want=4, limit=2
MINIX-fs: unable to read superblock
attempt to access beyond end of device
sda1: rw=0, want=4, limit=2
EXT2-fs (sda1): error: unable to read superblock
attempt to access beyond end of device
sda1: rw=0, want=4, limit=2
EXT3-fs (sda1): error: unable to read superblock
attempt to access beyond end of device
sda1: rw=0, want=4, limit=2
EXT3-fs (sda1): error: unable to read superblock
attempt to access beyond end of device
sda1: rw=0, want=4, limit=2
EXT2-fs (sda1): error: unable to read superblock
mount: sending ioctl 5310 to a partition!
mount: sending ioctl 5310 to a partition!
attempt to access beyond end of device
sda1: rw=0, want=66, limit=2
isofs_fill_super: bread failed, dev=sda1, iso_blknum=16, block=32
attempt to access beyond end of device
sda1: rw=0, want=4, limit=2
MINIX-fs: unable to read superblock
EXT2-fs (sda5): warning: mounting unchecked fs, running e2fsck is recommended
Populating dev cache
Root filesystem already rw, not remounting
NET: Registered protocol family 10
root: mount: mounting rootfs on / failed: No such file or directory
root: mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
Setting up IP spoofing protection: rp_filter.
Configuring network interfaces... done.
Wed Sep 16 23:33:00 UTC 2009
INIT: Entering runlevel: 5
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.

_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|

Arago Project http://arago-project.org da850-omapl138-evm ttyS2

Arago 2009.09 da850-omapl138-evm ttyS2

da850-omapl138-evm login: root
root@da850-omapl138-evm:~# cd /
root@da850-omapl138-evm:/# ls
bin kernel myproject sbin var
boot lib nfs.tar.gz srv yay.sh
dev linuxrc omapl138test sys
etc media proc tmp
home mnt readme usr
root@da850-omapl138-evm:/# cd media
root@da850-omapl138-evm:/media# ls
card hdd net realroot sdb1 union
cf mmc1 ram sda5 test
root@da850-omapl138-evm:/media# cd sda5
root@da850-omapl138-evm:/media/sda5# ls
lost+found
second part :

i  got the  same problem as the link addrress:

http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/31969.aspx    i  disable the PM,too.but it doesn't work,either.

my sata harddisk is well.and it is ext2 formet...