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: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.
...
View gist:bd3ac7ef0d843dc390889ddd7220ceda
3329_map_part.h:#define UART_BASE 0xb0000100 /* uart registers */
3380_map_part.h:#define UART_BASE0 0xb4e00200 // uart registers
3383_map_part.h:#define UART_BASE0 0xb4e00500 // uart registers
3384_map_part.h:#define UART_BASE0 0xb4e00500 // uart registers
60333_map_part.h:#define UART_BASE 0xb3e00500 /* UART registers */
6318_map_part.h:#define UART_BASE 0xb0000100 /* uart registers */
63268_map_part.h:#define UART_BASE 0xb0000180 /* uart registers */
6328_map_part.h:#define UART_BASE 0xb0000100 /* uart registers */
63381_map_part.h:#define UART_BASE 0xb0000280 /* uart registers */
View gist:e447b362538ca0f8007cb6fe4a5f4e8e
1e7c: 3c0fb000 lui t7,0xb000
1e80: 35ef0180 ori t7,t7,0x180
1e84: 24180020 li t8,32
1e88: 85f90012 lh t9,18(t7)
1e8c: 0338c824 and t9,t9,t8
1e90: 1738fffd bne t9,t8,0x1e88
1e94: 00000000 nop
1e98: 0004c602 srl t8,a0,0x18
1e9c: a1f80017 sb t8,23(t7)
1ea0: 0004c402 srl t8,a0,0x10
View gist:93b8912b0d552eb8a68abb18f38dee60
# sysctl -a | grep ipsec
kern.features.ipsec: 1
kern.features.ipsec_natt: 1
net.inet.ipsec.def_policy: 1
net.inet.ipsec.esp_trans_deflev: 1
net.inet.ipsec.esp_net_deflev: 1
net.inet.ipsec.ah_trans_deflev: 1
net.inet.ipsec.ah_net_deflev: 1
net.inet.ipsec.ah_cleartos: 1
net.inet.ipsec.dfbit: 0
View gist:5b3824ffabaa21dfe720a2aa1adb1b76
soc
mips,arm,ppc…
mips - over 4k(atheros,mediatek,broadcom)
arm - v4, v6, v7
router
JP, EURO, USA
bootloader
u-boot,redboot,cfe...
ubldr
execute
You can’t perform that action at this time.