Author Topic: Cameras in Debian ?  (Read 3882 times)

Georgius

  • Newbie
  • *
  • Posts: 16
    • View Profile
Cameras in Debian ?
« on: July 10, 2018, 04:44:54 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 ?

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Cameras in Debian ?
« Reply #1 on: July 10, 2018, 06:49:08 pm »
Quote from: Georgius
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.

Georgius

  • Newbie
  • *
  • Posts: 16
    • View Profile
Cameras in Debian ?
« Reply #2 on: July 11, 2018, 03:49:33 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) ?

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Cameras in Debian ?
« Reply #3 on: July 11, 2018, 04:09:55 pm »
Quote from: Georgius
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.

Georgius

  • Newbie
  • *
  • Posts: 16
    • View Profile
Cameras in Debian ?
« Reply #4 on: July 11, 2018, 04:37:14 pm »
Quote from: galodoido
Quote from: Georgius
pre-brewed modular kernel from http://www.mygnu.de/index.php/2018/06/modu...the-gemini-pda/

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

galodoido

  • Full Member
  • ***
  • Posts: 153
    • View Profile
Cameras in Debian ?
« Reply #5 on: July 11, 2018, 06:36:06 pm »
Quote from: Georgius
Quote from: galodoido
Quote from: Georgius
pre-brewed modular kernel from http://www.mygnu.de/index.php/2018/06/modu...the-gemini-pda/

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.

mithrandir

  • Full Member
  • ***
  • Posts: 193
    • View Profile
    • http://www.mygnu.de
Cameras in Debian ?
« Reply #6 on: July 12, 2018, 01:51:53 pm »
Quote from: Georgius
Quote from: galodoido
Quote from: Georgius
pre-brewed modular kernel from http://www.mygnu.de/index.php/2018/06/modu...the-gemini-pda/

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.

Georgius

  • Newbie
  • *
  • Posts: 16
    • View Profile
Cameras in Debian ?
« Reply #7 on: July 13, 2018, 01:03:14 pm »
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 ...

mithrandir

  • Full Member
  • ***
  • Posts: 193
    • View Profile
    • http://www.mygnu.de
Cameras in Debian ?
« Reply #8 on: July 14, 2018, 08:04:51 pm »
Quote from: Georgius
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