From patchwork Fri Feb 8 12:09:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Gyarmati X-Patchwork-Id: 219122 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id AB2602C0085 for ; Fri, 8 Feb 2013 23:10:28 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CDD1D101A56; Fri, 8 Feb 2013 12:10:14 +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 AIaU4rFBrCza; Fri, 8 Feb 2013 12:09:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0509D101DE5; Fri, 8 Feb 2013 12:09:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 598398F753 for ; Fri, 8 Feb 2013 12:10:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 14E0925D70 for ; Fri, 8 Feb 2013 12:09:53 +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 eIrD-ShIO-JX for ; Fri, 8 Feb 2013 12:09:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bk0-f48.google.com (mail-bk0-f48.google.com [209.85.214.48]) by silver.osuosl.org (Postfix) with ESMTPS id 153E91FE76 for ; Fri, 8 Feb 2013 12:09:51 +0000 (UTC) Received: by mail-bk0-f48.google.com with SMTP id jf20so1623342bkc.21 for ; Fri, 08 Feb 2013 04:09:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=dxzXZoD1b0MIszexd/3YcNxIbWPu0fBicdDFbUBhgQE=; b=NAgpRUSWfZAUyxP/Oti0vWihxkXAd4zm3Q0lIpWAE6w9GPkv9RzA6HNFPP2MW7e7J4 sZl4u1VEkNPkQ8EVXx7c7nkRji9E7Czg8cm2CZILMmWLJ82ZJ3oGf2NQoXiNLfJJYd2t yEI2Xd0kIBqQK4cNsABZYDdLSPTlgtlR17xq4tO2hVd+wfwHjm3ZioRfs9ffqcmFT375 Z59GWdsMm6kyNngQI/0lhapw0xsxuwz4hagPsHEvD22ncvkvDrnBO/p7+RGsjLF15uuV 3VSDAlowwS9Tzq5jxU1NfrQIPSAZ4b6rIrwvPaC2qNrSWEFihttnKSIpM6LBRDujzUVr EXkg== X-Received: by 10.204.8.16 with SMTP id f16mr1431929bkf.81.1360325389922; Fri, 08 Feb 2013 04:09:49 -0800 (PST) Received: from localhost.localdomain (g227196150.adsl.alicedsl.de. [92.227.196.150]) by mx.google.com with ESMTPS id x10sm10046813bkv.13.2013.02.08.04.09.48 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Feb 2013 04:09:49 -0800 (PST) From: Zoltan Gyarmati To: buildroot@uclibc.org Date: Fri, 8 Feb 2013 13:09:37 +0100 Message-Id: <1360325377-31200-1-git-send-email-mr.zoltan.gyarmati@gmail.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH] Add Gnublin board support with fixed kernel header version X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Zoltan Gyarmati Acked-by: Gustavo Zacarias --- board/gnublin/README | 52 +++++++++++++++++++++++++++++++++++++++++++++ configs/gnublin_defconfig | 18 ++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 board/gnublin/README create mode 100644 configs/gnublin_defconfig diff --git a/board/gnublin/README b/board/gnublin/README new file mode 100644 index 0000000..e58b366 --- /dev/null +++ b/board/gnublin/README @@ -0,0 +1,52 @@ +This the Buildroot support for the LPC3131 based Gnublin board (see here: +http://en.gnublin.org/) and to the Elektor Linux board +(http://www.elektor.com/news/elektor-presents-embedded-linux-made-easy.2147294. +lynkx) + +Unfortunately currently the AD and the pwm modules are not supported, i'm about +to add also those drivers as well to the current kernel later. + +Base kernel version: 3.7 (available here: +https://gitorious.org/linux-3-7-gnublin/linux-3-7-gnublin/commits/gnublin- +support) + +U-boot version: 2009.11 (available here: +https://gitorious.org/u-boot-gnublin-support/u-boot-gnublin-support) + + +Steps to create a bootable SD card (with the given config you need an at least +500 MB SD card): + +1.Config buildroot with the gnublin_defconfig: + +$ make gnublin_defconfig + +2.Tweak the config for your needs: + +$ make menuconfig + +3.Build: + +$ make + +4.Create two partitions on your SD card, one with type of BootIt (fdisk ID: df), +the size should be around 1M, and another partition with all of the left space +on the card, and with the type of normal DOS partition. + +5.From the output/images directory dump the u-boot image to the BootIt partition +(probably you have to modify the output /dev files according to your system): + +$ dd if=output/images/u-boot.bin of=/dev/sdc1 + +6.Dump the root fs image as well: + +$ dd if=output/images/rootfs.ext2 of=/dev/sdc2 + +7.Insert the SD card into the board's slot, and your board should boot up with +your newly created system. + +Any feedback/report is welcome on the mr.zoltan.gyarmati[at]gmail.com + + + + diff --git a/configs/gnublin_defconfig b/configs/gnublin_defconfig new file mode 100644 index 0000000..85fa189 --- /dev/null +++ b/configs/gnublin_defconfig @@ -0,0 +1,18 @@ +BR2_arm=y +BR2_arm926t=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.7" +BR2_TARGET_GENERIC_ISSUE="Welcome to Gnublin" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_BLOCKS=475000 +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="GNUBLIN" +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_GIT_REPO_URL="git://gitorious.org/u-boot-gnublin-support/u-boot-gnublin-support.git" +BR2_TARGET_UBOOT_CUSTOM_GIT_VERSION="2009.11_gnublin_support_v2" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="git://gitorious.org/linux-3-7-gnublin/linux-3-7-gnublin.git" +BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="v3.7-gnublin-2" +BR2_LINUX_KERNEL_DEFCONFIG="gnublin" +BR2_LINUX_KERNEL_INSTALL_TARGET=y