[Nexus 9 General] sk1tch:
DON'T FORGET TO HIT THE THANKS BUTTON

!!!DISCLAIMER!!!!

You are solely responsible for whatever shtuff happens to your device by installing either of the two files to your device.

!!!DISCLAIMER END!!!

So this still needs a lot of work but I am providing a working boot.img and root filesystem archive for all Nexus 9 variants? (not sure needs others to test and confirm).

Will be edited as things start working

What's working:

WiFi. (Must use 'nmcli dev wifi con "SSID" password "passwd" ')

GPU @ anywhere from 900-2000 FPS

Sound works just needs reconfiguring

Screen rotation works best with minimal issues as desktop taskbar widgets command to turn clockwise into landscape:

sudo xrandr -o right; sudo xinput set-prop 7 "Evdev Axis Inversion" 0, 1; sudo xinput set-prop 7 "Evdev Axes Swap" 1

&

sudo xrandr -o right; sudo xinput set-prop 7 "Evdev Axis Inversion" 0, 0; sudo xinput set-prop 7 "Evdev Axes Swap" 0

For normal portrait orientation

However DO NOT USE THE DISPLAY SETTINGS TO ROTATE IT MESSES UP THE LOGIN ROTATION AND SCREEN GOES BLACK AND SOMETIMES SHOW BACK UP IN LANDSCAPE AND WILL NOT DEFAULT BACK INTO PORTRAIT ORIENTATION. SO YOU MUST DO IT MANUALLY!!!!! See screenshot below

Swipe gestures (Chromium-browser only).

Bluetooth: WORKING!!! Install package bluetooth-touch and set this command into a shell script or enter manually the ENTIRE string:

brcm_patchram_plus --enable_hci --use_baudrate_for_download --scopcm=0,2,0,0,0,0,0,0,0,0 --baudrate 3000000 --patchram /lib/firmware/bcm4354.hcd --no2bytes --enable_lpm --tosleep=50000 /dev/ttyTHS2

Also using a Bluetooth audio sink works by itself without keyboard connected. I've found it still needs work but, connecting to a keyboard still flawless in its function file transfer locks it up when sending not receiving. Pairing and connecting are all good but functionality of Bluetooth is down to one device at a time for best results

What's not working:

Cameras (Neither front nor rear camera works at all. Needs work).

NFC? (I have no idea how to check for this. Needs work).

Probably other things I missed.

What you will need:

Any Nexus 9 with an unlocked bootloader & latest TWRP recovery installed

USB keyboard

OTG cable

Instructions:

MAKE A BACKUP! Just in case.

1.) Enter into recovery go to wipe and format Data partition as Ext4

2.) Reboot into recovery and with the boot.img and rootfs on a flash drive or, push them to device via ADB.

3.) Go to terminal command in recovery issue the commands: cd /data; mkdir linux; cd linux

4.) tar xvjf /sdcard/rootfs.tar.bz2 -C /data/linux

5.) Flash N9boot.img with install image in TWRP Install submenu.

6.) Reboot into the new Linux system.

7.) If the Kernel panics and boot loops, go back into recovery and format the data partition again it will ask are you sure type yes & repeat steps 2-4

You will need to use a USB keyboard & OTG cable to install the necessary packages and connect to WiFi/Bluetooth.

It's much easier to install on device than in a chroot environment as I have had problems in the past. And some people have different favorite Desktop Environment's. However Gnome and KDE both do not work correctly and crash.

Fluxbox, Mate, XFCE, LXDE, all work as they should with Lightdm.

If there's anything I missed you can add it below, PM me and ask, whatever and I'll try to answer as soon as I am able.

If you are interested in building the entire thing from start to finish here are the original sources

https://xdaforums.com/nexus-9/general/guide-linux-nexus-9-t2985958

https://xdaforums.com/nexus-9/general/guide-linux-nexus-9-t2985958/page14

And thanks to [MENTION=3380605]sonicadvance1[/MENTION] for his original guide & [MENTION=6556709]Vartom[/MENTION] for his work on porting some of the necessary Kernel drivers. And [MENTION=6556709]Vartom[/MENTION] again for his contributions to the Bluetooth and everything else to get us this far :good::good::good::good::good::good::good::good:

Xubuntu-Desktop Preinstalled 21.5 Drivers 1GB username=ubuntu password=ubuntu

https://drive.google.com/open?id=0B8NgGANYGMhOZS1OenNzZl94bEE

rootfs base only necessary packages root password=toor

https://drive.google.com/file/d/0B8NgGANYGMhOMjVObElVVnBWamM/view?usp=drivesdk

boot.img

https://drive.google.com/open?id=0B8NgGANYGMhOZXAwZHVrUUotZ0k

In order to get the preinstalled to fix login if having issues use the command as root in virtual terminal Ctrl+Alt+F1/F2, etc

chown ubuntu:ubuntu /home/ubuntu

.

This should fix the login issues, if you want you can create a different user and remove the premade user using these commands as root in virtual terminal.

deluser username
adduser username
addgroup username adm
addgroup username sudo

Additionally if you have an error when running glxgears there is a fix

xauth list

It should output something similar to this

localhost.localdomain/unix:0 MIT-MAGIC-COOKIE-1 a4f6256398303725763c5595f404afbb

You will need to export the display and add that MIT-MAGIC-COOKIE you got from xauth list

export DISPLAY=":0"; xauth add $DISPLAY . a4f6256398303725763c5595f404afbb

This should fix the display error.

And finally,

Enjoy Ubuntu on your Nexus 9