From patchwork Thu Dec 24 17:33:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sergio Prado X-Patchwork-Id: 560957 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 58345140C4C for ; Fri, 25 Dec 2015 04:33:40 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=e-labworks-com.20150623.gappssmtp.com header.i=@e-labworks-com.20150623.gappssmtp.com header.b=y7aY8qR0; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 7AFE1A608A; Thu, 24 Dec 2015 17:33:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cfjoKlilR43p; Thu, 24 Dec 2015 17:33:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B317DA609D; Thu, 24 Dec 2015 17:33:37 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id EE2E81C10F1 for ; Thu, 24 Dec 2015 17:33:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E9DB72F19E for ; Thu, 24 Dec 2015 17:33:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YIk0hvIh0EWI for ; Thu, 24 Dec 2015 17:33:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qg0-f54.google.com (mail-qg0-f54.google.com [209.85.192.54]) by silver.osuosl.org (Postfix) with ESMTPS id BFA50249CF for ; Thu, 24 Dec 2015 17:33:35 +0000 (UTC) Received: by mail-qg0-f54.google.com with SMTP id k90so177247351qge.0 for ; Thu, 24 Dec 2015 09:33:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=e-labworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=RKSW95bQFo4nrGOGOZ4Qq6FjRbSPg3Svjv1nrhJXqLY=; b=y7aY8qR0gZDJhn7XD5BLX3/yr2U003qVi+KuNhHTvndfVujIRttIO5NOcaghybrVy3 8TqZNMYXGWtX1TfTwe5b0UC3BUw226ne4Pv8pbD0T9k6GbIVYVp30t/Hnsu9R0ON++On RyrAJKXkCi+PVc9m8ym4pPGv8mJ0BFC60diF5Ccvf2hCc37FfvwNIhyN+mnZfwVFmD8H TI5rSJ49cp+3VjsDXJqw3IsY2UO6LFHsk23RmSl19Xtahf/dyFBi0XoY8x4RR/Ly+Zip zq9qUYQhyUA7+MniqqLml8rkTCgRRduIJFiR5jI4C8g1OaA2y3JcAPhdyesSJ21DYbuM nORw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=RKSW95bQFo4nrGOGOZ4Qq6FjRbSPg3Svjv1nrhJXqLY=; b=QyKwj2LKVu8tdPoyy5oc9258Dn5Z9lfk7D2Cupe2/hgFZkACUtAIIlB1Jpfdl5rVRx m0ftMt7Dkhq5qG0OgRMAxuz2xqmkODNioEsocOiL6GjxLHzAAFy0O2M6nylePMfdbINd EuRF9tahlf5AafuShOZOd/O2Mr1mIjPTSRfu0ghDI8fxWK+ggd3CYGQrhjMSDiiHA4zi VXpghZKvnIZiKbUi5H89Ej+d5co1x2/noIIBP7Z+EMj7IXY34lqxQhi7uyFUmQH/nlny BnuIT6MxOKTYhS2+Oh26IC/6EUp86YtIVdJHDlm3N5PRk0u8SPcZCD1F0OGJDR9jKvQ+ 4mCQ== X-Gm-Message-State: ALoCoQkFYa20Lv0PiEchlqlUAi2i+rVh3GSj6bBTho4IXxPzwgHiCZuVlPEWMO1oU974LVwdBZ1LNGB8IVtB3eR/UQwzk6y+tA== X-Received: by 10.140.231.137 with SMTP id b131mr28326594qhc.63.1450978414945; Thu, 24 Dec 2015 09:33:34 -0800 (PST) Received: from localhost.localdomain ([177.32.224.147]) by smtp.gmail.com with ESMTPSA id e134sm20304865qhc.49.2015.12.24.09.33.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 24 Dec 2015 09:33:34 -0800 (PST) From: Sergio Prado To: buildroot@buildroot.org Date: Thu, 24 Dec 2015 15:33:14 -0200 Message-Id: <1450978394-822-1-git-send-email-sergio.prado@e-labworks.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] pandaboard_defconfig: bump u-boot to 2015.10 and kernel to 4.3 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" VFPv3 and NEON was enabled and a readme.txt file was added. Fixes bug #7580. Tested on Pandaboard ES. Signed-off-by: Sergio Prado --- board/pandaboard/readme.txt | 74 ++++++++++++++++++++++++++++++++++++++++++++ configs/pandaboard_defconfig | 40 ++++++------------------ 2 files changed, 84 insertions(+), 30 deletions(-) create mode 100644 board/pandaboard/readme.txt diff --git a/board/pandaboard/readme.txt b/board/pandaboard/readme.txt new file mode 100644 index 000000000000..7a0e1660c0cb --- /dev/null +++ b/board/pandaboard/readme.txt @@ -0,0 +1,74 @@ +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 sdcard needs to be formatted in an specific way. You can use the +shell script below to format the sdcard (this script was extracted +from http://elinux.org/Panda_How_to_MLO_%26_u-boot). + +#!/bin/sh +if [ ! "$1" = "/dev/sda" ] ; then + 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 +fi + +The next step is to mount the sdcard's first partition and copy MLO +and u-boot.img to it. + +The last step is to copy the rootfs image to the sdcard's second +partition using 'dd': + + $ sudo dd if=output/images/rootfs.ext2 of=/dev/sdX2 bs=1M conv=fsync diff --git a/configs/pandaboard_defconfig b/configs/pandaboard_defconfig index 50c3714d84d9..53870b0e1f8d 100644 --- a/configs/pandaboard_defconfig +++ b/configs/pandaboard_defconfig @@ -1,39 +1,19 @@ -# Architecture BR2_arm=y BR2_cortex_a9=y - -# system -BR2_TARGET_GENERIC_GETTY=y +BR2_ARM_ENABLE_NEON=y +BR2_ARM_FPU_VFPV3=y BR2_TARGET_GENERIC_GETTY_PORT="ttyO2" -BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y - -# filesystem -BR2_TARGET_ROOTFS_EXT2=y -# BR2_TARGET_ROOTFS_TAR is not set - -# Lock to 3.12 headers to avoid breaking with newer kernels -BR2_KERNEL_HEADERS_VERSION=y -BR2_DEFAULT_KERNEL_VERSION="3.12.2" -BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_12=y - -# Kernel BR2_LINUX_KERNEL=y -BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.12.2" BR2_LINUX_KERNEL_DEFCONFIG="omap2plus" -BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x80008000" -BR2_LINUX_KERNEL_APPENDED_UIMAGE=y -BR2_LINUX_KERNEL_APPENDED_DTB=y -BR2_LINUX_KERNEL_USE_INTREE_DTS=y -# might need omap4-panda or omap4-panda-a4 instead -BR2_LINUX_KERNEL_INTREE_DTS_NAME="omap4-panda-es" - -# Bootloaders +BR2_LINUX_KERNEL_ZIMAGE=y +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="omap4-panda-es omap4-panda omap4-panda-a4" +BR2_LINUX_KERNEL_INSTALL_TARGET=y +BR2_TARGET_ROOTFS_EXT2=y +# BR2_TARGET_ROOTFS_TAR is not set BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="omap4_panda" BR2_TARGET_UBOOT_FORMAT_IMG=y -BR2_TARGET_UBOOT_BOARDNAME="omap4_panda" BR2_TARGET_UBOOT_SPL=y BR2_TARGET_UBOOT_SPL_NAME="MLO" -BR2_TARGET_UBOOT_LATEST_VERSION=n -BR2_TARGET_UBOOT_CUSTOM_VERSION=y -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2012.07"