Skip to content

Instantly share code, notes, and snippets.

@hnyman
hnyman / Boot with 2 LAN cables attached.txt
Last active September 10, 2024 14:31
Boot without any LAN cables
Tue Sep 10 17:23:01 2024 kern.info kernel: [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Tue Sep 10 17:23:01 2024 kern.notice kernel: [ 0.000000] Linux version 6.6.49 (perus@ub2404) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r26718-5e7955171c) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Sun Sep 8 16:57:17 2024
Tue Sep 10 17:23:01 2024 kern.info kernel: [ 0.000000] Machine model: GL.iNet GL-MT6000
Tue Sep 10 17:23:01 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
Tue Sep 10 17:23:01 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
Tue Sep 10 17:23:01 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x000000004fc00000..0x000000004fcfffff (1024 KiB) nomap non-reusable wmcpu-reserved@4fc00000
Tue Sep 10 17:23:01 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x000000004fd00000..0
@hnyman
hnyman / 2nd warm reboot failure.log
Last active September 8, 2024 17:59
MT6000 mediatek phy driver debug
Sun Sep 8 20:56:31 2024 kern.info kernel: [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Sun Sep 8 20:56:31 2024 kern.notice kernel: [ 0.000000] Linux version 6.6.49 (perus@ub2404) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r26718-5e7955171c) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Sun Sep 8 16:57:17 2024
Sun Sep 8 20:56:31 2024 kern.info kernel: [ 0.000000] Machine model: GL.iNet GL-MT6000
Sun Sep 8 20:56:31 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
Sun Sep 8 20:56:31 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
Sun Sep 8 20:56:31 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x000000004fc00000..0x000000004fcfffff (1024 KiB) nomap non-reusable wmcpu-reserved@4fc00000
Sun Sep 8 20:56:31 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x000000004fd00000..0
Thu Sep 5 21:01:37 2024 kern.info kernel: [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Thu Sep 5 21:01:37 2024 kern.notice kernel: [ 0.000000] Linux version 6.6.48 (perus@ub2404) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r26718-5e7955171c) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Thu Sep 5 17:21:19 2024
Thu Sep 5 21:01:37 2024 kern.info kernel: [ 0.000000] Machine model: GL.iNet GL-MT6000
Thu Sep 5 21:01:37 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
Thu Sep 5 21:01:37 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
Thu Sep 5 21:01:37 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x000000004fc00000..0x000000004fcfffff (1024 KiB) nomap non-reusable wmcpu-reserved@4fc00000
Thu Sep 5 21:01:37 2024 kern.info kernel: [ 0.000000] OF: reserved mem: 0x000000004fd00000..0
@hnyman
hnyman / 1- ok kernel dmesg right after flash.txt
Created September 4, 2024 18:14
MT6000 reboot test WAN link status and upstream DHCP
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.6.48 (perus@ub2404) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r26718-5e7955171c) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Wed Sep 4 17:17:47 2024
[ 0.000000] Machine model: GL.iNet GL-MT6000
[ 0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[ 0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
[ 0.000000] OF: reserved mem: 0x000000004fc00000..0x000000004fcfffff (1024 KiB) nomap non-reusable wmcpu-reserved@4fc00000
[ 0.000000] OF: reserved mem: 0x000000004fd00000..0x000000004fd3ffff (256 KiB) nomap non-reusable wo-emi@4fd00000
[ 0.000000] OF: reserved mem: 0x000000004fd40000..0x000000004fd7ffff (256 KiB) nomap non-reusable wo-emi@4fd40000
[ 0.000000] OF: reserved mem: 0x000000004fd80000..0x000000004ffbffff (2304 KiB) nomap non-reusable wo-data@4fd80000
[
@hnyman
hnyman / kernel log
Created October 11, 2022 18:59
kernel 5.15 commit b2c507b
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.15.72 (perus@ub2204) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.3.0 r20513-a99707d14c) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 SMP Mon Oct 10 19:28:23 2022
[ 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
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.15.71 (perus@ub2204) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.3.0 r20513-a99707d14c) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 SMP Thu Oct 6 16:00:19 2022
[ 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
@hnyman
hnyman / kernel_log.txt
Created September 14, 2022 16:37
kernel-5.15-test-master-r20646
[70287.497733] reboot: Restarting system
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)
@hnyman
hnyman / crashlog.txt
Created September 13, 2022 20:55
kernel 5.15 crash
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 / kernel_log.txt
Created September 13, 2022 19:27
Kernel 5.15 test build - boot logs
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.15.67 (perus@ub2204) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.3.0 r20513-a99707d14c) 11.3.0, GNU ld (GNU Binutils) 2.37) #0 SMP Tue Sep 13 18:33:34 2022
[ 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
@hnyman
hnyman / gist:1ab0e26f85c2bdcfd028fba6a40936b5
Last active October 7, 2021 19:32
rrdtool1 time_t as long
--- a/src/parsetime.c
+++ b/src/parsetime.c
@@ -641,7 +641,7 @@ assign_date(struct rrd_time_value *ptv,
} else if( year >= 0 && year < 38 ) {
year += 100; /* Allow year 2000-2037 to be specified as */
} /* 00-37 until the problem of 2038 year will */
- /* arise for unices with 32-bit time_t :) */
+ /* arise for unices with 32-bit TIME_INT :) */
if (year < 70) {
panic(e("won't handle dates before epoch (01/01/1970), sorry"));