Author: loboris

Linux Distributions for Orange PI H3 boards

  [Copy link]

7

threads

100

posts

647

credits

Senior member

Rank: 4

credits
647
Published in 2015-8-30 23:36:48 | Show all floors
Edited by john0815 at 2015-8-30 23:54

Thank you - now boot from old image works.
Can you make a script to flash emmc from an older SD-Card image, I think there are some file missing, what your script needs.
Can you make a skript to make a Backup from emmc to SD-Card. So that we can use this SD card to flash another OPI

thx

10

threads

448

posts

5165

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5165
 Author| Published in 2015-8-31 00:02:16 | Show all floors
Edited by loboris at 2015-8-30 18:23
john0815 replied at 2015-8-30 16:36
Thank you - now boot from old image works.

Question: How can I transfer my old system from sd-card  ...

Prepare your SD Card to work with new kernel/script.bin as described in the 1st post (use the newest scriptbin_kernel.tar.gz !)
Also copy all files (without lib directory) from scriptbin_kernel.tar.gz to /boot directory on your linux partition.
Then run install_to_emmc.
(script expects to find boot0_OPI.fex and u-boot_OPI-emmc.fex in /boot directory)

install_to_emmc can be easily adapted for reverse operation (emmc->sdcard). I'll do it later.

7

threads

100

posts

647

credits

Senior member

Rank: 4

credits
647
Published in 2015-8-31 03:28:35 | Show all floors
Thank you. It had worked. I had to copy the files from fat to emmc fat extra.

I think you are the same who had presented in freaktab forum a linux solution for mk808b+.
I have the prob that keyboard and lan do not work after switching from android tu mate. In android both work.
Any idea what ca happened.

Have you seen this
https://www.youtube.com/watch?v=mAs75Ck4RAU

Is it realistic that this is ok and a beginner than I can build such an image.

Thx for your kind reply

3

threads

28

posts

151

credits

Registered member

Rank: 2

credits
151
Published in 2015-8-31 16:41:55 | Show all floors
Hi!
Please tell me which of your assemblies
i can use
UART 1-3, USBtoCOM, SPI, i2c, PWM, intrrupt GPIO, intrrupt Timer?
and compiler GCC ?
how to modify your project (detail)
thank.

10

threads

448

posts

5165

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5165
 Author| Published in 2015-8-31 18:36:27 | Show all floors
Vladimir55 replied at 2015-8-31 09:41
Hi!
Please tell me which of your assemblies
i can use

gpio0-30, uart0, spi0, i2c0 (twi0) are enabled
usb2serial drivers are available for CP210x, FTDI and PL2302

In the next kernel version I'll enable pwm and uart1-3

I don't understand what do you mean by "and compiler GCC ?" and "how to modify your project"

10

threads

448

posts

5165

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5165
 Author| Published in 2015-8-31 18:59:24 | Show all floors
Edited by loboris at 2015-8-31 13:05

Update:
  • Debian Jessie with XFCE desktop uploaded to Mega.
  • desktop & install scripts (desktop_scripts.tar.gz) updated
  • build scripts (make_linux.tar.gz) updated
  • added new script install_to_sdcard. Use it to backup your emmc installation to bootable sd card. See 1st post for details


Hints:
  • When installing to emmc, you can use btrfs option to format your emmc Linux partition as btrfs, it will be mounted with compress=lzo option and you can save up to 40% of emmc size.
  • Check the 1st post to see if there are updated kernels, script.bin (scriptbin_kernel.tar.gz) and install scripts (desktop_scripts.tar.gz) available


3

threads

28

posts

151

credits

Registered member

Rank: 2

credits
151
Published in 2015-8-31 21:46:28 | Show all floors
Edited by Vladimir55 at 2015-8-31 21:48

Hi Loboris!
on line "gcc -o myfile myfile.c  " - he says there is no such "gcc".
can not install the compiler gcc.
you have examples of projects C use
gpio0-30, uart0, spi0, i2c0, CP210x, FTDI and PL2302
uart1-3 ?
What you image should I use?
thank.

10

threads

448

posts

5165

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5165
 Author| Published in 2015-8-31 22:52:27 | Show all floors
Edited by loboris at 2015-8-31 15:57
Vladimir55 replied at 2015-8-31 14:46
Hi Loboris!
on line "gcc -o myfile myfile.c  " - he says there is no such "gcc".
can not install the ...

You must install build-essential package.
There is nothing special about UARTS & USB2serial, you can use them same way as on any Linux PC (ttyUSB*, ttyS*)
About using gpio's see here, there is the link to some examples in the last post.
I'm planning to test i2c & spi next week...
You can use any image you want.

4

threads

47

posts

214

credits

Intermediate member

Rank: 3Rank: 3

credits
214
Published in 2015-9-1 00:25:08 | Show all floors
loboris, I am having an issue building using the new script. I set my parameters like I did last time but I am not seeing the right values for UBOOT for Orange Pi Plus, I have tried these but get FATAL error.

  1. UIMAGE="orange/uImage_OPI-PLUS"
  2. BL1="orange/script.bin.OPI-PLUS_1080p60"
  3. UBOOT="orange/u-boot_OPI-PLUS.fex"
Copy code


Any plans to put this on github with a readme and stuff, will make it much easier to update and track bugs/issues.

10

threads

448

posts

5165

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5165
 Author| Published in 2015-9-1 01:06:54 | Show all floors
blindpet replied at 2015-8-31 17:25
loboris, I am having an issue building using the new script. I set my parameters like I did last tim ...

These parameters are no longer used and they don't exist in params.sh.
The script builds universal image for all OPI boards, you just have to to copy one of the uImage_* and script.bin.* files on fat partition before booting to the specific board (as described in the 1st post).
Download make_linux.tar.gz, extract, change params.sh for desired distro, release, and output options, do not add anything to it.
About github, maybe if I'll have more time, and the whole project becomes more complex.

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list