MiSTer-devel / Main_MiSTer

Main MiSTer binary and Wiki
GNU General Public License v3.0
3.02k stars 325 forks source link

Updated Linux kernel 4.19 #46

Closed makigumo closed 5 years ago

makigumo commented 5 years ago

The currently used kernel is already 2+ years old, and I was missing the usbip (USB over IP) functionality while waiting for my USB hub to arrive. So I ported the changes to the currently latest socfpga-4.19 branch (https://github.com/makigumo/linux-socfpga/).

I cherry-picked all relevant changes made to socfpga-4.5, without the backported fixes or modules.

But I needed to update to more recent versions of exfat, which is working fine, and rtl8812AU modules. Unfortunately I don't have such a wireless card, so I could not test this, so this might require some work.

I'm not sure how to proceed, because a pull-request would be massive.

sorgelig commented 5 years ago

Pull request is not suitable for this. New repository will be required for new version. So you use this kernel and the whole MiSTer is working? Some time ago I've tried recent socfpga kernels but they weren't even booting.

If this kernel is really working then I will create the new repository. Generally speaking the kernel version is not a problem as long as it works fine. I use rtl8812AU (D-Link DWA-171 Rev A1) on one of my MiSTer boxes, so i can test it. By the way, is it possible to add rtl8822BU (rtl88x2BU) together with rtl8812AU? I've bought recently ASUS USB-AC53 nano which uses this chip and it's very tiny, so i would like to use it on MiSTer. But i've failed to add this driver as it shares many common sources with rtl8812AU and it's impossible to add it as a separate driver - there will be tons of errors about functions re-declaration. Not sure if both drivers can be merged into common one...

USB over IP sounds interesting.

sorgelig commented 5 years ago

It seems i cannot fork your branch as current kernel version is the fork of the same repo. Probably i will re-up my current kernel as a separate non-forked repository, so i will be able to fork the new one.

makigumo commented 5 years ago

You could probably just checkout my branch into your working repository and push it back to the MiSTer-github repo. Something like the following:

git remote add makigumo git@github.com:makigumo/linux-socfpga.git
git fetch makigumo socfpga-4.19-MiSTer
git checkout -b socfpga-4.19-MiSTer makigumo/socfpga-4.19-MiSTer
git push -u origin socfpga-4.19-MiSTer

I have been using the 4.19 kernel for a week or so without an issue using the standard linux image, because I could not successfully build a custom one with some modules und binaries added. I probably messed up the /dev directory.

I can later have a look at rtl88x2BU support.

sorgelig commented 5 years ago

I've already did it. So from now you can use PR to 4.19 branch.

makigumo commented 5 years ago

OK, thank you.