Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orange Pi port #27

Closed
centralhardware opened this issue Jul 28, 2020 · 17 comments
Closed

Orange Pi port #27

centralhardware opened this issue Jul 28, 2020 · 17 comments
Assignees
Labels
resolution:wontfix This will not be worked on type:feature New feature or request

Comments

@centralhardware
Copy link

can i build pikvm for board orange pi pc2

@mdevaev
Copy link
Member

mdevaev commented Jul 28, 2020

For Orange Pi will be required to modify software to support GPIO. It's not difficult and I can do it. The second difficulty is that you will need to use manual installation, because all the build scripts run on Raspberry. You will also most likely have to work with USB HDMI, since TC358743 doesn't seem to work with Orange.

PS: Если вы разбираетесь в оранжах и настроены серьезно, я готов помочь.

@mdevaev mdevaev self-assigned this Jul 28, 2020
@mdevaev mdevaev added the type:feature New feature or request label Jul 29, 2020
@denisio
Copy link

denisio commented Aug 4, 2020

I would like to port on Armbian Orange Pi Zero (OTG).
How to emulate keyboard and mouse with OTG?

Я хотел бы портировать на Orange Pi Zero,
как у вас работает эмуляция клавиатуры и мыши (есть OTG) ?
Через самописные модули ядра?

@teuchezh
Copy link

teuchezh commented Aug 4, 2020

I join the question of porting to Orange PI, I would like to be able to run this useful thing on a Pi PC, it is cheaper than a Raspberry Pi and has an OTG connector on board like the same RPi 0/4, but since you already wrote about video capture, USB-HDMI is most likely the only way out. Not so long ago, interesting options appeared, for example - Ali .
Our OPi community can be found in telegram - https://t.me/opi_sbc

Присоединяюсь к вопросу о портировании на Orange PI, я бы хотел бы иметь возможность запускать эту полезную вещь на Pi PC, он дешевле чем Raspberry Pi и имеет на борту OTG разъем как те же RPi 0/4, ну а так как вы уже написали насчет захвата видео, USB-HDMI - вероятнее всего единственный выход. Не так давно появились интересные варианты, например - Ali .
Наше комьюнити OPi можно найти в телеграм - https://t.me/opi_sbc

@mdevaev
Copy link
Member

mdevaev commented Aug 4, 2020

OTG works via a regular libcomposite module.
For GPIO, I can make the necessary patch.
I think the only difficulty is in automating the installation. But it seems that Arch Linux ARM can be used on Orange. You will probably only need to build the packages (you can do it directly on Orange) and just install them.

@mdevaev mdevaev changed the title orange pi build Orange Pi port Aug 4, 2020
@centralhardware
Copy link
Author

What is required now from those interested in this port?

@teuchezh
Copy link

What is required now from those interested in this port?

Availability of usb-hdmi
Try to deploy the software and identify the resulting errors
Then we need to solve the work of the OTG so that we can abandon the arduino

@mdevaev mdevaev added the help wanted Extra attention is needed label Sep 3, 2020
@mdevaev
Copy link
Member

mdevaev commented Sep 15, 2020

If someone is still interested in porting to Orange Pi, I am currently working on porting ATX code from RPi.GPIO to libgpiod. Now you don't have to write a separate driver for Orange Pi GPIO and other boards, since libgpiod works everywhere.

#65

@arpbne
Copy link

arpbne commented Oct 1, 2020

orange_pi_hdmi
Just to show approbation for idea, thats how orange pi zero looks with hdmi grabber attached.
Of course toshiba chip won't work (afaik csi != mipi csi), so we have to use usb hdmi grabbers.
Few months ago interesting device appeared, that kills other competitors in that price range.
It is sold for example as "rullz hdmi grabber" on aliexpress for about 10$.
It is not some hdmi->av->usb/uvc converter - its custom ASIC chip (ms2109) that does the HDMI-UVC conversion and it does it well (eg, resolution change is supported and overall experience is good - not for streaming games I guess, but for kvm-over-ip it will works well).

Raspberry pi 4 + TC chip works super good, but in most cases it is total overkill and uneccesary waste of money.
In that case, orange pi + ms2109 looks very promising.

@Informatic
Copy link

Informatic commented Oct 4, 2020

@arpbne what a nice coincidence to see my own photo lurking around the issues. Makes me wonder how you actually managed to get that? :)

That's NanoPi Neo with pretty much fully working kvmd/ustreamer setup based on Yocto instead of Arch Linux with Macrosilicon MS2109 capture card wired directly in. (though with a single line change the image could be rebuilt onto any other Allwinner SoC supported by meta-allwinner-hx, or even any other SoC with Yocto support for that matter)

When I started that project a ~month ago I intended to rewrite gpio support to libgpiod, but after leaving it for a couple of weeks untouched I've been greatly surprised with @mdevaev work implementing that.

I'll release a yocto meta-layer with relevant packages / configuration soon.

Update: libgpiod-based GPIO support seems to work on NanoPi Neo, with the only exception that LED pins need to be either assigned to PA, PG or PL pin banks, as these are the only ones supporting interrupts.
When trying to use PC* pins an OSError: [Errno 19] No such device is thrown in kvmd/aiogp.py:98. Just noting it down, if anyone wanted to bring some fallback polling-based behaviour back.

@mdevaev
Copy link
Member

mdevaev commented Oct 4, 2020

@arpbne Cool! But MS2109 has a number of problems. Sometimes this may spontaneously turn off or not work in the BIOS.

@Informatic do you want me to do the polling mode?

@Informatic
Copy link

Interrupt-capable pins are present on all Allwinner H3 boards I've seen so far, so this isn't much of a blocker, if anyone is actually willing to use it on unsupported board. (and they'll most probably happen to find above note in case they stumble upon said error) I assume you might have some more important tasks to do anyway.

@sisland
Copy link

sisland commented Dec 2, 2020

Orange Pi owner here willing to help. I own Orange Pi Zero H3 (256mb) and Orange Pi Zero Plus 512mb (H5) http://www.orangepi.org/OrangePiZeroPlus/

Let me know if I can help testing something.

@wnark
Copy link

wnark commented Mar 11, 2021

OTG works via a regular libcomposite module.
For GPIO, I can make the necessary patch.
I think the only difficulty is in automating the installation. But it seems that Arch Linux ARM can be used on Orange. You will probably only need to build the packages (you can do it directly on Orange) and just install them.

Hello, I have a few questions.

  1. Which version of the software package in https://pikvm.org/repos/ can I install directly on orangepi archlinux?
  2. What files do I need to modify so that pikvm can use OTG usb and ms2109.
    Because the performance of orange pi zero is higher than that of raspberry pi zero, it can also work normally on USB 2.0 through power consumption control. I have already bought one and want to see if it will be smoother than raspberry pi zero.

And some versions of orangepi have 2 otg ports,5V power supply interface and OTG USB power supply isolation. just like Orange Pi PC 2 .Although it is not possible to use hardware compression using ms2109, hardware compression is not a necessary option in the case of intranet and high-performance cpu
Thank you.

@mdevaev
Copy link
Member

mdevaev commented Oct 26, 2021

Okay, there has been no activity here for a very long time, so I'm closing this issue. I'm still ready to accept patches for compatibility if someone will do it, but the main target platform is Raspberry Pi so I won't to implement it myself.

@mdevaev mdevaev closed this as completed Oct 26, 2021
@mdevaev mdevaev added resolution:wontfix This will not be worked on and removed help wanted Extra attention is needed labels Oct 26, 2021
@elmuz
Copy link

elmuz commented Jan 10, 2022

Following this, hoping someone decides to work on this. I can help if it matters.

@ketsa
Copy link

ketsa commented Feb 28, 2022

Lack of available raspi makes this a need.
Support more boards please.

@xe5700
Copy link

xe5700 commented Jul 22, 2022

Try my project to install pikvm on non rpi device with armbian/debian.
https://github.com/xe5700/kvmd-armbian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:wontfix This will not be worked on type:feature New feature or request
Development

No branches or pull requests