Skip to content

Instantly share code, notes, and snippets.

View nonakap's full-sized avatar

Kimihiro Nonaka nonakap

View GitHub Profile
Index: usr.bin/ftp/extern.h
===================================================================
RCS file: /cvsroot/src/usr.bin/ftp/extern.h,v
retrieving revision 1.80
diff -u -r1.80 extern.h
--- usr.bin/ftp/extern.h 4 Jul 2012 06:09:37 -0000 1.80
+++ usr.bin/ftp/extern.h 14 Jan 2014 15:15:56 -0000
@@ -89,11 +89,13 @@
* SUCH DAMAGE.
*/
@nonakap
nonakap / express5800-s70-hf
Last active January 2, 2016 20:38
lm-sensors config file for NEC Express5800/S70 type hf
chip "nct6776-*"
# ignore in1, in4, in5
ignore in1
ignore in4
ignore in5
# fan min rpm
set fan1_min 890
set fan2_min 690
set fan3_min 3430 # not original fan (9GA0412P3H011)
@nonakap
nonakap / fancontrol
Last active September 22, 2020 18:42
fancontrol config file for NEC Express5800/S70 type hf.
# for NEC Express5800/S70 type hf
# FAN1: front, FAN2: CPU, FAN3: rear
INTERVAL=5
DEVPATH=hwmon1=devices/platform/coretemp.0 hwmon2=devices/platform/w83627ehf.2608
DEVNAME=hwmon1=coretemp hwmon2=nct6776
FCTEMPS=hwmon2/device/pwm3=hwmon1/device/temp1_input hwmon2/device/pwm2=hwmon1/device/temp1_input hwmon2/device/pwm1=hwmon1/device/temp1_input
FCFANS=hwmon2/device/pwm3=hwmon2/device/fan3_input hwmon2/device/pwm2=hwmon2/device/fan2_input hwmon2/device/pwm1=hwmon2/device/fan1_input
MINTEMP=hwmon2/device/pwm3=38 hwmon2/device/pwm2=33 hwmon2/device/pwm1=33
MAXTEMP=hwmon2/device/pwm3=73 hwmon2/device/pwm2=73 hwmon2/device/pwm1=73
MINSTART=hwmon2/device/pwm3=10 hwmon2/device/pwm2=50 hwmon2/device/pwm1=50
@nonakap
nonakap / dump_uart_crossbar_regs.cpp
Last active October 22, 2022 01:19
86Duino Sketch: Dump UART and CrossBar registers
/*
* vortex86ex internal pcidevs
* dev#0 func#0: NB0
* dev#0 func#1: NB1
* dev#1 func#0: PCI-E
* dev#7 func#0: SB0
* dev#7 func#1: SB1
*/
void
@nonakap
nonakap / update_86duino_educake_bios.txt
Created February 18, 2014 02:33
Update 86Duino EduCake BIOS...
+---------------------------------+
| 86Duino Flash Update Tool |
+---------------------------------+
[MAIN MENU]
1. Show main menu. Please send 'L'
2. Update 86Duino bootloader. Please send 'B'
3. Reboot 86Duino. Please send 'R'
4. **Danger: update 86Duino BIOS. Please send 'D'
5. **Danger: update 86Duino system. Please send 'S'
@nonakap
nonakap / nbsd-i386-fix-0f-ae-grp15-db_disasm.c.diff
Created March 3, 2014 05:03
NetBSD/i386: ddb(4): fix Grp15 opcode. more need fix usr.sbin/cpuctl/arch/i386.c and arch/x86/x86/procfs_machdep.c...
Index: sys/arch/i386/i386/db_disasm.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/i386/db_disasm.c,v
retrieving revision 1.40
diff -u -r1.40 db_disasm.c
--- sys/arch/i386/i386/db_disasm.c 14 Mar 2009 21:04:10 -0000 1.40
+++ sys/arch/i386/i386/db_disasm.c 3 Mar 2014 05:01:28 -0000
@@ -159,6 +159,17 @@
"",
};
@nonakap
nonakap / logicool-unifying-receiver.txt
Created June 10, 2014 14:46
Logicool Unifying receiver
uhidev0 at uhub3 port 2 configuration 1 interface 0
uhidev0: Logitech USB Receiver, rev 2.00/12.01, addr 5, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub3 port 2 configuration 1 interface 1
uhidev1: Logitech USB Receiver, rev 2.00/12.01, addr 5, iclass 3/1
uhidev1: 8 report ids
ums0 at uhidev1 reportid 2: 16 buttons, W and Z dirs
wsmouse1 at ums0 mux 0
@nonakap
nonakap / nbsd-drmkms-radeon.patch
Last active August 29, 2015 14:05
NetBSD/amd64 DRMKMS with my patch on ThinkPad X121e (AMD)
Index: sys/external/bsd/drm2/radeon/radeondrmkmsfb.c
===================================================================
RCS file: /cvsroot/src/sys/external/bsd/drm2/radeon/radeondrmkmsfb.c,v
retrieving revision 1.3
diff -u -r1.3 radeondrmkmsfb.c
--- sys/external/bsd/drm2/radeon/radeondrmkmsfb.c 26 Jul 2014 07:02:13 -0000 1.3
+++ sys/external/bsd/drm2/radeon/radeondrmkmsfb.c 9 Aug 2014 03:48:19 -0000
@@ -165,8 +165,13 @@
prop_dictionary_set_uint32(dict, "width", sizes->fb_width);
prop_dictionary_set_uint32(dict, "height", sizes->fb_height);
@nonakap
nonakap / ac3160-pcictl-dump.txt
Created February 16, 2015 13:36
Intel Wi-Fi AC3160 pci register dump on NetBSD
PCI configuration registers:
Common header:
0x00: 0x08b38086 0x00100006 0x02800083 0x00000010
Vendor Name: Intel (0x8086)
Device Name: Dual Band Wireless AC 3160 (0x08b3)
Command register: 0x0006
I/O space accesses: off
Memory space accesses: on
Bus mastering: on
@nonakap
nonakap / ac7260-pcictl-dump.txt
Created February 17, 2015 23:59
Intel Wi-Fi AC7260 pci register dump on NetBSD
PCI configuration registers:
Common header:
0x00: 0x08b18086 0x00100006 0x02800073 0x00000010
Vendor Name: Intel (0x8086)
Device Name: Dual Band Wireless AC 7260 (0x08b1)
Command register: 0x0006
I/O space accesses: off
Memory space accesses: on
Bus mastering: on