OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Cameras in Debian ?
Georgius
post Jul 10 2018, 12:44 PM
Post #1





Group: Members
Posts: 16
Joined: 3-January 18
Member No.: 815,777



Hi,
I do have a back camera addon and after the last sat-get upgrade I discovered this:

gemini@gemini:/dev$ ls /dev/cam*
/dev/camera-dpe /dev/camera-fdvt /dev/camera-isp
gemini@gemini:/dev$

Vlc says something about privileges, is there any easy way to use the cameras ?
Go to the top of the page
 
+Quote Post
galodoido
post Jul 10 2018, 02:49 PM
Post #2





Group: Members
Posts: 156
Joined: 13-May 18
Member No.: 822,555



QUOTE(Georgius @ Jul 10 2018, 05:44 PM) *
Hi,
I do have a back camera addon and after the last sat-get upgrade I discovered this:

gemini@gemini:/dev$ ls /dev/cam*
/dev/camera-dpe /dev/camera-fdvt /dev/camera-isp
gemini@gemini:/dev$

Vlc says something about privileges, is there any easy way to use the cameras ?


I don't have an addon camera and also have /dev/camera-dpe /dev/camera-fdvt /dev/camera-isp.

In order to camera work you must have /dev/video.
Try to install some firmwares ( apt-get install firmware-linux-free firmware-linux-nonfree firmware-misc-nonfree). Maybe a kernel module must have to load. ( you will need to compile a kernel with modules support ).

After this you can try it with guvcview ( apt-get install guvcview ).
Good luck.
Go to the top of the page
 
+Quote Post
Georgius
post Jul 11 2018, 11:49 AM
Post #3





Group: Members
Posts: 16
Joined: 3-January 18
Member No.: 815,777



OK, so some progress here. I have a pre-brewed modular kernel from http://www.mygnu.de/index.php/2018/06/modu...the-gemini-pda/ (the lazy way, just grabed the image without compiling the kernel myself), lsmod shows two modules loaded. However, no camera. So I apt-geted modules you suggested, but did not solve the problem. I tried the USB-C hub and it seems to me, that I'll have to compile the network driver, so I am on my way to start brewing kernels directly on Gemini:

https://www.pcsuggest.com/install-rtl8153-driver-linux/

the question is if there might be a driver version for our bit obsolete kernel version.

Any ideas on cameras (original topic) ?
Go to the top of the page
 
+Quote Post
galodoido
post Jul 11 2018, 12:09 PM
Post #4





Group: Members
Posts: 156
Joined: 13-May 18
Member No.: 822,555



QUOTE(Georgius @ Jul 11 2018, 04:49 PM) *
OK, so some progress here. I have a pre-brewed modular kernel from http://www.mygnu.de/index.php/2018/06/modu...the-gemini-pda/ (the lazy way, just grabed the image without compiling the kernel myself), lsmod shows two modules loaded. However, no camera. So I apt-geted modules you suggested, but did not solve the problem. I tried the USB-C hub and it seems to me, that I'll have to compile the network driver, so I am on my way to start brewing kernels directly on Gemini:

https://www.pcsuggest.com/install-rtl8153-driver-linux/

the question is if there might be a driver version for our bit obsolete kernel version.

Any ideas on cameras (original topic) ?


You will have to cross compile ( in a PC ) a kernel from github source ( change .config with a text editor : only the line to enable modules support (m) and not using make menuconfig because it doesn't work when compiling, some errors will occur if these changes are made with menuconfig ). After this, flash gemini with this new kernel ( only kernel ) . And inside gemini, compile only the modules ( you will have to select some options in menuconfig). There is a topic here how to compile. Only compiling modules will work inside gemini. Not the image. You will have to change also the compiler inside menuconfig. Please see this topic about compiling in this forum. In this topic I report that I could load some modules like my dibcom module ( external tv dongle ) , ethernet adapter, and so.
You can see also a video of my dongle TV working inside VLC
Good luck.
Go to the top of the page
 
+Quote Post
Georgius
post Jul 11 2018, 12:37 PM
Post #5





Group: Members
Posts: 16
Joined: 3-January 18
Member No.: 815,777



QUOTE(galodoido @ Jul 11 2018, 10:09 PM) *
QUOTE(Georgius @ Jul 11 2018, 04:49 PM) *


You will have to cross compile ( in a PC ) a kernel from github source ( change .config with a text editor : only the line to enable modules support (m) and not using make menuconfig because it doesn't work when compiling, some errors will occur if these changes are made with menuconfig ). After this, flash gemini with this new kernel ( only kernel ) . And inside gemini, compile only the modules ( you will have to select some options in menuconfig).

Yep, and there is a shortcut as the mygnu.de user already went though this and offers image + modules compiled. Did you manage to get the ethernet in the gemini hub working ?
I am able to modprobe nfs driver, but looks like majority of the "useful" kernel hardware modules are not built by that guy ...
Going to read in detail module compilation section, thx so far
Go to the top of the page
 
+Quote Post
galodoido
post Jul 11 2018, 02:36 PM
Post #6





Group: Members
Posts: 156
Joined: 13-May 18
Member No.: 822,555



QUOTE(Georgius @ Jul 11 2018, 05:37 PM) *
QUOTE(galodoido @ Jul 11 2018, 10:09 PM) *
QUOTE(Georgius @ Jul 11 2018, 04:49 PM) *


You will have to cross compile ( in a PC ) a kernel from github source ( change .config with a text editor : only the line to enable modules support (m) and not using make menuconfig because it doesn't work when compiling, some errors will occur if these changes are made with menuconfig ). After this, flash gemini with this new kernel ( only kernel ) . And inside gemini, compile only the modules ( you will have to select some options in menuconfig).

Yep, and there is a shortcut as the mygnu.de user already went though this and offers image + modules compiled. Did you manage to get the ethernet in the gemini hub working ?
I am able to modprobe nfs driver, but looks like majority of the "useful" kernel hardware modules are not built by that guy ...
Going to read in detail module compilation section, thx so far


Yes, but with my usb to usb-c adapter and with my usb ethernet adapter from my macbook air. Please, see :

https://www.oesf.org/forum/index.php?showto...amp;hl=ethernet

I've also put a photo showing this. ( connman ).

Please see the modules loaded in the photo.

Good luck.

Go to the top of the page
 
+Quote Post
mithrandir
post Jul 12 2018, 09:51 AM
Post #7





Group: Members
Posts: 120
Joined: 7-January 18
Member No.: 815,997



QUOTE(Georgius @ Jul 11 2018, 12:37 PM) *
QUOTE(galodoido @ Jul 11 2018, 10:09 PM) *
QUOTE(Georgius @ Jul 11 2018, 04:49 PM) *


You will have to cross compile ( in a PC ) a kernel from github source ( change .config with a text editor : only the line to enable modules support (m) and not using make menuconfig because it doesn't work when compiling, some errors will occur if these changes are made with menuconfig ). After this, flash gemini with this new kernel ( only kernel ) . And inside gemini, compile only the modules ( you will have to select some options in menuconfig).

Yep, and there is a shortcut as the mygnu.de user already went though this and offers image + modules compiled. Did you manage to get the ethernet in the gemini hub working ?
I am able to modprobe nfs driver, but looks like majority of the "useful" kernel hardware modules are not built by that guy ...
Going to read in detail module compilation section, thx so far


Good to know something is missing... It is quite easy to forget some USB drivers in kernel configuration due to the structure of the menuconfig. Currently creating a config for an updated kernel with more devices supported (including the realtek driver), which will also contain the latest security fix that has beed added to the gemini tree. Will be available soon on mygnu.de.

Regarding the camera things will be harder, @see https://www.oesf.org/forum/index.php?showtopic=35128. It is not just adding a driver to kernel configuration. Looks like Meditek did not implement v4l for the camera. The android camera interfaces should be available from kernel side, but I have no clue how it might be used.
Go to the top of the page
 
+Quote Post
Georgius
post Jul 13 2018, 09:03 AM
Post #8





Group: Members
Posts: 16
Joined: 3-January 18
Member No.: 815,777



Thank you for your reply and especially for your effort ! I have read the camera thread and sounds nor really promissing. What about HDMI support ? Where is the problem that it does not work under Debian ? Unfortunatelly, it seems that until the camera problem is somehow solved, I'll have to remain on the "dark side" of rooted Android with termux etc ...
Go to the top of the page
 
+Quote Post
mithrandir
post Jul 14 2018, 04:04 PM
Post #9





Group: Members
Posts: 120
Joined: 7-January 18
Member No.: 815,997



QUOTE(Georgius @ Jul 13 2018, 09:03 AM) *
Thank you for your reply and especially for your effort ! I have read the camera thread and sounds nor really promissing. What about HDMI support ? Where is the problem that it does not work under Debian ? Unfortunatelly, it seems that until the camera problem is somehow solved, I'll have to remain on the "dark side" of rooted Android with termux etc ...


Updated kernel on: http://www.mygnu.de/index.php/2018/07/impr...the-gemini-pda/
Until now I have not tried more than (unsuccessfully) plugging in the HDMI adapter with Linux. So unfortunately no answer this time...

Mith
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 15th October 2019 - 06:53 PM