Skip to content

Instantly share code, notes, and snippets.

View tomaskrcka's full-sized avatar
:octocat:
Open for a cooperation, part-time, remotely

Tomas Krcka tomaskrcka

:octocat:
Open for a cooperation, part-time, remotely
  • Berlin, Germany
View GitHub Profile

Topics

Motivation

What it means to contribute

If you’re a new open source contributor, the process can be intimidating. How do you find the right project? What if you don’t know how to code? What if something goes wrong?

A common misconception about contributing to open source is that you need to contribute code.

DESCRIPTION = "MongoDB C driver"
SECTION = "libs"
HOMEPAGE = "https://github.com/mongodb/mongo-c-driver"
LICENSE = "Apache-2.0"
DEPENDS = "git-native openssl zlib"
inherit cmake pkgconfig
SRC_URI = "https://github.com/mongodb/mongo-c-driver/releases/download/${PV}/mongo-c-driver-${PV}.tar.gz"
diff -uprN linux-3.2.bach.orig/drivers/net/can/mcp251x.c linux-3.2.bach/drivers/net/can/mcp251x.c
--- linux-3.2.bach.orig/drivers/net/can/mcp251x.c 2015-05-25 15:14:19.979952273 +0200
+++ linux-3.2.bach/drivers/net/can/mcp251x.c 2015-06-05 14:54:41.025912625 +0200
@@ -184,10 +184,11 @@
#define RXBEID0_OFF 4
#define RXBDLC_OFF 5
#define RXBDAT_OFF 6
-#define RXFSIDH(n) ((n) * 4)
-#define RXFSIDL(n) ((n) * 4 + 1)
-#define RXFEID8(n) ((n) * 4 + 2)
diff -uprN linux-3.2.bach.orig/arch/arm/mach-omap2/board-pcm051.c linux-3.2.bach/arch/arm/mach-omap2/board-pcm051.c
--- linux-3.2.bach.orig/arch/arm/mach-omap2/board-pcm051.c 2015-10-05 08:23:24.019166904 +0200
+++ linux-3.2.bach/arch/arm/mach-omap2/board-pcm051.c 2015-10-05 14:18:41.834012970 +0200
@@ -1317,9 +1317,32 @@ static struct omap_board_data uart1_boar
.pads_cnt = 0,
};
+static struct omap_uart_port_info omap_serial_uart3_info[] __initdata = {
+ {
+ .dma_enabled = false,
@tomaskrcka
tomaskrcka / mcp251x_filters.patch
Created July 10, 2015 17:33
Patch for kernel 4.1 - addresses of acceptance filters
diff --git a/drivers/net/can/spi/mcp251x.c b/drivers/net/can/spi/mcp251x.c
index bf63fee..c1a95a3 100644
--- a/drivers/net/can/spi/mcp251x.c
+++ b/drivers/net/can/spi/mcp251x.c
@@ -190,10 +190,11 @@
#define RXBEID0_OFF 4
#define RXBDLC_OFF 5
#define RXBDAT_OFF 6
-#define RXFSIDH(n) ((n) * 4)
-#define RXFSIDL(n) ((n) * 4 + 1)
@tomaskrcka
tomaskrcka / kernel_3.2_rtc.patch
Created July 10, 2015 17:30
Kernel 3.2 rtc patch for rv4162c7 to check battery status
diff -rupN linux-3.2.orig//drivers/rtc/rtc-m41t80.c linux-3.2.new//drivers/rtc/rtc-m41t80.c
--- linux-3.2.orig//drivers/rtc/rtc-m41t80.c 2014-03-06 09:23:32.842957166 +0100
+++ linux-3.2.new//drivers/rtc/rtc-m41t80.c 2014-03-06 14:40:31.250580900 +0100
@@ -59,15 +59,17 @@
#define M41T80_WATCHDOG_RB2 (1 << 7) /* RB: Watchdog resolution */
#define M41T80_WATCHDOG_RB1 (1 << 1) /* RB: Watchdog resolution */
#define M41T80_WATCHDOG_RB0 (1 << 0) /* RB: Watchdog resolution */
+#define M41T80_FLAG_OSCI_FAIL (1 << 2) /* Osci fail bit */
#define M41T80_FEATURE_HT (1 << 0) /* Halt feature */
@tomaskrcka
tomaskrcka / coova-chilli-1.2.8-dhcpopt.patch
Created July 10, 2015 08:38
Forced adding of dhcp option to dhcp response to coova-chilli version 1.2.8
--- coova-chilli-1.2.8_orig/src/dhcp.c 2011-07-12 11:10:15.000000000 +0200
+++ coova-chilli-1.2.8/src/dhcp.c 2014-07-23 13:25:16.000000000 +0200
@@ -2470,21 +2470,12 @@ dhcp_create_pkt(uint8_t type, uint8_t *p
uint8_t *lhead = _options.dhcp_options;
struct dhcp_tag_t *opt = (struct dhcp_tag_t *)lhead;
while (opt && opt->t && opt->l) {
- int param_count = param_list->l;
- int i;
-
log_dbg("DHCP Type: %d Length: %d", (int)opt->t, (int)opt->l);
@tomaskrcka
tomaskrcka / kernel_3.2_gatt.patch
Created July 10, 2015 07:35
Multiple gatt connection patch to kernel 3.2
--- linux-3.2.orig/net/bluetooth/l2cap_core.c 2015-05-25 15:13:25.035952220 +0200
+++ linux-3.2/net/bluetooth/l2cap_core.c 2015-07-07 13:07:02.915456939 +0200
@@ -800,11 +800,14 @@ static void l2cap_conn_start(struct l2ca
/* Find socket with cid and source bdaddr.
* Returns closest match, locked.
*/
-static struct l2cap_chan *l2cap_global_chan_by_scid(int state, __le16 cid, bdaddr_t *src)
+static struct l2cap_chan *l2cap_global_chan_by_scid(int state, __le16 cid, bdaddr_t *src, bdaddr_t *dst)
{
struct l2cap_chan *c, *c1 = NULL;
@tomaskrcka
tomaskrcka / nmea_chksum.py
Created July 10, 2015 07:32
NMEA message checksum
import sys, getopt
def main(argv):
if len(argv) < 1:
print "Put a message - like GPVTG,,T,,M,0.191,N,0.354,K,D"
return
msg = argv[0]
checksum = 0