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 キロバイト)

root@bpi-iot-ros-ai:~/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)

root@bpi-iot-ros-ai:~/dtc#  cat /sys/kernel/debug/mmc1/ios
cat: /sys/kernel/debug/mmc1/ios: No such file or directory

root@bpi-iot-ros-ai:~/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

root@bpi-iot-ros-ai:~/dtc#  cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"

root@bpi-iot-ros-ai:~/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
root@bpi-iot-ros-ai:~/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)

root@bpi-iot-ros-ai:~# 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)
root@bpi-iot-ros-ai:~# 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)