Tf cards cannot be mounted automatically

Currently, I’m working on a redesign based on db410C hardware.Compared with the standard version of DB410c, the current board does not have CODEC, DSI, etc., and some function values retain WiFi.Now the tf card cannot be mounted automatically after power-on is inserted and some regulator will be printed. After adding some power supply to the drive, it still cannot be detected automatically.Have you ever encountered this kind of situation or given some advice.Below is a partial error log.
thanks.

root@linaro-alip:/#
root@linaro-alip:/# [ 108.359698] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
[ 108.366209] mmcblk1: mmc1:aaaa SS08G 7.40 GiB
[ 108.391979] mmcblk1: p1
[ 108.399700] qcom-apq8016-sbc 7702000.sound: error getting codec dai name
[ 108.399766] qcom-apq8016-sbc 7702000.sound: Error resolving dai links: -517
[ 108.408982] 1a00000.mdss supply vdd not found, using dummy regulator
[ 108.414274] msm 1a00000.mdss: bound 1a01000.mdp (ops mdp5_ops)
[ 108.419196] 1a98000.dsi supply gdsc not found, using dummy regulator
[ 108.425845] 1a98000.dsi supply gdsc not found, using dummy regulator
[ 108.433977] msm_dsi_manager_register: failed to register mipi dsi host for DSI 0
[ 108.437821] msm 1a00000.mdss: failed to bind 1a98000.dsi (ops dsi_ops): -517
[ 108.446057] msm 1a00000.mdss: master bind failed: -517

root@linaro-alip:/#

Could you please add the custom board tag.

Which software release are you running? what is the format/filesystem type of the partition?
At least the SDCARD seems detected:

Are you able to mount the partition manually?

Yes, I can manually mount the tf card.In essence, the current running system is the 17.09 release,The current partition format should be vfat.There is no other difference between the tf part schematic diagram and the standard db410c.thanks!

In the early days of the 410c we did have difficulties reading some SDcards. If I remember correctly, the root cause was the power supply voltage level being either too low or too late (or both?).

Go back to the basics: Use a scope to ensure that there is enough voltage to supply your SDcard, and that the supply is actually turned on before you try to communicate with the SDcard.

I would also check that the supply to the ESD protection diodes is turned on.

Ok so seems the issue is just about auto-mounting the sdcard, AFAIK, this is done via udev and udisk2. check that you have mmc/udisk rules in /lib/udev/rules and check that udisk2 daemon/process is running. I suggest to use udiskctl monitor to monitor activity/events.

I try to use udiskctl monitor to monitor the changes of mmcblk.Hot-swap sd card will indeed generate logs, but now want to insert sd card at any time will be automatically mounted.In addition, I added content in /etc/fstab, but if I did not insert the sd card during startup, the system failed to log in, prompting a partition error.The act of inserting the sd card can be done at any time.
The following is the content of /etc/fstab:
/dev/mmcblk1p1 /media/linaro/SD vfat auto 0 0
The following is the startup status of the unplugged SD card:


Now I have no idea, give some advice, thank you

Please attach the output (e.g. using pastebin).

Yes, don’t use fstab for removable medias.

The following is the log generated by a hot plug process, thanks

root@linaro-alip:/#
root@linaro-alip:/# udisksctl monitor&
[2] 2663
root@linaro-alip:/# Monitoring the udisks daemon. Press Ctrl+C to exit.
08:38:02.350: The udisks-daemon is running (name-owner :1.2).

root@linaro-alip:/# [ 2899.392314] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
[ 2899.398773] mmcblk1: mmc1:aaaa SS08G 7.40 GiB
[ 2899.427747] mmcblk1: p1
[ 2899.439189] qcom-apq8016-sbc 7702000.sound: error getting codec dai name
[ 2899.439255] qcom-apq8016-sbc 7702000.sound: Error resolving dai links: -517
[ 2899.447934] 1a00000.mdss supply vdd not found, using dummy regulator
[ 2899.453131] msm 1a00000.mdss: bound 1a01000.mdp (ops mdp5_ops)
[ 2899.459077] 1a98000.dsi supply gdsc not found, using dummy regulator
[ 2899.464741] 1a98000.dsi supply gdsc not found, using dummy regulator
[ 2899.472828] msm_dsi_manager_register: failed to register mipi dsi host for DSI 0
[ 2899.477513] msm 1a00000.mdss: failed to bind 1a98000.dsi (ops dsi_ops): -517
[ 2899.484846] msm 1a00000.mdss: master bind failed: -517
08:38:15.774: Added /org/freedesktop/UDisks2/drives/SS08G_0x934ee8a9
org.freedesktop.UDisks2.Drive:
CanPowerOff: false
Configuration: {}
ConnectionBus: sdio
Ejectable: false
Id: SS08G-0x934ee8a9
Media: flash_sd
MediaAvailable: true
MediaChangeDetected: true
MediaCompatibility: flash_sd
MediaRemovable: true
08:38:15.775: Model: SS08G
Added /org/freedesktop/UDisks2/drives/SS08G_0x934ee8a9
Optical: false
OpticalBlank: false
org.freedesktop.UDisks2.Drive:
OpticalNumAudioTracks: 0
OpticalNumDataTracks: 0
OpticalNumSessions: 0
OpticalNumTracks: 0
CanPowerOff: false
Removable: true
Revision:
Configuration: {}
RotationRate: 0
ConnectionBus: sdio
Seat: seat0
Ejectable: false
Serial: 0x934ee8a9
Id: SS08G-0x934ee8a9
SiblingId:
Media: flash_sd
Size: 7948206080
MediaAvailable: true
SortKey: 01hotplug/1590655095757650
MediaChangeDetected: true
TimeDetected: 1590655095757650
MediaCompatibility: flash_sd
TimeMediaDetected: 1590655095757650
MediaRemovable: true
Vendor:
WWN:
Model: SS08G
Optical: false
OpticalBlank: false
OpticalNumAudioTracks: 0
OpticalNumDataTracks: 0
OpticalNumSessions: 0
OpticalNumTracks: 0
Removable: true
Revision:
RotationRate: 0
Seat: seat0
Serial: 0x934ee8a9
SiblingId:
Size: 7948206080
SortKey: 01hotplug/1590655095757650
TimeDetected: 1590655095757650
TimeMediaDetected: 1590655095757650
Vendor:
WWN:
08:38:15.784: Added /org/freedesktop/UDisks2/block_devices/mmcblk1
08:38:15.785: Added /org/freedesktop/UDisks2/block_devices/mmcblk1
org.freedesktop.UDisks2.Block:
Configuration: []
CryptoBackingDevice: ‘/’
org.freedesktop.UDisks2.Block:
Device: /dev/mmcblk1
DeviceNumber: 45952
Configuration: []
Drive: ‘/org/freedesktop/UDisks2/drives/SS08G_0x934ee8a9’
HintAuto: true
HintIconName:
HintIgnore: false
HintName:
HintPartitionable: true
HintSymbolicIconName:
HintSystem: false
Id:
IdLabel:
CryptoBackingDevice: ‘/’
Device: /dev/mmcblk1
DeviceNumber: 45952
IdType:
IdUUID:
Drive: ‘/org/freedesktop/UDisks2/drives/SS08G_0x934ee8a9’
IdUsage:
HintAuto: true
IdVersion:
HintIconName:
MDRaid: ‘/’
HintIgnore: false
MDRaidMember: ‘/’
HintName:
PreferredDevice: /dev/mmcblk1
HintPartitionable: true
ReadOnly: false
HintSymbolicIconName:
Size: 7948206080
HintSystem: false
Id:
IdLabel:
IdType:
IdUUID:
Symlinks: /dev/disk/by-id/mmc-SS08G_0x934ee8a9
/dev/disk/by-path/platform-7864900.sdhci
IdUsage:
IdVersion:
org.freedesktop.UDisks2.PartitionTable:
MDRaid: ‘/’
Type: dos
MDRaidMember: ‘/’
PreferredDevice: /dev/mmcblk1
ReadOnly: false
Size: 7948206080
Symlinks: /dev/disk/by-id/mmc-SS08G_0x934ee8a9
/dev/disk/by-path/platform-7864900.sdhci
org.freedesktop.UDisks2.PartitionTable:
Type: dos
08:38:16.134: Added /org/freedesktop/UDisks2/block_devices/mmcblk1p1
org.freedesktop.UDisks2.Block:
08:38:16.134: Added /org/freedesktop/UDisks2/block_devices/mmcblk1p1
org.freedesktop.UDisks2.Block:
Configuration: [(‘fstab’, {‘fsname’: <b’/dev/mmcblk1p1’>, ‘dir’: <b’/media/linaro/SD’>, ‘type’: <b’vfat’>, ‘opts’: <b’noauto’>, ‘freq’: <0>, ‘passno’: <0>})]
CryptoBackingDevice: ‘/’
Device: /dev/mmcblk1p1
Configuration: [(‘fstab’, {‘fsname’: <b’/dev/mmcblk1p1’>, ‘dir’: <b’/media/linaro/SD’>, ‘type’: <b’vfat’>, ‘opts’: <b’noauto’>, ‘freq’: <0>, ‘passno’: <0>})]
DeviceNumber: 45953
CryptoBackingDevice: ‘/’
Drive: ‘/org/freedesktop/UDisks2/drives/SS08G_0x934ee8a9’
Device: /dev/mmcblk1p1
HintAuto: true
DeviceNumber: 45953
HintIconName:
HintIgnore: false
Drive: ‘/org/freedesktop/UDisks2/drives/SS08G_0x934ee8a9’
HintName:
HintAuto: true
HintPartitionable: true
HintIconName:
HintSymbolicIconName:
HintIgnore: false
HintSystem: false
HintName:
Id: by-uuid-3B31-B5E0
HintPartitionable: true
IdLabel:
HintSymbolicIconName:
IdType: vfat
HintSystem: false
IdUUID: 3B31-B5E0
Id: by-uuid-3B31-B5E0
IdUsage: filesystem
IdLabel:
IdType: vfat
IdUUID: 3B31-B5E0
IdUsage: filesystem
IdVersion: FAT32
MDRaid: ‘/’
MDRaidMember: ‘/’
PreferredDevice: /dev/mmcblk1p1
ReadOnly: false
Size: 7944011776
Symlinks: /dev/disk/by-id/mmc-SS08G_0x934ee8a9-part1
/dev/disk/by-partuuid/5fd48c86-01
/dev/disk/by-path/platform-7864900.sdhci-part1
/dev/disk/by-uuid/3B31-B5E0
org.freedesktop.UDisks2.Filesystem:
MountPoints:
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name:
Number: 1
Offset: 4194304
Size: 7944011776
Table: ‘/org/freedesktop/UDisks2/block_devices/mmcblk1’
Type: 0x0b
UUID: 5fd48c86-01
IdVersion: FAT32
MDRaid: ‘/’
MDRaidMember: ‘/’
PreferredDevice: /dev/mmcblk1p1
ReadOnly: false
Size: 7944011776
Symlinks: /dev/disk/by-id/mmc-SS08G_0x934ee8a9-part1
/dev/disk/by-partuuid/5fd48c86-01
/dev/disk/by-path/platform-7864900.sdhci-part1
/dev/disk/by-uuid/3B31-B5E0
org.freedesktop.UDisks2.Filesystem:
MountPoints:
org.freedesktop.UDisks2.Partition:
Flags: 0
IsContained: false
IsContainer: false
Name:
Number: 1
Offset: 4194304
Size: 7944011776
Table: ‘/org/freedesktop/UDisks2/block_devices/mmcblk1’
Type: 0x0b
UUID: 5fd48c86-01

root@linaro-alip:/#
root@linaro-alip:/#
root@linaro-alip:/#
root@linaro-alip:/#
root@linaro-alip:/#
root@linaro-alip:/# [ 2908.195196] mmc1: card aaaa removed
08:38:24.436: Removed /org/freedesktop/UDisks2/block_devices/mmcblk1p1
08:38:24.436: Removed /org/freedesktop/UDisks2/block_devices/mmcblk1p1
08:38:24.465: 08:38:24.465: Removed /org/freedesktop/UDisks2/block_devices/mmcblk1
Removed /org/freedesktop/UDisks2/block_devices/mmcblk1
08:38:24.468: 08:38:24.468: Removed /org/freedesktop/UDisks2/drives/SS08G_0x934ee8a9
Removed /org/freedesktop/UDisks2/drives/SS08G_0x934ee8a9

root@linaro-alip:/#
root@linaro-alip:/#

This means it should be automatically mounted by udisk, but it’s not, for unknown reason…

This is a very old release, please update.