Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
setenv root_dev /dev/mmcblk0p3;
fi;
setenv root_dev /dev/mmcblk0p3;
fi;
+if test ${dev_num} = ""; then
+ setenv dev_num 0;
+fi;
+
if test ${boot_part} = ""; then
if test ${boot_part} = ""; then
+ setenv boot_part ${dev_num}:1;
fi;
if test ${soc} = "kirkwood"; then
fi;
if test ${soc} = "kirkwood"; then
KVER=xxxKVERxxx
DTBSUNXI=sun8i-h3-nanopi-r1.dtb
KVER=xxxKVERxxx
DTBSUNXI=sun8i-h3-nanopi-r1.dtb
+root_dev=UUID=xxxROOT-UUIDxxx
rm -f $(MNThdd)/etc/grub.d/11_linux_scon
endif
rm -f $(MNThdd)/etc/grub.d/11_linux_scon
endif
+ifeq "$(BUILD_ARCH)" "armv5tel"
+ # Insert the UUID to uENV.txt
+ sed -i $(MNThdd)/boot/uENV.txt \
+ -e "s/^root_dev=.*/root_dev=UUID=$$(blkid -o value -s UUID $(PART_ROOT))/g"
+endif
+
# Set ramdisk mode to automatic
echo RAMDISK_MODE=2 > $(MNThdd)/etc/sysconfig/ramdisk
# Set ramdisk mode to automatic
echo RAMDISK_MODE=2 > $(MNThdd)/etc/sysconfig/ramdisk