Skip to contentSkip to conversation

beaglebone: better support for starting and creating images

PATCH New Marcin Jabrzyk 4 participants 8 messages Mar 14, 2014 – Oct 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 beaglebone: better support for starting and creating images

- Added short readme file with description of first steps how to start.
- Added uEnv.txt so the board can start from SDCard
- Added post-image.sh script to copy included uEnv.txt to output/images

---
 board/beaglebone/post-image.sh |  6 ++++
 board/beaglebone/readme.txt    | 62 ++++++++++++++++++++++++++++++++++++++++++
 board/beaglebone/uEnv.txt      |  3 ++
 configs/beaglebone_defconfig   |  1 +
 4 files changed, 72 insertions(+)
 create mode 100755 board/beaglebone/post-image.sh
 create mode 100644 board/beaglebone/readme.txt
 create mode 100644 board/beaglebone/uEnv.txt
board/beaglebone/post-image.sh new file +6 -0
new file mode 100755
index 0000000..7441d07
@@ -0,0 +1,6 @@
+#!/bin/sh
+# post-image.sh for BeagleBone
+# 2014, Marcin Jabrzyk <[email protected]>
+
+# copy the uEnv.txt to the output/images directory
+cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt
board/beaglebone/readme.txt new file +62 -0

63 lines not on this page · raw message

board/beaglebone/uEnv.txt new file +3 -0
new file mode 100644
index 0000000..68d6e23
@@ -0,0 +1,3 @@
+bootpart=0:1
+bootdir=
+uenvcmd=run loaduimage;run loadramdisk;run findfdt;run loadfdt;run ramboot 
configs/beaglebone_defconfig +1 -0
index 3181c66..b2052f4 100644
@@ -8,6 +8,7 @@ BR2_TARGET_GENERIC_HOSTNAME="beaglebone"
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
 # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beaglebone/post-image.sh"
 
 # filesystem
 BR2_PACKAGE_AM33X_CM3=y
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 beaglebone: better support for starting and creating images

Am 14.03.2014 13:13, schrieb Marcin Jabrzyk:

Quoted 5 lines

- Added short readme file with description of first steps how to start.
- Added uEnv.txt so the board can start from SDCard
- Added post-image.sh script to copy included uEnv.txt to output/images

Quoted 1 line

---

The patch still applies to the current HEAD. I tested it with both BeagleBone and BeagleBoneBlack as described in the readme file.

Quoted 111 lines
 board/beaglebone/post-image.sh |  6 ++++
 board/beaglebone/readme.txt    | 62 ++++++++++++++++++++++++++++++++++++++++++
 board/beaglebone/uEnv.txt      |  3 ++
 configs/beaglebone_defconfig   |  1 +
 4 files changed, 72 insertions(+)
 create mode 100755 board/beaglebone/post-image.sh
 create mode 100644 board/beaglebone/readme.txt
 create mode 100644 board/beaglebone/uEnv.txt
board/beaglebone/post-image.sh new file +6 -0
new file mode 100755
index 0000000..7441d07
@@ -0,0 +1,6 @@
+#!/bin/sh
+# post-image.sh for BeagleBone
+# 2014, Marcin Jabrzyk <[email protected]>
+
+# copy the uEnv.txt to the output/images directory
+cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt
board/beaglebone/readme.txt new file +62 -0
new file mode 100644
index 0000000..dc44751
@@ -0,0 +1,62 @@
+BeagleBone
+
+Intro
+=====
+To be able to use BeagleBone board with the images generated by
+Buildroot, you have prepare the SDCard.
+
+How to build it
+===============
+
+  $ make beaglebone_defconfig
+
+Then you can edit the build options using
+  
+  $ make menuconfig
+  
+Compile all and build rootfs image:
+  
+  $ make
+
+Result of the build
+-------------------
+
+After building, you should get a tree like this:
+
+  output/images/                                                                                                                                                                                   
+  ??? am335x-boneblack.dtb                                                                                                                                                                         
+  ??? am335x-bone.dtb
+  ??? MLO
+  ??? rootfs.ext2
+  ??? u-boot.img
+  ??? uEnv.txt
+  ??? zImage
+
+
+Prepare you SDCard
+==================
+
+You need to prepare first partition in fat32 and marked as bootable,
+and second where you will write rootfs.
+
+Copy the files to boot partition
+
+  $ cp MLO u-boot.img zImage uEnv.txt *.dtb /media/zzzzz
+  
+where /media/zzzzz is the mount point
+Then you need to write the rootfs image onto SDCard:
+
+  # dd if=rootfs.ext2 of=/dev/xxxxx
+  
+where /dev/xxxxx is the second partition. Use:
+  
+  # fdisk -l 
+  
+to check for correct one.
+
+Finish
+======
+
+Unmount all mounted SDCard partitions and insert the card to BeagleBone.
+Hold the "BOOT" button and apply power. Then release the "BOOT" button. 
+The output is available on the serial console.
\ No newline at end of file
board/beaglebone/uEnv.txt new file +3 -0
new file mode 100644
index 0000000..68d6e23
@@ -0,0 +1,3 @@
+bootpart=0:1
+bootdir=
+uenvcmd=run loaduimage;run loadramdisk;run findfdt;run loadfdt;run ramboot 
configs/beaglebone_defconfig +1 -0
index 3181c66..b2052f4 100644
@@ -8,6 +8,7 @@ BR2_TARGET_GENERIC_HOSTNAME="beaglebone"
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
 # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beaglebone/post-image.sh"
 
 # filesystem
 BR2_PACKAGE_AM33X_CM3=y
#2 lore raw

PATCH 1/1 beaglebone: better support for starting and creating images

Tried it one more time and it works fine for master.

W dniu 26.05.2014 20:27, Stephan Hoffmann pisze:

Quoted 125 lines

Am 14.03.2014 13:13, schrieb Marcin Jabrzyk:

Quoted 5 lines

- Added short readme file with description of first steps how to start.
- Added uEnv.txt so the board can start from SDCard
- Added post-image.sh script to copy included uEnv.txt to output/images

Quoted 1 line

---

The patch still applies to the current HEAD. I tested it with both BeagleBone and BeagleBoneBlack as described in the readme file.

Quoted 104 lines
 board/beaglebone/post-image.sh |  6 ++++
 board/beaglebone/readme.txt    | 62 ++++++++++++++++++++++++++++++++++++++++++
 board/beaglebone/uEnv.txt      |  3 ++
 configs/beaglebone_defconfig   |  1 +
 4 files changed, 72 insertions(+)
 create mode 100755 board/beaglebone/post-image.sh
 create mode 100644 board/beaglebone/readme.txt
 create mode 100644 board/beaglebone/uEnv.txt
board/beaglebone/post-image.sh new file +6 -0
new file mode 100755
index 0000000..7441d07
@@ -0,0 +1,6 @@
+#!/bin/sh
+# post-image.sh for BeagleBone
+# 2014, Marcin Jabrzyk <[email protected]>
+
+# copy the uEnv.txt to the output/images directory
+cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt
board/beaglebone/readme.txt new file +62 -0
new file mode 100644
index 0000000..dc44751
@@ -0,0 +1,62 @@
+BeagleBone
+
+Intro
+=====
+To be able to use BeagleBone board with the images generated by
+Buildroot, you have prepare the SDCard.
+
+How to build it
+===============
+
+  $ make beaglebone_defconfig
+
+Then you can edit the build options using
+  
+  $ make menuconfig
+  
+Compile all and build rootfs image:
+  
+  $ make
+
+Result of the build
+-------------------
+
+After building, you should get a tree like this:
+
+  output/images/                                                                                                                                                                                   
+  ??? am335x-boneblack.dtb                                                                                                                                                                         
+  ??? am335x-bone.dtb
+  ??? MLO
+  ??? rootfs.ext2
+  ??? u-boot.img
+  ??? uEnv.txt
+  ??? zImage
+
+
+Prepare you SDCard
+==================
+
+You need to prepare first partition in fat32 and marked as bootable,
+and second where you will write rootfs.
+
+Copy the files to boot partition
+
+  $ cp MLO u-boot.img zImage uEnv.txt *.dtb /media/zzzzz
+  
+where /media/zzzzz is the mount point
+Then you need to write the rootfs image onto SDCard:
+
+  # dd if=rootfs.ext2 of=/dev/xxxxx
+  
+where /dev/xxxxx is the second partition. Use:
+  
+  # fdisk -l 
+  
+to check for correct one.
+
+Finish
+======
+
+Unmount all mounted SDCard partitions and insert the card to BeagleBone.
+Hold the "BOOT" button and apply power. Then release the "BOOT" button. 
+The output is available on the serial console.
\ No newline at end of file
board/beaglebone/uEnv.txt new file +3 -0
new file mode 100644
index 0000000..68d6e23
@@ -0,0 +1,3 @@
+bootpart=0:1
+bootdir=
+uenvcmd=run loaduimage;run loadramdisk;run findfdt;run loadfdt;run ramboot 
configs/beaglebone_defconfig +0 -0
index 3181c66..b2052f4 100644

configs/beaglebone_defconfig BR2_TARGET_GENERIC_HOSTNAME="beaglebone" · line 14

Quoted 7 lines
configs/beaglebone_defconfig +1 -0
@@ -8,6 +8,7 @@ BR2_TARGET_GENERIC_HOSTNAME="beaglebone"
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
 # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beaglebone/post-image.sh"
 
 # filesystem
 BR2_PACKAGE_AM33X_CM3=y

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#3 lore raw

PATCH 1/1 beaglebone: better support for starting and creating images

Hello community,

is there really no interest in this patch?

I personally think it would be a great improvement for beaglebone support, but do not feel suficiently familiar with buildrooot to apply Acked-by.

Kind regards

Stephan

Am 09.06.2014 15:37, schrieb Marcin Jabrzyk:

Quoted 134 lines

Tried it one more time and it works fine for master.

W dniu 26.05.2014 20:27, Stephan Hoffmann pisze:

Quoted 119 lines

Am 14.03.2014 13:13, schrieb Marcin Jabrzyk:

Quoted 5 lines

- Added short readme file with description of first steps how to start.
- Added uEnv.txt so the board can start from SDCard
- Added post-image.sh script to copy included uEnv.txt to output/images

Quoted 1 line

---

The patch still applies to the current HEAD. I tested it with both BeagleBone and BeagleBoneBlack as described in the readme file.

Quoted 109 lines
 board/beaglebone/post-image.sh |  6 ++++
 board/beaglebone/readme.txt    | 62 ++++++++++++++++++++++++++++++++++++++++++
 board/beaglebone/uEnv.txt      |  3 ++
 configs/beaglebone_defconfig   |  1 +
 4 files changed, 72 insertions(+)
 create mode 100755 board/beaglebone/post-image.sh
 create mode 100644 board/beaglebone/readme.txt
 create mode 100644 board/beaglebone/uEnv.txt
board/beaglebone/post-image.sh new file +6 -0
new file mode 100755
index 0000000..7441d07
@@ -0,0 +1,6 @@
+#!/bin/sh
+# post-image.sh for BeagleBone
+# 2014, Marcin Jabrzyk <[email protected]>
+
+# copy the uEnv.txt to the output/images directory
+cp board/beaglebone/uEnv.txt $BINARIES_DIR/uEnv.txt
board/beaglebone/readme.txt new file +62 -0
new file mode 100644
index 0000000..dc44751
@@ -0,0 +1,62 @@
+BeagleBone
+
+Intro
+=====
+To be able to use BeagleBone board with the images generated by
+Buildroot, you have prepare the SDCard.
+
+How to build it
+===============
+
+  $ make beaglebone_defconfig
+
+Then you can edit the build options using
+  
+  $ make menuconfig
+  
+Compile all and build rootfs image:
+  
+  $ make
+
+Result of the build
+-------------------
+
+After building, you should get a tree like this:
+
+  output/images/                                                                                                                                                                                   
+  ??? am335x-boneblack.dtb                                                                                                                                                                         
+  ??? am335x-bone.dtb
+  ??? MLO
+  ??? rootfs.ext2
+  ??? u-boot.img
+  ??? uEnv.txt
+  ??? zImage
+
+
+Prepare you SDCard
+==================
+
+You need to prepare first partition in fat32 and marked as bootable,
+and second where you will write rootfs.
+
+Copy the files to boot partition
+
+  $ cp MLO u-boot.img zImage uEnv.txt *.dtb /media/zzzzz
+  
+where /media/zzzzz is the mount point
+Then you need to write the rootfs image onto SDCard:
+
+  # dd if=rootfs.ext2 of=/dev/xxxxx
+  
+where /dev/xxxxx is the second partition. Use:
+  
+  # fdisk -l 
+  
+to check for correct one.
+
+Finish
+======
+
+Unmount all mounted SDCard partitions and insert the card to BeagleBone.
+Hold the "BOOT" button and apply power. Then release the "BOOT" button. 
+The output is available on the serial console.
\ No newline at end of file
board/beaglebone/uEnv.txt new file +3 -0
new file mode 100644
index 0000000..68d6e23
@@ -0,0 +1,3 @@
+bootpart=0:1
+bootdir=
+uenvcmd=run loaduimage;run loadramdisk;run findfdt;run loadfdt;run ramboot 
configs/beaglebone_defconfig +1 -0
index 3181c66..b2052f4 100644
@@ -8,6 +8,7 @@ BR2_TARGET_GENERIC_HOSTNAME="beaglebone"
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
 # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beaglebone/post-image.sh"
 
Quoted 6 lines

configs/beaglebone_defconfig BR2_TARGET_GENERIC_HOSTNAME="beaglebone" · line 14

Quoted 2 lines
configs/beaglebone_defconfig +0 -0
 # filesystem
 BR2_PACKAGE_AM33X_CM3=y

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#4 lore raw

PATCH 1/1 beaglebone: better support for starting and creating images

In reply to Marcin Jabrzyk
Quoted 5 lines · Marcin Jabrzyk

- Added short readme file with description of first steps how to start.
- Added uEnv.txt so the board can start from SDCard
- Added post-image.sh script to copy included uEnv.txt to output/images

I didn't actually test it in any way, but it looks good and Stephan tested it.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#5 lore raw

PATCH 1/1 beaglebone: better support for starting and creating images

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle <[email protected]> writes:

Quoted 4 lines · Marcin Jabrzyk

- Added short readme file with description of first steps how to start.
- Added uEnv.txt so the board can start from SDCard
- Added post-image.sh script to copy included uEnv.txt to output/images

Quoted 5 lines
Quoted 1 line

I didn't actually test it in any way, but it looks good and Stephan tested it.

Agreed - Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#6 lore raw

PATCH 1/1 beaglebone: better support for starting and creating images

W dniu 12.10.2014 o 18:28, Peter Korsgaard pisze:

Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle <[email protected]> writes:

Quoted 4 lines · Marcin Jabrzyk

- Added short readme file with description of first steps how to start.
- Added uEnv.txt so the board can start from SDCard
- Added post-image.sh script to copy included uEnv.txt to output/images

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

I didn't actually test it in any way, but it looks good and Stephan tested it.

Agreed - Committed, thanks.

Big thanks! Finally merged :)

Signature · 2 lines
Best regards,
Marcin Jabrzyk
#7 lore raw

PATCH 1/1 beaglebone: better support for starting and creating images

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Marcin" == Marcin Jabrzyk <[email protected]> writes:

Hi,

Quoted 3 lines
Quoted 2 lines

Agreed - Committed, thanks.

Big thanks! Finally merged :)

yeah, sorry about the LONG delay.

Signature · 1 line
Bye, Peter Korsgaard