I spent weeks trying to figure out how to build an SD bootable image for my Banana PI A31s, and having searched the vast galaxy of web servers I managed to accomplish my mission.
In part this guide is more focused at assisting with the set up of a compatible toolchain that will allow you to make use of banana-pi.org’s BPI-M2-bsp build scripts
Section 1 Linux Distro Base + Toolchain
Download ubuntu-14.04.3-server-amd64.iso
Install in a 64-bit virtual environment > 4GB RAM and 4CPU
Also you will need to point the build scripts at the 64bit compatible cross-compiler previously installed as the allwinner-tools cross compilers wont work with the Ubuntu 64 bit system. I can only assume that these binaries were build for 32bit OS!
NOTE: I must stress that you MUST install a 64-bit base system. The scripts will only execute on a 64bit base!
Well I have been playing with the BPI_M2_720P Configuration today and it seems that the following is still broken.
Console re-direction to HDMI
It seems that there is only one specific release of U-Boot that is compatible with the Allwinner 31s as it went end of life, and quite simply it’s not possible to set up a console=tty0 in your env.fex
The “Green” LED that your supposed to be able to control doesn’t seem possible,
root@bananapi:~# ls -la /sys/class/leds/
total 0
drwxr-xr-x 2 root root 0 Jan 1 01:14 .
drwxr-xr-x 54 root root 0 Jan 1 01:14 …
root@bananapi:~#
Adding this to /etc/inittab allows you to login on /dev/ttyS0
1:2345:respawn:/sbin/getty -L 115200 ttyS0 vt100
I haven’t tested GPIO yet, but I am hopeful that this is at least part working as the [gpio_para] GPIO mappings have already been added to the sys_config.fex file, and seem correct!
Can anybody advise me if it’s possible to fudge U-Boot to console redirect to HDMI /dev/fb0 (framebuffer 0) ?? I have altered the kernel configuration (sun6i_config) to no current avail. Also can somebody also assist with getting the /sys/class/leds to populate with LED’s pretty please?
Support for the A31s is going to be a right pain as quite simply put there isn’t any support for it provided by Allwinner.
You won’t get support for the A31/A31s from Allwinner (chip already discontinued) and obviously you won’t get any support from the manufacturer of the M2.
Relying on the old crappy kernel 3.3 and U-Boot from 2011 is not the best idea. Better go with mainline.
If you want to keep your outdated environment you could have a look here for LED definitions and add them to your sysconfig.fex
HI alantrundle:
The image you downloaded is not the latest version of kernel3.3.
We’ll soon updated the images including both the latest kernel3.3 and 4.1.6
If you’re really in a hurry, you may as well do the update yourself.
I managed to build an SD bootable image for my Banana PI-M2 using a custom config mainline kernel. Boots to login screen fine all colors of lights on and or blinking
What is used for login and password.
I did not use .configure or make just followed instruction set for build of Sd card only
using this kernel
using script build.sh with added line
export ARCH=arm
export CROSS_COMPILE=arm-linux-gnueabihf-
export KBUILD_OUTPUT=output/bpi
mkdir -p $KBUILD_OUTPUT
make bpi_defconfig
make menuconfig <-------------Added
make -j8 dtbs
LOADADDR=0x40008000 make -j8 uImage
make -j8 modules
make -j8 INSTALL_MOD_PATH=out modules_install
and using this u-boot using script bpi-m2.sh
and I used Root File Systems (no kernel): debian-wheezy-7.5-armhf.com-20140603.tar.xz
from
http://www.armhf.com/download/