Re: openbsd on nanopi R5C?

2023-04-03 Thread Jim Rowan



> On Apr 3, 2023, at 1:39 PM, Harald Dunkel  wrote:
> 
> Hi folks,
> 
> has anybody succeeded in running OpenBSD on the Nanopi R5C?
> https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5C
> 

I have one.  I spent 5 minutes and it didn’t jump up and come alive… haven’t 
tried very seriously yet.



Re: A stupid question, re: xargs(1)

2017-10-14 Thread Jim Rowan

> On Oct 14, 2017, at 4:02 PM, Abel Abraham Camarillo Ojeda 
>  wrote:
> 
> find . |  grep something | more filters | perl -ne 'chomp; print
> "$_\0"'  | xargs -0 ...

Nice!  *Now* can we stop talking about it?

Re: Blocking users who change their IP address

2017-10-06 Thread Jim Rowan

> On Oct 5, 2017, at 4:39 PM, Eric Johnson  wrote:
> 
> On Fri, 6 Oct 2017, Mihai Popescu wrote:
>> 
>> Very romantic, indeed, but it has nothing to do with OpenBSD.
> 
…

> Based on your response, I assume that OpenBSD must be useless for trying
> to solve that problem and I shall have to look elsewhere.
> 
> Eric
> 

I would suggest that you shouldn't believe everything you read on the 
internet^h^h^h^h^h^h^h^hm...@openbsd.org list.
:)



Re: OpenBSD embedded? (was: OpenBSD 5.6-current on ASUS Chromebox)

2014-12-04 Thread Jim Rowan
On Dec 3, 2014, at 11:49 AM, Alan McKay alan.mc...@gmail.com wrote:

 
 Does anyone know of a similar device with 2 NICs that might be
 suitable as a home firewall?
 

If inexpensive is interesting and you don’t mind doing some minor HW assembly, 
you might want to look into NeoWare CA22 (as I recall the CA2 model is another 
option); they’re older “thin-client boxes.  They have a fanless 1Ghz via c7 … 
one PCI slot, and idle about 12W (max I think is about 18).  You can find them 
on Ebay for ~$25.  Pick up a PCI riser, a dual port intel board, and you have a 
pretty nice firewall for well under $50.

OpenBSD 5.6-stable (FLASHRD) #72: Sat Oct 11 13:37:21 MDT 2014
r...@mina.nmedia.net:/usr/src/sys/arch/i386/compile/FLASHRD
cpu0: VIA C7 Processor 1000MHz (CentaurHauls 686-class) 1 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE,NXE,SSE3,EST,TM2,xTPR
real mem  = 518418432 (494MB)
avail mem = 496074752 (473MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/22/08, BIOS32 rev. 0 @ 0xfb180, SMBIOS 
rev. 2.3 @ 0xf0800 (33 entries)
bios0: vendor Phoenix Technologies, LTD version 6.00 PG date 01/22/2008
bios0: Neoware Inc. Thin Client
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP
acpi0: wakeup devices PCI0(S5) USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) 
USB5(S3) USB6(S3) USB7(S3) LAN0(S5) AC97(S5) UAR1(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xda00 0xd/0x1800
cpu0 at mainbus0: (uniprocessor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: RNG AES AES-CTR SHA1 SHA256 RSA
cpu0: unknown Enhanced SpeedStep CPU, msr 0x08100a1308000a13
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 998 MHz: speeds: 1333, 1067 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 VIA CN700 Host rev 0x00
viaagp0 at pchb0: v3
agp0 at viaagp0: aperture at 0xe800, size 0x1000
pchb1 at pci0 dev 0 function 1 VIA CN700 Host rev 0x00
pchb2 at pci0 dev 0 function 2 VIA CN700 Host rev 0x00
pchb3 at pci0 dev 0 function 3 VIA PT890 Host rev 0x00
pchb4 at pci0 dev 0 function 4 VIA CN700 Host rev 0x00
pchb5 at pci0 dev 0 function 7 VIA CN700 Host rev 0x00
ppb0 at pci0 dev 1 function 0 VIA VT8377 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 VIA S3 Unichrome PRO IGP rev 0x01
vga1: aperture needed
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
em0 at pci0 dev 8 function 0 Intel 82546EB rev 0x01: irq 11, address 
00:11:0a:5f:eb:34
em1 at pci0 dev 8 function 1 Intel 82546EB rev 0x01: irq 10, address 
00:11:0a:5f:eb:35
pciide0 at pci0 dev 15 function 0 VIA VT82C571 IDE rev 0x06: ATA133, channel 
0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: TS2GCF133
wd0: 1-sector PIO, LBA, 1911MB, 3915072 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 11
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: irq 11
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: irq 10
uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: irq 10
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq 5
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00: SMI
iic0 at viapm0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x60: irq 5
ac97: codec id 0x56494161 (VIA Technologies VT1612A)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
audio0 at auvia0
vr0 at pci0 dev 18 function 0 VIA RhineII-2 rev 0x78: irq 11, address 
00:e0:c5:48:89:d1
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 10: OUI 
0x004063, model 0x0032
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 VIA UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 VIA UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 VIA UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 VIA UHCI root hub rev 1.00/1.00 addr 1
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83697HF rev 0x12
lm1 at wbsio0 port 0x290/8: W83697HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
vscsi0 at root
scsibus1 at 

unknown ethernet: intel dual-port gig copper

2014-10-25 Thread Jim Rowan

Hi,

On 5.6 (I haven't tried this with anything older yet) my network card  
isn't recognized.   It's an intel dual-port gig-e card.


unknown vendor 0x8096 product 0x1010 (class network subclass ethernet,  
rev 0x11) at pci0 dev 8 function 0 not configured


Can I do something to use this card?



Here's the full dmesg:

OpenBSD 5.6-stable (FLASHRD) #72: Sat Oct 11 13:37:21 MDT 2014
r...@mina.nmedia.net:/usr/src/sys/arch/i386/compile/FLASHRD
cpu0: VIA C7 Processor 1000MHz (CentaurHauls 686-class) 1 GHz
cpu0:  
FPU 
,V86 
,DE 
,PSE 
,TSC 
,MSR 
,PAE 
,MCE 
,CX8 
,SEP 
,MTRR 
,PGE,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE,NXE,SSE3,EST,TM2,xTPR

real mem  = 518418432 (494MB)
avail mem = 496074752 (473MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 01/22/08, BIOS32 rev. 0 @  
0xfb180, SMBIOS rev. 2.3 @ 0xf0800 (33 entries)
bios0: vendor Phoenix Technologies, LTD version 6.00 PG date  
01/22/2008

bios0: Neoware Inc. Thin Client
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP
acpi0: wakeup devices PCI0(S5) USB0(S3) USB1(S3) USB2(S3) USB3(S3)  
USB4(S3) USB5(S3) USB6(S3) USB7(S3) LAN0(S5) AC97(S5) UAR1(S5)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc/0xda00
cpu0 at mainbus0: (uniprocessor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: RNG AES AES-CTR SHA1 SHA256 RSA
cpu0: unknown Enhanced SpeedStep CPU, msr 0x08100a1308000a13
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 998 MHz: speeds: 1333, 1067 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 VIA CN700 Host rev 0x00
viaagp0 at pchb0: v3
agp0 at viaagp0: aperture at 0xe800, size 0x1000
pchb1 at pci0 dev 0 function 1 VIA CN700 Host rev 0x00
pchb2 at pci0 dev 0 function 2 VIA CN700 Host rev 0x00
pchb3 at pci0 dev 0 function 3 VIA PT890 Host rev 0x00
pchb4 at pci0 dev 0 function 4 VIA CN700 Host rev 0x00
pchb5 at pci0 dev 0 function 7 VIA CN700 Host rev 0x00
ppb0 at pci0 dev 1 function 0 VIA VT8377 AGP rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 VIA S3 Unichrome PRO IGP rev 0x01
vga1: aperture needed
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
unknown vendor 0x8096 product 0x1010 (class network subclass ethernet,  
rev 0x11) at pci0 dev 8 function 0 not configured
pciide0 at pci0 dev 15 function 0 VIA VT82C571 IDE rev 0x06: ATA133,  
channel 0 configured to compatibility, channel 1 configured to  
compatibility

wd0 at pciide0 channel 0 drive 0: TS2GCF133
wd0: 1-sector PIO, LBA, 1911MB, 3915072 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
pciide0: channel 1 disabled (no drives)
uhci0 at pci0 dev 16 function 0 VIA VT83C572 USB rev 0x81: irq 11
uhci1 at pci0 dev 16 function 1 VIA VT83C572 USB rev 0x81: irq 11
uhci2 at pci0 dev 16 function 2 VIA VT83C572 USB rev 0x81: irq 5
uhci3 at pci0 dev 16 function 3 VIA VT83C572 USB rev 0x81: irq 5
ehci0 at pci0 dev 16 function 4 VIA VT6202 USB rev 0x86: irq 10
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 VIA EHCI root hub rev 2.00/1.00 addr 1
viapm0 at pci0 dev 17 function 0 VIA VT8237 ISA rev 0x00: SMI
iic0 at viapm0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5 SO- 
DIMM

auvia0 at pci0 dev 17 function 5 VIA VT8233 AC97 rev 0x60: irq 10
ac97: codec id 0x56494161 (VIA Technologies VT1612A)
ac97: codec features headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
audio0 at auvia0
vr0 at pci0 dev 18 function 0 VIA RhineII-2 rev 0x78: irq 11,  
address 00:e0:c5:48:89:d1
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 10: OUI  
0x004063, model 0x0032

usb1 at uhci0: USB revision 1.0
uhub1 at usb1 VIA UHCI root hub rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 VIA UHCI root hub rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 VIA UHCI root hub rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 VIA UHCI root hub rev 1.00/1.00 addr 1
isa0 at mainbus0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: W83697HF rev 0x12
lm1 at wbsio0 port 0x290/8: W83697HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
uhidev0 at uhub1 port 1 configuration 1 interface 0 CHICONY USB  
Keyboard rev 1.10/1.03 addr 2

uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 1 configuration 1 interface 1 CHICONY USB  
Keyboard rev 1.10/1.03 addr 2

uhidev1: iclass 3/1
ums0 

Re: unknown ethernet: intel dual-port gig copper

2014-10-25 Thread Jim Rowan

On Oct 25, 2014, at 9:47 PM, Jonathan Gray wrote:


On Sat, Oct 25, 2014 at 07:35:46PM -0500, Jim Rowan wrote:

Hi,

On 5.6 (I haven't tried this with anything older yet) my network card
isn't recognized.   It's an intel dual-port gig-e card.

unknown vendor 0x8096 product 0x1010 (class network subclass  
ethernet,

rev 0x11) at pci0 dev 8 function 0 not configured

Can I do something to use this card?


I can't find any mention of any other Intel device with a 0x8096
vendor id.  0x8086 0x1010 is 82546EB Copper, what does the chip
have printed on it?


That's what it is.  I had been using the flashrd 5.6 image earlier..  
and apparently this weirdness has something to do with that.  Booting  
from a fresh 5.5 install recognizes it properly and shows this message:


em0 at pci0 dev 8 function 0 Intel 82546EB rev 0x01: irq 11, address  
00:11:0a:5f:eb:34
em1 at pci0 dev 8 function 1 Intel 82546EB rev 0x01: irq 10, address  
00:11:0a:5f:eb:35


That's really odd... I cut/paste that line directly from the serial  
console.. I don't know how it got to be showing 0x8096 instead of  
0x8086.


Sorry for the false alarm!   (I'll still have to track down what's  
wrong with flashrd... as I want to use it.)




system resets with openbsd flash drive

2014-03-31 Thread Jim Rowan

Hi,

I'm trying to resurrect some neoware ca22 thinclient boxes, and seeing  
strange behavior I don't know how to interpret.


I have a bootable 5.4 usb stick.   If I put that in the box, right  
after the initial bios boot screen (after it says via c7 1.0Ghz),  
the system resets.  This is before it tests the memory or probes for  
devices.   If I go into bios setup, and *then* plug the usb stick in,  
it resets immediately.  If I let it start booting windows xp (which is  
on it's flash DOM), and then plug it in, it continues to boot.


Suspicious that it was the usb drive itself, I tried three separate  
brands.  Same thing.
I put grml on one of them, it boots fine.  I put nanobsd on the same  
one; again boots fine.   With openbsd on the usb drive, and I wipe out  
the beginning of the drive with dd, it then does not reset.


I haven't yet managed to get a dmesg captured, but it's a rather  
unremarkable via c7 motherboard.  I've tried changing all the bios  
settings to the most conservative, disabled everything I can, ... same  
thing.  Oh, and I've tried a different box (I have several of them)  
and a different power supply; neither had any effect.


One of the confusing things is the reset that happens when the usb  
drive is plugged in while in the bios setup...


What can I do next?