Skip to content

Commit

Permalink
rescue-image: Add third possible U-Boot env location
Browse files Browse the repository at this point in the history
Shouldn't be needed as we update rescue only with U-Boot but just in
case let's keep all three options there.
  • Loading branch information
miska committed Aug 30, 2024
1 parent 18865c9 commit a3c4f1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hardware/rescue-image/files/omnia.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ board_init() {
idx="$(find_mtd_index u-boot-env)"
if [ -n "$idx" ]; then
echo "/dev/mtd${idx} 0x0 0x10000 0x10000" > /etc/fw_env.config
elif grep -q 'U-Boot 2015.10-rc2' /dev/mtd0; then
echo "/dev/mtd0 0xc0000 0x10000 0x40000" > /etc/fw_env.config
else
echo '/dev/mtd0 0xF0000 0x10000 0x10000' > /etc/fw_env.config
fi
Expand Down

0 comments on commit a3c4f1c

Please sign in to comment.