View: 15410|Reply: 12

Orange PI Plus, Boot Issues!!!

[Copy link]

1

threads

4

posts

15

credits

Novice

Rank: 1

credits
15
Published in 2015-5-28 14:00:09 | Show all floors |Read mode
I got a orange plus on hand. And I want to know how to port a boot0 to sdcard .
Then , I downloaded the h3-lichee-1.0.tar.gz , extracted it in my linux machine.
I did not edit anything.I just did exactly what the web page above  described.But I got boot issues.

First , lichee sdk has got a binary boot0_sdcard_sun8iw7p1.bin.I did the same thing below:

# Using sun8iw7p1 "dolphin-p1"Board as an example
# Under lichee/tools/pack

# Copy fex file
cp -fv chips/sun8iw7p1/configs/dolphin-p1/sys_config.fex out/sys_config.fex

# Copy boot0
cp -fv chips/sun8iw7p1/bin/boot0_sdcard_sun8iw7p1.bin out/boot0_sdcard.fex

# Fex file compiler requires fex file in CRLFformat
dos2unix out/sys_config.fex

# Compile fex file
pctools/linux/mod_update/script out/sys_config.fex

# Patch sdcard boot0
pctools/linux/mod_update/update_boot0 out/boot0_sdcard.fex out/sys_config.bin SDMMC_CARD

and then I did this to program boot0 to sdcard.
dd if=/dev/zero of=/dev/sdb bs=1M count=40
dd if=boot0_sdcard.fex of=/dev/sdb bs=1k seek=8

it was successful. But when I inserted the sdcard to my PI Plus , the serial console do not print anything.
And then , I did this to get the boot0 from Lubuntu
dd if=Lubuntu_1404_For_OrangePiplus_v0_8_0_.img of=boot0.bin bs=1k skip=8 count=32
clear first 40M of sdcard.
Dd if=/dev/zero of=/dev/sdb bs=1M count=40
Program boot0 got from Lubuntu .
Dd if=boot0.bin of=/dev/sdb bs=1k seek=8
Then insert the sdcard to PI Plus. It booted and has serial print. And Just stopped when it did not found a valid uboot.It’s not a problem because I did not program uboot to sdcard.
And I compared the boot0_sdcard.fex to boot0.bin , Results see below
Exclude the Header , in the config area , boot0_sdcard.fexare different from boot0.bin.
Is the  chips/sun8iw7p1/configs/dolphin-p1/sys_config.fex  not right ? Can some onehelp ? Thank you.

This thread contains more resources

You need to Log in to download or view,No account?    Register

x

1

threads

4

posts

15

credits

Novice

Rank: 1

credits
15
 Author| Published in 2015-5-28 21:28:07 | Show all floors
fritz replied at 2015-5-28 19:51
http://linux-sunxi.org/H3_Manual_build_howto is a generic Howto for H3-boards.
chips/sun8iw7p1/confi ...

OK , if you got any result , please let us know . And would you upload the config.fex which can work on opiplus ?
Thanks for your reply.

5

threads

354

posts

2742

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2742
Published in 2015-5-28 19:51:23 | Show all floors
http://linux-sunxi.org/H3_Manual_build_howto is a generic Howto for H3-boards.
chips/sun8iw7p1/configs/dolphin-p1/sys_config.fex is a generic configuration file.
you can "not" compile boot0, for compiling it needs a propietary ARM-CC toolchain.
you have to use the provided binary.
I can not remember if my opiplus booted with the generic sys_config.fex/bin configuration, I have to try.
Wiil check.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

5

threads

354

posts

2742

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2742
Published in 2015-5-28 23:42:47 | Show all floors
Edited by fritz at 2015-5-28 16:44

Well, first I must thank you for pointing this out.

But first Let's make a "test" together, OK?

Repeat the procedure from the H3-manual How To. But instead to use :
  1. # Compile fex file
  2. pctools/linux/mod_update/script out/sys_config.fex
Copy code


You use fex2bin alias fexc from sunxi-tools :
  1. [fritz@Arch_notebook out]$ ~/ARM/sunxi-tools/fex2bin sys_config.fex sys_config.bin
Copy code

This will give you errors!
Correct This errors and retry!
If you done, continue with the normal procedure.
Report!


PS. Allwinner binaries
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

1

threads

4

posts

15

credits

Novice

Rank: 1

credits
15
 Author| Published in 2015-5-29 11:43:37 | Show all floors
fritz replied at 2015-5-28 23:42
Well, first I must thank you for pointing this out.

But first Let's make a "test" together, OK?

well ... Finally it works.It boots...Thank you ,Fritz...Flowers~~~~

4

threads

65

posts

260

credits

Intermediate member

Rank: 3Rank: 3

credits
260
Published in 2015-5-29 22:06:09 | Show all floors
how to ?
Reply

Use magic report

5

threads

354

posts

2742

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2742
Published in 2015-5-30 03:55:00 | Show all floors
@wuxiang3000
Great!


If you need the configuration fexfile for opi plus or opi2 :
http://www.orangepi.org/orangepi ... 94&fromuid=2131
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

1

threads

76

posts

519

credits

Senior member

Rank: 4

credits
519
Published in 2015-5-30 16:25:16 | Show all floors
Hi,

Do you have any info about:

1) ready solution for boot u-boot (or similar) where I will be able to move rotfs to emmc flash on OPi plus
2) ready solution (ready package img whatever) where I will be able to boot and use rootfs from emmc (the best rasbian or debian, ARCH)
3) ready solution for config files and boot elf files similar as it is in BPI or RPi/RPi2 - is some body crates it for H3 OPi plus ?

I received OPi plus from China I paid 67 USD (some additions) and the board is quiet - compilation from scratch and toolchain takes very long time and we do not know if it will build with sauces almost.

Regards,

1

threads

4

posts

15

credits

Novice

Rank: 1

credits
15
 Author| Published in 2015-6-4 16:20:04 | Show all floors
roblad replied at 2015-5-30 16:25
Hi,

Do you have any info about:

yes, of cource .... You can go to web page  to see more : http://linux-sunxi.org/H3_Manual_build_howto

0

threads

3

posts

42

credits

Novice

Rank: 1

credits
42
Published in 2015-6-4 18:55:46 from mobile | Show all floors
I just received my OPP, prepared my 32g class 10 sd card, plugged it in, all I get is a red light, no image or activity whatsoever... Help?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list