Add Nexus 7 2013 flo support 4.11 kernel (#608)
Nexus 7 2013 flo support with Linaro flo-WIP kernel. Touchscreen, weston, usb internet working.
This commit is contained in:
parent
3ecfa09d8e
commit
43225855c2
5 changed files with 4427 additions and 0 deletions
6
device/device-asus-flo/90-android-touch-dev.rules
Normal file
6
device/device-asus-flo/90-android-touch-dev.rules
Normal file
|
@ -0,0 +1,6 @@
|
|||
# udev rules file
|
||||
# All device names can be read from weston's logfile (/tmp/weston.log in postmarketOS)
|
||||
|
||||
# Touchscreen (use 'weston-calibrator' to calibrate)
|
||||
SUBSYSTEM=="input", ATTRS{name}=="Elan Touchscreen", \
|
||||
ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1" \
|
22
device/device-asus-flo/APKBUILD
Normal file
22
device/device-asus-flo/APKBUILD
Normal file
|
@ -0,0 +1,22 @@
|
|||
pkgname=device-asus-flo
|
||||
pkgver=0
|
||||
pkgrel=0
|
||||
pkgdesc="Google Nexus 7 2013 flo"
|
||||
url="https://github.com/postmarketOS"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
depends="linux-asus-flo mkbootimg"
|
||||
makedepends=""
|
||||
install=""
|
||||
subpackages=""
|
||||
source="deviceinfo 90-android-touch-dev.rules"
|
||||
options="!check"
|
||||
|
||||
package() {
|
||||
install -D -m644 "$srcdir/deviceinfo" \
|
||||
"$pkgdir/etc/deviceinfo"
|
||||
install -D -m644 "$srcdir/90-android-touch-dev.rules" \
|
||||
"$pkgdir/lib/udev/rules.d/90-android-touch-dev.rules"
|
||||
}
|
||||
sha512sums="8a46d52cf77c3be4f81b28ce680bf7c3382eadf35998876ba348337f73ef6c90e1a0d16d0bf6369113c243467a978ef3f7912ad026dc49ab9ac95df00e2e9a71 deviceinfo
|
||||
0232207365549afb92c485ea71badb9da3e7a05095485c67a823f6abc0d120e103691647bd640250bb12f1d1aec5a91053088b05e8259df65ec1a6b48cbd6f42 90-android-touch-dev.rules"
|
33
device/device-asus-flo/deviceinfo
Normal file
33
device/device-asus-flo/deviceinfo
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Nexus 7 2013 Wifi"
|
||||
deviceinfo_manufacturer="Asus"
|
||||
deviceinfo_date=""
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_nonfree="????"
|
||||
deviceinfo_dtb=""
|
||||
deviceinfo_modules=""
|
||||
deviceinfo_modules_initfs=""
|
||||
deviceinfo_external_disk="false"
|
||||
deviceinfo_external_disk_install="false"
|
||||
deviceinfo_flash_methods="fastboot"
|
||||
deviceinfo_arch="armhf"
|
||||
|
||||
# Splash screen
|
||||
deviceinfo_dev_touchscreen="/dev/input/event1"
|
||||
deviceinfo_screen_width="1200"
|
||||
deviceinfo_screen_height="1920"
|
||||
|
||||
# Fastboot related
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_flash_offset_base="0x80200000"
|
||||
deviceinfo_kernel_cmdline="console=ttyHSL0,115200,n8 user_debug=31 msm_rtb.filter=0x3F ehci-hcd.park=3 vmalloc=340M"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x02000000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x00000100"
|
||||
deviceinfo_flash_pagesize="2048"
|
||||
|
||||
deviceinfo_weston_core_modules="xwayland.so"
|
79
device/linux-asus-flo/APKBUILD
Normal file
79
device/linux-asus-flo/APKBUILD
Normal file
|
@ -0,0 +1,79 @@
|
|||
_vendor=asus
|
||||
_flavor=asus-flo
|
||||
_hash="942488347d69700cb84ad79290b7e60d124ac8d5"
|
||||
_config="config-${_flavor}.armhf"
|
||||
|
||||
pkgname=linux-${_flavor}
|
||||
pkgver=4.11
|
||||
case $pkgver in
|
||||
*.*.*) _kernver=${pkgver%.*};;
|
||||
*.*) _kernver=$pkgver;;
|
||||
esac
|
||||
pkgrel=0
|
||||
arch="armhf"
|
||||
pkgdesc="Nexus 7 2013 WIFI mainline kernel"
|
||||
url="https://git.linaro.org/people/john.stultz/flo.git/log/?h=flo-WIP"
|
||||
|
||||
depends="postmarketos-mkinitfs"
|
||||
makedepends="xz perl sed installkernel bash gmp-dev bc linux-headers elfutils-dev"
|
||||
options="!strip !check !tracedeps"
|
||||
install=
|
||||
source="
|
||||
$pkgname-$_hash.tar.gz::https://git.linaro.org/people/john.stultz/flo.git/snapshot/flo-$_hash.tar.gz
|
||||
$_config
|
||||
"
|
||||
subpackages=""
|
||||
license="GPL2"
|
||||
|
||||
_abi_release=${pkgver}
|
||||
_carch="arm"
|
||||
HOSTCC="${CC:-gcc}"
|
||||
HOSTCC="${HOSTCC#${CROSS_COMPILE}}"
|
||||
|
||||
ksrcdir="$srcdir/flo-$_hash"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
mkdir -p "$srcdir"/build
|
||||
cp "$srcdir"/$_config "$srcdir"/build/.config || return 1
|
||||
make -C "$ksrcdir" O="$srcdir"/build ARCH="$_carch" HOSTCC="$HOSTCC" \
|
||||
silentoldconfig
|
||||
}
|
||||
|
||||
# this is so we can do: 'abuild menuconfig' to reconfigure kernel
|
||||
menuconfig() {
|
||||
cd "$srcdir"/build || return 1
|
||||
make ARCH="$_carch" menuconfig
|
||||
cp .config "$startdir"/$_config
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/build
|
||||
unset LDFLAGS
|
||||
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-Alpine" \
|
||||
CFLAGS_MODULE=-fno-pic \
|
||||
zImage modules qcom-apq8064-asus-nexus7-flo.dtb \
|
||||
|| return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/build/arch/arm/boot"
|
||||
cat zImage dts/qcom-apq8064-asus-nexus7-flo.dtb > zImage-dtb
|
||||
|
||||
install -Dm644 "$srcdir/build/arch/arm/boot/zImage-dtb" \
|
||||
"$pkgdir/boot/vmlinuz-$_flavor"
|
||||
|
||||
install -D "$srcdir/build/include/config/kernel.release" \
|
||||
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
||||
|
||||
cd "$srcdir"/build
|
||||
make -j1 modules_install \
|
||||
ARCH="$_carch" \
|
||||
INSTALL_MOD_PATH="$pkgdir" \
|
||||
|| return 1
|
||||
}
|
||||
sha512sums="b3d3186bf86bcfe6a39690e1c13751aefed2d876b646b93631c1e76c70a56a23adcb2e50fd8d031dfb6e7111919cf116bd9a12a91c26cb5a5042a9e4cffc4bc4 linux-asus-flo-942488347d69700cb84ad79290b7e60d124ac8d5.tar.gz
|
||||
cb66045ad6253ba0092d9e39b9d8d5be5615ec257890edbe007173051433301855b9e20dee530944d16b4538ace8876073f3ba9093b29c653369e7bc750dd7ca config-asus-flo.armhf"
|
4287
device/linux-asus-flo/config-asus-flo.armhf
Normal file
4287
device/linux-asus-flo/config-asus-flo.armhf
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue