Commit 52ac8d5c authored by carbon's avatar carbon

kernel: support usb storage like USB flash disk

execute this command first:
echo host > /proc/cviusb/otg_role
parent 7eeb4b32
...@@ -31,6 +31,8 @@ CONFIG_COMPAT_32BIT_TIME=y ...@@ -31,6 +31,8 @@ CONFIG_COMPAT_32BIT_TIME=y
CONFIG_MODULES=y CONFIG_MODULES=y
CONFIG_MODULE_FORCE_LOAD=y CONFIG_MODULE_FORCE_LOAD=y
CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_UNLOAD=y
CONFIG_BLOCK=y
CONFIG_BLK_SCSI_REQUEST=y
# CONFIG_BLK_DEV_BSG is not set # CONFIG_BLK_DEV_BSG is not set
# CONFIG_MQ_IOSCHED_DEADLINE is not set # CONFIG_MQ_IOSCHED_DEADLINE is not set
# CONFIG_MQ_IOSCHED_KYBER is not set # CONFIG_MQ_IOSCHED_KYBER is not set
...@@ -54,6 +56,11 @@ CONFIG_MTD_CMDLINE_PARTS=y ...@@ -54,6 +56,11 @@ CONFIG_MTD_CMDLINE_PARTS=y
CONFIG_MTD_BLOCK=y CONFIG_MTD_BLOCK=y
CONFIG_MTD_SPI_NOR=y CONFIG_MTD_SPI_NOR=y
CONFIG_SPI_CVI_SPIF=y CONFIG_SPI_CVI_SPIF=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_PROC_FS=y
CONFIG_BLK_DEV_SD=y
CONFIG_SCSI_LOWLEVEL=y
CONFIG_NETDEVICES=y CONFIG_NETDEVICES=y
# CONFIG_NET_CORE is not set # CONFIG_NET_CORE is not set
# CONFIG_NET_VENDOR_ALACRITECH is not set # CONFIG_NET_VENDOR_ALACRITECH is not set
...@@ -160,6 +167,7 @@ CONFIG_SND_SOC_CV182XADAC=y ...@@ -160,6 +167,7 @@ CONFIG_SND_SOC_CV182XADAC=y
CONFIG_SND_SOC_CV1835_USE_AUDIO_PLL=y CONFIG_SND_SOC_CV1835_USE_AUDIO_PLL=y
CONFIG_CV1835_I2S_SUBSYS=y CONFIG_CV1835_I2S_SUBSYS=y
CONFIG_USB=y CONFIG_USB=y
CONFIG_USB_STORAGE=y
CONFIG_USB_DWC2=y CONFIG_USB_DWC2=y
CONFIG_USB_GADGET=y CONFIG_USB_GADGET=y
CONFIG_USB_LIBCOMPOSITE=y CONFIG_USB_LIBCOMPOSITE=y
...@@ -179,6 +187,7 @@ CONFIG_USB_CONFIGFS=y ...@@ -179,6 +187,7 @@ CONFIG_USB_CONFIGFS=y
CONFIG_USB_CONFIGFS_SERIAL=y CONFIG_USB_CONFIGFS_SERIAL=y
CONFIG_USB_CONFIGFS_RNDIS=y CONFIG_USB_CONFIGFS_RNDIS=y
CONFIG_USB_CONFIGFS_ACM=y CONFIG_USB_CONFIGFS_ACM=y
CONFIG_USB_ROLE_SWITCH=y
CONFIG_MMC=y CONFIG_MMC=y
CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_SDHCI_PLTFM=y
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment