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

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
12Next
Return to list New
View: 9541|Reply: 12

Orange PI Plus, Boot Issues!!!

[Copy link]

1

Threads

4

Posts

15

Credits

Novice

Rank: 1

Credits
15
Post time 2015-5-28 14:00:09 | Show all posts |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 post contains more resources

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

x

1

Threads

4

Posts

15

Credits

Novice

Rank: 1

Credits
15
 Author| Post time 2015-5-28 21:28:07 | Show all posts
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

355

Posts

2143

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2143
Post time 2015-5-28 19:51:23 | Show all posts
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

355

Posts

2143

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2143
Post time 2015-5-28 23:42:47 | Show all posts
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 the 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 the 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| Post time 2015-5-29 11:43:37 | Show all posts
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
Post time 2015-5-29 22:06:09 | Show all posts
how to ?
Reply

Use magic Report

5

Threads

355

Posts

2143

Credits

Moderator

Rank: 7Rank: 7Rank: 7

Credits
2143
Post time 2015-5-30 03:55:00 | Show all posts
@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
Post time 2015-5-30 16:25:16 | Show all posts
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| Post time 2015-6-4 16:20:04 | Show all posts
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
Post time 2015-6-4 18:55:46 From the mobile phone | Show all posts
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?
12Next
Return to list New
You have to log in before you can reply Login | Register

Points Rules

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

2020-8-10 07:25 GMT+8 , Processed in 0.035830 second(s), 24 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list