diff options
author | Abhimanyu Vishwakarma <Abhimanyu.V@gmail.com> | 2017-04-24 10:56:53 +0530 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2017-04-27 22:58:54 +0200 |
commit | 051e9851f499fb2982591531e210c91563232c63 (patch) | |
tree | 2446af92c214b3795568fc262f1a3abbd13a03ed /board | |
parent | e73cf8a228a15ae11530cd589b11930cf4f4478d (diff) | |
download | buildroot-051e9851f499fb2982591531e210c91563232c63.tar.gz buildroot-051e9851f499fb2982591531e210c91563232c63.zip |
Add defconfig for MIPS Creator ci40
Signed-off-by: Abhimanyu Vishwakarma <Abhimanyu.V@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/ci40/genimage.cfg | 12 | ||||
-rwxr-xr-x | board/ci40/post-build.sh | 4 | ||||
-rw-r--r-- | board/ci40/readme.txt | 65 |
3 files changed, 81 insertions, 0 deletions
diff --git a/board/ci40/genimage.cfg b/board/ci40/genimage.cfg new file mode 100644 index 0000000000..0ffc91ce87 --- /dev/null +++ b/board/ci40/genimage.cfg @@ -0,0 +1,12 @@ +# Minimal SD card image +# + +image sdcard.img { + hdimage { + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + } +} diff --git a/board/ci40/post-build.sh b/board/ci40/post-build.sh new file mode 100755 index 0000000000..9af74c7a7e --- /dev/null +++ b/board/ci40/post-build.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Copy to target +cp ${BINARIES_DIR}/vmlinux.gz.itb ${TARGET_DIR}/fitImage diff --git a/board/ci40/readme.txt b/board/ci40/readme.txt new file mode 100644 index 0000000000..ba1eb93883 --- /dev/null +++ b/board/ci40/readme.txt @@ -0,0 +1,65 @@ +********************* +* MIPS Creator CI40 * +********************* + +This document details how to build and run a Buildroot system on the +MIPS Creator CI40 platform. For more details about the CI40, see +https://creatordev.io/ci40-iot-hub.html. + +How to build +------------ + +$ make ci40_defconfig +$ make + +Prepare USB/MMC for boot +------------------------ + +On successful build, "sdcard.img" file will be created in 'output/images' +folder. + +Use following command to write image to bootable device + +$ sudo dd if=./output/images/sdcard.img of=/dev/<your-microsd-or-usb-device> + +Booting from USB/MMC +-------------------- + +The boot loader is already present in NOR flash. To boot your newly generated +Linux and root filesystem, you need to interrupt U-Boot autoboot. Current +U-Boot is configured with 2 seconds of boot-delay, after expiry of this +boot-delay timeout U-Boot starts booting the default image. To interrupt +autoboot, press any key before the boot-delay time expires, U-Boot will +stop the autoboot process and give a U-Boot prompt. You can now boot to +your preferred boot method as describe below: + +From USB + pistachio # run usbboot + +From SD-Card + pistachio # run mmcboot + +Persistent boot command +----------------------- + +To boot automatically to your preferred boot method, use following command to +make it persistent, for example to automatically boot to usb: + + pistachio # setenv bootcmd run usbboot + pistachio # saveenv + +Flash new bootloader +-------------------- + +The bootloader image will be available in the 'output/images' folder. To flash +the new bootloader, copy it to the device and use the following command on the +device: + +# flashcp -v u-boot-pistachio_marduk-<version>.img /dev/mtd0 + +Online docs +----------- + +Mostly for OpenWRT but it is applicable to Buildroot +https://docs.creatordev.io/ci40/guides/openwrt-platform/#overview + |