Skip to content
Cédric Le Goater edited this page Oct 25, 2016 · 1 revision

Compile

This is rather straight forward. First, choose your config : G4 (AST2400) or G5 (AST2500) and the network layer, NCSI or PHY. For example, here is the command for a palmetto:

 make ARCH=arm CROSS_COMPILE=arm-none-eabi  O=build_ast2400 ast_g4_ncsi_defconfig

then compile:

 make ARCH=arm CROSS_COMPILE=arm-none-eabi  O=build_ast2400 

Install

It is generally a good idea to test the u-boot.bin binary under qemu first as it can catch common mistakes.

To install, upload u-boot.bin on the BMC, check the mtd device :

root@palmetto:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00060000 00001000 "u-boot"
mtd1: 00020000 00001000 "u-boot-env"
mtd2: 00280000 00001000 "kernel"
mtd3: 001c0000 00001000 "initramfs"
mtd4: 01740000 00001000 "rofs"
mtd5: 00400000 00001000 "rwfs"
mtd6: 02000000 00001000 "pnor"

and run :

root@palmetto:~# flashcp -v /tmp/u-boot.bin /dev/mtd0

You are ready to reboot.

Clone this wiki locally