Hi,
I'm tring to set up a webcam on my Omega2+ by following the Projects
Book.
The project does not cover the possibility of using a webcam other than the one linked to (which costs several times more than the Omega2+ and dock combined). I have an existing webcam available which is supported by Linux (Playstation Eye), but it requires a kernel module which is not included by default. From my point of view, that's quite understandable, though I would expect that an inexperienced user - e.g. one who did not know what the date command did - would be flummoxed at this stage.
However, I had determined elsewhere that the webcam requires the
gspca-ov534 kernel module. Having enabled the lede-project repos as per the project instructions, I found that a package kmod-video-gspca-ov534 is available, but this will not install due to kernel version requirements - it expects 4.4.61 compared to 4.4.46 on the Omega2+ (n.b. I have updated the firmware to the latest version
i.e. 0.1.10).
I didn't find any Onion docs describing how to cross-compile for the
Omega2+, only the orginal Omega. The following forum posts give some clues, but no definitive information:
https://community.onion.io/topic/1523/so-close-hfs-support/5
https://community.onion.io/topic/1756/request-kernel-module-kmod-cryptodev
https://community.onion.io/topic/1592/project-docker-omega2-sdk-for-cross-compilation-cmake-support
https://community.onion.io/topic/1298/omega2-cross-compiler-and-kernel-sources/4
https://community.onion.io/topic/1134/guide-to-cross-compilation-for-omega2/7
https://community.onion.io/topic/1139/omega2-cannot-install-kmod-fs-ext4-kmod-usb-storage-extra-kernel-version-mismatch
https://community.onion.io/topic/1775/how-can-i-get-the-source-code-of-omega2-s-firmware/3
What I did try was to pull the sources tree from lede-project onto my ubuntu x86_64 system, enable
the relevant modules via menuconfig and build everything. That
succeeded and built image and modules for 4.4.61, so then I checked
out the commit just before the kernel was bumped to 4.4.47 and built
again. This time I got kmod packages for 4.4.46, but they still
wouldn't install due to a different hash in the kernel version.
The fork in https://github.com/OnionIoT/source was no help - all
branches have include/kernel-version.mk at 4.4.39 or 4.4.38.
Am I on the right track? Are extra kernel module packages available
somewhere already? Or where can I get the correct version of the
sources to build compatible kernel modules?