Is there a way to mount an SD card on SD card socket 1? Also, is there a way to mount an USB stick on the USB port? I haven't been able to mount either one in Linux.
When I insert the an SD card in card socket 1, I don't see an mmcblk device in the /dev directory for the SD card. The same thing goes for the USB stick. I don't see an sda device for the USB stick.
So far, I can mount mmcblk0p1 from SD card socket 0.
Do I need to configure something in LTIB?
- Dana
One thing we noticed is that a USB stick is not auto-mounted if no partition is present. In the example about, it shows " sda: sda1" in the log file. Several USB sticks we tried just report " sda:" and those will not automount.
After ssp1 boot option, you should see Kernel message when you plug SD memory card into slot1. My iMX28EVK shows;
root@freescale ~$ mmc1: new SDHC card at address e624
mmcblk1: mmc1:e624 SD04G 3.69 GiB
mmcblk1: p1 p2 p3
You can mount partition like /dev/mntblk1p3 /mnt.
I don't know your USB trouble. I could mount USB stick either on standard Linux SD memory (MX28EVK LINUX REVD, Linux freescale 2.6.31-855-ge06778) or my rebuild Linux image from L2.6.35_10.12.01_SDK_source_bundle.tar.gz (Linux freescale 2.6.35.3-571-gcca29a0).
The Kernel message when I plugged a USB stick on socket J81 ("USB Host") is shown below.
usb 2-1: new high speed USB device using fsl-ehci and address 2
usb 2-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access SanDisk Cruzer Pro 6.52 PQ: 0 ANSI: 0 CCS
sd 0:0:0:0: [sda] 1975295 512-byte logical blocks: (1.01 GB/964 MiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI removable disk
To change SSP1 setting, open your LTIB (./ltib -m config) then choose "Package List --->" screen. You will see
--- Platform specific package selection
[ ]imx-test
[ ]imx-lib
[*]kobs-ng
[*]boot stream
[ ]Using MDDR at boot stream
(noinitrd console=ttyAM0,115200 root=/dev/mmcblk0p3 rw rootwait ip=no
(noinitrd console=ttyAM0,115200 ubi.mtd=1 root=ubi0.rootfs0 rootfstyp
(noinitrd console=ttyAM0,115200 fec_mac=00:08:02:6B:A3:1A root=/dev/n
(noinitrd console=ttyAM0,115200 root=/dev/ram0 rdinit=/sbin/init fec_
Bottom four lines are kernel boot parameter definitions. Top one is default boot mode, other 3 lines are optional boot mode (when you press KEY1-KEY3 on bootup). Choose top line and change the definision from
noinitrd console=ttyAM0,115200 root=/dev/mmcblk0p3 rw rootwait ip=none gpmi
to
noinitrd console=ttyAM0,115200 root=/dev/mmcblk0p3 rw rootwait ip=none ssp1
Then exit LTIB, reconfigure the Linux build.
./ltib -p boot_stream.spec -m prep
./ltib -p boot_stream.spec -m scbuild
./ltib -p boot_stream.spec -m scdeploy
Write new boot image then you should be able to use socket 1 for SD/SDIO slot.
DIP SWITCH Settings need to be select 1010 (SSP1(SD1)) for Boot Mode
You need to specify ssp1 and remove gpmi on your kernel command line for enable it.
The SD card socket 1 use the same pin of nand flash.