Hello Every one,
We want to be able to achieve the following through the imx233 EVK at one time:-
1) Access the USB mass storage device
2) Connect the EVK to the PC and access it as a mass storage device
3) Access the SDCard
4) Access the NAND Flash
We have made the following changes to the kernel.
For SPI Access
CONFIG _SPI = Y
CONFIG_SPI_MXS = [y | m]
FOR MMC Configuration
CONFIG_MMC
CONFIG_MMC_BLOCK
CONFIG_MMC_MXS
CONFIG_MMC_UNSAFE_RESUME
For USB Mass Storage and File Storage
CONFIG_USB
CONFIG_USB_EHCI_HCD
CONFIG_USB_EHCI_ARC
CONFIG_USB_EHCI_ARC_OTG
CONFIG_USB_EHCI_ROOT_HUB_TT
CONFIG_USB_STORAGE
CONFIG_USB_HID
CONFIG_USB_GADGET
CONFIG_USB_GADGET_ARC
CONFIG_USB_GADGET_ARC_OTG
ONFIG_USB_OTG
CONFIG_USB_FILE_STORAGE
After generating the kernel and rootfs with the above options the .sb images are burned to the nandflash and booted.
The command line give to boot is
initrd console=ttyAM0,115200 ssp1=spi1 ssp2=mmc ubi.mtd=1 root=ubi0:rootfs0 rootfstype=ubifs rw gpmi
Once the system boots I don’t see any
/dev/mmcblk# nodes in the rootfs
Once I insert the USB EHCI driver
insmod ehci-hcd
I don’t see any nodes like below when I connect the USB stick
/dev/sd#
Could you please help in with
a) How to access SDCard when I am booting from NANDFlash
b) How to access USB stick driver
Attached is the bootup log.
Regards,
Gopi
Original Attachment has been moved to: dmesg.txt.zip
dmesg says:
[ 19.150000] ARC USBOTG Device Controller driver (1 August 2005)
[ 19.150000] Can't find OTG driver!
maybe driver is missing? :smileygrin:
I was once trying to get mx233 on olinuxino-micro board to act as usb gadget (basically as usb device) but couldn't get it to work until I completely removed support for usb host from kernel. No matter what I did, usb host was initializing mx233 as host at bootup preventing connection to PC as a device. So at the end, it just had to go out from kernel :smileyhappy: (didn't need it anyway).
So, maybe there's some conflict in how host/device modes are set up in kernel, but can't really tell you anything more beyond that.