Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.

Commit

Permalink
nanopi3: symlink fw_printenv to fw_setenv to actually set the environ…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
0x011011110 committed Jul 17, 2018
1 parent faedae6 commit c51ee7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nanopi3.sh
Expand Up @@ -349,6 +349,7 @@ wget 'https://github.com/friendlyarm/sd-fuse_s5p6818/blob/master/prebuilt/fip-se
wget 'https://github.com/friendlyarm/sd-fuse_s5p6818/blob/master/prebuilt/fip-nonsecure.img?raw=true' -O "${basedir}"/bootloader/fip-nonsecure.img
wget 'https://github.com/friendlyarm/sd-fuse_s5p6818/blob/master/tools/fw_printenv?raw=true' -O "${basedir}"/bootloader/fw_printenv
chmod 755 "${basedir}"/bootloader/fw_printenv
ln -s "${basedir}"/bootloader/fw_printenv "${basedir}"/bootloader/fw_setenv

dd if="${basedir}"/bootloader/bl1-mmcboot.bin of=${loopdevice} bs=512 seek=1
dd if="${basedir}"/bootloader/fip-loader.img of=${loopdevice} bs=512 seek=129
Expand All @@ -366,7 +367,7 @@ bootargs console=ttySAC0,115200n8 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait r
bootdelay 1
EOF

./fw_printenv ${loopdevice} -s env.conf
./fw_setenv ${loopdevice} -s env.conf
sync

# It should be possible to build your own u-boot, as part of this, if you
Expand Down

0 comments on commit c51ee7c

Please sign in to comment.