• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Issues with  (Read 1531 times)
Full Member

Karma: 8
Posts: 167

View Profile WWW
« on: April 03, 2011, 07:00:05 PM »

I have encountered a few issues with, I am not sure when they first appeared.
Also if they have been addressed somewhere else on the forum, please respond with a link.
The uBoot (3.4.27+pingtoo) setup is fixed to boot only from the USB drive.
Using Debian Wheezy.
SD card(s):  Integral 4GB class 6, 8GB class 6 and 8GB class 10.

Issue 1) When booting from USB (HDD via a HUB), if I have a SD card inserted when the plug boots (as distinct from inserting the SD after I have booted) then the plug never sees the SD. e.g. fdisk -l or dmesg both pretend that the SD does not exist. If I remove the SD and re-insert it after I have booted then the SD starts to work.

The only mention of mmc in dmesg is:

sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)

Issue 2) I have a script which is cloned from the Sheevaplug installer rcS which reads

        echo "**** Removing MMC partitions"
        echo -e "o\nw\n" | fdisk /dev/mmcblk0
        if [ $? != 0 ]; then
                echo "**** ERROR - Could not find or remove MMC partitions"
                echo "**** ERROR - Will try to continue anyway"

        echo "**** Creating /dev/mmcblk0p1 & /dev/mmcblk0p2 partitions"
        echo -e "n\np\n1\n\n+4M\nn\np\n2\n\n\nw\n" | fdisk /dev/mmcblk0

        echo "**** Making EXT2 partition on /dev/mmcblk0p1 for uImage"
        mkfs.ext2 -L shvplug-uImage /dev/mmcblk0p1
        if [ $? != 0 ]; then
                echo "**** ERROR - mkfs.ext2 /dev/mmcblk0p1"
                exit 1

The mkfs fails with

Could not stat /dev/mmcblk0p1 --- No such file or directory

If I add a <tt>sleep 1</tt> before the mkfs it works fine.

This did not happen with the 2.6.35.* kernels.

Sr. Member

Karma: 4
Posts: 440

View Profile WWW
« Reply #1 on: April 04, 2011, 05:30:46 PM »

Just FYI, I have a different setup (this is on a SheevaPlug), as I boot from SD, but have everything other than /boot on a USB drive.
My boot messages include:
Waiting 10sec before mounting root device...
mmc0: host does not support reading read-only switch. assuming write-enable.
usb 1-1: new high speed USB device using orion-ehci and address 2
mmc0: new high speed SDHC card at address b368
mmcblk0: mmc0:b368 SD    15.4 GiB
 mmcblk0: p1 p2 p3 p4 < p5 >
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 7 ports detected
i.e. it works for my setup.

Pages: [1]
Jump to: