fixed partition ID in uboot dat
This commit is contained in:
@ -18,9 +18,9 @@ sha256sum -c ${image_file}.sha256
|
||||
current_idx=$(rdev | sed 's#/dev/mmcblk0p\([^ ]*\).*#\1#')
|
||||
|
||||
if [ $current_idx -eq 2 ]; then
|
||||
echo "Start update for partition B"
|
||||
else
|
||||
echo "Start update for partition A"
|
||||
else
|
||||
echo "Start update for partition B"
|
||||
fi
|
||||
|
||||
flash_device="/dev/mmcblk0p${flash_idx}"
|
||||
|
@ -71,7 +71,7 @@ int main(int argc, char* argv[]) {
|
||||
data[1] = 0;
|
||||
|
||||
// boot partition
|
||||
data[2] = 2; // A=1, B=2
|
||||
data[2] = 2; // A=2, B=3
|
||||
}
|
||||
|
||||
// handle commands
|
||||
|
Reference in New Issue
Block a user