Hi all,
I am using SOM and carrier board of apalis imx6. I have taken latest software image from toradex website.
version - Linux apalis-imx6 5.4.77-5.1.0 armv7l GNU/Linux.
I have connected 4 hard disks to the carrier board using one sata expander. I placed the udev rule file in /etc/udev/rules.d .
my udev rule is
sata1
KERNEL=="sd*|sr*", KERNELS=="ata1", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="satadrive1"
KERNEL=="sd*|sr*",KERNELS=="ata1",ENV{DEVTYPE}=="partition",ENV{ID_SERIAL}=="?*",OPTIONS="all_partitions",SYMLINK+="satadrive1_%n"
sata2
KERNEL=="sd*|sr*", KERNELS=="ata2", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="satadrive2"
KERNEL=="sd*|sr*", KERNELS=="ata2", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL}=="?*", OPTIONS="all_partitions", SYMLINK+="satadrive2_%n"
sata3
KERNEL=="sd*|sr*", KERNELS=="ata3", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="satadrive3"
KERNEL=="sd*|sr*", KERNELS=="ata3", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL}=="?*", OPTIONS="all_partitions", SYMLINK+="satadrive3_%n"
sata4
KERNEL=="sd*|sr*", KERNELS=="ata4", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="satadrive4"
KERNEL=="sd*|sr*", KERNELS=="ata4", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL}=="?*", OPTIONS="all_partitions", SYMLINK+="satadrive4_%n"
It is working when i connect one hard disk to sata expander(because its KERNELS==ata1).
But when i connect four hard disks, all hard disks “KERNELS” name is ata1 only. How can i get 2nd,3rd,4th hard disk KERNELS name as ata2,ata3,ata4.