Skip to content
jhofstee edited this page Sep 21, 2016 · 5 revisions

The bootz command is not enabled in the u-boot shipped with the ccgx. So u-boot must be recompiled, sources are at https://git.victronenergy.com/victron/u-boot/tree/color_control.

Don't use this compiler: arm-linux-gnueabi-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) 5.4.0, the resulting u-boot binary fails to boot. Use this one e.g. https://updates.victronenergy.com/feeds/ccgx/images/venus-eglibc-i686-arm-toolchain-qte-v1.40.sh

Compiling u-boot

In include/configs/bpp3.h add #define CONFIG_CMD_BOOTZ

export PATH=/opt/venus/v1.40/sysroots/i686-ve-linux/usr/bin:/opt/venus/v1.40/sysroots/i686-ve-linux/usr/bin/armv7a-vfp-neon-ve-linux-gnueabi:$PATH export CROSS_COMPILE=arm-ve-linux-gnueabi- make bpp3_config

To enter u-boot, see https://github.com/victronenergy/venus/wiki/ccgx-booting-and-buttons

make the build output available by tftp, I typically do something like this. cd /srv/tfpd mkdir ccgx cd ccgx ln -s ~/software/linux/arch/arm/boot/dts/am3517-ccgx.dtb . ln -s ~/software/linux/arch/arm/boot/zImage . ln -s ~/software/u-boot/u-boot.img . ln -s ~/software/u-boot/MLO .

Updating u-boot

setenv serverip 10.0.0.106 setenv ipaddr 10.0.0.250 ping $serverip saveenv

tftp 80000000 ccgx/u-boot.img && nand erase.part u-boot && nand write 0x80000000 u-boot not needed for this change: nandecc hw && tftp 80000000 ccgx/MLO && nand erase.part MLO && nand write 0x80000000 MLO

Compiling linux

newer linux (WIP) is here https://github.com/jhofstee/linux/tree/ccgx_b4.4. It uses a (modified) omap2plus config:

export ARCH=arm export CROSS_COMPILE=arm-linux-gnueabi- make omap2plus_defconfig make -j8 make am3517-ccgx.dtb

Booting linux

setenv miscargs 'console=ttyO0,115200n8 root=ubi0:rootfs rootfstype=ubifs ubi.mtd=9 omapdss.def_disp=lcd omapfb.vram=0:2M vram=2M' setenv bootargs $miscargs $mtdparts bpp3=> echo $bootargs console=ttyO0,115200 root=ubi0:rootfs rootfstype=ubifs ubi.mtd=9 omapdss.def_disp=lcd omapfb.vram=0:2M vram=2M mtdparts=omap2-nand.0:512k(MLO),1m(u-boot),256k(env1),256k(env2),1m(u-boot2),256k(bootparms),768k(splash),6m(kernel),200m(data),-(rootfs)

tftp 80000000 ccgx/zImage && tftp 81000000 ccgx/am3517-ccgx.dtb && bootz 80000000 - 81000000

Clone this wiki locally