How to disable eMMC with Wireless Cape ?
Created by: JoseGoncalves
With the latest BeagleBone console testing image (Debian 10.3), I'm unable to completely disable eMMC in order to have a Wireless Connectivity Cape operating on the top of a BeagleBone Black.
What I've tried. First I've changed in /boot/uEnv.txt
:
disable_uboot_overlay_emmc=1
what works like expected:
debian@beaglebone:~$ sudo /opt/scripts/tools/version.sh | grep -E '(boot|BOOT|Boot)'
[sudo] password for debian:
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[disable_uboot_overlay_emmc=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
[ 1.794963] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
debian@beaglebone:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 14.4G 0 disk
└─mmcblk0p1 179:1 0 896M 0 part /
After I enable the Cape overlay with:
dtb_overlay=/lib/firmware/BB-GATEWAY-WL1837-00A0.dtbo
the eMMC is activated by the kernel:
debian@beaglebone:~$ sudo /opt/scripts/tools/version.sh | grep -E '(boot|BOOT|Boot)'
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-GATEWAY-WL1837-00A0]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[disable_uboot_overlay_emmc=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
uboot_overlay_options:[dtb_overlay=/lib/firmware/BB-GATEWAY-WL1837-00A0.dtbo]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
[ 1.753157] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
debian@beaglebone:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
mmcblk0 179:0 0 14.4G 0 disk
└─mmcblk0p1 179:1 0 896M 0 part /
mmcblk1 179:8 0 3.6G 0 disk
mmcblk1boot0 179:16 0 2M 1 disk
mmcblk1boot1 179:24 0 2M 1 disk
and, in this way, the Wi-Fi chip in the Cape is never enabled. Any hints on how can I fix this?