(07-18-2016, 07:47 PM)dkulinski Wrote: I am trying to setup the Pine64 2GB version to run TVHeadEnd. I have seen that this has been done successfully but it was using the HDHomeRun box. I have a USB based ATSC tuner. Is there an easy way I can compile the em28xx and required modules?
Thanks!
"easy" ? ... mostly, yes.
clone this:
https://github.com/akhepcat/build-pine64-kernel and you'll get a script which will automate the majority of building and installing
the kernel. however, it uses a slightly different /boot layout than the default, which I find useful as it allows me to have a backup kernel/initrd
and everything organized into their own directory.
If you'e used longsleep's installer, you should have the linux...headers directory in /usr/src/, and you'll need to copy the '.config' from there into your new build directory. The script prompts you when and where to do that.
after you copy it, you'll need to "make menuconfig" and then find where that em28xx driver is enabled, and set it to 'M'odule. then save the new config, and resume the script.
If everything is done right, you'll have a new kernel that you've built, with your new driver.
"slightly less easy"
You'll need to clone the kernel source from longsleep's repository, and switch to the branch that you have installed .
copy the '.config' and 'modsym.vers' from the same 'linux...headers' directory into your new branch.
again, make menuconfig, enable the em28xx driver, and save and exit.
then you can make just the new module, and copy the em28xx.ko into the appropriate /lib/modules/... directory.
I don't have access to my pine right now so i can't get more specific than that. However, it's not terribly difficult
to figure out, and you'll want to learn how on your own, for the next upgrade cycle.