I got it! Recognize tthe SD cart after boot by plug - like Android
Edit the file “sys_config.fex” and look for [mmc0_para]
The path: this path (or file) ist ONLY for for Resolution 1080P
/BPI-M3-bsp/sunxi-pack/chips/sun8iw6p1/configs/BPI_M3_1080P/sys_config.fex
(https://github.com/BPI-SINOVOIP/BPI-M3-bsp)
;--------------------------------------------------------------------------------
; SDMMC PINS MAPPING |
; ------------------------------------------------------------------------------|
; Config Guide |
; sdc_used: 1-enable card, 0-disable card |
; sdc_detmode: card detect mode |
; 1-detect card by gpio polling |
; 2-detect card by gpio irq(must use IO with irq function) |
; 3-no detect, always in for boot card |
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert|
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit |
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO |
; sdc_isio: for sdio card |
; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for|
; SD3.0 or eMMC4.5, regulator must be configured. the value is |
; the ldo name of AXP221, eg: sdc_regulator = “axp22_eldo2” |
; other: GPIO Mapping configuration |
; ------------------------------------------------------------------------------|
; Note: |
; 1 if detmode=2, sdc_det’s config=6 |
; else if detmode=1, sdc_det’s config=0 |
; else sdc_det IO is not necessary |
; 2 if the customer wants to support UHS-I and HS200 features, he must provide|
; an independent power supply for the card. This is only used in platforms |
; that supports SD3.0 cards and eMMC4.4+ flashes
…
|…
…
;--------------------------------------------------------------------------------
[mmc0_para]
sdc_used = 1
sdc_detmode = 3
sdc_buswidth = 4
sdc_clk = port:PF02<2><1><2>
sdc_cmd = port:PF03<2><1><2>
sdc_d0 = port:PF01<2><1><2>
sdc_d1 = port:PF00<2><1><2>
sdc_d2 = port:PF05<2><1><2>
sdc_d3 = port:PF04<2><1><2>
sdc_det = port:PF06<0><1><2>
sdc_use_wp = 0
sdc_wp =
sdc_isio = 0
sdc_regulator = “none”
sdc_power_supply = “vcc-card”
…
…
…
And the most important!
Change sdc_detmode from 3 to 1
after compile und “dd”…
[email protected]:~ # dmesg | tail
[ 155.365740] mmc1: new high speed SDHC card at address 59b4
[ 155.372439] mmcblk1: mmc1:59b4 USD00 29.5 GiB
[ 155.378893] mmcblk1: p1 p2
[ 155.382764] sd init ok
[email protected]:~ # cat /proc/partitions
major minor #blocks name
179 0 7634944 mmcblk0
179 1 262144 mmcblk0p1
179 2 7270400 mmcblk0p2
179 32 4096 mmcblk0boot1
179 16 4096 mmcblk0boot0
179 48 30981120 mmcblk1
179 49 51200 mmcblk1p1
179 50 30827520 mmcblk1p2
But sdc_detmode=1 is good ONLY for eMMC, for SD card use sds_detmode=3 (SD-card with sdc_detmode=1 no boot)
Great