Newer
Older
barebox / arch / arm / boards / efika-mx-smartbook / env / boot / mmc-left
#!/bin/sh

if [ "$1" = menu ]; then
	boot-menu-add-entry "$0" "left MMC slot"
	exit
fi

path="/mnt/mmc-left.0"

global.bootm.image="${path}/linuximage"

oftree=${path}/oftree
if [ -f $oftree ]; then
	global.bootm.oftree="$oftree"
fi

# The rootdevice may actually be mmcblk1p2 if a card
# is inserted to the back MMC slot
global.linux.bootargs.dyn.root="root=/dev/mmcblk0p2"