Author: loboris

Linux Distributions for Orange PI H3 boards

  [Copy link]

2

threads

22

posts

92

credits

Registered member

Rank: 2

credits
92
Published in 2015-9-1 22:01:10 | Show all floors
loboris replied at 2015-9-1 21:50
It is new design, board layout is completely different, ~5mm wider...
I'm not shure if I'm allowed ...

One more question, it has really SATA or the same USB <> SATA bridge?

3

threads

28

posts

151

credits

Registered member

Rank: 2

credits
151
Published in 2015-9-1 22:51:28 | Show all floors
loboris replied at 2015-9-1 18:24
If you have the problem with ethernet not working, it is probably because the wrong uImage* and/or ...

Hi!
uploaded by: Debian_jessie_mini.img - 30.08.2015
It does not work network Orange pi mini 2.
what I'm doing wrong?
Thank you very much for your answer.

10

threads

448

posts

5037

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5037
 Author| Published in 2015-9-1 23:12:05 | Show all floors
Niarbagem replied at 2015-9-1 15:01
One more question, it has really SATA or the same USB  SATA bridge?

the same USB <> SATA bridge

10

threads

448

posts

5037

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5037
 Author| Published in 2015-9-1 23:19:32 | Show all floors
Vladimir55 replied at 2015-9-1 15:51
Hi!
uploaded by: Debian_jessie_mini.img - 30.08.2015
It does not work network Orange pi mini 2.

Have you copied:
script.bin.OPI-2_1080p60  -->  script.bin
uImage_OPI-2  -->  uImage
on BOOT (FAT) partition ?

3

threads

28

posts

151

credits

Registered member

Rank: 2

credits
151
Published in 2015-9-2 00:33:40 | Show all floors
Edited by Vladimir55 at 2015-9-2 00:45
loboris replied at 2015-9-1 23:19
Have you copied:
script.bin.OPI-2_1080p60  -->  script.bin
uImage_OPI-2  -->  uImage

Hello Loboris!
I'm probably not an expert
You can say details how and where that copy?
I have an image "Debian_jessie_mini.img"
what to do?

10

threads

448

posts

5037

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5037
 Author| Published in 2015-9-2 01:00:50 | Show all floors
Vladimir55 replied at 2015-9-1 17:33
Hello Loboris!
I'm probably not an expert
You can say details how and where that copy?

If you are on Debian Jessie mini (no Desktop):
After writing the image (Debian_jessie_mini.img) to SD Card:
Insert the SD Cart into OPI
Power on, wait for login prompt
login (orangepi, orangepi)
run:
  1. sudo cp /media/boot/script.bin.OPI-2_1080p60 /media/boot/script.bin
  2. sudo cp /media/boot/uImage_OPI-2 /media/boot/uImage
  3. sudo reboot
Copy code
After reboot everything should be OK.
If it does not reboot (kernel panic), just power of, then power on.

3

threads

38

posts

223

credits

Intermediate member

Rank: 3Rank: 3

credits
223
Published in 2015-9-2 05:03:31 | Show all floors
Edited by Sitheek at 2015-9-2 05:10

Ok, my friend @mikexx debugged CSI port on Orange Pi 2 with logic analyzer so these are things we figured out:

1. There is no power supply for CSI camera because SoC pin PA17 is in down state - 0 volts. This pin is required to be in high state - it enables power supply for CSI camera.

2. I2c 0 works, probalby I2c 1 works too, but I2c 2 which is connected to CSI port will not work until again PA17 pin is in low state. Data and clock lines of I2c are pulled up through resistors from PA17, so if it is 0 volts I2c 2 can not work too.

To enable any CSI camera PA17 pin should be in high state. Setting it through script.bin does not work.

We tried using gpio-sunxi module without sucess. gpio-sunxi.ko does not allow to set PA17 pin.
I looked into sources of gpio-sunxi and it's includes, but I am not a coder.

I figured out that there are addresses of essential registers defined in /arch/arm/mach-sunxi/include/mach/sun8i/platform-sun8iw7p1.h, but I do not understend how gpio-sunxi kernel module knows what pins to use.

Accorging to Allwiner's H3 soc documentation - page 318 - PA17 pin can be used as gpio, but I do not know why it is not allowed by gpio-sunxi module.

@loborys could you help us and tell us how to set PA17 high? We can rebuild kernel, we use your's old lichee.tar.gz, could you post the new one?

10

threads

448

posts

5037

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5037
 Author| Published in 2015-9-2 05:41:04 | Show all floors
Edited by loboris at 2015-9-1 22:43
Sitheek replied at 2015-9-1 22:03
Ok, my friend @mikexx debugged CSI port on Orange Pi 2 with logic analyzer so these are things we fi ...

I have not enough time to look deeper into it until next week, but I've tried a simple trick.I've replaced gpio deffinition for gpio_pin_28 in fex from PA20 to PA17:
orig:  gpio_pin_28      = port:PA20<1><default><default><0>

new:  gpio_pin_28      = port:PA17<1><default><default><0>

Now, PA17 apears in /sys/class/gpio_sw
You can download compiled script.bin with that change from here. Copy it as script.bin to fat partition.

3

threads

28

posts

151

credits

Registered member

Rank: 2

credits
151
Published in 2015-9-2 13:58:39 | Show all floors
loboris replied at 2015-9-2 01:00
If you are on Debian Jessie mini (no Desktop):
After writing the image (Debian_jessie_mini.img) to ...

Hi!
everything works thanks!
There is a problem with UART 0-2
Target data rate greater 115200. (230400-460800-921600)
instead 230400 we have 214000 (error baund)
the default is  uart_clock =24000000 Hz.
24000000/16/13 =115384.6 ~=115200  +/-2% permissible for UART
24000000/16/7 =214285.7  -error !
in rasberi Pi:
edit boot/config.txt
init_uart_clock = 14,745,600 Hz.
14745600/16/1=921600.
data rate =921600 - ok.
i need to change takt  UART c 24000000 to 14,745,600 Hz.
how can this be done in Orange PI?


10

threads

448

posts

5037

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5037
 Author| Published in 2015-9-2 15:44:18 | Show all floors
Vladimir55 replied at 2015-9-2 06:58
Hi!
everything works thanks!
There is a problem with UART 0-2

I don't think it can be done easily.
For speeds greater than 115200 bd you have to use USB->Serial adapter.
I'm using CP2102 based adapter, it is only ~1.5$ and has all control signals exposed.

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

Points Rule

Quick reply Top Return list