6e1e4c5cfc
* Add Samsung Galaxy S Advance (i9070) device-specific package * Add Samsung Galaxy S Advance (i9070) kernel package * Add initfs-hook script to set framebuffer settings * Enable adb root access in recovery mode (TWRP) * Add usb configuration in initfs-hook script Add weston calibration values Update description of kernel changes * Remove TMRP recovery and change init script to boot directly postmarketOS
15 lines
502 B
Bash
15 lines
502 B
Bash
#!/bin/sh
|
|
|
|
# set framebuffer resolution
|
|
echo 16 > /sys/class/graphics/fb0/bits_per_pixel
|
|
echo 960,1600 > /sys/class/graphics/fb0/virtual_size
|
|
|
|
# set usb properties
|
|
echo 0 > /sys/class/android_usb/android0/enable
|
|
echo samsung > /sys/class/android_usb/android0/iManufacturer
|
|
echo i9070 > /sys/class/android_usb/android0/iProduct
|
|
echo 1 > /sys/class/android_usb/android0/enable
|
|
|
|
# start the usb enumeration process from userspace
|
|
echo 1 > /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device
|
|
|