gemini: Generate harddisk image for DNS-313
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 15 Feb 2019 16:02:23 +0000 (17:02 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Wed, 20 Feb 2019 17:51:31 +0000 (18:51 +0100)
commitc72b1d8468b027f6d42eacfd741e288f552bc27d
tree72b02e1386904dcaf804a9d5070f1801676b8c52
parent6cdf08f02625975de32cce5ceab2e5d84a0134f0
gemini: Generate harddisk image for DNS-313

This makes OpenWrt build an Ext2+Ext4 partitioned image
for the D-Link DNS-313 with two blank partitions, a boot
partition on /dev/sda3 and a rootfs partition on
/dev/sda4.

This uses the methods already used in apm821xx including
the tricks to convert the generated Ext2 filesystem
partition to version 1 so that the firmware bootloader
will properly recognize it.

We patch a bit around the build files to make sure we
get the rootfs size set and that genext2fs is properly
built.

Tested on the D-Link DNS-313.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[Fixing and tricksing]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
target/linux/gemini/Makefile
target/linux/gemini/image/Makefile
target/linux/gemini/image/dns313_gen_hdd_img.sh [new file with mode: 0755]
tools/Makefile