board: atmel: genimage: add 1M offset for FAT partition
authorLudovic Desroches <ludovic.desroches@atmel.com>
Fri, 4 Nov 2016 10:15:17 +0000 (11:15 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 4 Nov 2016 14:13:59 +0000 (15:13 +0100)
With older SoCs and some SD cards, a 1024-bytes offset is needed to allow
ROM code to read the content of the FAT partition. As it is usual to get
a 1M bytes offset for the first partition, use this value to avoid boot
issues.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
board/atmel/sama5d2_xplained_mmc/genimage.cfg
board/atmel/sama5d3_xplained_mmc/genimage.cfg
board/atmel/sama5d4_xplained_mmc/genimage.cfg

index b0ba22dbb29aae3b55ad61b2a24fbd41d5f72145..d3b7af5b5c9818d3b7e4c94079146a8c0ffe877b 100644 (file)
@@ -23,6 +23,7 @@ image sdcard.img {
                partition-type = 0xC
                bootable = "true"
                image = "boot.vfat"
+               offset = 1M
        }
 
        partition rootfs {
index 32df453b01a48491388571bf993b206e5d3ab9f1..277ce5f9c9c0aef10e8db34a63917df9a306d290 100644 (file)
@@ -23,6 +23,7 @@ image sdcard.img {
                partition-type = 0xC
                bootable = "true"
                image = "boot.vfat"
+               offset = 1M
        }
 
        partition rootfs {
index b23ebe470a4bd1c59ab9bc5ea547023233e6f830..70bb3e4ff0ad8fe7cc832f30905c7b4233e2cdd5 100644 (file)
@@ -24,6 +24,7 @@ image sdcard.img {
                partition-type = 0xC
                bootable = "true"
                image = "boot.vfat"
+               offset = 1M
        }
 
        partition rootfs {