Skip to content

Instantly share code, notes, and snippets.

View tsutsui's full-sized avatar

Izumi Tsutsui tsutsui

View GitHub Profile
@tsutsui
tsutsui / PC-8801MA-capacitors.txt
Created May 7, 2016 20:03
PC-8801MA の電源ユニットとメインボードで使われている電解コンデンサ一覧
--------------------------------------------------------
PC-8801MA の電源ユニットで使われている電解コンデンサ一覧
--------------------------------------------------------
C605 200V 560uF ルビコン MXP 高圧1次側平滑
C609 25V 100uF 日ケミ KMC 1次側電圧制御用?
C612 63V 22uF 日ケミ KMC 1次側電圧制御用?
C613 25V 470uF 日ケミ KMC 1次側電圧制御用?
Index: sys/arch/x68k/conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/x68k/conf/GENERIC,v
retrieving revision 1.207
diff -u -p -d -r1.207 GENERIC
--- sys/arch/x68k/conf/GENERIC 29 Sep 2022 10:10:10 -0000 1.207
+++ sys/arch/x68k/conf/GENERIC 31 Mar 2024 02:24:54 -0000
@@ -229,6 +229,9 @@ kbd0 at mfp0 # standard keyboard
ite0 at grf0 grfaddr 0 # internal terminal emulator
options ITE_KERNEL_ATTR=4 # bold for kernel messages
@tsutsui
tsutsui / pkglint.log
Created February 7, 2024 12:19
pkglint error on pkgsrc-2023Q4 and NetBSD/i386 10.0_RC3
mirage-% pkglint
panic: Pkglint internal error: Variable "MASTER_SITE_SUSE" must only be defined once. [recovered]
panic: interface conversion: interface {} is string, not pkglint.pkglintFatal
goroutine 1 [running]:
github.com/rillig/pkglint/v23.(*Pkglint).Main.func1()
/s/obj.i386/pkgsrc/pkgtools/pkglint/work.i386/pkglint-23.2.5/v23/pkglint.go:111 +0x5c
panic({0x83ae240, 0x8a6f600})
/usr/pkg/go121/src/runtime/panic.go:914 +0x1e0
github.com/rillig/pkglint/v23.assertf(...)
Dec 30 05:22:42 mirage smbd[29836]: [2023/12/30 05:22:42.688494, 0] ../../lib/util/fault.c:173(smb_panic_log)
Dec 30 05:22:42 mirage smbd[29836]: ===============================================================
Dec 30 05:22:42 mirage smbd[29836]: [2023/12/30 05:22:42.688673, 0] ../../lib/util/fault.c:174(smb_panic_log)
Dec 30 05:22:42 mirage smbd[29836]: INTERNAL ERROR: Signal 11: Segmentation fault in pid 29836 (4.18.9)
Dec 30 05:22:42 mirage smbd[29836]: [2023/12/30 05:22:42.688904, 0] ../../lib/util/fault.c:178(smb_panic_log)
Dec 30 05:22:42 mirage smbd[29836]: If you are running a recent Samba version, and if you think this problem is not yet fixed in the latest versions, please consider reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting
Dec 30 05:22:42 mirage smbd[29836]: [2023/12/30 05:22:42.689031, 0] ../../lib/util/fault.c:183(smb_panic_log)
Dec 30 05:22:42 mirage smbd[29836]: ===============================================================
Dec 30 05:22:42 mirage
@tsutsui
tsutsui / ibus-deamon.core.log
Created December 23, 2023 15:12
ibus 1.5.29 ibus-daemon randomly dumps core on NetBSD/i386 10.0_RC1 and pkgsrc-2023Q3
-% gdb /usr/pkg/bin/ibus-daemon ibus-daemon.core
GNU gdb (GDB) 11.0.50.20200914-git
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "i486--netbsdelf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
--- /tmp/dtoa-inline-rfs.s 2023-11-15 01:08:14.211260505 +0900
+++ /tmp/dtoa-noinline-rfs.s 2023-11-15 01:08:22.324724851 +0900
@@ -1,271 +1,286 @@
obj.newsmips/dtoa.pico: file format elf32-tradbigmips
Disassembly of section .text:
-00000000 <__dtoa>:
@tsutsui
tsutsui / fblcd.c
Created November 4, 2023 15:44
prototype driver of NWS-32x0 LCD-MONO framebuffer for NetBSD/newsmips
/* $NetBSD$ */
/*-
* Copyright (c) 2023 Izumi Tsutsui. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
@tsutsui
tsutsui / dmesg-NetBSD-pmax-9.3-3MAX.log
Created November 4, 2023 02:54
dmesg of NetBSD/pmax 9.3 on GXemul emulating DECstation 5000/200 (3max)
lkkbd0: no keyboard
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
2018, 2019, 2020, 2021, 2022
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 9.3 (GENERIC) #0: Thu Aug 4 15:30:37 UTC 2022
mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/pmax/compile/GENERIC
@tsutsui
tsutsui / Makefile
Created August 15, 2023 19:43
libwebp MODE_RGB decoding doesn't handle Alpha value
PROG= webp-test-MODE_RGB
SRC= webp-test-MODE_RGB.c
#PREFIX= /usr/pkg
PREFIX= /usr
CFLAGS= -I${PREFIX}/include
LDFLAGS= -L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lwebp
WEBPIMG= 3_webp_ll.webp
all: ${PROG}

Android の USBテザリング WAN接続をつないだ NetBSD/amd64 9.3 の Let's Note CF-NX3 をルータにして謎マシンの有線LANでデモする設定メモ

環境

  • ルーターとして設定する本体: Let's Note CF-NX3
    • 内蔵LAN wm(4) Intel I218 Gigabit Ethernet: これをLAN側とする
    • 内蔵無線LAN iwm(4) : 今回は未使用; ちゃんと設定すればこちらを WAN側にもできるはず
    • USB 2.0 ehci(4) に Android端末を接続する
  • テザリングで WAN側につなぐ Android端末: HUAWEI MediaPad M3 Lite LTE
    • ここでは Android 7.0 ですが、よほど古くなければ大丈夫なはず?