live-build/ubuntu-core/hooks/16-ensure-uboot.chroot: we need to go into redundEnv mode to get the 5byte header that uboot uses by default, don't ask why

ubuntu/yakkety
Michael Vogt 10 years ago
parent 4d2b68630d
commit 133addd590

@ -6,6 +6,13 @@ if [ "$(dpkg --print-architecture)" = "armhf" ]; then
mkdir -p /boot/uboot mkdir -p /boot/uboot
cat > /etc/fw_env.config <<EOF cat > /etc/fw_env.config <<EOF
# snappy u-boot env config # snappy u-boot env config
/boot/uboot/uboot.env 0x0000 0x4000 # its crucial that we have the two entries here
# u-boot/tools/env/fw_env.c
# will read only 4 header bytes if its a single
# line but our header has 5 byte. by having two
# entries like this in the config it magically
# switches to the 5 byte header type
/boot/uboot/uboot.env 0x0000 0x20000
/boot/uboot/uboot.env 0x0000 0x20000
EOF EOF
fi fi

Loading…
Cancel
Save