Hi,
I’m trying to compile the FreeBSD kernel to use COM2 instead of COM1 as the boot console serial port.
I’ve got a VirtualBox VM running FreeBSD 13.0-RELEASE and have checked out the FreeBSD source to commit ef1e43df92c6 .
I want my FreeBSD kernel to use serial port COM2 (instead of COM1) for the console when it boots up. I also want it to use baud rate 115200.
I have a /etc/make.conf which is the following:
```
BOOT_COMCONSOLE_PORT="0x2F8"
BOOT_COMCONSOLE_SPEED=115200
```
I have added the line
```
device ttyu1 port IO_COM2 flags 0x30 irq 3
```
to the end of my kernel configuration file.
But when I run the commands "sudo make clean && sudo make buildkernel KERNCONF=MAINCONFIG" from the root directory, config fails with a syntax error on the line that I added to my kernel configuration file. Do you guys have any ideas how I could fix this?
When I run `ls dev | grep ttyu1` in the VM there are entries for `ttyu1`, `ttyu1.init`, and `ttyu1.lock`, not sure if this is relevant here.
Thank you,
James Pedersen
I’m trying to compile the FreeBSD kernel to use COM2 instead of COM1 as the boot console serial port.
I’ve got a VirtualBox VM running FreeBSD 13.0-RELEASE and have checked out the FreeBSD source to commit ef1e43df92c6 .
I want my FreeBSD kernel to use serial port COM2 (instead of COM1) for the console when it boots up. I also want it to use baud rate 115200.
I have a /etc/make.conf which is the following:
```
BOOT_COMCONSOLE_PORT="0x2F8"
BOOT_COMCONSOLE_SPEED=115200
```
I have added the line
```
device ttyu1 port IO_COM2 flags 0x30 irq 3
```
to the end of my kernel configuration file.
But when I run the commands "sudo make clean && sudo make buildkernel KERNCONF=MAINCONFIG" from the root directory, config fails with a syntax error on the line that I added to my kernel configuration file. Do you guys have any ideas how I could fix this?
When I run `ls dev | grep ttyu1` in the VM there are entries for `ttyu1`, `ttyu1.init`, and `ttyu1.lock`, not sure if this is relevant here.
Thank you,
James Pedersen