Arduino YUN and SD Card: doesn't work!

Hi guy,

I've a big problem with my YUN when I insert in a new SD card from 2 GB or 1 GB.

Linino doesn't make mount SD and I receive this message: (dmesg -c)

[ 5.220000] scsi 0:0:0:0: Direct-Access Multi Flash Reader 1.00 PQ: 0 ANSI: 0

sd 0:0:0:0: [sda] Attached SCSI removable disk

when I plug a SD card into YUN.

But, when I find mount file in /mnt/ there isn't file sda1.

In fact, with df -h command I receive

Filesystem Size Used Available Use% Mounted on
rootfs 7.5M 2.0M 5.5M 27% /
/dev/root 7.0M 7.0M 0 100% /rom
tmpfs 29.9M 156.0K 29.7M 1% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock3 7.5M 2.0M 5.5M 27% /overlay
overlayfs:/overlay 7.5M 2.0M 5.5M 27% /
What is a problem?

Thank you so much!

Problem with microSD
http://forum.arduino.cc/index.php?topic=222069.msg1614584#msg1614584

Hi sonnyyu,

thanks for information but the problem not resolved.

When I type fdisk -l (or fdisk -l /dev/sda/) I receive

Disk /dev/mtdblock0: 0 MB, 262144 bytes
255 heads, 63 sectors/track, 0 cylinders, total 512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock1: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders, total 128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock2: 15 MB, 15007744 bytes
255 heads, 63 sectors/track, 1 cylinders, total 29312 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock3: 7 MB, 7864320 bytes
255 heads, 63 sectors/track, 0 cylinders, total 15360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock4: 1 MB, 1310720 bytes
255 heads, 63 sectors/track, 0 cylinders, total 2560 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock5: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders, total 128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock6: 0 MB, 65536 bytes
255 heads, 63 sectors/track, 0 cylinders, total 128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mtdblock7: 16 MB, 16318464 bytes
255 heads, 63 sectors/track, 1 cylinders, total 31872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

I've not sda1 for mounting. :astonished:

Thanks...

...
Disk /dev/sda: 16.6 GB, 16574840832 bytes
64 heads, 32 sectors/track, 15807 cylinders, total 32372736 sectors

You need to have "/dev/sda" at

fdisk -l

The possible issues:

  1. OS problem, (Re)Upgrading the OpenWrt-Yun image on the Yún
    http://arduino.cc/en/Tutorial/YunSysupgrade

  2. MicroSD problem , Change one for test.

  3. Hardware problem, microSD socket or SPI interface IC problem. Arrange RMA.

Ok.

1- I need a SD inserted in and then I don't try new OS

2- I tried different SD but nothing

3- :cold_sweat: :cold_sweat: :cold_sweat:

sonique:
...
1- I need a SD inserted in and then I don't try new OS
...

/usr/bin/reset-to-factory-anyway

will bring Yun back to factory default.

/usr/bin/reset-to-factory-anyway

Ok, this is a great idea....

Before reset, I want try some newer SD, like 4 GB.

I tried only old SD, like 1 GB or 2 GB maximum size.

Perhaps it's also SD older memory card.

The way Upgrading the OpenWrt-Yun image on the Yún without MicroSD .

run-sysupgrade /mnt/sda1/openwrt-ar71xx-generic-yun-16M-squashfs-sysupgrade.bin
nano /usr/bin/run-sysupgrade

#!/bin/sh
kill-bridge

#cp "$1" /tmp || exit 1

filename=`basename $1`

exec sysupgrade -n "/tmp/$filename"

scp openwrt-ar71xx-generic-yun-16M-squashfs-sysupgrade.bin into directory of "/tmp"

run-sysupgrade /tmp/openwrt-ar71xx-generic-yun-16M-squashfs-sysupgrade.bin

Caution! non official code, wait team to prove.

Great.....

I'll try following solution:

  1. Try newer SD card (like 4 GB)

  2. IF FAIL --> /usr/bin/reset-to-factory-anyway --> RESET TO THE FACTORY

  3. re-try to mount everything SD card

  4. IF FAIL --> try new flash image without SD (see sonnyyu POST message)

IF FAIL --> get RMA number and send product to technical assistance and WAIT and WAIT =(

5)ELSE Be Happy

  1. ELSE Be happy

What do you think about?

While upgrading could improve the situation, the unavailability of the SD card may be an issue with the SD card itself (too new or too old) or with the yun itself. Write to support@arduino.cc if your attempts fail

Thanks Federico,

in those days, I'll try another newer SD like usually 4 GB memory card.

I'tell you as soon as possible...

Hi guy,

I tried with near SD card (4 GB) but nothing...I receive this message error

[ 79.140000] sd 0:0:0:0: Device offlined - not ready after error recovery
[ 79.140000] sd 0:0:0:0: rejecting I/O to offline device
[ 79.140000] sd 0:0:0:0: rejecting I/O to offline device
[ 79.140000] sd 0:0:0:0: rejecting I/O to offline device
[ 79.150000] sd 0:0:0:0: [sda] READ CAPACITY failed
[ 79.150000] sd 0:0:0:0: [sda]
[ 79.150000] Result: hostbyte=0x01 driverbyte=0x00
[ 79.150000] sd 0:0:0:0: [sda] Sense not available.
[ 79.150000] sd 0:0:0:0: rejecting I/O to offline device
[ 79.160000] sd 0:0:0:0: [sda] Write Protect is off
[ 79.160000] sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
[ 79.160000] sd 0:0:0:0: rejecting I/O to offline device
[ 79.160000] sd 0:0:0:0: [sda] Asking for cache data failed
[ 79.160000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 79.170000] sd 0:0:0:0: [sda] Attached SCSI removable disk

What mean?

Don't know. Write to support@arduino.cc

Already done! :cold_sweat:

Thanks a lot

this is the response in support, and is exactly the problem!!!

The issue could be related to the micro SD card socket. The switch made by two metal springs that closes when you insert the SD card is maybe not closing the contact, so the linux system is not notified by the presence of the SD card.
Can you try to push on the metal springs with a small screwdriver, that should allow the card to be detected ?

regards

Hi all,

I confirm that the problem was related to the metal springs and so a damned hardware problem! :cold_sweat:
My YUN has been replaced! :grin:

Thanks a lot

I have been having trouble with my Yun SD card from the get-go. Putty could see it, but the Yun system could not write to it. After searching for days I ran across this post today and it solved my problem.

quote]
The issue could be related to the micro SD card socket. The switch made by two metal springs that closes when you insert the SD card is maybe not closing the contact, so the linux system is not notified by the presence of the SD card.

Can you try to push on the metal springs with a small screwdriver, that should allow the card to be detected ?[/quote]

There appear to be a total of 3 springs in my Yun card slot. I used a high power magnifying loupe and a very small flat screwdriver from an eyeglass toolcase to push the metal tab closest to the side even closer to the side. After reinserting the micro SD card and running Putty just to be sure I could identify the card, I ran the Yun datalogger program for a few minutes. I was able to go back in and see that the file had actually been written. Then I tried again, but renamed the file first before uploading the code, and it worked as well.
I am still disappointed that the burden to fix this problem was laid at the feet of the end user. That is what "Quality Control" is for in a a company. We want products that work out of the box. The SD card slot on the Arduino SD card shield seems to be a much better piece of equipment. It uses a totally different card slot.
Thanks all for the perseverence shown to address this big problem, and the many good attempts through software trials first.
houdinihar

Errors may happen. Then best thing you can do now is to mail support@arduino.cc

@houdinihar :

The issue with the springs was with a particular batch of Yuns, I don't think it persists anymore. Did you get your Yun SD card slot working finally ?

ankitdaf:
...
The issue with the springs was with a particular batch of Yuns, I don't think it persists anymore
....

Are you working for OEM of Yun? Can you show us more light?