Skip to content

Instantly share code, notes, and snippets.

yamori813

Block or report user

Report or block yamori813

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 gist:08e24e09bfa5bc5386df8f5909a1209a
diff --git a/sys/dev/fdt/fdt_slicer.c b/sys/dev/fdt/fdt_slicer.c
index 462cb4d80fe..bc468108732 100644
--- a/sys/dev/fdt/fdt_slicer.c
+++ b/sys/dev/fdt/fdt_slicer.c
@@ -39,6 +39,8 @@ __FBSDID("$FreeBSD$");
#include <dev/ofw/ofw_bus.h>
#include <dev/ofw/openfirm.h>
+#include <geom/geom.h>
+
View peerstats.20191127
58814 7220.853 127.127.20.0 971a 0.000002338 0.000000000 0.000246762 0.000015259
58814 7236.853 127.127.20.0 971a 0.000002342 0.000000000 0.000246762 0.000015259
58814 7252.853 127.127.20.0 971a 0.000002537 0.000000000 0.000246762 0.000015259
58814 7268.853 127.127.20.0 971a 0.000002297 0.000000000 0.000246762 0.000015259
58814 7284.853 127.127.20.0 971a 0.000002660 0.000000000 0.000246762 0.000015259
58814 7300.853 127.127.20.0 971a 0.000002629 0.000000000 0.000246762 0.000015259
58814 7316.854 127.127.20.0 971a -31.999997655 0.000000000 0.000246762 32.000000099
58814 7332.853 127.127.20.0 971a -31.999998022 0.000000000 0.000246762 29.626243646
58814 7348.853 127.127.20.0 911a -31.999998074 0.000000000 0.000246762 27.044936631
58814 7364.836 127.127.20.0 911a -31.999998182 0.000000000 0.000246762 24.189726812
View gist:d68a4d2b98d0014cb55fb513b7bbb9a5
microserver % readelf -S Fon_FON2305E_FDT_kernel
There are 28 section headers, starting at offset 0x43d230:
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 80001100 001100 296530 00 AX 0 0 16
[ 2] .MIPS.stubs PROGBITS 80297630 297630 000010 00 AX 0 0 4
[ 3] .rodata PROGBITS 80297640 297640 03357c 00 A 0 0 16
[ 4] set_modmetadata_s PROGBITS 802cabbc 2cabbc 000414 00 A 0 0 4
View gist:3c4d139a21dc1397fb893db0e31e74ba
.. fis init -f
.. load -r -v -b 0x80050000 Nec_WR7850S_rootfs_clean.iso.ulzma
.. fis create -e 0x00000000 rootfs
.. load -r -b 0x80004000 Nec_WR7850S_kernel.kbin
.. exec
ip_address -l 10.10.10.180 -h 10.10.10.3
.. fis init -f
.. load -r -v -b 0x80050000 Corega_CG-WLCVR54AG_rootfs_clean.iso.ulzma
View gist:63c4b9cc841530003ad0ee6842ea653b
def copylcd(c, sp)
for n in 1..64 do
rgba = c.getpix(0, n - 1, 128)
for i in 1..16 do
pat = 0
for k in 1..8 do
if rgba[1 + (i - 1) * 4 * 8 + (k - 1) * 4] == 0xff
pat |= 1 << (8 - k)
end
end
View gist:12994b190c9c0921dd7c7a3e7ad98980
def copylcd(c, sp)
for n in 1..64 do
rgba = c.getpix(0, n - 1, 128)
for i in 1..16 do
pat = 0
for k in 1..8 do
if rgba[1 + (i - 1) * 4 * 8 + (k - 1) * 4] == 0xff
pat |= 1 << (8 - k)
end
end
View gist:a95106079336584ebeb5a9d05387ffbd
# geom -t
Geom Class Provider
flash/spi0 DISK flash/spi0
flash/spi0 MAP map/bootloader
map/bootloader DEV
flash/spi0 MAP map/upgrade
map/upgrade DEV
flash/spi0 MAP map/kernel
map/kernel DEV
flash/spi0 MAP map/rootfs
View gist:f070f4ef0d86d976fb9758dd27ddb221
BCM338332 TP0 346890
MemSize: 128 M
Chip ID: BCM3383G-B0
BootLoader Version: 2.6.0-15-gac1e Release Gnu spiboot reduced DDR drive
Build Date: Mar 13 2015
Build Time: 15:41:05
SPI flash ID 0xc22018, size 16MB, block size 64KB, write buffer 256, flags 0x0
parameter offset is 40788
View gist:242ff6dbcee2778b68f7e0b49d94e20f
===> lib/clang/libclang (all)
===> lib/clang/headers (all)
===> lib/clang/libllvm (install)
===> lib/clang/libclang (install)
===> lib/clang/headers (install)
sh /usr/home/hiroki/freebsd/tools/install.sh -C -o root -g wheel -m 444 /usr/h
ome/hiroki/freebsd/contrib/llvm/tools/clang/lib/Headers/__clang_cuda_builtin_var
s.h /usr/home/hiroki/freebsd/contrib/llvm/tools/clang/lib/Headers/__clang_cuda_c
math.h /usr/home/hiroki/freebsd/contrib/llvm/tools/clang/lib/Headers/__clang_cud
a_complex_builtins.h /usr/home/hiroki/freebsd/contrib/llvm/tools/clang/lib/Heade
View gist:f35bcb773eda3ea7b38073647e764428
Bootbase Version: V1.11 | 11/05/2002 17:43:55
RAM: Size = 8192 Kbytes
DRAM POST: Testing: 8192K
OK
FLASH: AMD 16M *1
RAS Version: V3.60(CZ.0) | 11/12/2002 13:30:40
Press any key to enter debug mode within 3 seconds.
...
You can’t perform that action at this time.