Re: Mounting encrypted drive on boot

2020-06-02 Thread Adam Steen
‐‐‐ Original Message ‐‐‐ On Wednesday, June 3, 2020 7:27 AM, Chris Narkiewicz wrote: > My setup consist of OpenBSD 6.7 with full drive encryption using > softraid, configured as described in FAQ: > > /dev/sd0a - encrypted volume > /dev/sd1 - decrypted > > I have additional need to mount

tap(4) remaining active (status: active) after process exits

2020-02-02 Thread Adam Steen
Hi I have a process that uses a tap(4) interface, when the process exits, i expected the interface be have status "no carrier", it is still "active". I setup the tap interface as follows cd /dev/ doas ./MAKEDEV tap100 doas ifconfig tap100 inet 10.0.0.1 netmask 255.255.255.0 in code the

Re: User who invoke doas

2019-05-02 Thread Adam Steen
On Thu, May 2, 2019 at 20:17, Nick Holland wrote: > On 5/1/19 10:28 PM, Adam Steen wrote: >> Hi >> >> In a shell script invoked by doas, is it possible to find which user >> invoke the script? my search a the moment has come up empty. > > most likely place would

User who invoke doas

2019-05-01 Thread Adam Steen
Hi In a shell script invoked by doas, is it possible to find which user invoke the script? my search a the moment has come up empty. Cheers Adam

Unabled to build Xenocara

2019-04-02 Thread Adam Steen
Hi All I am trying to update my system from the latest snapshot (success) and then rebuild everything from source (done many times before). following release(8), i have been able to build the kernel and base, but not Xenocara, i get the following error. checking whether libxcb was compiled

Re: Determining if a package is installed (regardless of version)

2019-03-27 Thread Adam Steen
‐‐‐ Original Message ‐‐‐ On Wednesday, March 27, 2019 2:58 PM, Anton Lindqvist wrote: > On Wed, Mar 27, 2019 at 02:24:24AM +0000, Adam Steen wrote: > > > Hi All > > I need to determine if a package is installed, lets use autoconf as an > > example > > I c

Determining if a package is installed (regardless of version)

2019-03-26 Thread Adam Steen
Hi All I need to determine if a package is installed, lets use autoconf as an example I can run "pkg_info -mqP" and get back list of packages, i.e. devel/autoconf/2.69 shells/bash sysutils/coreutils x11/dmenu x11/dstat x11/dwm . . . devel/git,-main devel/gmp,-main sysutils/firmware/intel

Porting some software to OpenBSD

2019-01-05 Thread Adam Steen
Hi All I have a question about string (printf) formatting. I have a variable 'uint64_t freq' which is printed with 'log(DEBUG, "Solo5: clock_init(): freq=%lu\n", freq);' but am getting the following error ' error: format specifies type 'unsigned long' but the argument has type 'uint64_t'

Re: vmm(4) update EPT to match mprotect in intial elf load. (Solo5 using vmm, doesn't involved vmd)

2018-12-13 Thread Adam Steen
‐‐‐ Original Message ‐‐‐ On Thursday, December 13, 2018 9:36 AM, Mike Larkin wrote: > On Thu, Dec 13, 2018 at 12:41:10AM +0000, Adam Steen wrote: > > > Hi All > > The Solo5/Mirage tender is in the process of enforcing that guest executable > > code i

vmm(4) update EPT to match mprotect in intial elf load. (Solo5 using vmm, doesn't involved vmd)

2018-12-12 Thread Adam Steen
Hi All The Solo5/Mirage tender is in the process of enforcing that guest executable code is not also writable (W^X), but it looks like vmm is not updating EPT to match the prot from mprotect(). further information https://github.com/Solo5/solo5/issues/303#issuecomment-446503933 copied here for

MirageOS on OpenBSD

2018-09-13 Thread Adam Steen
Hi All As some of you know i have been working at making MirageOS work on OpenBSD, It now works. If you don't know what it is, please see [1], if you don't care, please stop reading. I have built and tested all applications, device-usage and tutorials in mirage-skeleton. You maybe asking how

Re: OCaml/Opam and parsexp ( or num)

2018-09-04 Thread Adam Steen
Sorry for the noise, this was a stack size problem, fixed with ulimit. Now to figure why the patch fails to apply with the ocaml patch. Cheers Adam ‐‐‐ Original Message ‐‐‐ On September 4, 2018 3:31 PM, Adam Steen wrote: > Hi All > > I am trying to install mirage[1] with opa

OCaml/Opam and parsexp ( or num)

2018-09-04 Thread Adam Steen
Hi All I am trying to install mirage[1] with opam install mirage but building parsexp v0.11.0 fails with SEGV [2]. This is on an amd64/current machine. I am trying this with an OPAM 2 built from source. I tried with chrisz@ patch for ocaml 4.07 et al [3] but num fails to build when the

iridium --enable-unveil and extensions

2018-08-26 Thread Adam Steen
Hi all I think i must be missing something, i am unable to get extensions working in Iridium with "--enable-unveil". unveil.main has "~/.config rwc" and i thought extensions live under ".config/iridium/Default/Extensions" so thought maybe that should be enough, its not. as a hack i added

Trying to enable dumpcore in Solo5 for OpenBSD's vmm

2018-07-21 Thread Adam Steen
Hi I am trying to enable dumpcore in Solo5 for OpenBSD's vmm by porting ukvm_dumpcore_freebsd_x86_64.c [1]. I am able to get all the registers from vmm using "ioctl(env->vmd_fd, VMM_IOC_READREGS, )" but i don't have a prstatus_t structure to fill in. Does OpenBSD have a prstatus_t structure?

Re: pkg using "6.3" instead of "snapshots"

2018-03-24 Thread Adam Steen
Try pkg_add -D snap We are close to a release so it automatically refers to the release See https://man.openbsd.org/pkg_add and check out -D snap And https://marc.info/?l=openbsd-misc=152145991212654=2 Where Peter N. M. Hansteen answers your question Cheers Adam On Sat, Mar 24, 2018 at

Linking the amd64 Kernel with ld.lld (further more have the default system linker as ld.lld)

2017-12-14 Thread Adam Steen
Hi All Do you know if its possible to link the amd64 kernel with ld.lld? and if so would you change LD?= in sys.mk? I haven't been able to find anything about this besides "Bug 30815 - linking OpenBSD/amd64 kernel" [1]. Which says the linked kernel doesn't boot, thus if we can't link the kernel

Re: Integrating "safe" languages into OpenBSD?

2017-12-05 Thread Adam Steen
> The question for consideration is if microservices/unikernels approach > is not the best combination of both worlds, e.g. having something like > Mirage or HalVM based application/service running on top of OpenBSD in > its VMM, that may be interesting. Unfortunately so far both supports > IIRC

Re: awk in OpenBSD

2017-10-18 Thread Adam Steen
I would guess the latest update Dec, 2012, doesn't off any worth upgrading for, [1] Dec 20, 2012: fiddled makefile to get correct yacc and bison flags. pick yacc (linux) or bison (mac) as necessary. added __attribute__((__noreturn__)) to a couple of lines in proto.h, to silence someone's

Re: Calculate the frequency of the tsc timecounter

2017-08-02 Thread Adam Steen
On Tue, Aug 1, 2017 at 6:43 PM, Adam Steen <a...@adamsteen.com.au> wrote: > Hi Mike > > Please see the output below (I did have to update a few DPRINTF's with > the change to clang, did you want a diff for checking in?) > I appreciate you having a look. > > Che

Re: Calculate the frequency of the tsc timecounter

2017-08-02 Thread Adam Steen
On Mon, Jul 31, 2017 at 3:58 PM, Mike Belopuhov <m...@belopuhov.com> wrote: > On Mon, Jul 31, 2017 at 09:48 +0800, Adam Steen wrote: >> Ted Unangst wrote: >> > we don't currently export this info, but we could add some sysctls. there's >> > some cpufeatures stuff

Re: Calculate the frequency of the tsc timecounter

2017-08-01 Thread Adam Steen
. SYSENTER EIP (0x6c12): 0x H. RSP (0x6c14): 0x800032ffba7e H. RIP (0x6c16): 0x812813ad On Tue, Aug 1, 2017 at 3:04 PM, Mike Larkin <mlar...@azathoth.net> wrote: > On Tue, Aug 01, 2017 at 07:32:19AM +0800, Adam Steen wrote: >> On Tue, Aug 1, 2017 at 7:26

Re: Calculate the frequency of the tsc timecounter

2017-07-31 Thread Adam Steen
On Tue, Aug 1, 2017 at 7:26 AM, Adam Steen <a...@adamsteen.com.au> wrote: > Mike Belopuhov wrote: > >> To be able to use TSC as a timecounter source on OpenBSD or Solo5 >> you'd have to improve the in-kernel measurement of the TSC frequency >> first. I've tried to pe

Re: Calculate the frequency of the tsc timecounter

2017-07-31 Thread Adam Steen
Mike Belopuhov wrote: > To be able to use TSC as a timecounter source on OpenBSD or Solo5 > you'd have to improve the in-kernel measurement of the TSC frequency > first. I've tried to perform 10 measurements and take an average and > it does improve accuracy, however I believe we need to poach

Re: Calculate the frequency of the tsc timecounter

2017-07-30 Thread Adam Steen
Ted Unangst wrote: > we don't currently export this info, but we could add some sysctls. there's > some cpufeatures stuff there, but generally stuff isn't exported until > somebody finds a use for it... it shouldn't be too hard to add something to > amd64/machdep.c sysctl if you're interested. I

Re: Calculate the frequency of the tsc timecounter

2017-07-30 Thread Adam Steen
:EDX[8], Intel's Designer's vol3b, section 16.11.1 > Invariant TSC) > > On Mon, Jul 31, 2017 at 1:57 AM, Mike Belopuhov <m...@belopuhov.com> wrote: >> On Wed, Jul 26, 2017 at 19:24 +0800, Adam Steen wrote: >>> Hi >>> >>> Is there an easy/accurate way to calcu

Re: Calculate the frequency of the tsc timecounter

2017-07-30 Thread Adam Steen
CPUID the best way to check if the tsc is invariant? (CPUID.8007H:EDX[8], Intel's Designer's vol3b, section 16.11.1 Invariant TSC) On Mon, Jul 31, 2017 at 1:57 AM, Mike Belopuhov <m...@belopuhov.com> wrote: > On Wed, Jul 26, 2017 at 19:24 +0800, Adam Steen wrote: >> Hi >> >&g

Calculate the frequency of the tsc timecounter

2017-07-26 Thread Adam Steen
Hi Is there an easy/accurate way to calculate the tsc timecounter frequency? like Time Stamp Counters on Linux. (on a Sandy Bridge cpu) Another reference Converting Sandy Bridge TSC to wall clock time

Port Solo5 to OpenBSD - Linking Problem (recompile with -fPIC)

2017-06-16 Thread Adam Steen
Hi I am attempting to port Solo5 to OpenBSD (Virtio only), I think i have the kernel and test_hello compiling but when it comes to linking test_hello i get the following error. /home/asteen/devl/solo5/kernel/virtio/solo5.o: relocation R_X86_64_32 against 'a local symbol' can not be used when

Re: OpenBSD/octeon on EdgeRouter PoE - my experience

2017-04-30 Thread Adam Steen
I have been running an EdgeRouter Lite, using all three ports, for about a year, rock solid! Cheers Adam On Mon, May 1, 2017 at 3:25 AM, Daniel Gracia wrote: > I'd bet there are quite more important issues related to the Octean > platform than the switch issue, so I won't

Re: xenodm and .kshrc

2017-04-13 Thread Adam Steen
PM, Theo Buehler <t...@math.ethz.ch> wrote: > On Fri, Apr 14, 2017 at 11:45:05AM +0800, Adam Steen wrote: >> Hi >> >> I used to start X using startx and when opening terminal my .kshrc >> would get run, >> >> but now i have switched to xenodm, my .kshrc

xenodm and .kshrc

2017-04-13 Thread Adam Steen
Hi I used to start X using startx and when opening terminal my .kshrc would get run, but now i have switched to xenodm, my .kshrc is not being executed. my .profile has "export ENV=$HOME/.kshrc" what i am i missing? Cheers Adam