The MMC subsystem driver can unbind and bind devices to re-detect them. eMMC can be hot plugged but require the driver to be re-bound for the driver run through the initial probe again to detect the device. Instead of running the commands manually, you can also use Libre Computer Flash Tool’s b-emmc rebind command which works the same as the manual commands below:
sudo ./lft.sh b-emmc rebind
# equivalent
sudo ./lft.sh b-emmc unbind
sudo ./lft.sh b-emmc bind
- ALL-H3-CC
sudo su
echo -n 1c11000.mmc > /sys/bus/platform/drivers/sunxi-mmc/unbind
echo -n 1c11000.mmc > /sys/bus/platform/drivers/sunxi-mmc/bind
- AML-S805X-AC
- AML-S905X-CC
- AML-S905X-CC-V2
- AML-S905D-PC
sudo su
echo -n d0074000.mmc > /sys/bus/platform/drivers/meson-gx-mmc/unbind
echo -n d0074000.mmc > /sys/bus/platform/drivers/meson-gx-mmc/bind
- AML-A311D-CC
- AML-S905D3-CC
sudo su
echo -n ffe07000.mmc > /sys/bus/platform/drivers/meson-gx-mmc/unbind
echo -n ffe07000.mmc > /sys/bus/platform/drivers/meson-gx-mmc/bind
- ROC-RK3328-CC
echo -n ff520000.mmc | sudo tee /sys/bus/platform/drivers/dwmmc_rockchip/unbind
echo -n ff520000.mmc | sudo tee /sys/bus/platform/drivers/dwmmc_rockchip/bind
- ROC-RK3399-PC
echo -n fe320000.mmc > /sys/bus/platform/drivers/dwmmc_rockchip/unbind
echo -n fe320000.mmc > /sys/bus/platform/drivers/dwmmc_rockchip/bind