diff mbox

[2/2] Add defconfig for MIPS Creator ci40

Message ID 1487071605-21494-2-git-send-email-abhimanyu.vishwakarma@imgtec.com
State Superseded
Headers show

Commit Message

Abhimanyu V Feb. 14, 2017, 11:26 a.m. UTC
From: Abhimanyu Vishwakarma <Abhimanyu.Vishwakarma@imgtec.com>

Signed-off-by: Abhimanyu Vishwakarma <Abhimanyu.Vishwakarma@imgtec.com>
Reviewed-by: Rahul Bedarkar <Rahul.Bedarkar@imgtec.com>
 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 mbox


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
+Prebuilt uboot
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_MIPS_SOFT_FLOAT is not set