User Tools

Site Tools


Navigation Menu

Flight-Control

<
Previous mounth
03/28/2024
>
Next mounth
SMTWFTS
13
24
24
25
25
26
26
27
27
28
28
2930
1431010203040506
1507080910111213
1614151617181920
1721222324252627









Hot Projects

SEEDStack

SEEDStack - Open 3D printable seed/sprouting systemDIY Food Hacking

UCSSPM

UCSSPM - Unified Clear-Sky Solar Prediction ModelOpen Solar Power

picoReflow

picoReflow - DIY PID Reflow Oven Controller based on RaspberryPiDIY Reflow Soldering

PiGI

PiGI - DIY Geiger Counter based on RaspberryPiRasPi Geiger Counter

DIY ARA-2000

Active Wideband Receiver Antenna for SDR - ARA-2000Wideband Antenna

DSpace

DSPace - Map everythingMap everything!

Mission-Tags

This is an old revision of the document!


picoPrint Software Documentation

Install Gentoo Linux on Cubieboard2

Install & bootstrap crossdev

$ emerge -av crossdev

Create a cubieboard2 specific cross-development environment:

$ crossdev -S -t armv7a-hardfloat-linux-gnueabi

Install and compile u-boot

$ mkdir gentoo-cb2
$ cd gentoo-cb2
$ git clone https://github.com/linux-sunxi/u-boot-sunxi.git
$ cd u-boot-sunxi

Start clean and configure Cubieboard2 default u-boot parameters

$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- make distclean
$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- make Cubieboard2_config

should return

Configuring for Cubieboard2 - Board: sun7i, Options: CUBIEBOARD2,SPL,SUNXI_GMAC,STATUSLED=244,STATUSLED1=245,FAST_MBUS

Build u-boot

$ CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- make -j4

should return something like

tools/mkimage -A arm -T firmware -C none \
        -O u-boot -a 0x4a000000 \
        -e 0 \
        -n  "U-Boot 2014.01-rc1-09153-gc75ea90 for sunxi board" \
        -d u-boot.bin u-boot.img
Image Name:   U-Boot 2014.01-rc1-09153-gc75ea9
Created:      Wed Jan  8 10:47:48 2014
Image Type:   ARM U-Boot Firmware (uncompressed)
Data Size:    227820 Bytes = 222.48 kB = 0.22 MB
Load Address: 4a000000
Entry Point:  00000000
tr "\000" "\377" < /dev/zero | dd ibs=1 count=32768 \
                of=spl/sunxi-spl-pad.bin 2>/dev/null

and produce the following files we will need:

-rw-r--r-- 227884 Jan  8 10:47 ./gentoo-cb2/u-boot-sunxi/u-boot.img
-rwxr-xr-x 17644  Jan  8 10:47 ./gentoo-cb2/u-boot-sunxi/spl/u-boot-spl.bin

Discussion

Enter your comment. Wiki syntax is allowed:
H F K B C