Skip to content

Instantly share code, notes, and snippets.

View tsutsui's full-sized avatar

Izumi Tsutsui tsutsui

View GitHub Profile
@tsutsui
tsutsui / patch-base_mutex.h
Created January 26, 2013 15:33
pkgsrc/inputmethod/ibus-mozc/patches fix for NetBSD ILP32 ports
$NetBSD: patch-base_mutex.h,v 1.1 2013/01/18 11:36:40 ryoon Exp $
* NetBSD ILP32 ports seem to require larger mutex array size.
* I am not sure.
--- base/mutex.h.orig 2012-08-31 05:37:06.000000000 +0000
+++ base/mutex.h
@@ -46,8 +46,8 @@
// To remove dependencies against plafrom specific headers such as
// <Windows.h> or <pthread.h>, we use an array of pointers as an opaque buffer
@tsutsui
tsutsui / LUNA-II netboot message
Created January 27, 2013 15:19
OMRON LUNA-II and NetBSD/luna68k netboot. The bootloader is loaded from SCSI disk by ROM monitor command, and the NetBSD kernel loaded over NFS via LANCE Ethernet.
Diagnostic Start....(c) Copyright OMRON Corporation 1991
All Rights Reserved
ROM Version 1.11, 16 Megabytes RAM, 1 CPU
Memory Check: 3Port passed, main skipped.
ROM mode
0>k
ctlr: st dk
id: 1-6 0-6
par: a
fnam: boot
@tsutsui
tsutsui / netbsd-6 usb.diff
Created January 29, 2013 15:50
DMA sync fixes of ehci and uhci for netbsd-6 (can be applied to HEAD)
Index: ehci.c
===================================================================
RCS file: /cvsroot/src/sys/dev/usb/ehci.c,v
retrieving revision 1.183
diff -u -p -r1.183 ehci.c
--- ehci.c 23 Dec 2011 00:51:43 -0000 1.183
+++ ehci.c 29 Jan 2013 15:45:05 -0000
@@ -763,7 +763,11 @@ ehci_check_qh_intr(ehci_softc_t *sc, str
lsqtd->offs + offsetof(ehci_qtd_t, qtd_status),
sizeof(lsqtd->qtd.qtd_status),
@tsutsui
tsutsui / NetBSD arm umass data issue
Created January 30, 2013 17:31
umass HDD data corruption problem seen on HP T5325 running NetBSD/evbarm 6.0_STABLE
% ls -l wxGTK28-2.8.10nb21.tgz-broken
-rw-r--r-- 1 tsutsui tsutsui 19564370 Jan 31 02:18 wxGTK28-2.8.10nb21.tgz-broken
% ls -l wxGTK28-2.8.10nb21.tgz-correct
-rw-r--r-- 1 tsutsui tsutsui 19564370 Jan 31 02:18 wxGTK28-2.8.10nb21.tgz-correct
% diff -u wxGTK28-2.8.10nb21.tgz-correct.dump wxGTK28-2.8.10nb21.tgz-broken.dump
--- wxGTK28-2.8.10nb21.tgz-correct.dump 2013-01-31 02:19:29.000000000 +0900
+++ wxGTK28-2.8.10nb21.tgz-broken.dump 2013-01-31 02:20:00.000000000 +0900
@@ -336230,7 +336230,7 @@
00521650 c7 80 ee 87 49 ea 77 da ba 9f ea 11 b4 7e 3d 39 |....I.w......~=9|
00521660 06 34 8d d1 75 b1 98 5c 21 12 75 2c 24 fa 62 be |.4..u..\!.u,$.b.|
@tsutsui
tsutsui / hp735-125 boot log
Created February 1, 2013 14:29
old NetBSD/hp700 1.6ZE boot log on HP 9000 735/125
(c) Copyright. Hewlett-Packard Company. 1992.
All rights reserved.
PDC ROM rev. 2.7
IODC ROM rev. 1.1
64 MB of memory configured and tested.
Selecting a system to boot.
To stop selection process, press and hold the ESCAPE key.
@tsutsui
tsutsui / NetBSD arm umass data issue 2
Created February 1, 2013 16:25
Another umass data corruption on HP T5325 and NetBSD/evbarm 6.0_STABLE
--- correct.hex 2013-02-02 01:12:25.000000000 +0900
+++ wrong.hex 2013-02-02 01:11:58.000000000 +0900
@@ -721098,7 +721098,7 @@
00b00c90 ea 99 61 97 47 4b bb 9c 26 c3 62 fd d6 03 af 44 |..a.GK..&.b....D|
00b00ca0 d6 5b b9 5b 8c 4b a9 13 36 0d 44 fd 94 b6 a0 72 |.[.[.K..6.D....r|
00b00cb0 77 8f b0 5e c3 65 a2 5e 7b a1 5e 4f 1f 13 f5 7a |w..^.e.^{.^O...z|
-00b00cc0 ea ac a8 d7 93 c7 8c 7a 0d 40 3a 8b a0 1e ab 64 |.......z.@:....d|
+00b00cc0 ea ac a8 d7 93 c7 8c 7a 0d 40 3a 8b 00 00 ab 64 |.......z.@:....d|
00b00cd0 bd d6 42 bd d6 43 3d b6 41 7c c5 50 97 85 20 9b |..B..C=.A|.P.. .|
00b00ce0 0d 75 54 00 75 da e9 11 69 e8 ce 17 75 ca dc 38 |.uT.u...i...u..8|
@tsutsui
tsutsui / NetBSD sun3x boot message
Created February 2, 2013 15:12
Sun3/80 and NetBSD/sun3 6.0_BETA2 via serial console boot message
EEPROM: Using RS232 A port.
Selftest Completed.
Sun Workstation, Model Sun-3/80 Series.
ROM Rev 3.0.2, 64MB memory installed, Serial #509158.
Ethernet address 8:0:20:7:C4:E6, Host ID 4207C4E6.
Testing 0 Megabytes of Memory ... Completed.
@tsutsui
tsutsui / ruby-gnome2-1.2.1.diff
Created February 2, 2013 19:50
pkgsrc ruby-gnome2-1.2.1 packages diff
Index: devel/ruby-gnome2-atk/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/ruby-gnome2-atk/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- devel/ruby-gnome2-atk/Makefile 31 Oct 2012 11:19:41 -0000 1.16
+++ devel/ruby-gnome2-atk/Makefile 2 Feb 2013 19:15:45 -0000
@@ -3,7 +3,6 @@
PKGNAME= ${RUBY_PKGPREFIX}-gnome2-atk-${VERSION}
@tsutsui
tsutsui / pkgsrc-openoffice3.diff
Created March 4, 2013 12:59
pkgsrc-2012Q4 misc/openoffice3 workaround patch, per investigation by Yasushi Oshima (20120415 works but 20120418 doesn't, and curl update causes the problem)
Index: misc/openoffice3/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/misc/openoffice3/distinfo,v
retrieving revision 1.33
diff -u -r1.33 distinfo
--- misc/openoffice3/distinfo 29 Jun 2012 12:36:39 -0000 1.33
+++ misc/openoffice3/distinfo 3 Mar 2013 17:14:50 -0000
@@ -56,7 +56,7 @@
SHA1 (patch-bw) = 223963fe59b71468420a697d8ea27c153b9f37ce
SHA1 (patch-bx) = 157878e1fb4297f118ed0bbf06009506666fbc1c
@tsutsui
tsutsui / bootable disk for NetBSD luna68k
Created March 19, 2013 13:34
NetBSD/luna68k の起動ディスクの作り方メモ
■NetBSD/luna68k の起動ディスクの作り方
ブートローダー実装後の NetBSD/luna68k の起動順序は
(1)LUNAのファームウェアROMが旧FFS形式のパーティションからブートローダーバイナリを読み込む
(2)ブートローダーが任意のパーティション(普通は a パーティション)からカーネルを読み込む
という段階になります。
上記(1)で LUNA のファームウェアROMがバイナリを読み込める条件は、