I recently porting the SATA with imx6(quad-core). But I always can't get the right volume information.
I'm ensure that my sata had been set in kernel init period. Here is the kernel message:
[ 1677.724423] ata1: hard resetting link
[ 1678.685972] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1678.692856] ata1.00: ATA-8: SSE032GPTC0-S81, S8FM04.3, max UDMA/100
[ 1678.699665] ata1.00: 62533296 sectors, multi 16: LBA48 NCQ (depth 31/32)
[ 1678.707025] ata1.00: configured for UDMA/100
[ 1678.711476] ata1: EH complete
[ 1680.226612] scsi 0:0:0:0: Direct-Access ATA SSE032GPTC0-S81 S8FM PQ: 0 ANSI: 5
[ 1680.238112] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[ 1680.247428] sd 0:0:0:0: [sda] Write Protect is off
[ 1680.252503] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1680.257932] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1680.269009] sda: sda1
E/DirectVolume( 2341): [DirectVol[ 1680.272993] sd 0:0:0:0: [sda] Attached SCSI disk
It is similar to the documents what I reference named i.MX_6_Linux_Reference_Manual.pdf.
But I'm not sure whether sata initialize is correctly or not. I just see only one node show in /dev/block/vold/8:1
I take the USB disk to compare with SATA. USB disk always show two node in /dev/block/vold/8:16 and 8:17
And vold daemon will get the /dev/block/vold/8:16 to check devtype. After check devtype it will get 8:17 to mount USB partition.
But SATA doesn't have another node to let vold determine devtype. So my android always not get correct message from kernel.
May I have any suggestions, If there anyone knows it, please tell me how to make like USB disk in /dev/block/vold to show correct node.