Forums » Software Development »
SATA not recognized
Added by Mary Frantz over 11 years ago
Trying to install an intel 330 series SSD (60 Gb). I have a power brick for it and plugged that in. Connected to the SATA port (J503) and .... nothing. I saw the errata about Gen3 SATA drives, but there are no messages about atal or SATA in the boot log. There's also no /dev/sda1. I am using the Critical Link distro in MDK-2012-08-10 and the corresponding rfs.
Windows XP also can't see this drive after connecting through SATA to USB adapter. Any thoughts?
Thanks,
Mary
Boot args are:
bootargs=mem=64M console=ttyS1,115200n8 mtdparts=nand:128M(rootfs),-(userfs) root=/dev/mtdblock0 rw,noatime rootfstype=jffs2 ip=dhcp
Boot log:
*** lots of bad block messages for on board SOM NAND *** nand_read_bbt: bad block at 0x00000ff60000 nand_read_bbt: bad block at 0x00000ff80000 Creating 2 MTD partitions on "davinci_nand.1": 0x000000000000-0x000008000000 : "rootfs" 0x000008000000-0x000010000000 : "homefs" davinci_nand davinci_nand.1: controller rev. 2.5 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-nonjedec (8192 Kbytes) Creating 8 MTD partitions on "m25p80": 0x000000000000-0x000000010000 : "ubl" 0x000000010000-0x000000090000 : "u-boot" 0x000000090000-0x0000000a0000 : "u-boot-env" 0x0000000a0000-0x0000000b0000 : "periph-config" No LCD configured MII PHY configured 0x0000000b0000-0x000000100000 : "reserved" 0x000000100000-0x000000400000 : "kernel" 0x000000400000-0x000000600000 : "fpga" 0x000000600000-0x000000800000 : "spare" spi_davinci spi_davinci.1: Controller at 0xfef0e000 CAN device driver interface mcp251x spi1.1: probed davinci_mdio davinci_mdio.0: davinci mdio revision 1.5 davinci_mdio davinci_mdio.0: detected phy mask fffffff7 davinci_mdio.0: probed davinci_mdio davinci_mdio.0: phy[3]: device 0:03, driver unknown 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. mousedev: PS/2 mouse device common for all mice omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0 omap_rtc: RTC power up reset detected i2c /dev entries driver cpuidle: using governor ladder cpuidle: using governor menu davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode usbcore: registered new interface driver usbhid usbhid: USB HID core driver dsd1791 spi1.2: Failed to add route LLOUT->Line Out asoc: dsd1791 <-> davinci-mcasp.0 mapping ok ALSA device list: #0: MityDSP-L138 INDIO TCP cubic registered NET: Registered protocol family 17 can: controller area network core (rev 20090105 abi 8) NET: Registered protocol family 29 can: raw protocol (rev 20090105) 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:08 UTC (946684808) davinci_mdio davinci_mdio.0: resetting idled controller net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:03, id=40005201) PHY: 0:03 - Link is Up - 100/Full Sending DHCP requests ., OK IP-Config: Got DHCP answer from 192.168.1.254, my address is 192.168.1.130 IP-Config: Complete: device=eth0, addr=192.168.1.130, mask=255.255.255.0, gw=192.168.1.254, host=192.168.1.130, domain=gateway.2wire.net, nis-domain=(none), bootserver=192.168.1.254, rootserver=192.168.1.254, rootpath= VFS: Mounted root (jffs2 filesystem) on device 31:0. devtmpfs: mounted Freeing init memory: 160K Failed to mount /sys/kernel/security: No such file or directory Welcome to The Ångström Distribution! NET: Registered protocol family 10 Starting LSB: The RPC portmapper... Starting udev Coldplug all Devices... Starting Remount API VFS... Starting Temporary Directory... Starting Load Kernel Modules... Started Set Up Additional Binary Formats [ OK ] Starting Apply Kernel Variables... Starting Debug File System... Started Huge Pages File System [ OK ] Starting udev Kernel Device Manager... Starting Journal Service... Started Journal Service [ OK ] Starting File System Check on Root Device... Starting POSIX Message Queue File System... Started Remount API VFS [ OK ] Started Load Kernel Modules [ OK ] Started Apply Kernel Variables [ OK ] Started Temporary Directory [ OK ] Started Debug File System [ OK ] Started POSIX Message Queue File System [ OK ] Started File System Check on Root Device [ OK ] Starting Remount Root FS... Started Configuration File System [ OK ] udevd[1081]: starting version 182 Started FUSE Control File System [ OK ] Started udev Kernel Device Manager [ OK ] Started Remount Root FS [ OK ] Started Run pending postinsts [ OK ] Starting Recreate Volatile Files and Directories... Starting Load Random Seed... Started Machine ID first boot configure [ OK ] Started LSB: The RPC portmapper [ OK ] Started Load Random Seed [ OK ] Started Recreate Volatile Files and Directories [ OK ] Starting Avahi mDNS/DNS-SD Stack... Starting LSB: Kernel NFS server support... Starting Timestamping service... Started Timestamping service [ OK ] Started SSH Key Generation [ OK ] Starting Permit User Sessions... Starting Login Service... Starting D-Bus System Message Bus... Started Permit User Sessions [ OK ] Started D-Bus System Message Bus [ OK ] portmap[1072]: Starting portmap daemon... Starting Serial Getty on ttyS1... Started Serial Getty on ttyS1 [ OK ] nfsserver[1304]: creating NFS state directory: done .---O---. | | .-. o o | | |-----.-----.-----.| | .----..-----.-----. | | | __ | ---'| '--.| .-'| | | | | | | | |--- || --'| | | ' | | | | '---'---'--'--'--. |-----''----''--' '-----'-'-'-' -' | '---' The Angstrom Distribution MM9000 ttyS1 Angstrom v2012.05 - Kernel 3.2.0 MM9000 login: Installing knfsd (copyright (C) 1996 okir@monad.swb.de). svc: failed to register lockdv1 RPC service (errno 97). nfsserver[1304]: starting 8 nfsd kernel threads: done Started Avahi mDNS/DNS-SD Stack [ OK ] Started Login Service [ OK ] Started udev Coldplug all Devices [ OK ] Starting Getty on tty1... Started Getty on tty1 [ OK ] nfsserver[1304]: starting mountd: done nfsserver[1304]: starting statd: done Failed to start LSB: Kernel NFS server support [FAILED] See 'systemctl status nfsserver.service' for details. Starting sys9000.service... sys9000[2295]: Changing cpu clock to 456MHz sys9000[2295]: Resetting ip address sys9000[2295]: ifdown: interface eth0 not configured sys9000[2295]: route: SIOCADDRT: File exists sys9000[2295]: Inserting cmem module Disabling lock debugging due to kernel taint CMEMK module: built on Aug 10 2012 at 16:34:44 Reference Linux version 3.2.0 File /export/jenkins/workspace/MityDSP-L138_MDK/staging_2012-08-10/sw/3rdparty /linuxutils_2_26_01_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c cmemk initialized sys9000[2295]: Inserting dsplink module DSPLINK Module (1.65.00.03) created on Date: Aug 10 2012 Time: 16:33:03 Started sys9000.service [ OK ]
After linux boot:
root@MM9000:~# ls /dev/s* /dev/stderr /dev/stdin /dev/stdout /dev/shm: /dev/snd: by-path controlC0 pcmC0D0p timer
Replies (10)
RE: SATA not recognized - Added by Mary Frantz over 11 years ago
I have tried the same SATA drive on a second MityDSP board as well as an older SATA drive. There are no "ata" messages in the boot log.
Could someone please respond?
Mary
RE: SATA not recognized - Added by Jonathan Cormier over 11 years ago
Mary,
There should be no reason that the drive isn't detected by Windows XP when using a USB to Sata adapter. Assuming you know the adapter works with other drives, it is possible the drive is bad.
RE: SATA not recognized - Added by Mary Frantz over 11 years ago
My colleague has another SATA drive and MityDSP board. He reports as follows:
"The drive comes up fine in Windows with the USB-SATA bridge, but no sign of it on the Mity DSP. We located an old, working SATA 1 drive and that one didn't show up either. "
My old laptop SATA drive (recently replaced) shows up on Windows XP with a USB to SATA adapter, but does not appear on the MityDSP.
Is there a way to check if SATA is configured on my kernel?
Mary
RE: SATA not recognized - Added by Jonathan Cormier over 11 years ago
Mary,
You can print the kernel config file by running:
_zcat /proc/config.gz _
You can then search the output:
zcat /proc/config.gz | grep SATA
RE: SATA not recognized - Added by Mary Frantz over 11 years ago
Here's the result:
root@MM9000:~/HelloWorldDSP/Debug# zcat /proc/config.gz | grep SATA CONFIG_SATA_PMP=y # CONFIG_SATA_AHCI_PLATFORM is not set # SATA SFF controllers with BMDMA CONFIG_SATA_MV=y root@MM9000:~/HelloWorldDSP/Debug#
RE: SATA not recognized - Added by Michael Williamson over 11 years ago
You need SATA_AHCI_PLATFORM set. You will need to rebuild the kernel.
-Mike
RE: SATA not recognized - Added by Mary Frantz over 11 years ago
What's the best way to do that and change only that one feature?
I generated a config file from my kernel with the following command:
zcat config.gz > ~/myconfig
(See attached file)
Can this file be edited to make the required changes? or do you have to go through menuconfig?
Rebuilding the kernel is new for me, so I want to do it with minimal impact. Will I have to rebuild the DSPLink or CMEM libraries?
Mary
RE: SATA not recognized - Added by Michael Williamson over 11 years ago
I don't think you will need to rebuild DSPLINK or CMEM.
You should be able to take the myconfig and copy it to the .config.
In theory you could edit the myconfig, but generally it's better at that point to run menuconfig and select the option. This will enable any compile time dependencies that you may need for the SATA interface.
-Mike
RE: SATA not recognized - Added by Mary Frantz over 11 years ago
I got it working.
I compared myconfig to the .config file in the MDK_2012-08-10 linux-davinci directory and they were the same. I was able to follow the directions for building a kernel in your wiki page. (Except that I built it from the MDK I had already downloaded as opposed to using git. Also u-boot-tools could not be found by apt-get.)
Ran menuconfig:
mitydsp@mitydsp-dev: make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- menuconfig
To include SATA support:
UnSelect: Device Drivers-> Serial ATA and Parallel ATA drivers > SATA Port Multiplier Support > Serial ATA and Parallel ATA drivers -> Platform AHCI SATA support
Select: Device Drivers
After booting with the new image, /dev/sda appeared on the target. I used fdisk to partition it, and added it to fstab. Found helpful directions for this at http://minecraft.codeemo.com/mineoswiki/index.php/Fdisk
Thanks.
Mary
RE: SATA not recognized - Added by Jonathan Cormier over 11 years ago
Mary,
Thanks for the update. I have created a task to enable SATA by default for the next MDK release. It was set in the old 2.6 kernel but was missed in the 3.2 update.