SDCard on SPI

Which tools let us mount an SDCard placed into the provided socket using SPI ?
Will I need to rebuild kernel and system image ?

The SD card on Domino Pi and Qi is not SPI, it is USB.
Some unknown problem prevents it from plug and play. It can be recognised when powered on.

Ah ! Ok ! I didn’t know.
It seems to work if the SDCard is present at boot time.
Is there a way to make it recognized AFTER boot if it was not present at that time ?
About quite the same scenario, if I unmount it, change to another card, how can I mount the new one without rebooting ?

From our test, the SD card only can be recognised during boot. You cannot mount it after the system boot.
The USB hub chips does support hot plug and play of MicroSD cards. But we are not sure there is any problem in hardware or software preventing it being recognised during hot plug.

I understand from your above answer that SDCard are managed by AU6350-MGL
on the USB tile. But is there someone who have experiment connecting them directly ?
This bring me this thread 404 Page not found - GL.iNet
What about software and creating kernel drivers for that …

I see. Don’t have experience on this yet.

I tested great for me :
Domino plugged into PC via USB.
Using Teraterm at 115K baud.
Plugged a USB SdCard device.

-> Just plugin USB Flash Disk / SD Card

root@domino:/#

[ 1388.610000] usb 1-1: new full-speed USB device number 2 using ehci-platform
[ 1389.050000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 1389.210000] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 1389.210000] scsi0 : usb-storage 1-1:1.0
[ 1390.220000] scsi 0:0:0:0: Direct-Access Mass Storage Device 1.00 PQ: 0 ANSI: 0 CCS
[ 1390.710000] sd 0:0:0:0: [sda] 3911680 512-byte logical blocks: (2.00 GB/1.86 GiB)
[ 1390.720000] sd 0:0:0:0: [sda] Write Protect is off
[ 1390.720000] sd 0:0:0:0: [sda] No Caching mode page found
[ 1390.730000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 1390.740000] sd 0:0:0:0: [sda] No Caching mode page found
[ 1390.740000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 1390.750000] sda: sda1
[ 1390.760000] sd 0:0:0:0: [sda] No Caching mode page found
[ 1390.760000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 1390.770000] sd 0:0:0:0: [sda] Attached SCSI removable disk

TESTS :

root@domino:/# ls
bin etc mnt proc root sys usr www
dev lib overlay rom sbin tmp var

root@domino:/# ls /mnt
sda1

root@domino:/# ls /mnt/sda1/
config.dat filexxx.dat test.txt

root@domino:/# vi /mnt/sda1/test2.txt
HELLO World !
:w
:q

root@domino:/# cat /mnt/sda1/test2.txt
HELLO World !

Plugged it back into Windows - I see test2.txt file.

– Looks Great to Me !

Question #2 - How do we hookup a SDCard directly to the SPI Port ?

Question,
Even though the Pages and Specs for the Domino Core explain that the SPI is available:

> Domino Core Spec
> Overview Domino Core is a low-cost, high-performance 802.11n WiFi module based on Qualcomm/Atheros AR9331 WiSoC. Domino Core is a surface-mountable single-sided WiFi-enabled Linux module, featuring the lowest power consumption in the industry. The Domino Core module exposes almost all the AR9331 WiSoC available signals to regular 2 mm pitch castellated pads for both easy hand and automatic SMT soldering , including:
> USB 2.0 (host or slave) serial port (default to U-Boot / Linux console)
> 3 x 10/100MB Ethernet ports
> SPI (MOSI, MISO, CLK, CS)
> I2S (CK, WS, SD, MCK, MICIN)
> SLIC
> SPDIF Output
> JTAG (TMS, TCK, TDI, TDO)
> 9x LEDs (also used for bootstrap settings)
> Up to 29 x GPIOs (multiplexed with other functions above)

But, I seem to read in the Forums that SPI seems not to be available for the User…
Such as in the Forums from @Domino that SPI is used for Internal Flash…

I am confused,
Can we use the SPI for Devices, such as SDCard -or not ??