Re: Lenovo C930 entry point reboot

2019-12-20 Thread Bobby Johnson
On Wed, Dec 4, 2019 at 11:45 AM Bobby Johnson  wrote:
>
>
>
> > On Nov 30, 2019, at 3:40 PM, Bobby Johnson  wrote:
> >
> > Thanks for the ideas.  This machine will do PXE but apparently only
> > with UEFI.  I tried releases back to 6.2 via a usb drive all with the
> > same result.
> >
> > One other thing I tried was dd-ing a current install image to a
> > partition on the onboard disk.  I get the bootloader, but then it
> > can't find /bsd and I can't ls the contents of the install from the
> > bootloader.
> >
> >> On Thu, Nov 28, 2019 at 3:59 AM Stuart Henderson  
> >> wrote:
> >>
> >>> On 2019/11/27 15:59, Bobby Johnson wrote:
> >>> Hello,
> >>>
> >>> Attempting to install OpenBSD on the Lenovo C930, Kaby Lake laptop.
> >>> When booting I only see the entry point at line and then it restarts.
> >>> It does this with a very recent snapshot on bsd.rd and bsd, booting
> >>> from a usb drive.
> >>
> >> As well as Stefan's suggestion of legacy PXE, maybe try 6.6 or 6.5 as well
> >> instead of the very recent snapshot?
> >>
> >>> I found the NVME wasn't in the pcidevs.  The vendor also wasn't
> >>> listed, HYNIX, 0x151c.  I added the vendor and and device id for the
> >>> card, regenerated the pcidevs.h and pcidevs_data.h and recompiled.
> >>> Is that all that's necessary to get a new nvme to attach?  Anything
> >>> else I could look into to get it booting?
> >>
> >> Kernel drivers attach much later than the "entry point", even if the
> >> NVME isn't being picked up, that wouldn't make it restart here.
> >>
> >>> Below is what I added to pcidevs
> >>>
> >>> vendor  HYNIX   0x1c5c  Hynix
> >>> product HYNIX NVME1 0x1527  NVMe
> >>>
> >>> Bobby
> >>>
> >>
> >> NVME normally attaches by device subclass/interface, this code in
> >> nvme_pci_match() in sys/dev/pci/nvme_pci.c:
> >>
> >>if (PCI_CLASS(pa->pa_class) == PCI_CLASS_MASS_STORAGE &&
> >>PCI_SUBCLASS(pa->pa_class) == PCI_SUBCLASS_MASS_STORAGE_NVM &&
> >>PCI_INTERFACE(pa->pa_class) == NVME_PCI_INTERFACE)
> >>return (1);
> >>
> >> If the class/subclass/interface match then there's no need to look at
> >> vendor/device id. Currently the driver has a special attachment for some
> >> Apple device ids. It's very unlikely that your device needs any change,
> >> but if it did then you'd add it alongside the Apple ones (as well as
> >> updating pcidevs).
> >>
> >> FWIW here's a pcidump -v example of a device which already matches:
> >>
> >> 5:0:0: Samsung SM961/PM961 NVMe
> >>0x: Vendor ID: 144d, Product ID: a804
> >>0x0004: Command: 0006, Status: 0010
> >>0x0008: Class: 01 Mass Storage, Subclass: 08 NVM,
> >>Interface: 02, Revision: 00
> >>
> >> or this in lspci -v
> >>
> >> 05:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe 
> >> SSD Controller SM961/PM961 (prog-if 02 [NVM Express])
> >>
> >> There's no dev/vendor match for this but still:
> >>
> >> nvme0 at pci5 dev 0 function 0 "Samsung SM961/PM961 NVMe" rev 0x00: msix, 
> >> NVMe 1.2
> >> nvme0: SAMSUNG MZVLW256HEHP-000L7, firmware 4L7QCXB7, serial S35ENX0J765205
> >> scsibus1 at nvme0: 2 targets, initiator 0
> >>
>
> Figured out how to do UEFI pxe. Same result though.


I found some recent commits by bluhm@ to get a laptop with maybe a
similar problem working.  His work didn't fix my problem, but the hex
dump command he added to the bootloader gives a possible clue.  When I
boot I get an entry point of 0x1001000.  From the bootloader when I do
a hex dump around that location I see some stuff.  On the VM I'm
testing on I just see everything set to ff at the same location.

I've tried to see if I could change the entry point by altering delta
in sys/arch/amd64/stand/efiboot/exec_i386.c.  But even with a small
change my test vm won't boot with it.

Any clues how I could test further?



[arm64] rcctl start returns (ok) but daemon is not started

2019-12-20 Thread clematis
Synopsis: rcctl start returns (ok) but daemon is not started
Category: rcctl / getaddrinfo
Environment:
System  : OpenBSD 6.6
Details : OpenBSD 6.6-current (GENERIC.MP) #386: Wed Dec 18
14:42:08 MST 2019
 
dera...@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/GENERIC.MP
Architecture: OpenBSD.arm64
Machine : arm64 (it is a pine64-lts)

Description:
Starting the package geomyidae with rcctl start returns an (ok) but no 
geomyidae process is actually being started. Running directly geomyidae 
with options identical to the "daemon_flags=" of the rc script works
just fine.

How-To-Repeat:
I can only repeat this issue on arm64. (Everything works as expected on 
amd64 similar -current from 18th Dec and same package version).
# pkg_add geomyidae
# rcctl start geomyidae
geomyidae(ok)
# ps aux|grep geomyidae 
=> No daemon started despite the (ok) return.
# rcctl -d start geomyidae
doing _rc_parse_conf
doing _rc_quirks
geomyidae_flags empty, using default >-l /var/log/geomyidae.log -u
_geomyidae -g _geomyidae<
doing _rc_parse_conf /var/run/rc.d/geomyidae
doing _rc_quirks
doing rc_check
geomyidae
doing rc_start
doing _rc_wait start
doing rc_check
getaddrinfo (lo0:70): no address associated with name
doing _rc_write_runfile
(ok)

=> what's this getaddrinfo message? 
ifconfig lo0 is absolutely standard
/etc/hosts as well
pf got a set skip on lo0
(same settings on the amd64 box on which I can't reproduce this).
/var/log/geomyidae.log is setup with the right user and group.
pkg_delete does delete properly the rc script. I've tried to reinstall 
the package, install goes OK but still won't start with rcctl. 
 
Fix:
I don't have a fix.
The workaround to start this specific package/daemon is to run it 
manually. 
# geomyidae -l /var/log/geomyidae.log -u _geomyidae -g _geomyidae
(All other available options work too).

Thanks.
Regards,
-- 
clematis (0x7e96fd2400fe7b59)



Re: isakmpd does not create a pcap log file, when started with options -K -L

2019-12-20 Thread Janne Johansson
Den fre 20 dec. 2019 kl 08:44 skrev Ulrich Nanz :

> will there be a patch so I can keep the "stable release"?
> If not, could you give me a hint on how to change from stable to current?
>
>
http://www.openbsd.org/faq/faq5.html#Snapshots


-- 
May the most significant bit of your life be positive.