Skip to content

Instantly share code, notes, and snippets.

View cchen140's full-sized avatar

CY Chen cchen140

View GitHub Profile
@cchen140
cchen140 / navio2-4.19.83.patch
Created April 1, 2020 07:49
A patch (based on rpi-4.19.83-navio) for using Navio 2 on Raspberry Pi (without the RCIO kernel module)
From 68d699e13619ccb89947dd1366074f073dd7fe63 Mon Sep 17 00:00:00 2001
From: Georgii Staroselskii <georgii.staroselskii@emlid.com>
Date: Tue, 29 Aug 2017 19:28:36 +0300
Subject: [PATCH 1/8] arch: arm: configs: bcm2709_navio2: config for Navio2
Based on bcm2709_defconfig
---
arch/arm/configs/bcm2709_navio2_defconfig | 1475 +++++++++++++++++++++++++++++
1 file changed, 1475 insertions(+)
create mode 100644 arch/arm/configs/bcm2709_navio2_defconfig
@cchen140
cchen140 / .config_to_append
Last active April 6, 2020 20:03
Kernel configurations required for running in a QEMU versatile-pb machine
CONFIG_CPU_V6=y
CONFIG_ARM_ERRATA_411920=y
CONFIG_ARM_ERRATA_364296=y
CONFIG_AEABI=y
CONFIG_OABI_COMPAT=y
CONFIG_PCI=y
CONFIG_PCI_VERSATILE=y
CONFIG_SCSI=y
CONFIG_SCSI_SYM53C8XX_2=y
CONFIG_BLK_DEV_SD=y
@cchen140
cchen140 / .config
Created March 23, 2020 17:45
Configurations for 4.19.81 Kernel running in QEMU (as versatilpb)
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 4.19.81 Kernel Configuration
#
#
# Compiler: arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) 4.8.3 20140303 (prerelease)
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=40803
@cchen140
cchen140 / wpa_supplicant.conf
Last active November 14, 2021 23:04
WiFi Configurations for Raspberry Pi
# This file is located at /boot/wpa_supplicant.conf
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
#ssid="EML33T2"
#psk="emrooftop"
#psk=c150059ac2d9df589127a8ee0a1cc475099c2d6e60ea48644c21684cb7ee6b23
ssid="2.4 26S6-U1"
@cchen140
cchen140 / jjs-cross-compile-linux-kernel-rpi3b.txt
Created December 28, 2019 05:33
Commands for cross-compiling Linux kernel for Raspberry Pi 3, 4
## Cross-compile Linux kernel for Raspberry Pi 3B
## This is for VM with a username “jjs” 
## Cross-compiler is installed at /home/jjs/rp_tool/
## SD card mount paths are for sdb1 and sdb2 
KERNEL=kernel7 
make ARCH=arm CROSS_COMPILE=/home/jjs/rp_tool/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- bcm2709_defconfig 
make ARCH=arm CROSS_COMPILE=/home/jjs/rp_tool/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin/arm-linux-gnueabihf- zImage modules dtbs -j 6 
 
@cchen140
cchen140 / linux-arm-versatile.patch
Created November 9, 2019 06:46
A patch for making the ARM Linux Kernel compatible with the machine type versatilepb in QEMU.
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index d1346a160760..8de93ddc6f27 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -670,7 +670,7 @@ config ARCH_MULTI_V5
select ARCH_MULTI_V4_V5
select CPU_ARM926T if !(CPU_ARM946E || CPU_ARM1020 || \
CPU_ARM1020E || CPU_ARM1022 || CPU_ARM1026 || \
- CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_FEROCEON)
+ CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_FEROCEON || CPU_V6)