Skip to content

Instantly share code, notes, and snippets.

@lategoodbye
lategoodbye / net-smsc95xx-Fix-max-MTU-value.patch
Created September 1, 2018 19:37
net: smsc95xx: Fix max MTU value
From 3e7125490ca5c317f6d7b39c727018fb48cc31df Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Sat, 1 Sep 2018 16:10:41 +0200
Subject: [PATCH] net: smsc95xx: Fix max MTU value
The commit f77f0aee4da4 ("net: use core MTU range checking in USB NIC
drivers") introduce a common MTU handling for usbnet. But it's missing
the necessary changes for smsc95xx. So set the max MTU to 1500.
This patch has been tested on a Raspberry Pi 3.
@lategoodbye
lategoodbye / 0001-ARM-bcm2837-Use-CPU0-as-cooling-device.patch
Created September 26, 2018 19:18
Use CPU0 of Raspberry Pi 3 as cooling device
From d00bd46b40001d3500b8a7207dcfe1d66600e47e Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Wed, 26 Sep 2018 21:13:22 +0200
Subject: [PATCH] ARM: bcm2837: Use CPU0 as cooling device
Signed-off-by: Stefan Wahren <[email protected]>
---
arch/arm/boot/dts/bcm2837.dtsi | 25 +++++++++++++++++++++++++
arch/arm/boot/dts/bcm283x.dtsi | 2 +-
2 files changed, 26 insertions(+), 1 deletion(-)
@lategoodbye
lategoodbye / mainline_guide.md
Last active April 1, 2025 06:49
Raspberry Pi: How to cross-compile and use Mainline Kernel

Raspberry Pi: How to cross-compile and use Mainline Kernel

Notes on how to set up a new Ubuntu LTS x64 environment, how to build a recent Mainline Kernel and place it on a Raspberry Pi OS SD card.

Procedure

  1. Install tools needed:
$ apt install git make gcc g++ device-tree-compiler bc bison flex libssl-dev libncurses-dev python3-ply python3-git libgmp3-dev libmpc-dev
@lategoodbye
lategoodbye / 0001-ARM-dts-rk3288-tinker-s-Enable-wifi.patch
Last active February 8, 2019 12:41
Enable Wifi on Tinker board S
From b2593553b2e3c418cb17e9788f14c1d7a5c9f810 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Fri, 8 Feb 2019 13:38:10 +0100
Subject: [PATCH] ARM: dts: rk3288-tinker-s: Enable Wifi
This enables the Wifi part of the Realtek RTL8723BS combo module.
Since the schematics doesn't provide any helpful information this patch
mostly based on the vendor kernel:
https://github.com/TinkerBoard/debian_kernel/commit/6a3128ade33f758887048578ada61a4b7ab8e678
@lategoodbye
lategoodbye / rpi3plus-mt76-arm64_1.log
Created February 14, 2019 06:38
Test results of Patch ("mt76usb: do not set urb->num_sgs to 1 for non SG usb host")
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] Linux version 5.0.0-rc6-next-20190213-gbd6262af0 (jenkins@golem) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #3 SMP PREEMPT Wed Feb 13 19:29:29 CET 2019
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] efi: Getting EFI parameters from FDT:
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] efi: UEFI not found.
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] cma: Reserved 32 MiB at 0x0000000039400000
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] NUMA: No NUMA configuration found
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000003b3fffff]
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] NUMA: NODE_DATA [mem 0x3920e840-0x3920ffff]
Dec 14 22:10:05 rpi3 kernel: [ 0.000000] Zone ranges:
@lategoodbye
lategoodbye / rpi3plus-mt76-arm64_3.log
Last active February 16, 2019 17:21
Test results of Patch series 20190215 patch 1,2,3 applied ("mt76usb: do not set urb->num_sgs to 1 for non SG usb host")
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] Linux version 5.0.0-rc6-next-20190215-g9285ceda5 (jenkins@golem) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #3 SMP PREEMPT Fri Feb 15 19:48:18 CET 2019
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] efi: Getting EFI parameters from FDT:
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] efi: UEFI not found.
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] cma: Reserved 32 MiB at 0x0000000039400000
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] NUMA: No NUMA configuration found
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000003b3fffff]
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] NUMA: NODE_DATA [mem 0x3920e840-0x3920ffff]
Dec 14 22:10:07 rpi3 kernel: [ 0.000000] Zone ranges:
From 9ac9831e38b3e816431ae371f4dc429dc2213129 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Sun, 17 Feb 2019 11:46:01 +0100
Subject: [PATCH 1/2] Bluetooth: hci_h5: Add device tree support
This adds support for device tree probing of Realtek chipset 8723bs
(e.g. used on Asus Tinker Board).
Signed-off-by: Stefan Wahren <[email protected]>
---
@lategoodbye
lategoodbye / rpi3plus-mt76-multi_v7_5.log
Created February 18, 2019 21:04
Test results of Patch series 20190215 patch 1,3,5 applied ("mt76usb: do not set urb->num_sgs to 1 for non SG usb host")
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] Booting Linux on physical CPU 0x0
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] Linux version 5.0.0-rc6-next-20190218-g6507fbcd5 (jenkins@golem) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #2 SMP Mon Feb 18 20:28:11 CET 2019
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] CPU: div instructions available: patching division code
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] Memory policy: Data cache writealloc
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] efi: Getting EFI parameters from FDT:
Feb 16 19:17:34 raspberrypi kernel: [ 0.000000] efi: UEFI not found.
Feb 16 19:17:34 raspberrypi
From 92fd5de0f067b5a347828eaaff098e31fd98f0a9 Mon Sep 17 00:00:00 2001
From: Vasily Khoruzhick <[email protected]>
Date: Fri, 18 Jan 2019 09:02:25 -0800
Subject: [PATCH V2 1/4] Bluetooth: Add new quirk for broken local ext features
max_page
Some adapters (e.g. RTL8723CS) advertise that they have more than
2 pages for local ext features, but they don't support any features
declared in these pages. RTL8723CS reports max_page = 2 and declares
support for sync train and secure connection, but it responds with
@lategoodbye
lategoodbye / 0001-tty-bcm2835aux-Dynamically-adjust-to-VPU-clock-chang.patch
Created March 23, 2019 11:21
Dynamically adjust BCM2835 AUX UART to VPU clock changes (currently untested)
From 2a183ad2bdcfb773a8ef9009b49a14ede10f2c53 Mon Sep 17 00:00:00 2001
From: Stefan Wahren <[email protected]>
Date: Sat, 23 Mar 2019 12:13:08 +0100
Subject: [PATCH] tty: bcm2835aux: Dynamically adjust to VPU clock changes
The BCM2835 AUX UART clock is derived from the VPU clock, so in case
this clock changes (triggered by cpufreq) we need to reprogram the
clock dividers.
Signed-off-by: Stefan Wahren <[email protected]>