# U-boot script for tizen RPI3
+if test "${target}" = "mmc0"; then;
+ setenv bootdev mmc
+fi
+if test "${target}" = "usb0"; then;
+ setenv bootdev usb
+fi
+
if test -e $bootdev $mmcbootdev:$mmcinformpart $rebootparamfile; then;
ext4load $bootdev $mmcbootdev:$mmcinformpart $rebootparam_addr $rebootparamfile;
if itest.l *${rebootparam_addr} == ${upgrade_val}; then;
if test -e $bootdev $mmcrootdev:$ramdiskpart sbin/init; then;
setenv rootdev ram0
else
- setenv rootdev mmcblk${mmcrootdev}p${mmcrootpart}
+ if test "${bootdev}" = "mmc"; then;
+ setenv rootdev mmcblk${mmcrootdev}p${mmcrootpart}
+ fi
+ if test "${bootdev}" = "usb"; then;
+ setenv rootdev sda${mmcrootpart}
+ fi
setenv bootmode normal
fi
if load $bootdev $mmcbootdev:$mmcbootpart $tizen_kernel_addr_r $prefix$kernel; then;
echo ${bootmode} "boot";
load $bootdev $mmcbootdev:$mmcbootpart $fdt_addr $fdtfile;
- if test -e mmc $mmcrootdev:$ramdiskpart sbin/init; then;
+ if test -e $bootdev $mmcrootdev:$ramdiskpart sbin/init; then;
echo "Loading Ramdisk from partition"${ramdiskpart};
- mmc read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
+ $bootdev read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
fi
+
if test "$kernel" = "zImage"; then;
bootz $tizen_kernel_addr_r $ramdisk_addr_r:$ramdisksize $fdt_addr;
else
# U-boot script for tizen RPI4
+if test "${target}" = "mmc0"; then;
+ setenv bootdev mmc
+fi
+if test "${target}" = "usb0"; then;
+ setenv bootdev usb
+fi
+
if test -e $bootdev $mmcbootdev:$mmcinformpart $rebootparamfile; then;
ext4load $bootdev $mmcbootdev:$mmcinformpart $rebootparam_addr $rebootparamfile;
if itest.l *${rebootparam_addr} == ${upgrade_val}; then;
if test -e $bootdev $mmcrootdev:$ramdiskpart sbin/init; then;
setenv rootdev ram0
else
- setenv rootdev mmcblk${mmcrootdev}p${mmcrootpart}
+ if test "${bootdev}" = "mmc"; then;
+ setenv rootdev mmcblk${mmcrootdev}p${mmcrootpart}
+ fi
+ if test "${bootdev}" = "usb"; then;
+ setenv rootdev sda${mmcrootpart}
+ fi
setenv bootmode normal
fi
if load $bootdev $mmcbootdev:$mmcbootpart $tizen_kernel_addr_r $prefix$kernel; then;
echo ${bootmode} "boot";
load $bootdev $mmcbootdev:$mmcbootpart $fdt_addr $fdtfile;
- if test -e mmc $mmcrootdev:$ramdiskpart sbin/init; then;
+ if test -e $bootdev $mmcrootdev:$ramdiskpart sbin/init; then;
echo "Loading Ramdisk from partition"${ramdiskpart};
- mmc read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
+ $bootdev read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
fi
if test "$kernel" = "zImage"; then;