Re: Building from source

2021-02-17 Thread Chris Zakelj
Sorry about taking so long to get back to this... 'tis just a side 
project to stave off boredom while sitting in hotel rooms with nothing 
"real job" related remaining to get done.


On 12/16/2020 11:34 PM, Bodie wrote:

On 17.12.2020 03:07, Chris Zakelj wrote:

Coming back to my self-teaching on how to (hopefully eventually) be
semi-competent, I'm working on trying to build a git project from
source.  Thus far I've been able to figure out things like functions
having slight name differences (e.g. |pthread_set_name_np()| instead of
|pthread_setname_np()) and missing #includes in .hh files, but getting
stuck on a library issue... about halfway through the first module, I'm
failing with:


Will be nice to know which code/project as maybe someone else work on 
that too


It's a stand-alone torrent tracker called hefur:
https://github.com/abique/hefur
(I'm trying to get this working since it has a much better statistics 
and control mechanism than OpenTracker)



https://www.openbsd.org/report.html
This is definitely not report-worthy... at least until I've truly 
exhausted the relevant reading material.



There are for sure other places with more info regarding that. Maybe
related Makefile is "hardcoded" with paths which are different on OpenBSD.
It offers at least hint to use -v for how it was invokedNemo's response suspects there would be "I'm running on Linux" 
assumptions in a couple of places, and while I haven't seen anything 
"obvious" to that effect so far, the fact that it uses CMake in itself 
does point in that direction.



You can create /etc/mk.conf on your own with stuff you need. Maybe you can
try to follow https://www.openbsd.org/faq/ports/guide.html as these things
are handled on that level and there are tools present like look for
'make port-lib-depends-check'
I suspect this would be where Stuart's "-L/usr/local/lib" should live... 
back to the reading and experimenting!




6.9-BETA Installer crash

2021-02-17 Thread Chris Zakelj
Thought I'd try using the Dell and ARC-1200 combination with 6.9-BETA I 
mentioned a couple months ago 
(https://marc.info/?l=openbsd-misc&m=158259981320518), but still no 
luck.  Dmesg of both 6.9-BETA and verbose FreeBSD 12.1-RELEASE attached 
in case they might be useful. I've also gone backwards to 5.8-RELEASE on 
the off chance I could zero in on a change that broke things, but no 
luck there, either.
Loading kernel...
/boot/kernel/kernel text=0x16bdcc4 data=0x140 data=0x75fe80 syms=[0x8+0x17e098+0
x8+0x19bdd3]
Loading configured modules...
can't find '/boot/entropy'
can't find '/etc/hostid'
---<>---
APIC: Using the MADT enumerator.
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.2-RELEASE r366954 GENERIC amd64
FreeBSD clang version 10.0.1 (g...@github.com:llvm/llvm-project.git 
llvmorg-10.0.1-0-gef32c611aa2)
SRAT: Found CPU APIC ID 0 domain 0: enabled
SRAT: Found CPU APIC ID 1 domain 0: enabled
SRAT: Found memory domain 0 addr 0x0 len 0xa: enabled
SRAT: Found memory domain 0 addr 0x10 len 0xdff0: enabled
SRAT: Found memory domain 0 addr 0x1 len 0x32000: enabled
SRAT: Found CPU APIC ID 2 domain 1: enabled
SRAT: Found CPU APIC ID 3 domain 1: enabled
SRAT: Found memory domain 1 addr 0x0 len 0xa: enabled
SRAT: Overlapping memory entries
SRAT: Found memory domain 1 addr 0x10 len 0xdff0: enabled
SRAT: Overlapping memory entries
SRAT: Found memory domain 1 addr 0x1 len 0x32000: enabled
SRAT: Overlapping memory entries
PPIM 0: PA=0xa, VA=0x8271, size=0x1, mode=0
PPIM 1: PA=0x41ffe7000, VA=0x8272, size=0x1000, mode=0x6
pmap: large map 8 PML4 slots (4096 Gb)
VT(vga): resolution 640x480
Preloaded elf kernel "/boot/kernel/kernel" at 0x8247b000.
Calibrating TSC clock ... TSC clock: 1995040996 Hz
CPU: Dual-Core AMD Opteron(tm) Processor 2212 (1995.04-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x40f12  Family=0xf  Model=0x41  Stepping=2
  
Features=0x178bfbff
  Features2=0x2001
  AMD Features=0xea500800
  AMD Features2=0x1f
  SVM: Features=0x0
Revision=1, ASIDs=64
L1 2MB data TLB: 8 entries, fully associative
L1 2MB instruction TLB: 8 entries, fully associative
L1 4KB data TLB: 32 entries, fully associative
L1 4KB instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 2MB unified TLB: 0 entries, disabled/not present
L2 4KB data TLB: 512 entries, 4-way associative
L2 4KB instruction TLB: 512 entries, 4-way associative
L2 unified cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 16-way associative
real memory  = 17179869184 (16384 MB)
Physical memory chunk(s):
0x0001 - 0x0009efff, 585728 bytes (143 pages)
0x00103000 - 0x001f, 1036288 bytes (253 pages)
0x0270 - 0xdfed1fff, 3715964928 bytes (907218 pages)
0xdfee6000 - 0xdfee7fff, 8192 bytes (2 pages)
0x0001 - 0x000405bbcfff, 12981096448 bytes (3169213 pages)
avail memory = 16632233984 (15861 MB)
MADT: Found CPU APIC ID 0 ACPI ID 1: enabled
SMP: Added CPU 0 (AP)
MADT: Found CPU APIC ID 2 ACPI ID 2: enabled
SMP: Added CPU 2 (AP)
MADT: Found CPU APIC ID 1 ACPI ID 3: enabled
SMP: Added CPU 1 (AP)
MADT: Found CPU APIC ID 3 ACPI ID 4: enabled
SMP: Added CPU 3 (AP)
MADT: Found CPU APIC ID 20 ACPI ID 5: disabled
MADT: Found CPU APIC ID 21 ACPI ID 6: disabled
MADT: Found CPU APIC ID 22 ACPI ID 7: disabled
MADT: Found CPU APIC ID 23 ACPI ID 8: disabled
Event timer "LAPIC" quality 100
LAPIC: ipi_wait() us multiplier 55 (r 3601315 tsc 1995040996)
ACPI APIC Table: 
Package ID shift: 1
L2 cache ID shift: 0
L1 cache ID shift: 0
Core ID shift: 0
INTR: Adding local APIC 1 as a target
INTR: Adding local APIC 2 as a target
INTR: Adding local APIC 3 as a target
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 2 package(s) x 2 core(s)
Package HW ID = 0
Core HW ID = 0
CPU0 (BSP): APIC ID: 0
Core HW ID = 1
CPU1 (AP): APIC ID: 1
Package HW ID = 1
Core HW ID = 2
CPU2 (AP): APIC ID: 2
Core HW ID = 3
CPU3 (AP): APIC ID: 3
APIC: CPU 0 has ACPI ID 1
APIC: CPU 1 has ACPI ID 3
APIC: CPU 2 has ACPI ID 2
APIC: CPU 3 has ACPI ID 4
Pentium Pro MTRR support enabled
x86bios:  IVT 0x00-0x0004ff at 0xf800
x86bios: SSEG 0x09e000-0x09efff at 0xfe3a5000
x86bios: EBDA 0x09f000-0x09 at 0xf809f000
x86bios:  ROM 0x0a-0x0fefff at 0xf80a
arc4random: no preloaded entropy cache
VIMAGE (virtualized network stack) enabled
hostuuid: using ----
ULE: setup cpu 0
ULE: setup cpu 1
ULE: setup cpu 2
UL

Re: Zotac 880GITX-A-E amd64 Onboard NEC USB3 does not work.

2021-02-17 Thread Ed Gray
Perhaps I should have given the subject "Samsung M3 1TB external USB3
HDD is not detected with OpenBSD 6.7 & 6.8".

I realize this problem is difficult to diagnose and fix without my
specific hardware but I am happy to do any necessary diagnostic steps.
I probably won't be able to fix the problem myself but at least it
might be useful if anyone else has a similar USB3 controller. In the
thread "Supported PCI USB 3 Cards" 27/11/20 Theo said "All PCI USB
cards should work fine". Of course I don't expect every card to work
in all cases.

Steps to reproduce:

1. Boot system with USB hard drive connected to USB 3.0 port on rear panel.
2. Run 'dmesg | grep sd' to list detected disks.
3. Check output of step 2:


r...@syspatch-68-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
sd0 at scsibus1 targ 0 lun 0:  naa.5000c5004f87ac86
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
sd1 at scsibus1 targ 1 lun 0:  naa.5392d9e037d6
sd1: 152627MB, 512 bytes/sector, 312581808 sectors
root on sd0a (4ac03c1b1bf56071.a) swap on sd0b dump on sd0b
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

It should be this:


r...@syspatch-68-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
sd0 at scsibus1 targ 0 lun 0:  naa.5000c5004f87ac86
sd0: 953869MB, 512 bytes/sector, 1953525168 sectors
sd1 at scsibus1 targ 1 lun 0:  naa.5392d9e037d6
sd1: 152627MB, 512 bytes/sector, 312581808 sectors
sd2 at scsibus2 targ 1 lun 0: 
serial.04e861b67DF415000108
sd2: 953869MB, 512 bytes/sector, 1953525168 sectors
root on sd0a (4ac03c1b1bf56071.a) swap on sd0b dump on sd0b
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

I am looking for Samsung, M3 Portable, 1301 here. You can see that
when properly detected it shows up as sd2 on my system as I have two
SATA disks installed.

I have found the following information about this PCI-E USB3 controller:

It is really an NEC / renesas uPD720200 USB 3.0 Host Controller and is
found on several motherboards made by Zotac, Gigabyte etc.

https://www.renesas.com/us/en/products/interface-connectivity/usb-switches-hubs/upd720201-usb-30-host-controller

I found this page on AskUbuntu where somebody fixed an issue by
updating the firmware on the card but I don't know if this applies to
built-in chips on the motherboard. I'm also not sure if it matches my
model and whether to trust the file download provided.

https://askubuntu.com/questions/161862/nec-upd720200-usb-3-0-not-working-on-ubuntu-12-04

In any case booting to windows and flashing the card may not be a
solution for everyone especially those using open-source systems.

When the drive is connected to a USB 2.0 port it works as expected. In
that case it is using the AMD / ATI chipset: ATI, EHCI root hub.

Here is the output of 'usbdevs -v' with the USB 2.0 connection:

usbdevs -v
Controller /dev/usb0:
addr 01: 1033: NEC, xHCI root hub
 super speed, self powered, config 1, rev 1.00
 driver: uhub0
Controller /dev/usb1:
addr 01: 1002: ATI, EHCI root hub
 high speed, self powered, config 1, rev 1.00
 driver: uhub1
Controller /dev/usb2:
addr 01: 1002: ATI, EHCI root hub
 high speed, self powered, config 1, rev 1.00
 driver: uhub2
addr 02: 04e8:61b6 Samsung M3 Portable, Samsung M3 Portable
 high speed, self powered, config 1, rev 13.01, iSerial DFCB7DF415000108
 driver: umass0
addr 03: 1a40:0101 Terminus Technology, USB 2.0 Hub
 high speed, self powered, config 1, rev 1.11
 driver: uhub8
addr 04: 05e3:0608 Genesys Logic, USB2.0 Hub
 high speed, self powered, config 1, rev 32.98
 driver: uhub9
addr 05: 1bcf:0005 Sunplus, USB Optical Mouse
 low speed, power 98 mA, config 1, rev 0.14
 driver: uhidev0
addr 06: 046d:c31b Logitech, Logitech USB Keyboard
 low speed, power 98 mA, config 1, rev 60.00
 driver: uhidev1
 driver: uhidev2
Controller /dev/usb3:
addr 01: 1002: ATI, EHCI root hub
 high speed, self powered, config 1, rev 1.00
 driver: uhub3
Controller /dev/usb4:
addr 01: 1002: ATI, OHCI root hub
 full speed, self powered, config 1, rev 1.00
 driver: uhub4
Controller /dev/usb5:
addr 01: 1002: ATI, OHCI root hub
 full speed, self powered, config 1, rev 1.00
 driver: uhub5
Controller /dev/usb6:
addr 01: 1002: ATI, OHCI root hub
 full speed, self powered, config 1, rev 1.00
 driver: uhub6
Controller /dev/usb7:
addr 01: 1002: ATI, OHCI root hub
 full speed, self powered, config 1, rev 1.00
 driver: uhub7

Here's the 'pcidump -v' in case it wasn't clear before:

Domain /dev/pci0:
 0:0:0: AMD RS880 Host
0x: Vendor ID: 1022, Product ID: 9601
0x0004: Command: 0006, Status: 2230
0x0008:Class: 06 Bridge, Subclass: 00 Host,
Interface: 00, Revision: 

Re: pf faq for openBSD 5.9

2021-02-17 Thread Francisco Valladolid H.
Hi, I resolved my problem with pf

I search in: Index of /pub/OpenBSD/doc/history/


I'm searching support for my old soekris 4501

Best regards.

On Wed, Feb 17, 2021 at 2:07 PM Allan Streib  wrote:

> "Francisco Valladolid H."  writes:
>
> > I'm searching the PF FAQ for OpenBSD 5.9 in the history docs without
> > success.
>
> Did you try archive.org?
>
>
> https://web.archive.org/web/20160430175649/https://www.openbsd.org/faq/pf/index.html
>
> Allan
>


-- 
Francisco Valladolid H.
 -- http://blog.bsdguy.net - Jesus Christ follower.


Re: pf faq for openBSD 5.9

2021-02-17 Thread Allan Streib
"Francisco Valladolid H."  writes:

> I'm searching the PF FAQ for OpenBSD 5.9 in the history docs without
> success.

Did you try archive.org?

https://web.archive.org/web/20160430175649/https://www.openbsd.org/faq/pf/index.html

Allan



Re: pf faq for openBSD 5.9

2021-02-17 Thread Francisco Valladolid H.
Thanks for reply.

On Wed, Feb 17, 2021 at 1:31 PM Tom Smyth 
wrote:

> Francisco
>
> Suggest you update ... there are a number options for running modern
> supported openbsd on flash
>

 I think my old soekrisk 4501 don't have support for new BSD releases.


>
> That aside
>
> You can try
> man pf.conf or man pf on the router as the manpages are probably  installed
>

thank you.

>
>
>
>
> On Wednesday, 17 February 2021, Francisco Valladolid H. 
> wrote:
>
>> Hi folks
>>
>> I'm searching the PF FAQ for OpenBSD 5.9 in the history docs without
>> success.
>> I'm setting and Soekris 4501 router for a small office and the
>> flashrd images support
>> OpenBSD 5.9.
>>
>> Thank you for reading.
>>
>> --
>> Francisco Valladolid H.
>>  -- http://blog.bsdguy.net - Jesus Christ follower.
>>
>
>
> --
> Kindest regards,
> Tom Smyth.
>


-- 
Francisco Valladolid H.
 -- http://blog.bsdguy.net - Jesus Christ follower.


pf faq for openBSD 5.9

2021-02-17 Thread Francisco Valladolid H.
Hi folks

I'm searching the PF FAQ for OpenBSD 5.9 in the history docs without
success.
I'm setting and Soekris 4501 router for a small office and the
flashrd images support
OpenBSD 5.9.

Thank you for reading.

-- 
Francisco Valladolid H.
 -- http://blog.bsdguy.net - Jesus Christ follower.


Re: Happy Hacking keyboard not working anymore

2021-02-17 Thread Norman Golisz
On Wed Feb 17 2021 18:39, Norman Golisz wrote:
> On Tue Feb 16 2021 11:10, Masato Asou wrote:
> > I am useing Happy Hacking keyboard model:PD-KB400B and upgraded
> > OpenBSD current by
> > http://ftp.riken.jp/pub/OpenBSD/snapshots/amd64/bsd.rd a few minutes
> > ago.
> > 
> > Now, my OpenBSD box works fine and I can use Happy Hacking keyboard.
> > 
> > Is your keyboard or USB port broken?
> 
> No, it worked just fine on another computer with -RELEASE.
> 
> But with the latest snapshot the keyboard is working properly again!

I suspect this is due to mglocker's backout of changes in ukbd(4).

I'd like to share my keyboard model and dmesg in case it helps:

HHKB Professional Classic PD-KB401W

OpenBSD 6.9-beta (GENERIC) #329: Tue Feb 16 09:49:35 MST 2021
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 16957259776 (16171MB)
avail mem = 16428077056 (15667MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x8a996000 (107 entries)
bios0: vendor American Megatrends Inc. version "2811" date 05/27/2020
bios0: Wortmann_AG 1009703;2110128
acpi0 at bios0: ACPI 6.1
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT FIDT MCFG MSDM SSDT SSDT HPET SSDT SSDT UEFI 
LPIT SSDT SSDT DBGP DBG2 SSDT TPM2 ASF! WSMT
acpi0: wakeup devices SIO1(S3) UAR1(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) 
RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) 
RP07(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-9500 CPU @ 3.00GHz, 2994.96 MHz, 06-9e-0a
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe000, bus 0-255
acpihpet0 at acpi0: 2399 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (RP01)
acpiprt5 at acpi0: bus -1 (RP02)
acpiprt6 at acpi0: bus -1 (RP03)
acpiprt7 at acpi0: bus -1 (RP04)
acpiprt8 at acpi0: bus -1 (RP05)
acpiprt9 at acpi0: bus 3 (RP06)
acpiprt10 at acpi0: bus -1 (RP07)
acpiprt11 at acpi0: bus -1 (RP08)
acpiprt12 at acpi0: bus 5 (RP09)
acpiprt13 at acpi0: bus -1 (RP10)
acpiprt14 at acpi0: bus -1 (RP11)
acpiprt15 at acpi0: bus -1 (RP12)
acpiprt16 at acpi0: bus -1 (RP13)
acpiprt17 at acpi0: bus -1 (RP14)
acpiprt18 at acpi0: bus -1 (RP15)
acpiprt19 at acpi0: bus -1 (RP16)
acpiprt20 at acpi0: bus 1 (RP17)
acpiprt21 at acpi0: bus -1 (RP18)
acpiprt22 at acpi0: bus -1 (RP19)
acpiprt23 at acpi0: bus -1 (RP20)
acpiprt24 at acpi0: bus -1 (RP21)
acpiprt25 at acpi0: bus -1 (RP22)
acpiprt26 at acpi0: bus -1 (RP23)
acpiprt27 at acpi0: bus -1 (RP24)
acpiec0 at acpi0: not present
acpipci0 at acpi0 PCI0: 0x0010 0x0011 0x
"ACPI000E" at acpi0 not configured
acpibtn0 at acpi0: SLPB
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"INT33A1" at acpi0 not configured
acpibtn1 at acpi0: PWRB
"MSFT0101" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpipwrres0 at acpi0: USBC, resource for XDCI
acpipwrres1 at acpi0: V0PR
acpipwrres2 at acpi0: V1PR
acpipwrres3 at acpi0: V2PR
acpipwrres4 at acpi0: WRST
acpicpu0 at acpi0: C2(500@79 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpipwrres5 at acpi0: FN00, resource for FAN0
acpipwrres6 at acpi0: FN01, resource for FAN1
acpipwrres7 at acpi0: FN02, resource for FAN2
acpipwrres8 at acpi0: FN03, resource for FAN3
acpipwrres9 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 119 degC
acpipwrres10 at acpi0: PIN_
acpivideo0 at acpi0: GFX0
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 2994 MHz: speeds: 3001, 3000, 2800, 2700, 2500, 2400, 
2200, 2100, 1900, 1700, 1600, 1400, 1300, 1100, 1000, 800 MHz
pci0 at

Re: Happy Hacking keyboard not working anymore

2021-02-17 Thread Norman Golisz
On Tue Feb 16 2021 11:10, Masato Asou wrote:
> I am useing Happy Hacking keyboard model:PD-KB400B and upgraded
> OpenBSD current by
> http://ftp.riken.jp/pub/OpenBSD/snapshots/amd64/bsd.rd a few minutes
> ago.
> 
> Now, my OpenBSD box works fine and I can use Happy Hacking keyboard.
> 
> Is your keyboard or USB port broken?

No, it worked just fine on another computer with -RELEASE.

But with the latest snapshot the keyboard is working properly again!

Thanks for your help, though!

Norman



Re: PC Engines APU2 boot problem

2021-02-17 Thread Raimo Niskanen
On Wed, Feb 17, 2021 at 12:36:57PM +0100, Stefan Sperling wrote:
> On Wed, Feb 17, 2021 at 12:08:52PM +0100, Raimo Niskanen wrote:
> > Hello misc!
> > 
> > I have problem booting an APU2 from SD card and USB stick.
> > It boots fine from the mSATA disk where I have the OpenBSD installation
> > that I have upgraded several times using sysupgrade(8).
> > 
> > I have tried to write install67.fs and install68.img to an SD card and to
> > an USB stick from a Linux machine using e.g
> > dd if=install67.fs of=/dev/sdc bs=1M
> > 
> > On the APU:s serial console, I press [F10] to get a boot prompt, and then
> > select the SD card or the USB stick.  The kernel is loaded and the last
> > printout is "Entry point: 0x..." something.  The next line
> > [ELF ... whatnot] does not come.  After a while the APU resets and boots
> > again, or sometimes hangs.
> 
> Before loading a kernel the serial console needs to be enabled with:
> 
>   stty com0 115200
>   set tty com0
> 
> On an installed system /etc/boot.conf is usually set up to do this
> automatically but manual setup is still required when booting from
> other media.

Oh, bummer!  Of course.  I hope it is such a stupid mistake!
I will try when I get a new opportunity...

Thank you very much.

Cheers
-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



Re: FVWM terminal emulator transparency issue in -current

2021-02-17 Thread Luke Small
Thanks! I just made it run at opacity .55 and I LOVE IT! Thanks!

On Mon, Feb 15, 2021 at 11:25 PM Thomas Frohwein 
wrote:

> On Mon, Feb 15, 2021 at 05:03:55PM -0600, Luke Small wrote:
> > I'm running fvwm window manager and I just switched to -current. Roxterm
> is
> > totally messed up, won't do transparent background and I tried
> > xfce4-terminal and it says it won't do transparent backgrounds because
> > compositing is disabled Sure first-world problems, but I REALLY want
> > fvwm to do transparent terminal emulators!
>
> You can just run a compositor. xcompmgr(1) is in the X install. I
> personally
> use compton from the package of the same name. picom (also in packages) is
> supposed to be a successor to compton. They allow more compositor tricks
> than xompmgr.
>
> I've never got application's transparency settings to work well, so my
> .kshrc (set in ENV in .profile) contains lines calling transset-df from
> the package of the same name:
>
> [ -n "$XTERM_VERSION" ] && transset-df --id "$WINDOWID" 0.85 > /dev/null
> [ -n "$KITTY_WINDOW_ID" ] && transset-df --id "$WINDOWID" 0.85 > /dev/null
>


PC Engines APU2 boot problem

2021-02-17 Thread Raimo Niskanen
Hello misc!

I have problem booting an APU2 from SD card and USB stick.
It boots fine from the mSATA disk where I have the OpenBSD installation
that I have upgraded several times using sysupgrade(8).

I have tried to write install67.fs and install68.img to an SD card and to
an USB stick from a Linux machine using e.g
dd if=install67.fs of=/dev/sdc bs=1M

On the APU:s serial console, I press [F10] to get a boot prompt, and then
select the SD card or the USB stick.  The kernel is loaded and the last
printout is "Entry point: 0x..." something.  The next line
[ELF ... whatnot] does not come.  After a while the APU resets and boots
again, or sometimes hangs.

The BIOS is factory installed SeaBIOS 1.10... something.

Can I expect a BIOS upgrade (flashrom) to solve this?  I might have had 2
USB sticks in when booting, might that provoke a bug?

This machine should boot OpenBSD 6.7 from at least an USB stick, right?

Cheers
-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



Re: PC Engines APU2 Leds control

2021-02-17 Thread Raimo Niskanen
I solved this problem a while ago using
https://github.com/pcengines/apu_gpio_lib
since gpio(4), that they linked to, only seems to work for APU1.
I have no such device mentioned in dmesg(8) on my APU2,
and gpioctl(8) says all /dev/gpio? devices are not configured.

OpenBSD does not allow direct memory access in default securelevel(7),
so I wrote a small daemon that I start from rc.securelevel(8) which
reads one byte commands from a fifo to control the leds.

In my case ifstated(8) writes to the fifo to show status.
This solution works just fine for me.

Unfortunately the code is in a lousy state build-wise, so I need to clean
it up and for example create a pull request for PCEngines' repository
to add this daemon as an OpenBSD example.  Even if they would not
accept a pull request it would be published my GitHub account...

/ Raimo Niskanen


On Fri, May 08, 2020 at 09:43:38PM +0200, Sacha wrote:
> Dear all,
> 
> I'm enjoying OpenBSD on PC Engines hardwares called APU2:
> https://www.pcengines.ch/apu2.htm
> 
> There is 3 led, which could be very usefull to deliver informations to
> the endusers, but I never could control them with OpenBSD /o\
> 
> Is any way to make it work ?
> 
> On PCEngines forum I got the following answer:
> 
> >You cannot control the GPIOs on J20, because those are are driven by
> a NCT5104D and wbsio(4) only supports hardware monitoring.
> >The LEDs OTOH are on GPIOs of the AMD FCH. I am not a hardware guy, and
> OpenBSD seems to have a lot of drivers which attach - but probably none
> for those GPIOs.
> >If you want to dig deeper, there is AMD documentation for the FCH and
> also a linux driver called "amd-fch-gpio"
> 
> >Update: There seems to be somebody, who worked on this a while ago on
> OpenBSD: https://marc.info/?l=openbsd-tech&m=155355977613046
> 
> 
> Sacha.

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



Re: PC Engines APU2 boot problem

2021-02-17 Thread Stefan Sperling
On Wed, Feb 17, 2021 at 12:08:52PM +0100, Raimo Niskanen wrote:
> Hello misc!
> 
> I have problem booting an APU2 from SD card and USB stick.
> It boots fine from the mSATA disk where I have the OpenBSD installation
> that I have upgraded several times using sysupgrade(8).
> 
> I have tried to write install67.fs and install68.img to an SD card and to
> an USB stick from a Linux machine using e.g
> dd if=install67.fs of=/dev/sdc bs=1M
> 
> On the APU:s serial console, I press [F10] to get a boot prompt, and then
> select the SD card or the USB stick.  The kernel is loaded and the last
> printout is "Entry point: 0x..." something.  The next line
> [ELF ... whatnot] does not come.  After a while the APU resets and boots
> again, or sometimes hangs.

Before loading a kernel the serial console needs to be enabled with:

  stty com0 115200
  set tty com0

On an installed system /etc/boot.conf is usually set up to do this
automatically but manual setup is still required when booting from
other media.



Re: Intel wifi ipw showing up but not working

2021-02-17 Thread Stefan Sperling
On Tue, Feb 16, 2021 at 11:51:12PM +0100, Riccardo Mottola wrote:
> Hi Stefan,
> 
> 
> Stefan Sperling wrote:
> > Sounds like a wrong key, or the wrong type of crypto.
> > Are you the AP is using WEP? Perhaps you need 'wpakey' instead of 'nwkey'?
> 
> If the key is wrong or the crypto is wrong, would the interface still be
> active and connected?

With WEP, if the key is wrong, the interface will appear connected
but it will be unable to communicate. There is no setup phase in WEP.
You either encrypt and decrypt packets with the correct key, or you
don't.

With WPA, the link should no reach 'active' state unless you are using
the correct passphrase. This is because the AP and client will try to
negotiate a per-client session key, and if this key cannot be obtained,
the link will stay down. The interface flags will show UP, however.

> I am sure the AP is using WEP: I connect to that access point with many
> computer since years.
> Also, I tried connectiong to another access point which has WPA, same
> failure.

OK, thanks for confirming.

> The script proves that the network settings if applied are correct and do
> work and that I do not "mistype"!

Yes, since the WPA link is 'active' the key should be correct.

The next step is getting a DHCP lease.
If DHCP does not manage to obtain a lease, something is wrong.
Perhaps this driver was broken somehow for multicast encryption or decryption.

What does this command print before, and after, an attempt to connect?

  netstat -W ipw0

What does this command display while you are trying to connect?

  tcpdump -n -i ipw0 -y IEEE802_11_RADIO -D in -s 4096