From patchwork Tue Feb 14 11:26:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abhimanyu V X-Patchwork-Id: 727794 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vN0WV6cDJz9ryj for ; Tue, 14 Feb 2017 22:27:18 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C671A84DF2; Tue, 14 Feb 2017 11:27:16 +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 zvYvdcH9uYmo; Tue, 14 Feb 2017 11:27:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 50A3184A0D; Tue, 14 Feb 2017 11:27:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 135FE1BFA4B for ; Tue, 14 Feb 2017 11:27:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9F39084A52 for ; Tue, 14 Feb 2017 11:27:12 +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 AM2+Jb4XWuxB for ; Tue, 14 Feb 2017 11:27:11 +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 whitealder.osuosl.org (Postfix) with ESMTP id 5C2AE84A0D for ; Tue, 14 Feb 2017 11:27:10 +0000 (UTC) Received: from HHMAIL01.hh.imgtec.org (unknown [10.100.10.19]) by Forcepoint Email with ESMTPS id EB25C34FCB309 for ; Tue, 14 Feb 2017 11:27:04 +0000 (GMT) Received: from abhi-linux.pu.imgtec.org (192.168.91.133) by HHMAIL01.hh.imgtec.org (10.100.10.19) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 14 Feb 2017 11:27:07 +0000 From: Abhimanyu V To: Date: Tue, 14 Feb 2017 16:56:45 +0530 Message-ID: <1487071605-21494-2-git-send-email-abhimanyu.vishwakarma@imgtec.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487071605-21494-1-git-send-email-abhimanyu.vishwakarma@imgtec.com> References: <1487071605-21494-1-git-send-email-abhimanyu.vishwakarma@imgtec.com> MIME-Version: 1.0 X-Originating-IP: [192.168.91.133] Cc: Abhimanyu Vishwakarma Subject: [Buildroot] [PATCH 2/2] Add defconfig for MIPS Creator ci40 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" From: Abhimanyu Vishwakarma Signed-off-by: Abhimanyu Vishwakarma Reviewed-by: Rahul Bedarkar --- board/ci40/readme.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ configs/ci40_defconfig | 27 +++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 board/ci40/readme.txt create mode 100644 configs/ci40_defconfig diff --git a/board/ci40/readme.txt b/board/ci40/readme.txt new file mode 100644 index 0000000..8ce7ed8 --- /dev/null +++ b/board/ci40/readme.txt @@ -0,0 +1,49 @@ +********************* +* MIPS Creator CI40 * +********************* + +The 'ci40_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 CI40 board. + +The current bootloader by default boot fitImage, so we would need to create +command to be able to boot from uImage. Assuming you are at the U-Boot prompt +of the MIPS Creator CI40, you can use following way to boot. + +Booting from network (nfsboot) +------------------------------ + pistachio # setenv netboot_legacy 'sf probe 1:0;mtdparts default;setenv bootargs $console $earlycon $netroot nfsroot=$serverip:$rootpath $bootextra $mtdparts;dhcp $loadaddr $legacy_bootfile; dhcp $fdtaddr $fdtfile;' + + pistachio # run netboot_legacy + + It will set variable to boot from tftp server and uses nfsroot + +Booting from USB/MMC +-------------------- +Extract the generated root filesystem, uImage and dtb file 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 + pistachio # setenv usbboot_legacy 'sf probe 1:0;mtdparts default;setenv bootargs $console $earlycon $usbroot $bootextra $mtdparts;usb start;ext4load usb $usbdev $fdtaddr $bootdir$fdtfile;ext4load usb $usbdev $loadaddr $bootdir$legacy_bootfile;' + + pistachio # run usbboot_legacy + +From SD-Card + pistachio # setenv mmcboot_legacy 'sf probe 1:0;mtdparts default;setenv bootargs $console $earlycon $mmcroot $bootextra $mtdparts;setenv verify n;mmcinfo; mmc dev $mmcdev;ext4load mmc $mmcdev $fdtaddr $bootdir$fdtfile;ext4load mmc $mmcdev $loadaddr $bootdir$legacy_bootfile;' + + pistachio # run mmcboot_legacy + +Finally boot from the loaded file: + + pistachio # bootm $loadaddr - $fdtaddr; + + +Online docs +----------- +mostly for openwrt but it also applicable on buildroot +https://docs.creatordev.io/ci40/guides/openwrt-platform/#overview + +Prebuilt uboot +-------------- +http://downloads.creatordev.io/?q=u-boot/ diff --git a/configs/ci40_defconfig b/configs/ci40_defconfig new file mode 100644 index 0000000..5363347 --- /dev/null +++ b/configs/ci40_defconfig @@ -0,0 +1,27 @@ +BR2_mipsel=y +BR2_mips_32r2=y +# BR2_MIPS_SOFT_FLOAT is not set +BR2_TOOLCHAIN_EXTERNAL=y +BR2_TOOLCHAIN_EXTERNAL_CODESCAPE_MTI_MIPS=y +BR2_TARGET_GENERIC_HOSTNAME="Ci40" +BR2_TARGET_GENERIC_ISSUE="Welcome to Ci40" +BR2_TARGET_GENERIC_GETTY_PORT="ttyS1" +BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200=y +BR2_SYSTEM_DHCP="eth0" +BR2_ENABLE_LOCALE_WHITELIST="C en_US en_GB" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/CreatorDev/linux.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="2319a2476a2bc0c582a9811cd45a6fa3c0beba37" +BR2_LINUX_KERNEL_DEFCONFIG="pistachio" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="img/pistachio_marduk" +BR2_PACKAGE_LINUX_FIRMWARE=y +BR2_PACKAGE_UCCP420WLAN=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BOARDNAME="pistachio_marduk" +BR2_TARGET_UBOOT_CUSTOM_TARBALL=y +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="https://github.com/CreatorDev/u-boot/archive/v1.0.4.tar.gz" +# BR2_TARGET_UBOOT_FORMAT_BIN is not set +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-pistachio_marduk-2015.10-v1.0.4.img"