orangepipc: Accommodate U-Boot environment on SD-card
authorPeter Korsgaard <peter@korsgaard.com>
Sat, 2 Jul 2016 11:09:59 +0000 (13:09 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 2 Jul 2016 11:19:12 +0000 (13:19 +0200)
As described by http://linux-sunxi.org/Bootable_SD_card#SD_Card_Layout

The space betweem 544KB..1MB is reserved / used for the u-boot environment,
so mark it as such to make sure genimage doesn't put other partitions here.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/orangepi/orangepipc/genimage.cfg

index 1200d3b108052b2353325edeb091a7ef048ad67a..932d81cf125c8123c386f9a2d62f254665cca99e 100644 (file)
@@ -19,6 +19,7 @@ image sdcard.img {
                in-partition-table = "no"
                image = "u-boot-sunxi-with-spl.bin"
                offset = 8192
+               size = 1040384 # 1MB - 8192
        }
 
        partition boot {