If you go with a Linux distribution that uses systemd, instead of the symbolic link for agetty-ttyS0, you’ll need to run systemctl enable to enable a serial port login console. Void uses the runit system for launching services and terminals. If everything goes correctly, the boot and login sequences should be available within minicom. GRUB_SERIAL_COMMAND="serial -speed=115200 -unit=0 -word=8 -parity=no -stop=1"īe sure to run grub-update, umount the file system and reboot the system. GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 console=ttyS0,115200n8" ![]() If you want to see and control the GRUB console during the boot process, you’ll also need to add the following to /etc/default/grub 4. You can also create a symbolic link for sshd if you’d like that started at boot as well. However, we’re in a system where Void hasn’t booted yet, so the /var/services symbolic link to the current runlevel hasn’t been created. Normally to enable a service on Void Linux, you’d create a symbolic link in /var/services. Ln -s /etc/sv/agetty-ttyS0 /etc/runit/runsvdir/default The following steps assumed the operating system was installed to /dev/sda1 It’s important to not reboot after the installation is complete, as there are additional steps needed to ensure the new system will be able to use the serial console. I was able to use the void-installer command to install Void Linux. From here, it’s just a standard x86_64 machine. Serial -speed=115200 -unit=0 -word=8 -parity=no -stop=1Īfter using dd to create a USB stick with this image, I was able to see Void loading up over the serial port. If you’re using a device that boots using UEFI and would like to see the GRUB screen over the serial port as well, you can add the following lines to grub/grub_ 3 prior to running mklive.sh: The FW-7541C is old enough that it only works in BIOS mode. ![]() In the following block, the console=ttyS0,115200n8 kernel parameter will open a boot console running at 115200 bps, with 8 bits and no parity (a common serial configuration). The build script takes a kernel command line option, which can be used to specify serial console options 2. This project does need to be run on a Void Linux system, as it runs several Void specific commands. Rather than attempt to modify the release image 1, I used the void-mklive project, which the Void team uses to make their installation images. However, the primary boot filesystem is non-modifiable (iso9660). Although the BIOS and PXE boot screens will show up over the serial port, bootloaders and the Linux kernel need additional configuration to route their input/output to a serial console.Īt first I thought I could mount the Void live USB image and modify the bootloader settings. Minicom is an open source serial client that will work with these adapters by running minicom -D /dev/ttyUSB0. This cable works with the standard ftdi_sio in the Linux kernel, and shows up as /dev/ttyUSB0. ![]() These types of serial connectors are common on a lot of networking equipment, and I was able to get a USB-to-RJ45 serial cable off of eBay for $13.77 (including shipping). Although the device comes with an RJ-45 to RS232 cable, none of my computers has a classic serial port. The serial port on this device comes in the form of an RJ-45 connector. It also goes through the post installation steps that will keep a login prompt active on the serial port after install.ĮBay Listening for the Lanner FW-7541C-E01 This guide goes through building the installation media with the custom parameters needed for a serial console. It took some work, but I was able to setup and install Void Linux on this device using the serial port console. It’s a well built little device I bought to replace my custom Linux router. This industrial device has a 2-core/4-thread Atom D525 processor, a 30GB SATA SSD, 4GB of DDR3 ram and six independent Intel gigabit Ethernet adapters. I recently picked up a Lanner FW-7541C off eBay for $88.31 (including shipping). Installing Void Linux with a Serial Terminal
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |