Pmbootstrap: WiFi / Xorg / Audio on Google Nexus 4

Created on 29 May 2018  路  4Comments  路  Source: postmarketOS/pmbootstrap

It's possible to enable WLAN / Xorg / Sound on nexus 4.

WLAN:
(to /lib | /system)
bltpwb.zip

Xorg:
(problem with offset - 24).
Precompiled lib for Ubuntu: (It's possible to create DIFF later)
libfbdevhw.so.zip
(/usr/lib/xorg/modules)

Because it was created for Ubuntu, you should copy (or create symlink)
/lib/ld-musl-armhf.so.1 -> /lib/ld-linux-armhf.so.3

Also you should disable ABI check (As it was compiled for old Xorg version)
Section "ServerFlags"
Option "IgnoreABI" "True"
EndSection

Audio:
Works OOB with Pulseaudio. You'll need just to place some UCM files in /usr/share/alsa/ucm (card mb too)
UCM files:
usr.zip

device enhancement

Most helpful comment

https://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/fbdevhw/fbdevhw.c#n712

From the line 715 to 723 we need to remove fPtr offsets and replace them by the correct one.
It's important to set them after setting offsets in func fbdevhw.

All 4 comments

img_0834

Well done \o/ It would be nice if we could ship these improvements by default.

To do that, we would need to package it properly, which means compiling libfbdevhw from source for example. Would you like to look into that?

https://cgit.freedesktop.org/xorg/xserver/tree/hw/xfree86/fbdevhw/fbdevhw.c#n712

From the line 715 to 723 we need to remove fPtr offsets and replace them by the correct one.
It's important to set them after setting offsets in func fbdevhw.

@erhoof it should work with nexus 7 2013 as it is the same chipset. I have a working xorg/wlan but no sound...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Asara picture Asara  路  6Comments

craftyguy picture craftyguy  路  7Comments

ghost picture ghost  路  4Comments

schvabodka-man picture schvabodka-man  路  6Comments

ata2001 picture ata2001  路  4Comments