View 50-joystick-shield.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JS config for NVIDIA SHIELD | |
# Axes: | |
# ----- | |
# 1 Left stick H | |
# 2 Left stick V | |
# 3 Left trigger | |
# 4 Right stick H | |
# 5 Right stick V | |
# 6 Right trigger | |
# 7 Pad H |
View SHIELD loopback initramfs script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir /proc | |
mkdir /sys | |
mkdir /d | |
/bin/mount /proc | |
/bin/mount /sys | |
echo /sbin/mdev >/proc/sys/kernel/hotplug | |
mdev -s | |
mkdir /roothost | |
mkdir /newroot |
View Kexec for ARM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./bootstrap | |
LDFLAGS=-static ./configure --host=arm-none-linux-gnueabi --without-zlib --without-lzma | |
make | |
-> static binary in build/sbin/kexec |
View Compile attr statically
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ./configure --host=arm-none-linux-gnueabi | |
$ LDFLAGS=-all-static make | |
# -all-static is not recognized by GCC but will be processed by libtool |
View 05-display.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "Device" | |
Identifier "Default Device" | |
Driver "fbdev" | |
Option "Rotate" "CW" | |
EndSection |
View tegrarcmboot.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
# Simple script that boots a kernel using tegrarcm by creating an image | |
# containing U-boot and the kernel concatenated. | |
# | |
# Usage: boot.py board.bct zImage tegraxx-board.dtb | |
# | |
# The files listed below must be present in the working directory and | |
# can be obtained from U-boot. |
View gist:9657726
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DRM: ./configure --prefix=$NVD --enable-tegra-experimental-api | |
Mesa: ./configure --without-dri-drivers --with-gallium-drivers=nouveau --enable-gallium-egl --enable-gbm --enable-egl --with-egl-platforms=drm,wayland --enable-gles1 --enable-gles2 --enable-opengl --prefix=$NVD |
View gist:749930267e2ca4bc290b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./waf configure --with-flavors=drm-gl,drm-glesv2,wayland-gl,wayland-glesv2,x11-gl,x11-glesv2 --prefix=/opt/nouveau | |
./waf | |
./waf install | |
Compile issues? http://lists.freedesktop.org/archives/wayland-devel/2013-April/008497.html |
View extract_netlist.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# This little tool extracts the GR firmwares from NET*_img.bin files | |
# Usage: python3 extract_netlist.py NETB_img.bin | |
# Regions to extract with their file name | |
regions = { | |
0 : "fecs_data", | |
1 : "fecs_inst", | |
2 : "gpccs_data", |
View gist:e42ec008c9fe378ae4c6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount -obind /data/Linux/ArchLinuxArm /data/Linux/ArchLinuxArm | |
mount -t proc proc /data/Linux/ArchLinuxArm/proc | |
mount -obind /sys /data/Linux/ArchLinuxArm/sys/ | |
mount -obind /dev /data/Linux/ArchLinuxArm/dev/ |
OlderNewer