Re: dmesg for Riverbed Steelhead 250/550
Hello, > The primary and AUX NICs work, the LAN0/0 and WAN0/0 ports do not, > likely because there's some GPIO magic required to switch back the > relays. It's strange because when the OS is switched off, the relays are closed (act as a wire). I would have thought at least, you could plug cables on these interfaces and a ping would go through. Which benefits do you find in recycling these hardwares ? What is your usage ? Regards Le mardi 19 novembre 2019 à 03:45:11 UTC+1, Aaron Mason a écrit : Here's a quick rundown on how I got it installed - you will need an existing OpenBSD installation. 1. Download the FS install image. 2. Mount it in your existing OpenBSD system and edit etc/boot.conf to set the tty to com0. 3. Write the resulting image to a USB stick. 4. Plug in your USB stick, then plug in the power. 5. When it says to press any key, do so. When the GRUB menu appears, hit 'c'. 6. Set the root device (which will likely be hd2): root (hd2) 7. Fire up the chainloader: chainloader +1 8. Boot: boot 9. ??? 10. Profit! On Tue, Nov 19, 2019 at 1:31 PM Aaron Mason wrote: > > All > > Fired up OpenBSD 6.6 on a Riverbed Steelhead 250 and a 550, purchased > from fleabay for about $30 ea (plus shipping) - the 250 runs a single > core Celeron M @ 1.66GHz and 1GB DDR2, the 550 runs a low power > dual-core Xeon at the same speed and 2GB DDR2 - both x86 only. Both > have a 2GB USB DOM and a separate laptop HDD (120GB for the 250 and > 320GB for the 550) likely for caching (these being WAN accelerators). > > The primary and AUX NICs work, the LAN0/0 and WAN0/0 ports do not, > likely because there's some GPIO magic required to switch back the > relays. The Xeon-powered 550 definitely seems to have a bit more > oompf than the 250's hamster whee-- err, Celeron M CPU. > > The output for dmesg for each is attached. > > -- > Aaron Mason - Programmer, open source addict > I've taken my software vows - for beta or for worse -- Aaron Mason - Programmer, open source addict I've taken my software vows - for beta or for worse
Re: Turn off Swap on boot disk
Sean Kamath wrote: > > On Nov 21, 2019, at 09:55, Kenneth Gober wrote: > > ... > > The need for more swap may be related to kernel relinking -- it might be an > > interesting experiment to see if your existing swap space is enough with > > kernel relinking disabled. > > Yes, precisely. > > I did add some larger CF cards on machines that needed more space. I just > happened to have a bunch of 1g thumb drives and figured I’d spare the CF all > the writes and use the thumbdrive. > > I was just hoping to avoid removing the default swap device so that in the > even the thumb drive died or whatever that the machine would still boot > (ideally, just setting the priority to 1 instead of 0 would do what I want). > > But, it sounds like the answer is delete/change the partition or live with > it. I’ll live with it, since I don’t want to disable kernel relinking. Sigh. relinking was added because risks have moved on, and smaller machines are less relevant. my first programming was on vic-20's. i wrote in basic. i ran out of space. then i wrote video games in a mix of asm and basic. then i ran out of space, and stored stuff in the unused nibbles of colour table. the lesson is eventually we need more, because we want to do more. we are now many decades later than the vic20, and arguably 2 decades after the best years of the alix. as a result, solutions using more resources to create benefits get added. wait until you see the next thing i'm interested in. modern machines will barely notice it, but alix's will quake.
Re: Turn off Swap on boot disk
On Wed, Nov 20, 2019 at 11:47:39PM -0800, Sean Kamath wrote: > Hello. > > Can someone provide me a pointer to how to do this? > > I have a bunch of Alix 2d13 boxes. With 6.6, I’ve found I need more swap > than the default layout on a 2G compact flash drive has. So, I got some 1G > USB thumb drives, and want to use JUST those for swap. Despite different > attempts (setting the mount_opts to xx, setting mount_opts to “priority=1”), > I can’t seem to prevent the swap on the boot disk being added with priority = > 0. > > Can I do anything to turn it off or change the priority, short of changing > the filesystem type? If I recall correctly, the swap on the boot disk is directly added by the kernel, and not by rc(8). It is why priority in fstab(5) is ignored. But you could change the priority of an already added swap with swapctl(8): # swapctl -c -p 1 myduid.b And you could automatically run it at boot-time by adding the command line in /etc/rc.local file, which is sourced by rc(8). # echo 'swapctl -c -p 1 myduid.b' >> /etc/rc.local This way, at boot time: - kernel adds the boot disk swap with priority 0 - rc(8) adds the second swap with priority 0 (as configured in fstab(5)) - rc(8) via rc.local changes the boot disk swap with priority 1 - system will run with two swaps: - second swap, priority 0, so used first - boot disk swap, priority 1, used if second swap is full or by kernel for dumping kernel core I hope it helps. -- Sebastien Marie
Re: Turn off Swap on boot disk
> On Nov 21, 2019, at 09:55, Kenneth Gober wrote: > ... > The need for more swap may be related to kernel relinking -- it might be an > interesting experiment to see if your existing swap space is enough with > kernel relinking disabled. Yes, precisely. I did add some larger CF cards on machines that needed more space. I just happened to have a bunch of 1g thumb drives and figured I’d spare the CF all the writes and use the thumbdrive. I was just hoping to avoid removing the default swap device so that in the even the thumb drive died or whatever that the machine would still boot (ideally, just setting the priority to 1 instead of 0 would do what I want). But, it sounds like the answer is delete/change the partition or live with it. I’ll live with it, since I don’t want to disable kernel relinking. Sean
Re: OpenBSD 6.6 wlan DHCP no link .... sleeping
On 21/11/2019 11:53, Getz Mikalsen wrote: First time posting on this mailing list but hopefully my post adheres to the Netiquette and that I am posting this to the appropriate list I've been trying to get the wifi working on my IBM thinkpad 240x for a few days now but I seem to have gotten stuck. I'm using an Intel 2100 MiniPcie card with the ipw firmware (https://man.openbsd.org/ipw). I previously tried using a Intel 2915ABG with the iwi firmware but kept getting firmware errors so I replaced it with the 2100. I believe I have managed to connect to my WPA2 secured network (judging by the output of my ifconfig) but im not able to get any further. And running DHCP (dhclient ipw0 or sh /etc/netstart) keeps outputting the same timeout message, No link..sleeping No further error messages than that. I have configured my ifconfig through the /etc/hostname.ipw0 file as advised in the man page, my config is as follows. /// nwid hotspot wpakey password chan up wpaprotos wpa2 inet 10.220.1.156 255.255.255.0 dhcp /// You're setting a fixed ip address as well as dhcp. You can't have both in hostname.ipw0. This then results in ifconfig outputting the following /// ipw0: flags=808843 mtu 1500 lladdr 00:0c:f1:24:1c:2a index 1 priority 4 llprio 3 groups: wlan media: IEEE802.11 autoselect (DS11 mode 11b) status: active ieee80211: nwid hotspot chan 7 bssid 30:23:03:1a:4c:7a -18dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp inet 10.220.1.156 netmask 0xff00 broadcast 10.220.1.255 /// Disregard anything coming from a FreeBSD forum, the config files don't work the same. rc.conf should never be touched, only rc.conf.local, and OpenBSD doesn't configure the network via that file. I have also added this to my rc.conf as advised here https://forums.freebsd.org/threads/solved-re0-no-link-giving-up-my-card-driver-or-dhcp-server-problem.4566/ /// ifconfig_ipw0="DCHP" /// This is where I get stuck, dhcp still timeouts and gives me the error message, im able to ping 10.220.1.156 but no other ip from the router, this make me believe the issues is to be solved with the route command, "route show" outputs this. /// Internet DestinationGatewayFlagsRefs UseMtu Interface 10.220.1/2410.220.1.156 Cn 00 - 8 ipw0 10.220.1.156 00:0c:f1:24:1c:2a UHLl 00 - 1 ipw0 10.220.1.255 10.220.1.156 Hb 00 - 1 ipw0 /// What is known that the network is named "hotspot" passworded with "password", its gateway is "10.220.1.1" I am also aware of certain IBM thinkpads having issues with unauthorized MiniPCI cards as brought up here http://www.thinkwiki.org/wiki/Problem_with_unauthorized_MiniPCI_network_card but this is only a BIOS whitelist and the combo im using has been comfirmed to be working on the thinkpads forum and the BIOS accepts the card. So where do I go now, is the routing correct? I dont know much about ip routing and gateways, maybe someone knows some good resources where I can learn so I wont have to come asking for help again. I read the following and thought I might be having a similar issue but I know too little about internet configurations to make much of it. https://serverfault.com/a/581162 As for it being incompatible or not, I can't tell, I'm not a ThinkPad specialist. Cheers, Noth
Re: How to setup date on startup with ntpd on OpenBSD 6.6
On Thu, 21 Nov 2019, dmitry.sensei wrote: Date: Thu, 21 Nov 2019 15:48:44 +0500 From: dmitry.sensei To: misc@openbsd.org Subject: How to setup date on startup with ntpd on OpenBSD > Since "-s" key had been deleted how I can setup time on startup? -- Dmitry Orlov Take a look at your /etc/rc.conf, but don't edit it. It probably says: ntpd_flags= which means it is turned on. Then open your /etc/rc.conf.local. If there is an entry that says: ntpd_flags=NO Comment this out to read: # ntpd_flags=NO Notice that the base rc.conf file says DO NOT EDIT THIS FILE! which is probably just precaution, and says to edit the /etc/rc.conf.local Anyway, you get the idea... Clay clays.sh...@sdf.org SDF Public Access UNIX System - http://sdf.org
Re: Turn off Swap on boot disk
On Thu, Nov 21, 2019 at 3:50 AM Sean Kamath wrote: > I have a bunch of Alix 2d13 boxes. With 6.6, I’ve found I need more swap > than the default layout on a 2G compact flash drive has. So, I got some 1G > USB thumb drives, and want to use JUST those for swap. Despite different > attempts (setting the mount_opts to xx, setting mount_opts to > “priority=1”), I can’t seem to prevent the swap on the boot disk being > added with priority = 0. > > Can I do anything to turn it off or change the priority, short of changing > the filesystem type? I wouldn't. The swap space is sometimes used for other things besides swap (like crash dumps) so why risk breaking something? Just add your thumb drive as additional swap space and leave it be. If it were me this would all be a temporary solution anyway while I acquire larger CF cards to switch to. I'm a huge fan of not getting rid of old stuff if it's still working, but when your needs outgrow your hardware, sometimes the simplest path forward is to just upgrade. The need for more swap may be related to kernel relinking -- it might be an interesting experiment to see if your existing swap space is enough with kernel relinking disabled. -ken
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
On 11/21/19 1:40 AM, Josh wrote: Thanks Travis for listing down your BIOS settings. The changes I made to match your settings: Config - Power 8254 Timer Clock Gating -> Auto this was to Disabled in my BIOS Config - USB Always On USB - Disabled this was Enabled in my BIOS Security - I/O Port Access Memory Card Slot -> Disabled this was Enabled in my BIOS Boot UEFI/Legacy Boot -> Both <<< this was UEFI only UEFI/Legacy Boot -> Priority UEFI First I installed 6.6 on an external drive. After some intensive use (Chromium streaming 4K video), fan kicks in. However, when closing down Chromium (or at least the 4K tab), FAN will stop running after a short while and won't stay up consistently anymore - similar to 6.5's behaviour. @Dave, what are your BIOS settings? If different, would be interested to know if those given by Travis would lower the ~15W idling to ~10W on 6.6 ... I have just gone through and set the following on my T430: - Reset to Defaults - Security - Secure Boot Configuration Secure Boot -> Disabled (was enabled) - Startup UEFI/Legacy Booot -> Both UEFI/Legacy Boot Prirority -> UEFI First - Config - USB Always on USB - Disabled (was enabled) - Config - I/O Port Access Bluetooth -> Disabled (was enabled) Fingerprint Reader -> Disabled (was enabled) Memory Card Slot -> Disabled (was enabled) I don't have an 8524 Timer Clock Gating setting. Booted into 6.6 and my power draw seen from `sysctl | grep batt` was unchanged, hovering around 15.19W idle sitting in the X session. Did then notice this machine's bios was a 2017 version... went and updated to the latest 2.82 21 Aug 2019 Not an appreciable change to the battery consumption. Hovering around 14.98W. Fan is slightly different though - it's not constantly running. Comes on and off. Cheers, DT
Re: How to setup date on startup with ntpd on OpenBSD 6.6
On 2019-11-21, dmitry.sensei wrote: > Hi! > > Since "-s" key had been deleted how I can setup time on startup? > In both 6.6 and -current, the normal case is to use "constraints" which are queried over HTTPS with special logic to handle incorrect clocks (the TLS certificate date is checked based on the reported time not the machine clock time; DNSsec is also relaxed if necessary as this also relies on clock time). When constraints are used, provided the NTP servers are in a window close enough to the constraints servers, the clock is set automatically without using -s. For 6.6: -s was still present, but it is only meant for special cases. In -current: -s has been removed because people were using it to force the clock with no concern about the safety of the network path to the NTP server/s. Normally the constraints mechanism should be used instead. There is another mechanism for special use cases in -current, see ntpd.conf(5) ("useful for boot-time correction in environments where constraints cannot be used") but this should not be used in the normal case.
OpenBSD 6.6 wlan DHCP no link .... sleeping
First time posting on this mailing list but hopefully my post adheres to the Netiquette and that I am posting this to the appropriate list I've been trying to get the wifi working on my IBM thinkpad 240x for a few days now but I seem to have gotten stuck. I'm using an Intel 2100 MiniPcie card with the ipw firmware (https://man.openbsd.org/ipw). I previously tried using a Intel 2915ABG with the iwi firmware but kept getting firmware errors so I replaced it with the 2100. I believe I have managed to connect to my WPA2 secured network (judging by the output of my ifconfig) but im not able to get any further. And running DHCP (dhclient ipw0 or sh /etc/netstart) keeps outputting the same timeout message, No link..sleeping No further error messages than that. I have configured my ifconfig through the /etc/hostname.ipw0 file as advised in the man page, my config is as follows. /// nwid hotspot wpakey password chan up wpaprotos wpa2 inet 10.220.1.156 255.255.255.0 dhcp /// This then results in ifconfig outputting the following /// ipw0: flags=808843 mtu 1500 lladdr 00:0c:f1:24:1c:2a index 1 priority 4 llprio 3 groups: wlan media: IEEE802.11 autoselect (DS11 mode 11b) status: active ieee80211: nwid hotspot chan 7 bssid 30:23:03:1a:4c:7a -18dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp inet 10.220.1.156 netmask 0xff00 broadcast 10.220.1.255 /// I have also added this to my rc.conf as advised here https://forums.freebsd.org/threads/solved-re0-no-link-giving-up-my-card-driver-or-dhcp-server-problem.4566/ /// ifconfig_ipw0="DCHP" /// This is where I get stuck, dhcp still timeouts and gives me the error message, im able to ping 10.220.1.156 but no other ip from the router, this make me believe the issues is to be solved with the route command, "route show" outputs this. /// Internet DestinationGatewayFlagsRefs UseMtu Interface 10.220.1/2410.220.1.156 Cn 00 - 8 ipw0 10.220.1.156 00:0c:f1:24:1c:2a UHLl 00 - 1 ipw0 10.220.1.255 10.220.1.156 Hb 00 - 1 ipw0 /// What is known that the network is named "hotspot" passworded with "password", its gateway is "10.220.1.1" I am also aware of certain IBM thinkpads having issues with unauthorized MiniPCI cards as brought up here http://www.thinkwiki.org/wiki/Problem_with_unauthorized_MiniPCI_network_card but this is only a BIOS whitelist and the combo im using has been comfirmed to be working on the thinkpads forum and the BIOS accepts the card. So where do I go now, is the routing correct? I dont know much about ip routing and gateways, maybe someone knows some good resources where I can learn so I wont have to come asking for help again. I read the following and thought I might be having a similar issue but I know too little about internet configurations to make much of it. https://serverfault.com/a/581162 -- getzmikal...@sdf.org SDF Public Access UNIX System - http://sdf.org
Re: How to setup date on startup with ntpd on OpenBSD 6.6
On Thu, Nov 21, 2019 at 03:48:44PM +0500, dmitry.sensei wrote: | Hi! | | Since "-s" key had been deleted how I can setup time on startup? >From ntpd(8): > ntpd makes efforts to verify and correct the time at boot if > constraints are configured and satisfied or if trusted servers or > sensors return results, and if the clock is not being moved backwards. So you should configure a constraint[1] or a trusted[2] server or sensor. Then, at boot, ntpd will take care of correcting the clock if it's off by too much. See ntpd.conf(5) for details. This was documented in an e-mail to tech@ by Theo two weeks ago, there's an undeadly.org article[3] with his post and references to the various commits that play a part here. Cheers, Paul 'WEiRD' de Weerd [1]: http://man.openbsd.org/ntpd.conf#CONSTRAINTS [2]: http://man.openbsd.org/ntpd.conf#sensor [3]: http://undeadly.org/cgi?action=article;sid=2019075815 -- >[<++>-]<+++.>+++[<-->-]<.>+++[<+ +++>-]<.>++[<>-]<+.--.[-] http://www.weirdnet.nl/
Re: How to setup date on startup with ntpd on OpenBSD 6.6
On Thu, Nov 21, 2019 at 03:48:44PM +0500, dmitry.sensei wrote: > Hi! > > Since "-s" key had been deleted how I can setup time on startup? -s only has been removed in current. Use the default config file and you're good for both 6.6 and current for many, many cases. -Otto
How to setup date on startup with ntpd on OpenBSD 6.6
Hi! Since "-s" key had been deleted how I can setup time on startup? -- Dmitry Orlov
Turn off Swap on boot disk
Hello. Can someone provide me a pointer to how to do this? I have a bunch of Alix 2d13 boxes. With 6.6, I’ve found I need more swap than the default layout on a 2G compact flash drive has. So, I got some 1G USB thumb drives, and want to use JUST those for swap. Despite different attempts (setting the mount_opts to xx, setting mount_opts to “priority=1”), I can’t seem to prevent the swap on the boot disk being added with priority = 0. Can I do anything to turn it off or change the priority, short of changing the filesystem type? Thanks, Sean