Skip to content

Instantly share code, notes, and snippets.

Oleksandr Rybalko rayddteam

Block or report user

Report or block rayddteam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View BPI-R64 linux boot.log
resetting ...
mtk_arch_reset at pre-loader!
F0: 102B 0000
F5: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 0000 0041 [0000]
G0: 0190 0000
T0: 0000 03DA [000F]
View gist:0552be767d6bd783cf9e7bc628d5caa3
initarm: console initialized
arg1 kmdp = 0xc09df1fc
boothowto = 0x20001800
dtbp = 0xc075c6d8
lastaddr1: 0xc0a10000
loader passed (static) kenv:
no env, null ptr
---<<BOOT>>---
KDB: debugger backends: ddb
@rayddteam
rayddteam / readelf
Created Sep 28, 2019
kernel readelf -S
View readelf
# readelf -S /tftpboot/kernel
There are 43 section headers, starting at offset 0x9c146c:
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .text PROGBITS c0000180 000180 5d70d0 00 AX 0 0 128
[ 2] .rodata PROGBITS c05d7260 5d7260 0ba0e8 00 AMS 0 0 32
[ 3] set_sysctl_set PROGBITS c0691348 691348 001ce0 00 A 0 0 4
[ 4] set_modmetadata_s PROGBITS c0693028 693028 000838 00 A 0 0 4
@rayddteam
rayddteam / iperf.txt
Created Sep 3, 2019
weird iperf results
View iperf.txt
# iperf -s -i1
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.0.45 port 5001 connected with 192.168.0.7 port 59140
[ ID] Interval Transfer Bandwidth
[ 4] 0.0- 1.0 sec 124 KBytes 1.02 Mbits/sec
[ 4] 1.0- 2.0 sec 94.7 KBytes 776 Kbits/sec
[ 4] 2.0- 3.0 sec 52.3 KBytes 429 Kbits/sec
View ahci.diff
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index a875b01a13..83eff8ab69 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -548,6 +548,7 @@ static int ahci_port_start(struct ahci_uc_priv *uc_priv, u8 port)
{
struct ahci_ioports *pp = &(uc_priv->port[port]);
void __iomem *port_mmio = pp->port_mmio;
+ u64 dma_addr;
u32 port_status;
View BPI-R2 FreeBSD devinfo -rv
% devinfo -rv
nexus0
ofwbus0
unknown pnpinfo name=opp-table compat=operating-points-v2
cpulist0 pnpinfo name=cpus
cpu0 pnpinfo name=cpu@0 compat=arm,cortex-a7
cpu1 pnpinfo name=cpu@1 compat=arm,cortex-a7
cpu2 pnpinfo name=cpu@2 compat=arm,cortex-a7
cpu3 pnpinfo name=cpu@3 compat=arm,cortex-a7
pmu0 pnpinfo name=pmu compat=arm,cortex-a7-pmu
@rayddteam
rayddteam / BPI-R2 EFI FreeBSD boot
Last active Aug 14, 2019
BPI-R2 EFI FreeBSD boot
View BPI-R2 EFI FreeBSD boot
[USBD] USB PRB0 LineState: 0
[USBD] USB cable/ No Cable inserted!
[PLFM] Keep stay in USB Mode
Platform initialization is ok
wait for frequency meter finish, CLK26CALI = 0x81
mt_pll_post_init: mt_get_cpu_freq = 1040000Khz
wait for frequency meter finish, CLK26CALI = 0x90
mt_pll_post_init: mt_get_bus_freq = 273000Khz
@rayddteam
rayddteam / zfs_hdd_sync_backup.sh
Created Jun 5, 2019
Daily sync SSD data to HDD for backup (or any other local zfs pools)
View zfs_hdd_sync_backup.sh
#!/bin/sh
SRC="z"
DST="backup"
DATE=$(date +%Y-%m-%d)
### For first time run:
# zfs snapshot -r ${SRC}@${DATE} || (echo "Fail to create ${SRC}@${DATE}"; exit 1)
# zfs send -R ${SRC}@${DATE} | zfs recv -F ${DST}
@rayddteam
rayddteam / boot.log
Last active Aug 21, 2019
BPI-R2 FreeBSD boot
View boot.log
---<<BOOT>>---
ARM Debug Architecture v7.1
4 watchpoints and 6 breakpoints supported
KDB: debugger backends: ddb
KDB: current backend: ddb
CPU(0) applied BP hardening: not necessary
Copyright (c) 1992-2019 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
@rayddteam
rayddteam / gist:acacba5f64d9d1a1b7a46e9e101c2226
Created Mar 30, 2018 — forked from josla972/gist:7a619f6e76fe4ec2fea7ff65d1fb9b11
Third boot with backslash fixed and FreeBSD current
View gist:acacba5f64d9d1a1b7a46e9e101c2226
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-CURRENT #0 65e4b69acf0(master)-dirty: Fri Mar 30 23:25:33 JST 2018
josef@freebsd-virtual:/usr/home/josef/ZRouter/obj/usr/home/josef/ZRouter/ZRouter/tmp/usr/home/josef/freebsd/mips.mips/sys/Buffalo_WZR-HP-G301NH mips
gcc version 4.2.1 20070831 patched [FreeBSD]
Preloaded elf kernel "kernel" at 0x80505e00.
real memory = 67108864 (65536K bytes)
Physical memory chunk(s):
You can’t perform that action at this time.