diff mbox series

[1/2] wandboard: genimage: Pass an offset for the rootfs

Message ID 1506002379-23490-1-git-send-email-fabio.estevam@nxp.com
State Accepted
Headers show
Series [1/2] wandboard: genimage: Pass an offset for the rootfs | expand

Commit Message

Fabio Estevam Sept. 21, 2017, 1:59 p.m. UTC
Pass an offset of 1MB for the start of the rootfs.

Otherwise we get rootfs corruption when the bootloader is manually
written to the SD card.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 board/wandboard/genimage.cfg | 1 +
 1 file changed, 1 insertion(+)

Comments

Arnout Vandecappelle Sept. 26, 2017, 10:05 p.m. UTC | #1
On 21-09-17 15:59, Fabio Estevam wrote:
> Pass an offset of 1MB for the start of the rootfs.
> 
> Otherwise we get rootfs corruption when the bootloader is manually
> written to the SD card.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

 Applied both to master, thanks.

 Regards,
 Arnout


> ---
>  board/wandboard/genimage.cfg | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/board/wandboard/genimage.cfg b/board/wandboard/genimage.cfg
> index b23a91b..ad4a6a5 100644
> --- a/board/wandboard/genimage.cfg
> +++ b/board/wandboard/genimage.cfg
> @@ -26,6 +26,7 @@ image sdcard.img {
>    partition rootfs {
>      partition-type = 0x83
>      image = "rootfs.ext4"
> +    offset = 1M
>      size = 512M
>    }
>  }
>
Peter Korsgaard Sept. 29, 2017, 7:45 a.m. UTC | #2
>>>>> "Fabio" == Fabio Estevam <fabio.estevam@nxp.com> writes:

 > Pass an offset of 1MB for the start of the rootfs.
 > Otherwise we get rootfs corruption when the bootloader is manually
 > written to the SD card.

 > Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

Committed to 2017.02.x, thanks.
Peter Korsgaard Oct. 16, 2017, 10:03 p.m. UTC | #3
>>>>> "Fabio" == Fabio Estevam <fabio.estevam@nxp.com> writes:

 > Pass an offset of 1MB for the start of the rootfs.
 > Otherwise we get rootfs corruption when the bootloader is manually
 > written to the SD card.

 > Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>

Committed to 2017.08.x, thanks.
diff mbox series

Patch

diff --git a/board/wandboard/genimage.cfg b/board/wandboard/genimage.cfg
index b23a91b..ad4a6a5 100644
--- a/board/wandboard/genimage.cfg
+++ b/board/wandboard/genimage.cfg
@@ -26,6 +26,7 @@  image sdcard.img {
   partition rootfs {
     partition-type = 0x83
     image = "rootfs.ext4"
+    offset = 1M
     size = 512M
   }
 }