DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Installation and Upgrading

NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster?

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 1 Week Ago
beavers beavers is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 54
Default Booting an apu2

I'm attempting to install NetBSD on an apu2c0 from pcengines.ch, but having trouble booting the installer image. Sounds like it's the same issue that FreeBSD has on this device -- namely, the serial port runs at 115200 baud, whereas the installer defaults to 9600.

Is there a reasonable way to set the console speed from the boot menu? I'm vaguely aware that you can adjust boot.conf or recompile the kernel to achieve this, but I'm limited at the moment to the serial connection.

Edit to add: I tried pxe boot as well, but it seems like the same thing occurs -- the kernel starts booting, then just hangs.
Reply With Quote
  #2   (View Single Post)  
Old 1 Week Ago
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,377
Default

I'm not a NetBSD user, and I don't have any APUs. But I do have PC Engines Alix platforms. While not the same as APUs, these can be configured to use other serial port speeds with keystrokes at power-on, so I assume it is the same with the APUs. If so, you can use cu(1) or a similar serial program at 115200, and use it to configure the APU's serial port speed to 9600 at power-on to match the requirements of your installer.
Reply With Quote
  #3   (View Single Post)  
Old 1 Week Ago
beavers beavers is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 54
Default

It seems they've removed the BIOS option for adjusting the console port baud rate.

I did discover this: https://forums.freebsd.org/threads/1...ne-apu2.58273/

Turns out these options can be adjusted from the loader(3) prompt on FreeBSD. Does the NetBSD bootloader have any similarly configurable options?
Reply With Quote
  #4   (View Single Post)  
Old 6 Days Ago
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,377
Default

Yep. A quick browse of the boot(8) man page brought me to boot_console(8), defining the string you can set in a boot.cfg(5) file.

Last edited by jggimi; 6 Days Ago at 07:23 PM. Reason: clarity
Reply With Quote
  #5   (View Single Post)  
Old 6 Days Ago
beavers beavers is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 54
Default

Unfortunately, those appear to be usable at compile-time only -- see "BUGS" at the end of boot_console(8). Oh, well.
Reply With Quote
  #6   (View Single Post)  
Old 6 Days Ago
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,377
Default

While it's not the BSD you want, OpenBSD's bootloader can do this with an /etc/boot.conf file. All you need is a two line /etc/boot.conf file on the booting filesystem (optical, disk, or PXE). One line to set the console device to the first serial port, and a second line to set the speed to match the hardware:
Code:
set tty com0
stty com0 115200
Should you consider this as a possible solution, see the boot.conf(5) man page.
Reply With Quote
  #7   (View Single Post)  
Old 5 Days Ago
beavers beavers is offline
Fdisk Soldier
 
Join Date: Nov 2017
Posts: 54
Default

Quote:
Originally Posted by jggimi View Post
While it's not the BSD you want, OpenBSD's bootloader can do this with an /etc/boot.conf file. All you need is a two line /etc/boot.conf file on the booting filesystem (optical, disk, or PXE). One line to set the console device to the first serial port, and a second line to set the speed to match the hardware:
Code:
set tty com0
stty com0 115200
Should you consider this as a possible solution, see the boot.conf(5) man page.
Heh heh, that was actually the very first thing I did. I'm just looking for better throughput. With OpenBSD I'm only getting like 2Mbps, even forced to 11g mode. I tried all modes with not much difference. This is with an athn(4) card on the AP and iwn(4) on the client, both running OpenBSD.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login and Password Lost to my APU2 router/Firewall amphibious OpenBSD General 2 29th May 2017 10:12 PM
Booting from USB FlashDrive amphibious OpenBSD Installation and Upgrading 2 21st April 2017 12:43 AM
Disable usb during booting caljundi OpenBSD General 2 6th February 2017 02:34 PM
Booting to RAM IronForge OpenBSD Installation and Upgrading 5 3rd April 2014 03:11 AM
different booting bsd.rd & bsd Hihihi OpenBSD General 3 15th July 2008 10:34 PM


All times are GMT. The time now is 07:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick