Skip to content

Instantly share code, notes, and snippets.

View tnishinaga's full-sized avatar

Toshifumi NISHINAGA tnishinaga

  • Japan
  • 22:13 (UTC +09:00)
View GitHub Profile
@tnishinaga
tnishinaga / pocketbeagle.dts
Created April 7, 2019 19:24
Pocket Beagle 2018-10-07 device tree source(from /sys/firmware/fdt)
/dts-v1/;
/memreserve/ 0x0000000088000000 0x000000000007f000;
/memreserve/ 0x000000008fb2b000 0x000000000001f000;
/memreserve/ 0x000000008fbad000 0x0000000000452040;
/ {
serial-number = "1750EPB00345";
compatible = "ti,am335x-pocketbeagle", "ti,am335x-bone", "ti,am33xx";
interrupt-parent = <0x1>;
#address-cells = <0x1>;
@tnishinaga
tnishinaga / setup.sh
Created May 8, 2019 01:14
My mac setup script(2019/05/08 ver)
#!/bin/sh -x
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
source ~/.bashrc
# fix permission to install zsh
sudo chown -R $(whoami) /usr/local/lib/pkgconfig
# install packages
brew install \
> dap init
> auto0.dap info
AP ID register 0x24770002
Type is MEM-AP APB
MEM-AP BASE 0x80000000
ROM table in legacy format
Component base address 0x80000000
Peripheral ID 0x01000bf000
Designer is 0x1bf, Broadcom
Part is 0x0, Unrecognized
@tnishinaga
tnishinaga / hoshitsuba_encode.sh
Created September 1, 2019 00:56
星と翼のパラドクスの録画データを結合してhevcに変換するスクリプト(Mac用)
#!/bin/bash -x
# Copyright (c) 2019 @tnishinaga
# MIT License
# https://spdx.org/licenses/MIT.html
# concat
mkdir -p concatinated
for f in $(ls *_00001.ts); do
base=$(echo $f | sed -e "s/_.*.ts//")
@tnishinaga
tnishinaga / README.md
Created December 9, 2019 19:10
OpenOCD config for Raspberry Pi 4

OpenOCD config for Raspberry Pi 4

OpenOCD version

0.10.0+dev-00865-g04ebb43f

How to use

openocd -f interface/YOUR_INTERFACE_CONFIG -f raspi4.cfg
/dts-v1/;
/memreserve/ 0x0000000000000000 0x0000000000001000;
/ {
compatible = "raspberrypi,4-model-b", "brcm,bcm2711";
model = "Raspberry Pi 4 Model B";
interrupt-parent = <0x1>;
#address-cells = <0x2>;
#size-cells = <0x1>;
!gigabit_switch_version_1.00
!
calendar set 12 52 44 january 1 1970
!
sntp server 220.130.158.54
!
sntp zone japan
!
!
!
tnishinaga@takanawa:~$ sudo ethtool -k enp1s0 | grep ": on"
rx-checksumming: on
generic-receive-offload: on
rx-vlan-offload: on
tx-vlan-offload: on
highdma: on [fixed]
@tnishinaga
tnishinaga / and_inst.S
Last active August 12, 2020 19:31
ARM勉強会 ARM入門資料の発表原稿
.global hoge
hoge:
andeq r0, r0, r1
andal r0, r0, r1
and r0, r0, r1
@tnishinaga
tnishinaga / errorlog.txt
Created September 7, 2020 16:00
esp32 fprintf to tcp socket error log
I (48636) esp_netif_lwip: DHCP server assigned IP to a station, IP is: 192.168.4.2
I (51966) wifi softAP: accept success
abort() was called at PC 0x40082c46 on core 0
0x40082c46: lock_acquire_generic at /Users/tnishinaga/opt/esp-idf/components/newlib/locks.c:142
Backtrace:0x4008804f:0x3ffc8ca0 0x400887ad:0x3ffc8cc0 0x4008f59a:0x3ffc8ce0 0x40082c46:0x3ffc8d50 0x40082d69:0x3ffc8d80 0x40136621:0x3ffc8da0 0x40131fa9:0x3ffc9060 0x40131ea1:0x3ffc90b0 0x400889ab:0x3ffc90e0 0x4008b6b8:0x3ffc9100 0x4008b7d9:0x3ffc9140 0x40082c7e:0x3ffc9160 0x40082d69:0x3ffc9190 0x4013bd06:0x3ffc91b0 0x4013e2f9:0x3ffc9540 0x40132249:0x3ffc9570 0x400d77e5:0x3ffc95c0 0x400887b5:0x3ffc9690
0x4008804f: panic_abort at /Users/tnishinaga/opt/esp-idf/components/esp_system/panic.c:349