Forum > Open source hardware
pgauret 看全部
2015-5-3 05:26:49
Edited by pgauret at 2015-5-3 20:26

Looks like we can use the source code posted by Allwinner on Github for H3 boards.

Where I am at the moment:
- Successfully compiled u-boot (however not tested yet).
- Successfully compiled Linux 3.4 kernel and booted it.

Build environment
I am using a Ubuntu 12.04 virtual machine as the Allwinner code requires the older gcc 4.6 to build.

apt-get install libncurses5-dev
apt-get install gcc-4.6-arm-linux-gnueabihf g++-4.6-arm-linux-gnueabihf
ln -s /usr/bin/arm-linux-gnueabihf-gcc-4.6 /usr/bin/arm-linux-gnueabihf-gcc
ln -s /usr/bin/arm-linux-gnueabihf-gcov-4.6 /usr/bin/arm-linux-gnueabihf-gcov
ln -s /usr/bin/arm-linux-gnueabihf-g++-4.6 /usr/bin/arm-linux-gnueabihf-g++
ln -s /usr/bin/arm-linux-gnueabihf-cpp-4.6 /usr/bin/arm-linux-gnueabihf-cpp


cd ~/opi
mkdir -p tools/pack/chips/sun8iw7p1/bin/
git clone https://github.com/allwinner-zh/bootloader
cd bootloader/u-boot-2011.09
chmod +x mkconfig
chmod +x tools/scripts/*

Edit arch/arm/cpu/armv7/config.mk and replace references to -msoft-float by -mfloat-abi=hard -mfpu=vfpv3

make CROSS_COMPILE=arm-linux-gnueabihf- sun8iw7p1_config
make CROSS_COMPILE=arm-linux-gnueabihf-
cd ..

Linux kernel

cd ~/opi
git clone https://github.com/allwinner-zh/linux-3.4-sunxi
cd linux-3.4-sunxi/

curl -L -o arch/arm/mach-sunxi/power/brom/gen_check_code 'https://github.com/allwinner-zh/linux-3.4-sunxi/raw/9b373011c2717c072c8d20505f15fadad4239c0e/arch/arm/mach-sunxi/power/brom/gen_check_code'
curl -L -o arch/arm/mach-sunxi/pm/standby/gen_check_code 'https://github.com/allwinner-zh/linux-3.4-sunxi/blob/9b373011c2717c072c8d20505f15fadad4239c0e/arch/arm/mach-sunxi/pm/standby/gen_check_code?raw=true'
chmod +x arch/arm/mach-sunxi/power/brom/gen_check_code arch/arm/mach-sunxi/pm/standby/gen_check_code

Copy the attached .config file (silly forum does not allow attaching file without zipping it)
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j5 uImage modules
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install

- Test u-boot
- Complete linux kernel configuration (current config has no networking). I'd like to restart from a default Ubuntu or Debian kernel config baseline and add the relevant sunxi options.

attachment: 您需要登录才可以下载或查看附件。没有账号?Register
loboris 看全部
2015-8-3 15:58:04


magicse replied at 2015-8-3 07:56
Some question
In docs of Orange Pi say next ->
SD Card Layout

Because that sd card layout is wrong.
bootloader is at 8x1024
u-boot is at 16400*1024
first partition starts at 20480x1024

fritz 看全部
2015-8-3 20:27:13


zhao_steven replied at 2015-5-3 09:20
I will upload u-boot and kernel source to github orangepi-xunlong in a week. I am testing lubuntu an

Steven forgot to say in a week next year!

don't believe it!

This is the official link:  https://github.com/allwinner-zh/ ... master/basic_loader
There are no others!
pgauret 看全部
2015-5-5 01:44:48
Booting from sdcard, just replaced uImage. Not sure making this work is worth pursuing now that Steven has released SDK.
zhao_steven 看全部
2015-5-3 09:20:20
I will upload u-boot and kernel source to github orangepi-xunlong in a week. I am testing lubuntu and raspbian.  
fritz 看全部
2015-5-3 13:39:38
a great YEAH!! to both of you.

PS. Come on customs please releases my board
codekipper 看全部
2015-5-4 15:20:49
Hi pgauret,
how are you booting this?..sdcard or eMMC?...are you using the old debian image and just replacing uImage?
Kudos by the way,

1234.. 6NextPage

OrangePi En

Powered by Discuz! X3.4

homepage|Simple edition|Touch edition|PC