SATA
One SATA port is available on conga-QMX6 modules. Be aware, that only Dual- and QuadCore SOC's support SATA
SATA- Support | PN commercial | PN industrial |
---|---|---|
NO | 016100, 016101, 016300, 016301 | 016110, 016111, 016310, 016311 |
YES | 016102, 016103, 016302, 016303, 016104, 016304 | 016112, 016113, 016312, 016313, 016318 |
Kernel
SATA is enabled by default. If a disk is connected, it will be available via /dev/sda
(if no USB stick is connected)
U-boot
SATA is disabled by default. To enable it:
Add config switches to the defconfig and rebuild the bootloader:
cgtqmx6_defconfig
CONFIG_AHCI=y
CONFIG_SCSI=y
CONFIG_DM_SCSI=y
CONFIG_IMX_AHCI=y
CONFIG_CMD_SCSI=y
After flashing the new bootloader, check SATA on uboot:
=> scsi info
=> scsi scan
Boot from SATA:
=> setenv scsidev 0
=> setenv scsipart 1
=> setenv scsiroot '/dev/sda1 rootwait rw'
=> setenv loadfdtscsi 'echo Loading ${fdt_file}; ext4load scsi ${scsidev}:${scsipart} ${fdt_addr} boot/${fdt_file}'
=> setenv scsiargs 'setenv bootargs console=${console},${baudrate} ${smp} earlycon root=${scsiroot} ${displayinfo}'
=> setenv scsiboot 'echo Booting from scsi ...; run scsiargs; run loadfdtscsi; bootm ${loadaddr} - ${fdt_addr}'
=> setenv loadimagescsi 'echo Loading ${image}; ext4load scsi ${scsidev}:${scsipart} ${loadaddr} boot/${image}'
=> setenv bootcmd 'run findfdt; scsi reset; scsi dev ${scsidev}; run loadimagescsi; run scsiboot'
=> savee
=> reset