Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
123Next
Return to list New
View: 14164|Reply: 26

H3 boards with Allwiner source code

[Copy link]

2

Threads

34

Posts

305

Credits

Intermediate member

Rank: 3Rank: 3

Credits
305
Post time 2015-5-3 05:26:49 | Show all posts |Read mode
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

u-boot

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

TODO:
- 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.








This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

10

Threads

448

Posts

3158

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
3158
Post time 2015-8-3 15:58:04 | Show all posts
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

5

Threads

355

Posts

1881

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1881
Post time 2015-8-3 20:27:13 | Show all posts
@ghl.bhrt
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!
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

2

Threads

34

Posts

305

Credits

Intermediate member

Rank: 3Rank: 3

Credits
305
 Author| Post time 2015-5-5 01:44:48 | Show all posts
Booting from sdcard, just replaced uImage. Not sure making this work is worth pursuing now that Steven has released SDK.
Post time 2015-5-3 09:20:20 | Show all posts
I will upload u-boot and kernel source to github orangepi-xunlong in a week. I am testing lubuntu and raspbian.  

5

Threads

355

Posts

1881

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1881
Post time 2015-5-3 13:39:38 | Show all posts
a great YEAH!! to both of you.




PS. Come on customs please releases my board
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

0

Threads

8

Posts

197

Credits

Registered member

Rank: 2

Credits
197
Post time 2015-5-4 15:20:49 | Show all posts
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,
CK


4

Threads

65

Posts

260

Credits

Intermediate member

Rank: 3Rank: 3

Credits
260
Post time 2015-5-13 22:41:08 | Show all posts
Android 4.2 SDK for H3?  or the same  Android 4.2 SDK for Orange Pi/mini Pi

2

Threads

34

Posts

305

Credits

Intermediate member

Rank: 3Rank: 3

Credits
305
 Author| Post time 2015-5-16 15:12:28 | Show all posts
codekipper replied at 2015-5-4 15:20
Hi pgauret,
how are you booting this?..sdcard or eMMC?...are you using the old debian image and just ...

Sorry for late reply. For the moment just replacing uImage, couldn't yet build a working u-boot from the SDK sources.

5

Threads

355

Posts

1881

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1881
Post time 2015-5-16 16:14:35 | Show all posts
@pgauret
u-boot needs to be "updated" with sys_config.bin and written on 16400.
bs=1k seek=16400
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

2

Threads

34

Posts

305

Credits

Intermediate member

Rank: 3Rank: 3

Credits
305
 Author| Post time 2015-5-16 17:52:22 | Show all posts
fritz replied at 2015-5-16 16:14
@pgauret
u-boot needs to be "updated" with sys_config.bin and written on 16400.
bs=1k seek=16400

Thanks Fritz, this is indeed a step I was missing.

Which board name do you use to build sys_config.bin?  I have the following available:

default  dolphin-cmcc-wasu-p1  dolphin-p1  dolphin-perf  fpga

5

Threads

355

Posts

1881

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
1881
Post time 2015-5-16 18:10:00 | Show all posts
Edited by fritz at 2015-5-16 18:12

dolphin-p1, but I have the right one for pi plus extracted ;)

....and look at sun8iw7p1.h ->  #define CONFIG_EXTRA_ENV_SETTINGS
before you build u-boot.


   
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....
You have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2017-9-21 23:58 GMT+8 , Processed in 0.034791 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list