Skip to content
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

Using Android Adreno drivers with LibHybris and Wayland #8

Open
depau opened this issue Oct 9, 2014 · 7 comments
Open

Using Android Adreno drivers with LibHybris and Wayland #8

depau opened this issue Oct 9, 2014 · 7 comments

Comments

@depau
Copy link
Contributor

depau commented Oct 9, 2014

I just saw these:

I think we can do it. I'm building the CM source right now. I'll tell you if it works.

@willcast
Copy link
Contributor

Did it work?

@depau
Copy link
Contributor Author

depau commented Oct 31, 2014

I'm trying right now. Last time I tried my Android source was stored in a 60 GB ext4 filesystem which wasn't enough. Now I converted it to btrfs, racked up around 90 more GBs from OSes I'm not using and added them to the FS. I also enabled compression, so I should be good for a while, even with ccache enabled.

I'm going to start the build now and see what happens. It's going to take a lot of time as I don't have a fast CPU, it doesn't even have HyperThreading...

@depau
Copy link
Contributor Author

depau commented Oct 31, 2014

Luckily I haven't started... I just read this: http://linux-sunxi.org/CedarX/libve#Using_libhybris_wrapped_Android_libraries

According to that page, you just need to have an Android /system, and we do, we're trying to dual-boot Android and Arch (or at least I am). I'm not sure whether the bionic patches are actually needed. I'll try without them, and if it doesn't work, I'll build patched CyanogenMod.
We only need the headers, and if my definition of headers isn't wrong, we have them in the source, which I already downloaded.

Moreover the patched hybris in that page has video decoding support, which is kind of sweet.

@bogsen
Copy link

bogsen commented Oct 31, 2014

fwiw, you probably don't want compression enabled if you're constrained by your CPU as it is

@depau
Copy link
Contributor Author

depau commented Oct 31, 2014

You're right, it's a good idea. I have an Intel Pentium Dual-Core T4400 CPU, it's not that great...

@depau
Copy link
Contributor Author

depau commented Nov 1, 2014

Found an updated guide with updated patches (the page I linked earlier had patches that don't work anymore with current bionic, as they ported some stuff from c to c++): http://linux-rockchip.info/mw/index.php?title=LibHybris

By the way, it turns out the bionic /system patch is needed. I tried to mount it and when trying to run a libhybris test it segfaults. Now I wonder if it's possible to run Android with that patch - I mean, if I patch bionic, build the rom and install it, will it boot normally?

@depau
Copy link
Contributor Author

depau commented Nov 14, 2014

I forgot to update you about the status of my tests: I finally managed to build CyanogenMod with the bionic patches; I had to use Ubuntu, I would only get ld bus errors on Arch Linux (which is dead now, I can't boot it because of a systemd problem; I'll be moving back to Ubuntu at the next issue, in the case I get it working again).
I can't, however, run the tests: I get segfaults and similar errors for most of the tests, especially for the ones regarding GL. I opened a new issue in LibHybris. I'll also see if Ubuntu uploaded some patches, they must have gotten it working if Ubuntu Touch works. I'll check when I have time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants