Skip to content

Commit 2890efa

Browse files
Add build and flash commands in README.md
Signed-off-by: Pratik Prajapati <[email protected]>
1 parent 866b0b7 commit 2890efa

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Using u-boot on Creator (Ci40) Marduk platform
2+
3+
### How to build/cross-compile for Ci40:
4+
5+
$ export CROSS_COMPILE=/path/to/mips-toolchain/mips-toolchain-prefix
6+
$ make pistachio_marduk_defconfig
7+
$ make
8+
9+
This will generate u-boot-pistachio-nor.img
10+
11+
Note: Using OpenWrt's toolchain toolchain-mipsel_mips32_gcc-5.2.0_musl-1.1.11 will require [this patch](http://lists.denx.de/pipermail/u-boot/2015-July/217911.html) to be applied.
12+
13+
### How to flash on Ci40:
14+
15+
1. [Load OpenWrt](https://github.com/IMGCreator/openwrt/blob/master-pistachio/README.md)
16+
17+
2. Erase and write u-boot image on bootloader partition of Ci40
18+
19+
$ flashcp -v u-boot-pistachio-nor.img /dev/mtd0
20+
21+
Note: flashcp needs to be manually selected in OpneWrt menuconfig
22+
23+
Base system -> busybox -> Cutomize busybox options -> Miscellaneous Utilities -> flashcp
24+
25+
3. Reboot
26+
27+
$ reboot
28+
29+
_Please be aware that you may brick the board if you flashed a wrong bootloader. Only way to re-cover back the board is to use Dedi-prog SF100 programmer to flash the pre-built bootloader again._

0 commit comments

Comments
 (0)