Banana Pi BPI-B4 micro-sd device can't be detected

When booting from emmc, the information on the micro-sd card cannot be read. The specific procedure so far is

  1. Install BPS on micro-sd.
  2. Start up with micro-sd and install it on emmc.
  3. Remove the micro-sd and start it with emmc.
  4. Various updates (emmc)
  5. Insert the above micro-sd
  6. Nothing was detected.

I think there is a problem with the dtc file, but I don’t know how to solve it. Attach the dtc file. machine_device_tree.out (43。6 キロバイト)

[email protected]:~/dtc#  cat /sys/kernel/debug/mmc0/ios
clock:          200000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      3 (8 bits)
timing spec:    9 (mmc HS200)
signal voltage: 1 (1.80 V)
driver type:    0 (driver type B)

[email protected]:~/dtc#  cat /sys/kernel/debug/mmc1/ios
cat: /sys/kernel/debug/mmc1/ios: No such file or directory

[email protected]:~/dtc#  uname -a 
Linux bpi-iot-ros-ai 4.9.119-BPI-M4-Kernel #1 SMP PREEMPT Mon May 18 10:41:36 HKT 2020 aarch64 aarch64 aarch64 GNU/Linux

[email protected]:~/dtc#  cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"

[email protected]:~/dtc# lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0      179:0    0  7.3G  0 disk
tqmmcblk0p1  179:1    0  256M  0 part /mnt
mqmmcblk0p2  179:2    0  6.8G  0 part /
mmcblk0boot0 179:8    0    4M  1 disk
mmcblk0boot1 179:16   0    4M  1 disk
mmcblk0rpmb  179:24   0  512K  0 disk
[email protected]:~/dtc# dtc --sort -I fs -O dts  /sys/firmware/devicetree/base > machin_device_tree.out

Thanks.

I got micro SD information. Only [3] Modify (uEnv.txt edit)

[email protected]:~# cat /sys/kernel/debug/mmc0/ios
clock:          208000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      2 (4 bits)
timing spec:    6 (sd uhs SDR104)
signal voltage: 1 (1.80 V)
driver type:    0 (driver type B)
[email protected]:~# cat /sys/kernel/debug/mmc1/ios
clock:          200000000 Hz
vdd:            21 (3.3 ~ 3.4 V)
bus mode:       2 (push-pull)
chip select:    0 (don't care)
power mode:     2 (on)
bus width:      3 (8 bits)
timing spec:    9 (mmc HS200)
signal voltage: 1 (1.80 V)
driver type:    0 (driver type B)