Skip to content

2.1 U boot with VGA LCD support

Marcel Thürmer edited this page Sep 7, 2018 · 1 revision

Clone my u-boot repository:
git clone https://github.com/petit-miner/u-boot.git -b v3s-current

Enter the new folder called u-boot:
cd u-boot

Configure u-boot:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- BlueberryPI-vga_defconfig
or
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- BlueberryPI-lcd_defconfig

If you want to configure more in u-boot, type in this command:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

After configuring, build u-boot:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

After building you should see the file:
u-boot-sunxi-with-spl.bin

create a new file called boot.cmd:
nano boot.cmd
paste this text into the file:

setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 earlyprintk rw
load mmc 0:1 0x41000000 zImage
load mmc 0:1 0x41800000 sun8i-v3s-blueberrypi.dtb
bootz 0x41000000 - 0x41800000

Close the editor and compile the boot.scr file:
mkimage -C none -A arm -T script -d boot.cmd boot.scr

Gratulations! You succesfully build u-boot for the V3s.

Clone this wiki locally