Skip to content

Instantly share code, notes, and snippets.

@xc-racer99
xc-racer99 / gist:8c342e47b7d6a2862c657bb262caf55c
Last active July 30, 2021 16:04
libsamsung-ipc change for aires to use crespo backend for SGS4G
diff --git a/samsung-ipc/devices/crespo/crespo.c b/samsung-ipc/devices/crespo/crespo.c
index 1bf9a97..31fa802 100644
--- a/samsung-ipc/devices/crespo/crespo.c
+++ b/samsung-ipc/devices/crespo/crespo.c
@@ -91,6 +91,12 @@ int crespo_boot(struct ipc_client *client)
p += CRESPO_PSI_SIZE;
+ rc = ioctl(modem_ctl_fd, IOCTL_MODEM_WAIT_FOR_SBL);
+ if (rc < 0) {
@xc-racer99
xc-racer99 / OGLES2Water strace
Created February 27, 2020 22:07
OGLES2Water strace on s5pc110 with DDK 1.17 from OMAP4
jon@jon-hp-6570b:~/tests/drm$ sudo -E strace -fv ./OGLES2Water
execve("./OGLES2Water", ["./OGLES2Water"], ["SHELL=/bin/bash", "PWD=/home/jon/tests/drm", "LOGNAME=root", "XDG_SESSION_TYPE=tty", "HOME=/home/jon", "LANG=en_CA.UTF-8", "SSH_CONNECTION=192.168.1.27 3498"..., "XDG_SESSION_CLASS=user", "TERM=xterm-256color", "USER=root", "SHLVL=1", "LIBGL_DRIVERS_PATH=/opt/ddk-1.17"..., "XDG_SESSION_ID=c3", "XDG_RUNTIME_DIR=/run/user/1000", "SSH_CLIENT=192.168.1.27 34988 22", "PATH=/usr/local/sbin:/usr/local/"..., "DBUS_SESSION_BUS_ADDRESS=unix:pa"..., "SSH_TTY=/dev/pts/1", "_=/usr/bin/sudo", "OLDPWD=/home/jon/tests", "SUDO_COMMAND=/usr/bin/strace -fv"..., "SUDO_USER=jon", "SUDO_UID=1000", "SUDO_GID=1000"]) = 0
brk(NULL) = 0x1453000
uname({sysname="Linux", nodename="jon-hp-6570b", release="5.5.1-00168-g15517d3d1cbd-dirty", version="#317 PREEMPT Fri Feb 21 16:44:35 PST 2020", machine="armv7l", domainname="(none)"}) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or d
@xc-racer99
xc-racer99 / xf86-video-armsoc.patch
Last active February 16, 2020 00:34
Experimental xf86-video-armsoc patches with Samsung g2d support
From dc3cf2048ff11cf6dd5b3233a2faee1662d73168 Mon Sep 17 00:00:00 2001
From: Tobias Jakobi <[email protected]>
Date: Tue, 3 Mar 2015 18:11:22 +0100
Subject: [PATCH 01/12] Remove InitFromFBDev
FBDev is legacy and we disable its support on
newer kernels anyway.
---
man/armsoc.man | 13 ----
src/armsoc_driver.c | 153 --------------------------------------------
@xc-racer99
xc-racer99 / .xsession-errors part 1
Last active December 31, 2019 03:20
hybris powervr phosh pmOS errors
failed to load driver: exynos
(process:1543): phoc-wlroots-CRITICAL **: 13:21:26.317: [render/glapi.c:32] Unable to load eglGetPlatformDisplayEXT
(process:1543): phoc-wlroots-CRITICAL **: 13:21:26.364: [render/wlr_renderer.c:208] Could not initialize EGL
(process:1543): phoc-wlroots-CRITICAL **: 13:21:26.365: [backend/drm/renderer.c:41] Failed to create EGL/WLR renderer
(process:1543): phoc-wlroots-CRITICAL **: 13:21:26.368: [backend/drm/backend.c:196] Failed to initialize renderer
@xc-racer99
xc-racer99 / gist:35d714cbd888520871767fe18e388a93
Last active September 21, 2019 20:43
Alpine python packages for ofono scripts
py3-gobject3 py3-dbus
@xc-racer99
xc-racer99 / log.txt
Created August 27, 2019 01:15
Maemo Leste on Aries
jon@jon-hp-6570b:~$ cd Downloads
jon@jon-hp-6570b:~/Downloads$ xzcat maemo-leste-1.0-armhf-droid4-20190227.img.xz | sudo dd of=/dev/mmcblk0
[sudo] password for jon:
2738176+0 records in
2738176+0 records out
1401946112 bytes (1.4 GB, 1.3 GiB) copied, 21.2891 s, 65.9 MB/s
jon@jon-hp-6570b:~/Downloads$ sudo sync
jon@jon-hp-6570b:~/Downloads$ xzcat maemo-leste-1.0-armhf-droid4-20190227.img.xz | sudo dd of=/dev/mmcblk0 status=progress && sudo sync
1400738304 bytes (1.4 GB, 1.3 GiB) copied, 758 s, 1.8 MB/s
2738176+0 records in
@xc-racer99
xc-racer99 / diff.diff
Created August 8, 2019 04:17
Fix PM_DEBUG on s5pv210 on v5.3
diff --git a/include/linux/suspend.h b/include/linux/suspend.h
index 9c0ad1a3a727..507dc4af3ba9 100644
--- a/include/linux/suspend.h
+++ b/include/linux/suspend.h
@@ -534,8 +534,13 @@ static inline void unlock_system_sleep(void) {}
#ifdef CONFIG_PM_SLEEP_DEBUG
extern bool pm_print_times_enabled;
extern bool pm_debug_messages_on;
+#if 0
extern __printf(2, 3) void __pm_pr_dbg(bool defer, const char *fmt, ...);
@xc-racer99
xc-racer99 / clks-disabled.txt
Created August 4, 2019 03:17
Clocks that are disabled due to being unused so suspend doesn't work
clk: disabling unused sclk_hdmi
clk: disabling unused sclk_dac
clk: disabling unused sclk_mixer
clk: disabling unused sclk_mmc3
clk: disabling unused sclk_mmc0
clk: disabling unused sclk_uart3
clk: disabling unused sclk_uart2
clk: disabling unused sclk_uart1
clk: disabling unused sclk_uart0
clk: disabling unused secss
@xc-racer99
xc-racer99 / mainline-pvr
Created July 23, 2019 01:27
PVR debug logs on pmOS with mainline freezing
PVR: PVRCore_Init
PVR: PVRSRVDriverProbe(pDevice=(ptrval))
PVR: PVRCore_Init: major device 252
* Starting pvrsrvinit ...elogind-daemon[2406]: Failed to create inotify watch on /dev/null/utmp, ignoring: Not a directory
opened libsrv_inPVR_K:(Error): BridgedDispatchKM: PVRSRV_BRIDGE_CONNECT_SERVICES [4768, drivers/gpu/pvr/bridged_pvr_bridge.c]
PVR_K:(Error): BridgedDispatchKM: PVRSRV_BRIDGE_INITSRV_CONNECT [4768, drivers/gpu/pvr/bridged_pvr_bridge.c]
PVR_K:(Error): BridgedDispatchKM: PVRSRV_BRIDGE_ENUM_DEVICES [4768, drivers/gpu/pvr/bridged_pvr_bridge.c]
PVR_K:(Error): BridgedDispatchKM: PVRSRV_BRIDGE_ACQUIRE_DEVICEINFO [4768, drivers/gpu/pvr/bridged_pvr_bridge.c]
PVR_K:(Error): BridgedDispatchKM: PVRSRV_BRIDGE_SGXINFO_FOR_SRVINIT [4768, drivers/gpu/pvr/bridged_pvr_bridge.c]
PVR_K:(Error): BridgedDispatchKM: PVRSRV_BRIDGE_ALLOC_DEVICEMEM [4768, drivers/gpu/pvr/bridged_pvr_bridge.c]
@xc-racer99
xc-racer99 / 3.0.101 with removed bits
Last active July 13, 2019 05:00
Some random straces from different PVRs
samsung-fascinate4g:~$ sudo strace -fv test_glesv2
execve("/usr/bin/test_glesv2", ["test_glesv2"], ["PS1=\\h:\\w\\$ ", "TERM=vt100", "PATH=/usr/local/sbin:/usr/local/"..., "LANG=C.UTF-8", "MAIL=/var/mail/root", "LOGNAME=root", "USER=root", "HOME=/root", "SHELL=/bin/ash", "SUDO_COMMAND=/usr/bin/strace -fv"..., "SUDO_USER=user", "SUDO_UID=10000", "SUDO_GID=10000"]) = 0
set_tls(0x4018c5ec) = 0
set_tid_address(0x4018d1a0) = 1407
open("/etc/ld-musl-armhf.path", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
read(3, "/usr/lib/libhybris-egl:/lib:/usr"..., 1024) = 52
read(3, "", 1024) = 0
close(3) = 0