google-glass: Add non-free firmware and initialize the display (!462)

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Kenneth Endfinger 2019-06-24 14:36:39 -05:00 committed by Oliver Smith
parent 624e777a6f
commit 258e92e942
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
5 changed files with 70 additions and 10 deletions

View file

@ -1,17 +1,29 @@
pkgname="device-google-glass"
pkgdesc="Google Glass"
pkgver=0.1
pkgrel=5
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armhf"
options="!check !archcheck"
depends="postmarketos-base linux-google-glass mkbootimg mesa-dri-swrast"
source="deviceinfo"
source="deviceinfo initfs-hook.sh"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
package() {
install -Dm644 "$srcdir"/deviceinfo \
"$pkgdir"/etc/deviceinfo
build() {
devicepkg_build $startdir $pkgname
}
sha512sums="0e33b7f9c6db6bf0bdead69119da64ddc2bd24e2bbc5fc8e04346cc292eb52deae9d2c1ab61f48047d897739abf1e955ed4e36f53b48e0cddd95e35203387b7f deviceinfo"
package() {
devicepkg_package $startdir $pkgname
}
nonfree_firmware() {
pkgdesc="Google Glass Firmware"
depends="firmware-google-glass"
mkdir "$subpkgdir"
}
sha512sums="0e33b7f9c6db6bf0bdead69119da64ddc2bd24e2bbc5fc8e04346cc292eb52deae9d2c1ab61f48047d897739abf1e955ed4e36f53b48e0cddd95e35203387b7f deviceinfo
e204252a8c987269538039f510b42e094fa5ce141f9f5ded461cbb8074202fc343ccd300a0cc28595d4bb9162992104ad5ac916fd4028857e0f646250998910c initfs-hook.sh"

View file

@ -0,0 +1,8 @@
#!/bin/sh
# Enable Display
echo 1 > /sys/devices/platform/omapdss/manager2/panel-notle-dpi/enabled
echo 160 > /sys/devices/platform/omapdss/manager2/panel-notle-dpi/brightness
echo 0 > /sys/devices/platform/omapfb/graphics/fb0/blank
echo "U:640x360p-312" > /sys/devices/platform/omapfb/graphics/fb0/mode

View file

@ -2,7 +2,7 @@
pkgname="linux-google-glass"
pkgver=3.4.83
pkgrel=2
pkgrel=3
pkgdesc="Google Glass kernel fork"
arch="armhf"
_carch="arm"
@ -76,5 +76,5 @@ package() {
}
sha512sums="b98916d6cc745115e89be35158b4cf0e025e73261a8f56302e9b74d8a7b597df8bdef1ee4ce8503dfc4fc94be16b91227b358cba7c5bc1fabde182876f6becf7 linux-google-glass-1091b53a0b5e20d23a8447161e181e2a53e944de.tar.gz
5cbb2133c06bf1cb932be69e89705c6e41784ca2becb89314e06a26eedc7efb25686160fe278da8c5ed986b3bed5a3a7d779406b4a047184fde2df5ab4a89e06 config-google-glass.armhf
4e3800791c8ad68032704870c8c997563acab16abbd3b8b8e4de19e065ee881d02fb862cc491df85702e85762d6c8ccbad0209fab2465c66219fa636218d97b2 config-google-glass.armhf
d80980e9474c82ba0ef1a6903b434d8bd1b092c40367ba543e72d2c119301c8b2d05265740e4104ca1ac5d15f6c4aa49e8776cb44264a9a28dc551e0d1850dcc compiler-gcc6.h"

View file

@ -1383,7 +1383,7 @@ CONFIG_WIFI_CONTROL_FUNC=y
CONFIG_BCMDHD=y
# CONFIG_BCM4354 is not set
CONFIG_BCMDHD_FW_PATH="/lib/firmware/postmarketos/fw_bcmdhd.bin"
CONFIG_BCMDHD_NVRAM_PATH="/etc/wifi/bcmdhd.cal"
CONFIG_BCMDHD_NVRAM_PATH="/lib/firmware/postmarketos/bcmdhd.cal"
# CONFIG_DHD_USE_STATIC_BUF is not set
# CONFIG_DHD_USE_SCHED_SCAN is not set
# CONFIG_BRCMFMAC is not set

View file

@ -0,0 +1,40 @@
pkgname=firmware-google-glass
pkgver=1
pkgrel=0
pkgdesc="Google Glass Firmware"
url="https://github.com/GlassHack/firmware"
arch="armhf"
license="proprietary"
options="!check !strip"
# Source
_commit="43eda88c424fdca5c7712af7ff5cbed5a43dfbca"
_url_base="https://github.com/GlassHack/firmware/raw/$_commit"
source="
$_url_base/firmware/NVM2
$_url_base/firmware/bcm4330.hcd
$_url_base/firmware/ducati-m3-core0-2gb.xem3
$_url_base/firmware/ducati-m3-core0.xem3
$_url_base/firmware/fw_bcmdhd.bin
$_url_base/firmware/glasshub.s19
$_url_base/firmware/tesla-dsp.xe64T
$_url_base/calibration/bcmdhd.cal
"
package() {
for filename in NVM2 bcm4330.hcd ducati-m3-core0-2gb.xem3 ducati-m3-core0.xem3 fw_bcmdhd.bin glasshub.s19 tesla-dsp.xe64T bcmdhd.cal
do
install -Dm644 "$srcdir/$filename" \
"$pkgdir/lib/firmware/postmarketos/$filename"
done
}
sha512sums="d2d2449e6e5a8ffc1e4752bd7836bb3b8f7b7f8bef16d3caffbdb2a0cc4e414de58c6b1475f1c7e08389a3a4c731ed5940e7438193cc00238a781c7bb0ebe8f3 NVM2
0b207cd8de13466fa811cca2df6bb537a51db1754bd81a1c84a6b77abf2af5e5c27fc4f49f1e66333320822c86d5a281c3619f72d0ace5de06da3b2c520b49e1 bcm4330.hcd
bb6493899a52c51a0ce53c6fdb73ac1909772deb2154532bcd5f87bddb92bfc35d382a73b4b95050baf531e48dbf24e5b1879f712a47d09e20bba083cfb00783 ducati-m3-core0-2gb.xem3
0d4dbb4e488dfb62be7100d12fb9888452a9a02476a54c796299ea9f52a56bdf5559fdc7f133c8f966792ef930c576c5615ea594c8474cb3f0a888126666353f ducati-m3-core0.xem3
6195facf1f0c37eb15ea479011ce88c6d64c88626970de344fce8f10e17667d7ec7aee79df7e98e9f62cfd56fbb3d45069d97fe3fee4605bdab75ab5e86cc3bc fw_bcmdhd.bin
6b53128e54a94ef6e465a81c51e61aef4fec5f6b2354597e4a9395017dc36adc8444c7f6f0b1266c5ab5b2e11c438d0d8e1b673d3e4b903882bac7e3bd7cd726 glasshub.s19
4acb3b64dcbdee6f641cbf242c4e7ee0092f43a720c7ba565bee53d48969f30c672d892c510f2430f52907e8031c88914702e8cd01d3abbdd8150b93d7d8a1ee tesla-dsp.xe64T
4b3f7b0a8a424d12471004b23098e7c58bd408cabf8b5b7c8118aef2f945d126b4633daafdd1b6d6eb618fec958257abb72545a2952068b7e6514ccca0c0d228 bcmdhd.cal"