Disable SD card interface in U-Boot

Hello Friends!

I would like to disable SD card interface so the it will never be checked in U-Boot. Meaning even if I plug in a SD card, it will be ignored.

While implementing A/B-partitioning I have trouble to recognise the right partition. The device number is changing randomly. On one boot it is root=/dev/mmcblk2p${rootfspart} and on others it is root=/dev/mmcblk0p${rootfspart}. On the first boot after flashing it is guaranteed that it is root=/dev/mmcblk0p${rootfspart} . After that boot I’m able to set a LABEL=rootfsA for fstab.

The other reason is security context, so you cant use an SD card on my Radxa Zero, only eMMC.

I’m using buildroot-2022.11 for my images and genimage for partition layout.

Using this tutorial along.

Thanks everyone in advance!