[Buildroot] [git commit] board/lego/ev3/genimage.cfg: beautify file

Arnout Vandecappelle (Essensium/Mind) arnout at mind.be
Mon Nov 8 21:59:28 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=b2279c32c7325ce0d91e76e054fda54d9a43d408
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Beatify this genimage .cfg file to have consistency with all genimage .cfg
files in Buildroot.

Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
 board/lego/ev3/genimage.cfg | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/board/lego/ev3/genimage.cfg b/board/lego/ev3/genimage.cfg
index 14880e8f11..3eaf3915bb 100644
--- a/board/lego/ev3/genimage.cfg
+++ b/board/lego/ev3/genimage.cfg
@@ -5,8 +5,8 @@
 # The Flash image
 
 flash nor-16M-256 {
-	pebsize = 4096
-	numpebs = 4096
+	pebsize = 4K
+	numpebs = 4K
 	minimum-io-unit-size = 256
 }
 
@@ -14,24 +14,28 @@ image flash.bin {
 	flash {
 	}
 	flashtype = "nor-16M-256"
+
 	partition uboot {
 		image = "u-boot.bin"
 		size = 256K
 	}
+
 	partition dtb {
 		image = "da850-lego-ev3.dtb"
+		offset = 256K
 		size = 64K
-		offset = 0x40000
 	}
+
 	partition uimage {
 		image = "uImage"
+		offset = 320K
 		size = 4M
-		offset = 0x50000
 	}
+
 	partition rootfs {
 		image = "rootfs.squashfs"
+		offset = 4416K # 4M + 320KB
 		size = 10M
-		offset = 0x450000
 	}
 }
 
@@ -42,22 +46,26 @@ image boot.vfat {
 		file uImage {
 			image = "uImage"
 		}
+
 		file da850-lego-ev3.dtb {
 			image = "da850-lego-ev3.dtb"
 		}
 	}
+
 	size = 16M
 }
 
 image sdcard.img {
 	hdimage {
 	}
+
 	partition boot {
 		partition-type = 0xC
 		bootable = "true"
 		image = "boot.vfat"
 		offset = 4M
 	}
+
 	partition rootfs {
 		partition-type = 0x83
 		image = "rootfs.ext2"


More information about the buildroot mailing list