New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check_mem_region doesn't exist in Kernel 4 #2
Comments
@NTICompass I'm in the same boat as you but from a bit of research I think it's OK to comment out the if block that references that. It was removed from the kernel because it was racy - between checking the memory and doing the ioremap something else could have grabbed it. For full correctness it should probably be changed to request_mem_region before the iomap - I'll try and do a PR for this tomorrow, but it should work without it. |
I figured I'd try to test this out on my own. I commented out the |
Just out of curiousity, how do you identify the driver running? I've compiled successfully, but in dmesg output there's no message that CrystalHD started decoding. Do I have to compile VLC myself? Using ubuntu 14.04 x64. |
I'm running Debian 8, and I see in I don't remember the exact steps I used to install the driver, but I know I see messages in |
@NTICompass Thank you! I'm waiting for your reply then. One of the reasons I'm sticking with Ubuntu LTS is that I couldn't compile the driver on Debian 8. The thing is that, the driver is installed and loaded, but with the old driver, it used to announce it's decoding, but I can't see it so I'm not sure if it's actually running. I can see driver is loaded, but I am not sure whether it's decoding. |
I do have kernel 4.1 (and I think gcc-4.9) installed from jessie-backports. The stable (non-backports) kernel didn't work with my machine's video card. When I get back home, I'll see what I have written in my notebook about how I installed it. Maybe I'll even fork this repo and hack up my own README, I'll see. |
@NTICompass could you test my updates - I'm getting errors due to gcc 5.1 I suspect - will work on these tonight. The code is https://github.com/dbason/crystalhd |
@Ardakilic: Besides the driver and libcrystalhd, you also need the firmware installed ( I installed When it's decoding, you should see something like |
@dbason: I'll try to test that tomorrow or Friday when I get a chance. Though I'm not sure if I can get gcc-5.1 on Debian 8. |
@NTICompass Thank you! Indeed I didn't install |
@NTICompass the changes I've made should work on gcc 4.9, but I haven't fixed gcc 5.1 issues yet. I can compile that file but because I've only got gcc 5.1 I can't compile the rest and check the driver actually works. If you can compile it with 4.9 and check it runs OK that would be awesome. |
Actually don't worry, it compiles but throws errors on load. Need to do more debugging Edit: so yeah I don't really know what I'm doing. I think pci_request_regions is reserving the same regions. I'm going to refactor the code and switch out the ioremap_nocache for pci_ioremap_bar which I think is the more correct way to do it. I'll test it out and then reopen my PR (although I'm not sure if the maintainer of this repo is actually active anymore). Edit2: All sorted now, and compiles with the latest version of GCC |
@dbason, your fork is working very well for me on Xubuntu 16.04 with kernel 4.4.0. It's great to be able to play 1080p video on an old Atom Nettop 👍. |
Awesome to hear! |
Very late catch-up: @dbason 's fork compiled successfully on Lubuntu 16.04 with 4.4.x kernel, and I can use BCM70015 along with VLC and Gnome Mplayer successfully. Shame that Kodi and Plex removed support on recent versions. |
I was trying to compile this on kernel 4.1 with gcc 4.9 and got the following error:
I know nothing about C, nor about writing Linux drivers, but would just removing the call to
check_mem_region
fix it, or is more work required?The text was updated successfully, but these errors were encountered: