Skip to content

Instantly share code, notes, and snippets.

@hnyman
hnyman / System-log-r16249-9ac47ee469.txt
Last active Mar 18, 2021
Kernel 5.10 bootlog and system log with r16249-9ac47ee469
View System-log-r16249-9ac47ee469.txt
Thu Mar 18 19:23:47 2021 kern.info kernel: [ 0.000000] Booting Linux on physical CPU 0x0
Thu Mar 18 19:23:47 2021 kern.notice kernel: [ 0.000000] Linux version 5.10.23 (perus@ub2010) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 8.4.0 r16077-785ab2b62c) 8.4.0, GNU ld (GNU Binutils) 2.34) #0 SMP Thu Mar 18 17:02:19 2021
Thu Mar 18 19:23:47 2021 kern.info kernel: [ 0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
Thu Mar 18 19:23:47 2021 kern.info kernel: [ 0.000000] CPU: div instructions available: patching division code
Thu Mar 18 19:23:47 2021 kern.info kernel: [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Thu Mar 18 19:23:47 2021 kern.info kernel: [ 0.000000] OF: fdt: Machine model: Netgear Nighthawk X4S R7800
Thu Mar 18 19:23:47 2021 kern.info kernel: [ 0.000000] Memory policy: Data cache writealloc
Thu Mar 18 19:23:47 2021 kern.info kernel: [ 0.000000] Zone ranges:
Thu Mar 18 19:23:47 2021 kern.info kernel: [ 0.000000] N
@hnyman
hnyman / Test_Kernel510_bootlog.txt
Last active Mar 7, 2021
Kernel 5.10 with DSA test build kernel boot log right after flash
View Test_Kernel510_bootlog.txt
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.10.20 (perus@ub2010) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 8.4.0 r16077-785ab2b62c) 8.4.0, GNU ld (GNU Binutils) 2.34) #0 SMP Sun Mar 7 06:41:29 2021
[ 0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: Netgear Nighthawk X4S R7800
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000042000000-0x000000005fffffff]
[ 0.000000] HighMem empty
View ntfs-3g_compilation_error.txt
make[2]: Entering directory '/Openwrt/r7800/feeds/packages/utils/ntfs-3g'
mkdir -p /Openwrt/r7800/dl
SHELL= flock /Openwrt/r7800/tmp/.ntfs-3g_ntfsprogs-2017.3.23.tgz.flock -c ' /Openwrt/r7800/scripts/download.pl "/Openwrt/r7800/dl" "ntfs-3g_ntfsprogs-2017.3.23.tgz" "3e5a021d7b761261836dcb305370af299793eedbded731df3d6943802e1262d5" "" "https://www.tuxera.com/opensource/" '
touch /Openwrt/r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ntfs-3g-2017.3.23-4-fuseint/.prepared_13d4b2bffeb5174b7597e7a78a0c07f4_6664517399ebbbc92a37c5bb081b5c53_check
rm -rf /Openwrt/r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ntfs-3g-2017.3.23-4-fuseint/
mkdir -p /Openwrt/r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ntfs-3g-2017.3.23-4-fuseint/
tar -xzf /Openwrt/r7800/dl/ntfs-3g_ntfsprogs-2017.3.23.tgz -C /Openwrt/r7800/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/ntfs-3g-2017.3.23-4-fuseint --strip 1
Applying ./patches/001-fuseint-fix-path-mounted-on-musl.patch using plaintext:
p
View RAX120_bootlog_5.10.7
IPQ807x# bootm
## Loading kernel from FIT Image at 44000000 ...
Using 'config@hk01' configuration
Trying 'kernel@1' kernel subimage
Description: ARM64 OpenWrt Linux-5.10.7
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x440000e8
Data Size: 12955420 Bytes = 12.4 MiB
Architecture: AArch64
@hnyman
hnyman / R7800-V1.0.2.44_gpl_src-git_home-linux.git-sourcecode-drivers-mtd-mtdpart.c
Created Dec 4, 2019
R7800-V1.0.2.44_gpl_src-git_home-linux.git-sourcecode-drivers-mtd-mtdpart.c
View R7800-V1.0.2.44_gpl_src-git_home-linux.git-sourcecode-drivers-mtd-mtdpart.c
/*
* Simple MTD partitioning layer
*
* Copyright © 2000 Nicolas Pitre <nico@fluxnic.net>
* Copyright © 2002 Thomas Gleixner <gleixner@linutronix.de>
* Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org>
* Copyright (c) 2013 The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@hnyman
hnyman / R7800_TFTP_flash_and_boot_log.txt
Created Dec 3, 2019
R7800 TFTP flashing and boot process log
View R7800_TFTP_flash_and_boot_log.txt
U-Boot 2012.07 [local,local] (Sep 03 2015 - 17:33:28)
U-boot 2012.07 dni1 V0.4 for DNI HW ID: 29764958 NOR flash 0MB; NAND flash 128MB; RAM 512MB; 1st Radio 4x4; 2nd Radio 4x4; Cascade
smem ram ptable found: ver: 0 len: 5
DRAM: 491 MiB
NAND: SF: Unsupported manufacturer 00
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
128 MiB
MMC:
*** Warning - bad CRC, using default environment
@hnyman
hnyman / 970-ath10k-QCA-LED-support.patch
Created Feb 26, 2018
brainslayer v8 patch master - ath10k LED
View 970-ath10k-QCA-LED-support.patch
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -21,6 +21,10 @@
#include <linux/dmi.h>
#include <linux/ctype.h>
#include <asm/byteorder.h>
+#include <linux/leds.h>
+#include <linux/platform_device.h>
+#include <linux/version.h>
+
@hnyman
hnyman / 970-ath10k-LED-for1701.patch
Last active Aug 17, 2019
Brainslayer ath10k LED patch v8 for lede-17.01
View 970-ath10k-LED-for1701.patch
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -21,6 +21,10 @@
#include <linux/dmi.h>
#include <linux/ctype.h>
#include <asm/byteorder.h>
+#include <linux/leds.h>
+#include <linux/platform_device.h>
+#include <linux/version.h>
+
@hnyman
hnyman / 01_leds
Last active Mar 3, 2018
ath10k WIFI LEDs for ipq806x/R7800
View 01_leds
--- a/target/linux/ipq806x/base-files/etc/board.d/01_leds
+++ b/target/linux/ipq806x/base-files/etc/board.d/01_leds
@@ -50,6 +50,15 @@ zyxel,nbg6817)
;;
esac
+case "$board" in
+netgear,r7800)
+ ucidef_set_led_wlan "wlan2g" "WLAN 2G" "ath10k-phy1" "phy1tpt"
+ ucidef_set_led_wlan "wlan5g" "WLAN 5G" "ath10k-phy0" "phy0tpt"
View bootlog-r3824-not-boot.txt
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.14 (perus@ub1610) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3598-eb09d79c16) ) #0 SMP Wed Mar 22 08:58:21 2017
[ 0.000000] CPU: ARMv7 Processor [512f04d0] revision 0 (ARMv7), cr=10c5787d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt:Machine model: Netgear Nighthawk X4S R7800
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 13 pages/cpu @dda09000 s20940 r8192 d24116 u53248