From patchwork Thu May 9 09:09:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 242731 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 33C682C00DF for ; Thu, 9 May 2013 19:10:20 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 4D34731C30; Thu, 9 May 2013 09:10:18 +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 NMFmg-47GZvA; Thu, 9 May 2013 09:10:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 0043131C16; Thu, 9 May 2013 09:10:07 +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 519788F753 for ; Thu, 9 May 2013 09:10:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E41283091A for ; Thu, 9 May 2013 09:09:59 +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 7E9YeHwZZUWi for ; Thu, 9 May 2013 09:09:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f45.google.com (mail-pb0-f45.google.com [209.85.160.45]) by silver.osuosl.org (Postfix) with ESMTPS id 5766631C0B for ; Thu, 9 May 2013 09:09:58 +0000 (UTC) Received: by mail-pb0-f45.google.com with SMTP id ro12so1851306pbb.32 for ; Thu, 09 May 2013 02:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=aYv5U5ctv5APbMDldj8w5ZZluTPXJQqwRu4d/BcDFNk=; b=R7iKF14yapsTiBLJEOp0wRTz6CSXJ5n5zjCk9eXHPSogq9yWK7LEuZWKA30vcLO8nL eyRzZR+OuTMurnBKcPrD4H016AwbJPvTI2dyZfGtFQbRBKcinRnv5UNtL668D8JivH+Y WQKOvOsWeoPXZ2uEYkydfphhVQD1FvFiWxkcynPSScaWbq/1IRAqijNoqzU0Yyf0uEZY Tkj6t9VTzUeWGpxty8l3iuZGoimRf19LKITerZAt0MLAEf5qDYHyZ337cyoy5V1Qp6Lr wkGDNJ7BPr/MmSSn8EKver5cky2Yocq/bIaWBKrznRFPGMpX5F8pf9F7FcQtJWH5j43A xdHA== X-Received: by 10.66.217.226 with SMTP id pb2mr12070999pac.109.1368090598001; Thu, 09 May 2013 02:09:58 -0700 (PDT) Received: from ld2036.tmt.telital.com.com ([213.205.6.118]) by mx.google.com with ESMTPSA id v5sm2337719pbz.4.2013.05.09.02.09.56 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 09 May 2013 02:09:57 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Thu, 9 May 2013 11:09:47 +0200 Message-Id: <1368090587-10170-3-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1368090587-10170-1-git-send-email-fabio.porcedda@gmail.com> References: <1368090587-10170-1-git-send-email-fabio.porcedda@gmail.com> Subject: [Buildroot] [PATCH v5 2/2] configs: add defconfig for Atmel AT91SAM9260-EK Nand Flash Boot 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 This is a configuration that provides a basic setup for generating bootable nandflash images: - at91bootstrap - barebox - kernel - rootfs Signed-off-by: Fabio Porcedda --- .../linux-ARM-at91-enable-nand-ubifs-boot.patch | 44 ++++++++++++++++++++++ configs/at91sam9260eknf_defconfig | 30 +++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 board/atmel/at91sam9260ek/linux-ARM-at91-enable-nand-ubifs-boot.patch create mode 100644 configs/at91sam9260eknf_defconfig diff --git a/board/atmel/at91sam9260ek/linux-ARM-at91-enable-nand-ubifs-boot.patch b/board/atmel/at91sam9260ek/linux-ARM-at91-enable-nand-ubifs-boot.patch new file mode 100644 index 0000000..e71a487 --- /dev/null +++ b/board/atmel/at91sam9260ek/linux-ARM-at91-enable-nand-ubifs-boot.patch @@ -0,0 +1,44 @@ +From 17f439282c3fc92587e60935ff9efd13ea78e353 Mon Sep 17 00:00:00 2001 +From: Fabio Porcedda +Date: Tue, 15 Jan 2013 11:17:42 +0100 +Subject: [PATCH] ARM: at91: enable nand ubifs boot + +Signed-off-by: Fabio Porcedda +--- + arch/arm/configs/at91sam9260_defconfig | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/arch/arm/configs/at91sam9260_defconfig b/arch/arm/configs/at91sam9260_defconfig +index 505b376..a438192 100644 +--- a/arch/arm/configs/at91sam9260_defconfig ++++ b/arch/arm/configs/at91sam9260_defconfig +@@ -1,5 +1,6 @@ + CONFIG_EXPERIMENTAL=y + # CONFIG_LOCALVERSION_AUTO is not set ++CONFIG_KERNEL_LZO=y + # CONFIG_SWAP is not set + CONFIG_SYSVIPC=y + CONFIG_LOG_BUF_SHIFT=14 +@@ -43,6 +44,11 @@ CONFIG_IP_PNP_BOOTP=y + # CONFIG_INET_LRO is not set + # CONFIG_IPV6 is not set + CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" ++CONFIG_MTD=y ++CONFIG_MTD_CMDLINE_PARTS=y ++CONFIG_MTD_NAND=y ++CONFIG_MTD_NAND_ATMEL=y ++CONFIG_MTD_UBI=y + CONFIG_BLK_DEV_RAM=y + CONFIG_BLK_DEV_RAM_SIZE=8192 + CONFIG_SCSI=y +@@ -82,6 +88,7 @@ CONFIG_RTC_DRV_AT91SAM9=y + CONFIG_EXT2_FS=y + CONFIG_VFAT_FS=y + CONFIG_TMPFS=y ++CONFIG_UBIFS_FS=y + CONFIG_CRAMFS=y + CONFIG_NLS_CODEPAGE_437=y + CONFIG_NLS_CODEPAGE_850=y +-- +1.8.0.3 + diff --git a/configs/at91sam9260eknf_defconfig b/configs/at91sam9260eknf_defconfig new file mode 100644 index 0000000..f0e2673 --- /dev/null +++ b/configs/at91sam9260eknf_defconfig @@ -0,0 +1,30 @@ +# Architecture +BR2_arm=y +BR2_arm926t=y + +# Toolchain +BR2_KERNEL_HEADERS_3_9=y + +# System +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y + +# Packages +BR2_PACKAGE_HOST_SAM_BA=y + +# Filesystem +BR2_TARGET_ROOTFS_UBIFS=y +BR2_TARGET_ROOTFS_UBI=y + +# Bootloaders +BR2_TARGET_AT91BOOTSTRAP=y +BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9260ek" +BR2_TARGET_AT91BOOTSTRAP_NANDFLASH=y +BR2_TARGET_BAREBOX=y +BR2_TARGET_BAREBOX_BOARD_DEFCONFIG="at91sam9260ek" + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_SAME_AS_HEADERS=y +BR2_LINUX_KERNEL_PATCH="board/atmel/at91sam9260ek" +BR2_LINUX_KERNEL_DEFCONFIG="at91sam9260" +BR2_LINUX_KERNEL_ZIMAGE=y