eMMC (Re)-Detection by Driver Re-Binding

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
1 Like

Hi, this not working for me on Renegade board booted off SD with updated Buster
Permission denied message even when using sudo

From root I get no such device

Renegade board is ROC-RK3328-CC.
Renegade Elite is ROC-RK3399-PC.

Renegade board is ROC-RK3328-CC

Thanks but there wasn’t any confusion around the hardware I’m using

We didn’t have instructions for Renegade before so you probably used the command for Renegade Elite instead.

1 Like

Thanks, I’ll give it another try when I can find some time


This works in PiOS, will it work with Armbian too?

Yes, it will work in Armbian.

1 Like