From patchwork Fri Nov 28 16:43:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 415916 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 2E776140176 for ; Sat, 29 Nov 2014 03:43:50 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5E1B092D23; Fri, 28 Nov 2014 16:43:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id riMUOx0jaKjp; Fri, 28 Nov 2014 16:43:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 6414392D0B; Fri, 28 Nov 2014 16:43:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 5DBD31C080E for ; Fri, 28 Nov 2014 16:43:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 595BFA3D39 for ; Fri, 28 Nov 2014 16:43:43 +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 yY-DOX-edJFm for ; Fri, 28 Nov 2014 16:43:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by fraxinus.osuosl.org (Postfix) with ESMTP id 80352A3CDF for ; Fri, 28 Nov 2014 16:43:42 +0000 (UTC) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 332112FB07BB0; Fri, 28 Nov 2014 16:43:38 +0000 (GMT) Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Fri, 28 Nov 2014 16:43:41 +0000 Received: from localhost.localdomain (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.210.2; Fri, 28 Nov 2014 16:43:40 +0000 From: Vicente Olivert Riera To: Date: Fri, 28 Nov 2014 16:43:29 +0000 Message-ID: <1417193009-65132-1-git-send-email-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Originating-IP: [192.168.154.104] Cc: yann.morin.1998@free.fr Subject: [Buildroot] [PATCH v3] Add a defconfig for MIPS Creator CI20 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" MIPS Creator CI20 is a Linux and Android development system from MIPS/Imagination Technologies. It incorporates an Ingenic JZ4780 SoC which includes a 1.2GHz dual core MIPS32 processor and Imagination PowerVR SGX540 GPU. More information can be found at: http://elinux.org/MIPS_Creator_CI20 Signed-off-by: Vicente Olivert Riera --- Changes v2 -> v3 - The v2 patch was wrong because it was made having the v1 applied. This one has been made from scratch. Changes v1 -> v2 - Clone the kernel repository using a commit hash value instead of a branch name, so we can do reproducible builds. - Fix the kernel headers version to 3.0.8. - Clone the kernel repository using https:// instead of git:// to avoid problems for people who is behind a firewall. - Add a readme.txt file. board/ci20/readme.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ configs/ci20_defconfig | 18 ++++++++++++++++++ 2 files changed, 60 insertions(+), 0 deletions(-) create mode 100644 board/ci20/readme.txt create mode 100644 configs/ci20_defconfig diff --git a/board/ci20/readme.txt b/board/ci20/readme.txt new file mode 100644 index 0000000..ca7bb52 --- /dev/null +++ b/board/ci20/readme.txt @@ -0,0 +1,42 @@ +********************* +* MIPS Creator CI20 * +********************* + +The 'ci20_defconfig' will create a root filesystem and a kernel image +under the 'output/images/' directory. This document will try to explain how +to use them in order to run Buildroot in the MIPS Creator CI20 board. + +Assuming you are at the U-Boot prompt of the MIPS Creator CI20, you have to +load the generated kernel image by using the 'tftpboot' command. In +order to do that, you will need to get the network working. Here you +have the instructions to set the ip address, netmask and gateway: + + setenv ipaddr x.x.x.x + setenv netmask x.x.x.x + setenv gatewayip x.x.x.x + +Now you have to set the ip for the TFTP server you are going to load the +kernel image from, and also the name of the kernel image file (we use +'uImage' as a filename in this example): + + setenv serverip x.x.x.x + setenv bootfile uImage + +And finally load the kernel image: + + tftpboot + +Now you have to extract the generated root filesystem into a USB drive +or SD-Card. Here you have the instructions to boot from the two of them. +You have to choose the one your prefer: + +From USB + setenv bootargs console=ttyS4,115200 console=tty0 mem=256M@0x0 +mem=768M@0x30000000 root=/dev/sda1 + +From SD-Card + setenv bootargs console=ttyS4,115200 console=tty0 mem=256M@0x0 +mem=768M@0x30000000 root=/dev/mmcblk0p1 + +And finally run this command to boot the board: + bootm diff --git a/configs/ci20_defconfig b/configs/ci20_defconfig new file mode 100644 index 0000000..7f1bf87 --- /dev/null +++ b/configs/ci20_defconfig @@ -0,0 +1,18 @@ +# architecture +BR2_mipsel=y +BR2_mips_32r2=y +# BR2_MIPS_SOFT_FLOAT is not set + +# system +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.0.8" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_0=y +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y +BR2_TARGET_GENERIC_GETTY_PORT="ttyS4" + +# kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/MIPS/CI20_linux.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="ba11adc7ac8792b0eb7415a1cc9c0968604a6fac" +BR2_LINUX_KERNEL_DEFCONFIG="ci20"