Skip to content

Instantly share code, notes, and snippets.

Avatar

Nikita Zhukov yacuken

View GitHub Profile
View gist:debbe2c8a1179c132ac90ef91638d281
[root@Sailfish nemo]# hwclock --test --debug
hwclock from util-linux 2.28.1
hwclock: cannot open /dev/rtc: Device or resource busy
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
[root@Sailfish nemo]# systemctl stop dsme
[root@Sailfish nemo]# hwclock --test --debug
hwclock from util-linux 2.28.1
Using the /dev interface to the clock.
Assuming hardware clock is kept in UTC time.
@yacuken
yacuken / gist:348e8641871ad3355352a2e778db217f
Created Oct 13, 2016
droid-config-bacon-sailfish mic error
View gist:348e8641871ad3355352a2e778db217f
@Jolla Configuration bacon
Warning: repo problem: pattern:jolla-configuration-bacon-0.0.2-10.4.2.jolla.noarch requires pattern:jolla-hw-adaptation-bacon, but this requirement cannot be provided, uninstallable providers: pattern:jolla-hw-adaptation-bacon-0.0.2-10.4.2.jolla.noarch[adaptation0-bacon-2.0.4.13]
Error <repo>: found 1 resolver problem, abort!
===============
@jolla-hw-adaptation-bacon
Warning: repo problem: pattern:jolla-hw-adaptation-bacon-0.0.2-10.4.2.jolla.noarch requires droid-config-bacon-sailfish, but this requirement cannot be provided, uninstallable providers: droid-config-bacon-sailfish-0.0.2-10.4.2.jolla.noarch[adaptation0-bacon-2.0.4.13]
Error <repo>: found 1 resolver problem, abort!
View droid-hal-$DEVICE.md

for example

cd $ANDROID_ROOT/droid-local-repo/$DEVICE
osc co nemo:devel:hw:$VENDOR:$DEVICE/droid-hal-$DEVICE
cd nemo:devel:hw:$VENDOR:$DEVICE/droid-hal-$DEVICE
for pkg in $(ls ../../{audio*,droid{-hal-$DEVICE*,media*}}); do cp $pkg .; done
cat << EOF > build.script
#!/bin/bash

cd ~/rpmbuild
View gist:2fe00bf831245f7341cbc2ae06030b45
E/OMXMaster( 824): A component of name 'OMX.ffmpeg.wmv.decoder' already exists, ignoring this one.
I/OMXClient( 1582): Using client-side OMX mux.
I/OMXClient( 1582): Using client-side OMX mux.
E/QC_EVRCENC( 824): component init: role = OMX.qcom.audio.encoder.evrc
I/QC_EVRCENC( 824): component init: role = OMX.qcom.audio.encoder.evrc
I/QC_EVRCENC( 824):
I/QC_EVRCENC( 824): component_init: Component OMX.qcom.audio.encoder.evrc LOADED
I/QC_EVRCENC( 824): Driver in Non Tunnel mode open
I/QC_EVRCENC( 824): Returning the state 1
I/QC_EVRCENC( 824): Returning the state 1
View gist:2f15472322b1f49134fd059b70247929
[root@Sailfish nemo]# test_sensors
Hardware module ID: sensors
Hardware module Name: QTI Sensors Module
Hardware module Author: Qualcomm Technologies, Inc.
Hardware module API version: 0x1
Hardware HAL API version: 0x100
Poll device version: 0x1030001
API VERSION 0.1 (legacy): 0x1
API VERSION 0.1: 0x65537
API VERSION 1.0: 0x16777217
View kobject dmesg
[ 8.316132] ------------[ cut here ]------------
[ 8.316202] WARNING: at ../../../../../../kernel/oneplus/msm8974/lib/kobject_uevent.c:351 add_uevent_var+0xa0/0xc8()
[ 8.316270] add_uevent_var: too many keys
[ 8.316307] Modules linked in:
[ 8.316386] [<c010d8e0>] (unwind_backtrace+0x0/0x134) from [<c01a7aa8>] (warn_slowpath_common+0x54/0x64)
[ 8.316459] [<c01a7aa8>] (warn_slowpath_common+0x54/0x64) from [<c01a7ae8>] (warn_slowpath_fmt+0x30/0x40)
[ 8.316533] [<c01a7ae8>] (warn_slowpath_fmt+0x30/0x40) from [<c03cd92c>] (add_uevent_var+0xa0/0xc8)
[ 8.316608] [<c03cd92c>] (add_uevent_var+0xa0/0xc8) from [<c03cde60>] (kobject_uevent_env+0x50c/0x630)
[ 8.316681] [<c03cde60>] (kobject_uevent_env+0x50c/0x630) from [<c06a7158>] (power_supply_changed_work+0xa0/0xe8)
[ 8.316755] [<c06a7158>] (power_supply_changed_work+0xa0/0xe8) from [<c01c1a84>] (process_one_work+0x188/0x4f8)
View multiple_devices.md
  • rewrite ~/.hadk.env for each device and name as ~/.hadk.$DEVICE (e.g.)
$ ~ > cat .hadk.espresso3g
export MER_ROOT="$HOME/mer"
export ANDROID_ROOT="$MER_ROOT/android/droid"
export VENDOR="samsung"
export DEVICE="espresso3g"
export PORT_ARCH="armv7hl"
$ ~ > cat .hadk.bacon 
export MER_ROOT="$HOME/mer"
View gist:835e5ba491fd9d55d98f
(boot without hack)
[root@localhost /]# journalctl -u ofono
-- Logs begin at Thu 2016-03-24 22:00:22 MSK, end at Thu 2016-03-24 22:02:10 MSK. --
Mar 24 22:00:58 localhost systemd[1]: Starting Telephony service...
Mar 24 22:00:59 localhost systemd[1]: Started Telephony service.
Mar 24 22:00:59 localhost ofonod[608]: oFono version 1.17
Mar 24 22:00:59 localhost ofonod[608]: Excluding udev hardware detection
Mar 24 22:00:59 localhost ofonod[608]: Excluding udev hardware detection
Mar 24 22:00:59 localhost ofonod[608]: Excluding PhoNet / ISI modem driver
Mar 24 22:00:59 localhost ofonod[608]: Excluding Generic modem driver for isi
View gist:c321fcef571b53284a6f
[root@localhost /]# ofonod -n --nobacktrace --noplugin=he910,dun_gw_bluez5,hfp_bluez5,hfp_ag_bluez5,cdma_provision,bluez5,isimodem,n900,u8500,qmimodem,gobi,cdmamodem,isiusb,nwmodem,ztemodem,iceramodem,huaweimodem,calypsomodem,swmodem,mbmmodem,hsomodem,ifxmodem,stemodem,dunmodem,hfpmodem,speedupmodem,phonesim,telitmodem,udev,udevng -d
ofonod[1464]: oFono version 1.17
ofonod[1464]: src/plugin.c:__ofono_plugin_init()
ofonod[1464]: Excluding udev hardware detection
ofonod[1464]: Excluding udev hardware detection
ofonod[1464]: Excluding PhoNet / ISI modem driver
ofonod[1464]: Excluding Generic modem driver for isi
ofonod[1464]: Excluding Nokia N900 modem driver
ofonod[1464]: Excluding ST-Ericsson U8500 modem driver
ofonod[1464]: Excluding Qualcomm QMI modem driver
View gist:2e971653afeaa507dd71
[root@localhost /]# journalctl -u ofono
-- Logs begin at Thu 2016-03-24 15:47:56 MSK, end at Thu 2016-03-24 16:45:14 MSK. --
Mar 24 15:48:33 localhost systemd[1]: Starting Telephony service...
Mar 24 15:48:35 localhost systemd[1]: Started Telephony service.
Mar 24 15:48:34 localhost ofonod[615]: oFono version 1.17
Mar 24 15:48:34 localhost ofonod[615]: Excluding udev hardware detection
Mar 24 15:48:34 localhost ofonod[615]: Excluding udev hardware detection
Mar 24 15:48:34 localhost ofonod[615]: Excluding PhoNet / ISI modem driver
Mar 24 15:48:34 localhost ofonod[615]: Excluding Generic modem driver for isi
Mar 24 15:48:34 localhost ofonod[615]: Excluding Nokia N900 modem driver
You can’t perform that action at this time.