Skip to content

Instantly share code, notes, and snippets.

@metaphys
metaphys / gist:5509390
Created May 3, 2013 14:21
debian patch for primus git 2013-05-03
diff -rupN -x .git -x lib primus/Makefile primus.mod/Makefile
--- primus/Makefile 2012-12-27 07:58:41.000000000 +0200
+++ primus.mod/Makefile 2012-12-27 08:28:14.000000000 +0200
@@ -1,19 +1,28 @@
-CXX ?= g++
-CXXFLAGS ?= -Wall -g
+ECHO = echo
+RM = rm
+MKDIR = mkdir
+INSTALL = install
@metaphys
metaphys / rbutilwarn1
Created January 17, 2012 14:25
rbutil warning
diff --git a/rbutil/rbutilqt/base/system.cpp b/rbutil/rbutilqt/base/system.cpp
index 02e6ac9..5894389 100644
--- a/rbutil/rbutilqt/base/system.cpp
+++ b/rbutil/rbutilqt/base/system.cpp
@@ -246,11 +246,10 @@ QMap<uint32_t, QString> System::listUsbDevices(void)
#if defined(Q_OS_LINUX)
#if defined(LIBUSB1)
libusb_device **devs;
- int res;
- ssize_t count;
@metaphys
metaphys / fsckresutl1
Created January 15, 2012 14:07
no internal - fsck result
root@debian:/home/jean-louis/Bureau/rockbox-devtree/PLA/rockbox# fsck.vfat -a -w -v /dev/sde1
dosfsck 3.0.12 (29 Oct 2011)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkdosfs"
Media byte 0xf8 (hard disk)
2048 bytes per logical sector
32768 bytes per cluster
32 reserved sectors
@metaphys
metaphys / usbinternal
Created January 15, 2012 13:42
usb no internal
[ 1706.092182] usb 3-1.2: new high speed USB device number 4 using ehci_hcd
[ 1706.189164] usb 3-1.2: New USB device found, idVendor=0781, idProduct=74e1
[ 1706.189169] usb 3-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1706.189171] usb 3-1.2: Product: Rockbox media player
[ 1706.189173] usb 3-1.2: Manufacturer: Rockbox.org
[ 1706.191982] scsi8 : usb-storage 3-1.2:1.0
[ 1707.194201] scsi 8:0:0:0: Direct-Access Rockbox Internal Storage 0.00 PQ: 0 ANSI: 4
[ 1707.196172] scsi 8:0:0:1: Direct-Access Rockbox SD Card Slot 0.00 PQ: 0 ANSI: 4
[ 1707.201133] sd 8:0:0:0: [sde] 7748864 2048-byte logical blocks: (15.8 GB/14.7 GiB)
[ 1707.203121] sd 8:0:0:1: [sdf] 62333952 512-byte logical blocks: (31.9 GB/29.7 GiB)
@metaphys
metaphys / lampPLA
Created January 6, 2012 19:47
Diff1
Index: apps/plugins/lamp.c
===================================================================
--- apps/plugins/lamp.c (révision 31584)
+++ apps/plugins/lamp.c (copie de travail)
@@ -24,6 +24,7 @@
#include "plugin.h"
#include "lib/helper.h"
+#include "lib/pluginlib_actions.h"
@metaphys
metaphys / pacmankey
Created January 5, 2012 14:48
IRIVER_H10_5GB and IRIVER_H10 mapping on pacman
#elif CONFIG_KEYPAD == IRIVER_H10_PAD
#if defined(IRIVER_H10_5GB)
#define PACMAN_UP BUTTON_SCROLL_UP
#define PACMAN_DOWN BUTTON_SCROLL_DOWN
#define PACMAN_LEFT BUTTON_LEFT
#define PACMAN_RIGHT BUTTON_RIGHT
#else
#define PACMAN_UP BUTTON_RIGHT
#define PACMAN_DOWN BUTTON_LEFT
@metaphys
metaphys / manual-patch-v8.diff
Created January 1, 2012 00:06
manual patch
Index: firmware/export/config/sansafuzeplus.h
===================================================================
--- firmware/export/config/sansafuzeplus.h (révision 31500)
+++ firmware/export/config/sansafuzeplus.h (copie de travail)
@@ -9,15 +9,17 @@
#define HW_SAMPR_CAPS SAMPR_CAP_ALL
+/*#define CONFIG_TUNER SI470O doesn't work for now */
+
@metaphys
metaphys / badmanualbuild
Created December 31, 2011 23:51
bad build fplus manual
Overfull \hbox (3.57814pt too wide) in paragraph at lines 43--46
\T1/lmr/m/n/10.95 Scar-bor-ough, [] 2003 Jos\E9 Maria Garcia-Valdecasas Bernal &
Pe-ter Schlenker.
[]
(./version.tex)) [2
]
@metaphys
metaphys / maualbuid good
Created December 31, 2011 23:50
good gigabeat manual
until here both file are strictly identical
Overfull \hbox (3.57814pt too wide) in paragraph at lines 43--46
\T1/lmr/m/n/10.95 Scar-bor-ough, [] 2003 Jos\E9 Maria Garcia-Valdecasas Bernal &
Pe-ter Schlenker.
[]
(./version.tex)) [2
@metaphys
metaphys / lsusbhid
Created December 29, 2011 21:31
lsusbhid
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0 Full speed (or root) hub
bMaxPacketSize0 64