Skip to contentSkip to conversation

pandaboard_defconfig: bump u-boot to 2015.10 and kernel to 4.3

PATCH Superseded Sergio Prado 2 participants 3 messages Jan 8, 2016 – Feb 9, 2016

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pandaboard_defconfig: bump u-boot to 2015.10 and kernel to 4.3

VFPv3 and NEON was enabled and a readme.txt file was added.

Fixes bug #7580.

Tested on Pandaboard ES.

---
Changes v1 -> v2:
- Removed extra "=====" signs from readme.txt.
- Removed empty new lines from readme.txt.
- Improved script and description to format the sdcard in the readme.txt.
- Locking kernel headers version, u-boot version and kernel version being used.

---
 board/pandaboard/readme.txt  | 76 ++++++++++++++++++++++++++++++++++++++++++++
 configs/pandaboard_defconfig | 45 ++++++++++----------------
 2 files changed, 92 insertions(+), 29 deletions(-)
 create mode 100644 board/pandaboard/readme.txt
board/pandaboard/readme.txt new file +76 -0
new file mode 100644
index 000000000000..8741349d19f0
@@ -0,0 +1,76 @@
+Pandaboard
+==========
+
+This file documents the Buildroot support for the Pandaboard, a
+low-power, low-cost single-board computer development platform based
+on the Texas Instruments OMAP4 system on a chip (SoC).
+
+Configuring and building Buildroot
+----------------------------------
+
+Start from the defconfig:
+
+  $ make pandaboard_defconfig
+
+You can edit build options the usual way:
+
+  $ make menuconfig
+
+When you are happy with the setup, run:
+
+  $ make
+
+The result of the build with the default settings should be these files:
+
+  output/images
+  ??? MLO
+  ??? omap4-panda-a4.dtb
+  ??? omap4-panda.dtb
+  ??? omap4-panda-es.dtb
+  ??? rootfs.ext2
+  ??? u-boot.img
+  ??? zImage
+
+Setting up your SD card
+-----------------------
+
+*Important*: pay attention which partition you are modifying so you don't
+accidentally erase the wrong file system, e.g your host computer or your
+external storage!
+
+In the default setup you need to create two partitions on your SD card:
+a boot partition and a rootfs partition.
+
+The ROM code from OMAP processors need the SD card to be formatted with
+a special geometry in the partition table. To do that, you can use the
+shell script below (this script was extracted from
+http://elinux.org/Panda_How_to_MLO_%26_u-boot).
+
+#!/bin/sh
+DRIVE=$1
+if [ -b "$DRIVE" ] ; then
+	dd if=/dev/zero of=$DRIVE bs=1024 count=1024
+	SIZE=`fdisk -l $DRIVE | grep Disk | awk '{print $5}'`
+	echo DISK SIZE - $SIZE bytes
+	CYLINDERS=`echo $SIZE/255/63/512 | bc`
+	echo CYLINDERS - $CYLINDERS
+	{
+	echo ,9,0x0C,*
+	echo ,,,-
+	} | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE
+	mkfs.vfat -F 32 -n "boot" ${DRIVE}1
+	mke2fs -j -L "rootfs" ${DRIVE}2
+fi
+
+The next step is to mount the sdcard's first partition and copy MLO
+and u-boot.img to it.
+
+  $ sudo mkdir -p /mnt/sdcard
+  $ sudo mount /dev/sdX1 /mnt/sdcard
+  $ sudo cp MLO u-boot.img /mnt/sdcard
+  $ sudo umount /mnt/sdcard
+
+The last step is to copy the rootfs image to the sdcard's second
+partition using 'dd':
+
+  $ sudo dd if=rootfs.ext2 of=/dev/sdX2 bs=1M conv=fsync
configs/pandaboard_defconfig +16 -29

55 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw

PATCH v2 1/1 pandaboard_defconfig: bump u-boot to 2015.10 and kernel to 4.3

Dear Sergio Prado,

Quoted 7 lines · Sergio Prado

VFPv3 and NEON was enabled and a readme.txt file was added.

Fixes bug #7580.

Tested on Pandaboard ES.

Thanks for this patch. Could you rebase it on master ? All defconfigs have been touched by a recent change from Yann E. Morin.

Note that all defconfigs should now use the "use kernel headers from kernel" mechanism. See
https://git.busybox.net/buildroot/commit/?id=674e09967818bf49fd1b6bf1f986a4c0f917fa63.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 pandaboard_defconfig: bump u-boot to 2015.10 and kernel to 4.3

Hello Thomas,

2016-02-06 18:24 GMT-02:00 Thomas Petazzoni <
[email protected]>:

Quoted 10 lines

Dear Sergio Prado,

Quoted 6 lines · Sergio Prado

VFPv3 and NEON was enabled and a readme.txt file was added.

Fixes bug #7580.

Tested on Pandaboard ES.

Quoted 8 lines
Quoted 1 line

Thanks for this patch. Could you rebase it on master ? All defconfigs have been touched by a recent change from Yann E. Morin.

Note that all defconfigs should now use the "use kernel headers from kernel" mechanism. See

https://git.busybox.net/buildroot/commit/?id=674e09967818bf49fd1b6bf1f986a4c0f917fa63
.

Sure. I'll send V3.

Quoted 8 lines

Thanks!

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160209/f6114edb/attachment.html>