Skip to content

Instantly share code, notes, and snippets.

Izumi Tsutsui tsutsui

Block or report user

Report or block tsutsui

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
@tsutsui
tsutsui / plugin-container-gdb.log
Created Dec 11, 2019
trace of /usr/pkg/lib/firefox/plugin-container from firefox 71.0 on executing adobe-flash-layer on NetBSD/i386 8.1
View plugin-container-gdb.log
% gdb /usr/pkg/lib/firefox/plugin-container plugin-container.core
GNU gdb (GDB) 8.3
Copyright (C) 2019 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:
@tsutsui
tsutsui / sa11x0_ost.c.diff
Created Nov 11, 2019
Fix attach failure of zaudio(4) wm8731 on NetBSD/zaurus 9.0_BETA (and prior)
View sa11x0_ost.c.diff
Index: arch/arm/sa11x0/sa11x0_ost.c
===================================================================
RCS file: /cvsroot/src/sys/arch/arm/sa11x0/sa11x0_ost.c,v
retrieving revision 1.32
diff -u -p -d -r1.32 sa11x0_ost.c
--- arch/arm/sa11x0/sa11x0_ost.c 9 Oct 2016 14:43:17 -0000 1.32
+++ arch/arm/sa11x0/sa11x0_ost.c 11 Nov 2019 15:44:44 -0000
@@ -80,14 +80,23 @@ struct saost_softc {
static struct saost_softc *saost_sc = NULL;
@tsutsui
tsutsui / nanotodon.c.diff
Created Nov 6, 2019
more conditions to check unicode charactor width (especially emoji)
View nanotodon.c.diff
diff --git a/nanotodon.c b/nanotodon.c
index f710d03..6a9c4e0 100755
--- a/nanotodon.c
+++ b/nanotodon.c
@@ -31,15 +31,51 @@ int pad_x = 0, pad_y = 0;
int ustrwidth(const char *str)
{
- int size, width;
+ int size, width, strwidth;
@tsutsui
tsutsui / zaurus-current-20191104.diff
Last active Nov 4, 2019
(updated) Make NetBSD/zaurus -current diff to use kernel symbols loaded by zbsdmod.o, and fix for zaudio(4) (PR/54658)
View zaurus-current-20191104.diff
Index: conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/zaurus/conf/GENERIC,v
retrieving revision 1.88
diff -u -p -d -r1.88 GENERIC
--- conf/GENERIC 2 Nov 2019 23:13:00 -0000 1.88
+++ conf/GENERIC 4 Nov 2019 18:33:48 -0000
@@ -150,11 +150,10 @@ options WSDISPLAY_COMPAT_RAWKBD # can
options DIAGNOSTIC # internal consistency checks
#options DEBUG
@tsutsui
tsutsui / NetBSD-zaurus-9.0_BETA-ksyms_20191104.diff
Created Nov 4, 2019
Make NetBSD/zaurus 9.0_BETA kernel use symbol table strings loaded by zbsdmod.o loader and stop using options COPY_SYMTAB to reduce kernel size.
View NetBSD-zaurus-9.0_BETA-ksyms_20191104.diff
Index: conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/zaurus/conf/GENERIC,v
retrieving revision 1.86
diff -u -p -d -r1.86 GENERIC
--- conf/GENERIC 26 Jul 2019 07:09:47 -0000 1.86
+++ conf/GENERIC 4 Nov 2019 13:54:44 -0000
@@ -143,19 +143,17 @@ options WS_KERNEL_FG=WSCOL_GREEN
# compatibility to other console drivers
options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
@tsutsui
tsutsui / NetBSD-zaurus-9.0-zaudio.diff
Created Nov 3, 2019
RC diff to make zaudio(4) of NetBSD/zaurus 9.0_BETA attached properly with the new MI i2c(4) driver
View NetBSD-zaurus-9.0-zaudio.diff
Index: arch/zaurus/zaurus/autoconf.c
===================================================================
RCS file: /cvsroot/src/sys/arch/zaurus/zaurus/autoconf.c,v
retrieving revision 1.12
diff -u -p -d -r1.12 autoconf.c
--- arch/zaurus/zaurus/autoconf.c 29 Jul 2012 18:05:47 -0000 1.12
+++ arch/zaurus/zaurus/autoconf.c 3 Nov 2019 18:08:19 -0000
@@ -43,6 +43,8 @@ __KERNEL_RCSID(0, "$NetBSD: autoconf.c,v
#include <sys/disk.h>
#include <sys/kauth.h>
@tsutsui
tsutsui / NetBSD-zaurus-9.0.diff
Created Oct 29, 2019
NetBSD/zaurus 9.0_BETA workaround patches
View NetBSD-zaurus-9.0.diff
Index: arch/zaurus/conf/Makefile.zaurus.inc
===================================================================
RCS file: /cvsroot/src/sys/arch/zaurus/conf/Makefile.zaurus.inc,v
retrieving revision 1.9
diff -u -p -d -r1.9 Makefile.zaurus.inc
--- arch/zaurus/conf/Makefile.zaurus.inc 25 Aug 2015 02:38:15 -0000 1.9
+++ arch/zaurus/conf/Makefile.zaurus.inc 29 Oct 2019 14:49:11 -0000
@@ -20,6 +20,8 @@ SYSTEM_LD_TAIL_EXTRA+=; \
KERNEL_BASE_VIRT= $(LOADADDRESS)
@tsutsui
tsutsui / launch.conf
Created Oct 26, 2019
Zaurus の起動時に Qtopia ではなくコンソールを起動するための /home/sharp/etc/launch.conf の変更内容メモ
View launch.conf
## launch.conf Created by T.Ishitani
#
# Section:
# .OPTION --- Specify Option for launch
# .COMMAND -- Specify Key and Command
#
# in .Command Section
# Need following field seperated by TAB or Space
# KEY MESSAGE TYPE PATH PROG_NAME [ARGS..]
# KEY -- only 1 character accepted
@tsutsui
tsutsui / zbsdmod-clear-bss.diff
Last active Oct 26, 2019
Another fix for NetBSD/zaurus load failure issue (no BSS clear after kernel load)
View zbsdmod-clear-bss.diff
Index: compat_linux.h
===================================================================
RCS file: /cvsroot/src/sys/arch/zaurus/stand/zbsdmod/compat_linux.h,v
retrieving revision 1.6
diff -u -p -d -r1.6 compat_linux.h
--- compat_linux.h 11 Dec 2011 14:05:39 -0000 1.6
+++ compat_linux.h 26 Oct 2019 14:26:05 -0000
@@ -64,6 +64,7 @@ extern int register_chrdev(unsigned int,
extern int unregister_chrdev(unsigned int, const char *);
extern void printk(const char *, ...) __printflike(1, 2);
@tsutsui
tsutsui / NetBSD_zaurus-fix-boot-failure-20191022.diff
Created Oct 22, 2019
confirmd diffs to make NetBSD/zaurus 8.1 kernel bootable
View NetBSD_zaurus-fix-boot-failure-20191022.diff
Index: conf/GENERIC
===================================================================
RCS file: /cvsroot/src/sys/arch/zaurus/conf/GENERIC,v
retrieving revision 1.73.6.3
diff -u -p -d -r1.73.6.3 GENERIC
--- conf/GENERIC 18 Apr 2018 14:45:09 -0000 1.73.6.3
+++ conf/GENERIC 22 Oct 2019 04:49:32 -0000
@@ -30,6 +30,7 @@ maxusers 32 # estimated number of user
options CPU_XSCALE_PXA250 # Support the XScale PXA25x core
options CPU_XSCALE_PXA270 # Support the XScale PXA27x core
You can’t perform that action at this time.