Re: Golang under Arm or Octeon

2019-03-22 Thread Stuart Henderson
On 2019-03-22, Janne Johansson  wrote:
> I gave it a low-effort check for octeon, and Go needs/wants to build from a
> super-old implementation in C which is actively trying to tell you its not
> supported, then from that you are supposed to build tons of versions on top
> of each other to get to a modern version.

You can build from a newer version as well, it doesn't need to be an old
version. I think the approach here for unsupported arch would be to get the
code working first and cross compile, then it can build native.




Re: Adding an additional IP on a NIC getting DHCP address

2019-03-22 Thread Stuart Henderson
On 2019-03-22, Shane Lazarus  wrote:
> Hi Folks
>
> Any reason you are not using the append / supercede options in the built in
> dhclient.conf?
> https://man.openbsd.org/dhclient.conf
>
> Totally curious, as that is what I am using to override / append
> information...

If you have a working setup with adding an alias IP address to the
interface as well as the address coming from DHCP, please do send it.




FDE with keydrive imponderabilities

2019-03-22 Thread Normen Wohner
I thought you might be able to help me with a setup concerning  
Full Disk Encryption on OpenBSD 6.4 where I am at my whits end.
I am trying to install on a Sony Vaio VPC P11S1E netbook.
It is a 32-bit x86 machine with an internal SSD and SD card reader.

During boot of the installer my internal disk shows up as wd0.
I have no Idea why it would be IDE but be that as it may.
Plugging in any USB drive shows as sd0 while the SD card-reader
shows two devices, respectively some controller on sd0 and the 
actual drive on sd1.

I really hope to find anything else I could try.

What I have tried thus far.
booting into the installer, 
once everything is in ramdisk is at the Install
etc. prompt I unplug the boot USB and proceed with:

(S)hell


# dd if=/dev/zero of=/dev/wd0 bs=1m count=8
to erase previous RAID attempt

# fdisk -iy wd0
# disklabel -E wd0
> z
> a a
offset: [64] 1024 
size: [n]
FS type: [4.2BSD] RAID
> w
> q
returns: 'No label changes.'

# cd /dev
# sh MAKEDEV sd1
# sh MAKEDEV sd2
# cd /

after that either 
Route 1:
plugging in SD card

# fdisk -iy sd1
# disklabel -E sd1
> z
> a a
offset: [64] 1024
size: [n] 1m
FS type: [4.2BSD] RAID
> w
> q
returns: 'No label changes.'

# dd if=/dev/random of=/dev/sd1a

# bioctl -c C -k sd1a -l wd0a softraid0
returns: 'Error sd1 did not quit correctly'


This Error remains consistend between boots,
even after restarting to the Installer

alternatively
Route 2:
plugging in USB stick
# fdisk -iy sd0
# disklabel -E sd0
> z
> a a
offset: [64] 1024
size: [n] 1m
FS type: [4.2BSD] RAID
> w
> q
returns: No label changes.

# dd if=/dev/random of=/dev/sd0a

# bioctl -c C -k sd0a -l wd0a softraid0
returns: softraid0: CRYPTO volume attached as sd2
#exit
(I)nstall to sd2
...
hangs in BIOS after reboot whenever
the Keydrive is plugged in. 



Re: Adding an additional IP on a NIC getting DHCP address

2019-03-22 Thread Shane Lazarus
Hi Folks

Any reason you are not using the append / supercede options in the built in
dhclient.conf?
https://man.openbsd.org/dhclient.conf

Totally curious, as that is what I am using to override / append
information...


Thanks

Shane


On Sat, Mar 23, 2019 at 3:55 AM Stuart Henderson 
wrote:

> On 2019-03-22, Theodore Wynnychenko  wrote:
> > This is the first time I am responding to a post that is not my mine.
> > I hope it is not too uninformed.
> >
> > Anyway, back in about October, 2016, I noticed that the included dhcp
> > client would no longer assign an alias address alongside the address
> > from the dhcp lease. Before about this time, I seem to recall, it would.
> >
> > My solution was to use the isc-dhcp-client from ports. But, that also
> > had some issues.
> >
> > My solution (and if it is a poor solution, sorry) is on the mailing list
> at:
> >
> > https://marc.info/?l=openbsd-misc&m=147638874608453&w=2
> >
> > It is working as expected through my last update of current, which was
> about 2 months ago.
>
> That sounds reasonable.
>
>
> >> -Original Message-
> >> From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf
> Of Lars Bonnesen
> ...
> >> and if so, how do I make sure that mygate does not get overwritten from
> >> dhcp?
>
> So this is a bit different to Theodore's setup as you want a static
> gatewy. The simplest method is probably to allow dhclient to set the
> 0.0.0.0/0 default route itself, and add lines like these to hostname.if
>
> !route add 0.0.0.0/1 $gw_address
> !route add 128.0.0.0/1 $gw_address
>
> That way dhclient can add and remove addresses as it wants and it
> won't interfere with your real gateway. (Some of the tun-based VPN
> clients use the same trick).
>
>
>


Re: Adding an additional IP on a NIC getting DHCP address

2019-03-22 Thread Stuart Henderson
On 2019-03-22, Theodore Wynnychenko  wrote:
> This is the first time I am responding to a post that is not my mine.
> I hope it is not too uninformed.
>
> Anyway, back in about October, 2016, I noticed that the included dhcp
> client would no longer assign an alias address alongside the address
> from the dhcp lease. Before about this time, I seem to recall, it would.
>
> My solution was to use the isc-dhcp-client from ports. But, that also
> had some issues.
>
> My solution (and if it is a poor solution, sorry) is on the mailing list at: 
>
> https://marc.info/?l=openbsd-misc&m=147638874608453&w=2
>
> It is working as expected through my last update of current, which was about 
> 2 months ago. 

That sounds reasonable.


>> -Original Message- 
>> From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of 
>> Lars Bonnesen 
...
>> and if so, how do I make sure that mygate does not get overwritten from 
>> dhcp? 

So this is a bit different to Theodore's setup as you want a static
gatewy. The simplest method is probably to allow dhclient to set the
0.0.0.0/0 default route itself, and add lines like these to hostname.if

!route add 0.0.0.0/1 $gw_address
!route add 128.0.0.0/1 $gw_address

That way dhclient can add and remove addresses as it wants and it
won't interfere with your real gateway. (Some of the tun-based VPN
clients use the same trick).




Re: Adding an additional IP on a NIC getting DHCP address

2019-03-22 Thread Theodore Wynnychenko
Hello 

This is the first time I am responding to a post that is not my mine.  I hope 
it is not too uninformed. 

Anyway, back in about October, 2016, I noticed that the included dhcp client 
would no longer assign an alias address alongside the address from the dhcp 
lease.  Before about this time, I seem to recall, it would.

My solution was to use the isc-dhcp-client from ports.  But, that also had some 
issues. 

My solution (and if it is a poor solution, sorry) is on the mailing list at: 

https://marc.info/?l=openbsd-misc 
 
&m=147638874608453&w=2 

It is working as expected through my last update of current, which was about 2 
months ago. 

Ted 


> -Original Message- 
> From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf 
> Of Lars Bonnesen 
> Sent: Friday, March 22, 2019 5:06 AM 
> To: misc@openbsd.org 
> Subject: Adding an additional IP on a NIC getting DHCP address 
> 
> The NIC hostname file contains: 
> 
> dhcp 
> 
> and it configures the nic with a DHCP address and configure mygate 
> according to this. 
> 
> Now I need to add an additional static IP on top of this and use the 
> static 
> IP address gateway address (thus not configuring myname from DHCP) 
> 
> Can I just add inet x.x.x.x b.b.b.b to myname so that it reads: 
> 
> dhcp 
> inet x.x.x.x b.b.b.b 
> 
> and if so, how do I make sure that mygate does not get overwritten from 
> dhcp? 
> 
> Regards, Lars. 




Adding an additional IP on a NIC getting DHCP address

2019-03-22 Thread Lars Bonnesen
The NIC hostname file contains:

dhcp

and it configures the nic with a DHCP address and configure mygate
according to this.

Now I need to add an additional static IP on top of this and use the static
IP address gateway address (thus not configuring myname from DHCP)

Can I just add inet x.x.x.x b.b.b.b to myname so that it reads:

dhcp
inet x.x.x.x b.b.b.b

and if so, how do I make sure that mygate does not get overwritten from
dhcp?

Regards, Lars.


Re: Golang under Arm or Octeon

2019-03-22 Thread Janne Johansson
I gave it a low-effort check for octeon, and Go needs/wants to build from a
super-old implementation in C which is actively trying to tell you its not
supported, then from that you are supposed to build tons of versions on top
of each other to get to a modern version.

Doesn't really help when 99.9% of all "port go to new platform" pages and
guides boil down to "oh, type this to get prebuilt linux binaries for that
already-ported-to-platform".

This may or may not help:

https://groups.google.com/d/msg/golang-dev/SRUK7yJVA0c/JeoCRMwzBwAJ might
help.


Den tors 21 mars 2019 kl 21:53 skrev Valdrin MUJA :

> Hi Misc,
>
>
>
> I want to learn if there is any work-in-progress port for Golang under Arm
> or Octeon cpu architectures?
>
> Thanks.
>
>
>
> --
>
> Best wishes
>
> Valdrin Muja
>


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