2015-04-28 16:39:53 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [ "$(dpkg --print-architecture)" = "armhf" ]; then
|
|
|
|
mkdir -p /boot/uboot
|
2015-07-16 15:22:20 +02:00
|
|
|
cat > /etc/fw_env.config <<EOF
|
2015-07-16 12:33:47 +02:00
|
|
|
# snappy u-boot env config
|
2015-07-16 15:58:16 +02:00
|
|
|
# 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
|
2015-07-16 12:33:47 +02:00
|
|
|
EOF
|
2015-04-28 16:39:53 +02:00
|
|
|
fi
|