Skip to contentSkip to conversation

board/bananapi/bananapi-m64/genimage.cfg: beautify file

PATCH In review Giulio Benetti 2 participants 4 messages Nov 7, 2021 – Nov 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 16/102 board/bananapi/bananapi-m64/genimage.cfg: beautify file

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

---
 board/bananapi/bananapi-m64/genimage.cfg | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
board/bananapi/bananapi-m64/genimage.cfg +3 -2
index 9730d8faac..52127167ce 100644
@@ -6,6 +6,7 @@ image boot.vfat {
 			"boot.scr"
 		}
 	}
+
 	size = 64M
 }
 
@@ -16,14 +17,14 @@ image sdcard.img {
 	partition spl {
 		in-partition-table = "no"
 		image = "sunxi-spl.bin"
-		offset = 8192
+		offset = 8K
 	}
 
 	partition u-boot {
 		in-partition-table = "no"
 		image = "u-boot.itb"
 		offset = 40K
-		size = 1M # 1MB - 40K
+		size = 984K # 1MB - 40KB
 	}
 
 	partition boot {
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 24 lines · Giulio Benetti

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

---
  board/bananapi/bananapi-m64/genimage.cfg | 5 +++--
  1 file changed, 3 insertions(+), 2 deletions(-)
board/bananapi/bananapi-m64/genimage.cfg +1 -0
index 9730d8faac..52127167ce 100644
@@ -6,6 +6,7 @@ image boot.vfat {
  			"boot.scr"
  		}
  	}
+
  	size = 64M
  }
 
@@ -16,14 +17,14 @@ image sdcard.img {
  	partition spl {
  		in-partition-table = "no"
  		image = "sunxi-spl.bin"

board/bananapi/bananapi-m64/genimage.cfg image sdcard.img { · line 27

Quoted 10 lines
board/bananapi/bananapi-m64/genimage.cfg +2 -2
-		offset = 8192
+		offset = 8K
  	}
 
  	partition u-boot {
  		in-partition-table = "no"
  		image = "u-boot.itb"
  		offset = 40K
-		size = 1M # 1MB - 40K
+		size = 984K # 1MB - 40KB

Since there's no way you actually tested this on a board, and there's a slight
risk that one of these defconfigs actually needs the full 1MB rather than 984K, I've reverted all of those to 1M.

Regards,
Arnout

board/bananapi/bananapi-m64/genimage.cfg image sdcard.img { · line 30

Quoted 4 lines
board/bananapi/bananapi-m64/genimage.cfg +0 -0
  	}
 
  	partition boot {

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 31 lines · Arnout Vandecappelle
Quoted 28 lines · Giulio Benetti

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

---
   board/bananapi/bananapi-m64/genimage.cfg | 5 +++--
   1 file changed, 3 insertions(+), 2 deletions(-)
board/bananapi/bananapi-m64/genimage.cfg +2 -1
index 9730d8faac..52127167ce 100644
@@ -6,6 +6,7 @@ image boot.vfat {
   			"boot.scr"
   		}
   	}
+
   	size = 64M
   }
 
@@ -16,14 +17,14 @@ image sdcard.img {
   	partition spl {
   		in-partition-table = "no"
   		image = "sunxi-spl.bin"
-		offset = 8192
+		offset = 8K
   	}
 
Quoted 11 lines

board/bananapi/bananapi-m64/genimage.cfg image sdcard.img { · line 27

Quoted 6 lines
board/bananapi/bananapi-m64/genimage.cfg +1 -1
   	partition u-boot {
   		in-partition-table = "no"
   		image = "u-boot.itb"
   		offset = 40K
-		size = 1M # 1MB - 40K
+		size = 984K # 1MB - 40KB

Since there's no way you actually tested this on a board, and there's a slight
risk that one of these defconfigs actually needs the full 1MB rather than 984K, I've reverted all of those to 1M.

Ok, I was uncertain on those, there are 3/4 as I remember like that.

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 7 lines

Regards,
Arnout

Quoted 4 lines
board/bananapi/bananapi-m64/genimage.cfg +0 -0
   	}
 
   	partition boot {

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
Quoted 42 lines · Giulio Benetti
Quoted 31 lines · Arnout Vandecappelle
Quoted 28 lines · Giulio Benetti

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

---
   board/bananapi/bananapi-m64/genimage.cfg | 5 +++--

   1 file changed, 3 insertions(+), 2 deletions(-)
board/bananapi/bananapi-m64/genimage.cfg +0 -0
index 9730d8faac..52127167ce 100644
@@ -6,6 +6,7 @@ image boot.vfat {

               "boot.scr"
           }
       }
+
       size = 64M
   }

board/bananapi/bananapi-m64/genimage.cfg +0 -0
@@ -16,14 +17,14 @@ image sdcard.img {
        partition spl {

           in-partition-table = "no"
           image = "sunxi-spl.bin"
-        offset = 8192
+        offset = 8K
       }
       partition u-boot {
           in-partition-table = "no"

Quoted 9 lines
Quoted 4 lines

           image = "u-boot.itb"
           offset = 40K
-        size = 1M # 1MB - 40K
+        size = 984K # 1MB - 40KB

   Since there's no way you actually tested this on a board, and there's a slight risk that one of these defconfigs actually needs the full 1MB rather than 984K, I've reverted all of those to 1M.

Quoted 1 line

Ok, I was uncertain on those, there are 3/4 as I remember like that.

There are 10 of them, actually :-)

Regards,
Arnout
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot