Support adding for sata in the linux kernel
There is a sata hard disk. We need to add support to the kernel via make menuconfig.
The solution:
we set the following options:
<*> CONFIG_ATA <*> CONFIG_ATA_VERBOSE_ERROR <*> CONFIG_SATA_PMP SCSI device support <*> CONFIG_SCSI <*> CONFIG_SCSI_PROC_FS <*> CONFIG_BLK_DEV_SD <*> CONFIG_CHR_DEV_SG <*> CONFIG_SCSI_LOGGING
Check the output:
/# ls -l /dev/s* brw-r--r-- 1 root root 8, 0 Jan 1 1970 /dev/sda brw-r--r-- 1 root root 8, 1 Jan 1 1970 /dev/sda1 crw-r--r-- 1 root root 21, 0 Jan 1 1970 /dev/sg0