Serial Recovery. From DD-WRT Wiki. you have to solder to pads or remove solder from the holes and install a four or. Serial cable is required to possibly. Every letter I type at the text-terminal goes over the serial cable to my main PC and then over. serial servers, console. (see Serial-HOWTO for Pinout). Two point five ways to access the serial console on. but this time using a Prolific Technologies PL2303 USB to Serial cable. Connecting to the serial console. Usb To Serial Console CableWhat serial cable do I need for a Cisco/Linksys SRW2024P? I've had to do this a few times over the years. How to connect to a Netgear SRW224G4P serial console. ![]() Git. Hub - martignlo/DNS- 3. L: DLink DNS- 3. 20. L NASSome info about how to install Debian/GNU Linux on a DLink DNS- 3. L NAS (on the SATA drive). Serial port. First of all you need a working serial console. The serial port is located next to the USB port (see the picture). You need to do some soldering and use a serial cable such as the Nokia CA- 4. DKU- 5 data cable. The serial pinout is [4 3 2 _ 1], where 1 is RX (the red cable in the picture), 3 is GND (the orange cable), and 4 is TX (the yellow cable). Pin 1 is labeled "JP1". Building the root file system. The easiest approach to create the root file system is to use debootstrap and then QEMU. The approach is well documented at http: //www. Once the root file system is ready, you could try it by copying it onto an USB stick. Make sure you preserve all file system attributes (e. To test the new root file system you need to tell the kernel that the file system is on the USB stick: Marvell> > setenv ethaddr [any MAC address]. Marvell> > setenv bootargs console=tty. S0,1. 15. 20. 0 root=/dev/sdc. Marvell> > boot. As MAC address you could use the real MAC address of the ethernet card. A random MAC address works as well. You might need to replace /dev/sdc. SATA disk attached. If everything works properly you should see the login prompt and be able to login. Installing the new root file system on the SATA disk. You need to create a small partition on the disk (e. GB), format it, and then copy the content of the USB stick in the partition. Again, make sure all the file attributes are preserved. To test the new root file system you need to reboot tell the kernel that the file system is now on the SATA disk: Marvell> > setenv ethaddr [any MAC address]. Marvell> > setenv bootargs console=tty. S0,1. 15. 20. 0 root=/dev/sda. Marvell> > boot. If everything works properly you should see the login prompt and be able to login. Booting from the SATA disk by default. Save in the nvram the new kernel command line: Marvell> > setenv ethaddr [your MAC address]. Marvell> > setenv bootargs console=tty. S0,1. 15. 20. 0 root=/dev/sda. Marvell> > savenev. Temperature sensor & fan. You can use the fan- daemon. Tweaking the installation. Once the base system is running you can partition the rest of the space, configure the RAID, etc. Just make sure you have all the necessary devices. If you want to spin- down the hard- drive, you might need to monitor disk accesses to figure out which processes are accessing the disk (echo 1 > /proc/sys/vm/block_dump). There are several tutorials on the web that explain how to use tmpfs to allow the disks to spindown. Working with the serial console. Configure your Arch Linux machine so you can connect to it via the serial console port. This will enable you to administer the machine even if it has no keyboard, mouse, monitor, or network attached to it (a headless server). As of Arch Linux 2. Arch Linux is possible via the serial console as well. A basic environment for this scenario is two machines connected using a serial cable (9- pin connector cable). The administering machine can be any Unix/Linux or Windows machine with a terminal emulator program (Pu. TTY or Minicom, for example). The configuration instructions below will enable GRUB menu selection, boot messages, and terminal forwarding to the serial console. Configuration. Configure console access on the target machine. GRUB2 and systemd. If you configure the serial console in GRUB2 systemd will create a getty listener on the same serial device as GRUB2 by default. So, this is the only configuration needed for Arch running with systemd. To make grub enable the serial console, open /etc/default/grub in an editor. Change the GRUB_CMDLINE_DEFAULT line to start the console on /dev/tty. S0. Note in the example below, we set two consoles up; one on tty. GRUB_CMDLINE_LINUX_DEFAULT="console=tty. S0,3. 84. 00n. 8". Now we need to tell grub where is the console and what command to start in order to enable the serial console (Note as above for Linux kernel, one can append multiple input/output terminals in grub e. GRUB_TERMINAL="console serial" would enable both display and serial). Serial console. GRUB_TERMINAL=serial. GRUB_SERIAL_COMMAND="serial - -speed=3. Rebuild the grub. After a reboot, getty will be listening on /dev/tty. S0, expecting 3. 84. When Arch boots, systemd will automatically start a getty session to listen on the same device with the same settings. Without GRUB2, systemd only. Ignore this entire section if you have configured GRUB2 to listen on the serial interface. If you do not want GRUB2 to listen on the serial device, but only want getty listening after boot then follow these steps. To start getty listening on /dev/tty. S0start/enablegetty@tty. S0. service. You can check to see the speed(s) getty is using with systemctl, but should be 3. N1. # systemctl status serial- getty@tty. S0. service. Getty will be listening on device /dev/tty. S0 expecting 3. 84. GRUB v. 1 and No systemd. Edit the GRUB config file /boot/grub/menu. Add suitable console parameters (e. S0,9. 60. 0. For example, the kernel line should look something like this after modification. S0,9. 60. 0. Note: When the terminal - -timeout=5 serial console line is added to your menu. Press any key to continue" messages. If no key is pressed, the boot menu will appear on whichever (serial or console) appears first in the 'terminal' configuration line. The lines will look like this upon boot: Press any key to continue. Press any key to continue. Press any key to continue. Press any key to continue. Press any key to continue. Press any key to continue. Press any key to continue. Next, we have to edit /etc/inittab and add a new agetty line below the existing ones. S0 linux. Edit /etc/securetty and add an entry for the the serial console, below the existing entries. Note: In all of the steps above, tty. S1 can also be used in case your machine has more than one serial port. Making Connections. Connect using a terminal emulator program Note: Before making a connection, it is recommended to add your user to the uucp group. Otherwise you will need root's permission to make a connection. See Users and groups#User groups for details. Perform these steps on the machine used to connect the remote console. Command linedtermdterm. AUR is a tiny serial communication program. If you invoke it without parameters, it will connect to /dev/tty. S0 at 9. 60. 0 baud by default. The following example connect to /dev/tty. S0 at 1. 15. 20. 0 baud, with 8 data bits, no parity bit and 1 stop bit- times. See its homepage[1] for more examples. Minicomminicom can be obtained from the official repositories. Start Minicom in setup mode. Using the textual navigation menu, change the serial port settings to the following. Serial Device: /dev/tty. S0. Bps/Par/Bits: 9. N1. Press Enter to exit the menus (pressing Esc will not save changes). Remove the modem Init and Reset strings, as we are not connecting to a modem. To do this, under the Modem and Dialing menu, delete the Init and Reset strings. Optionally save the configuration by choosing save setup as dfl from the main menu. Restart minicom with the serial cable connected to the target machine. To end the session, press Ctrl+A followed by Ctrl+X. The following example connect to tty. S0 at 9. 60. 0 bps. S0. Note: if the backspace key won't work properly try out this option: '- -omap delbs'See its manual for detailed usage. Screenscreen is able to connect to a serial port. It will connect at 9. S0. A different baud rate (e. S0 1. 15. 20. 0. Serialclient. Serialclient[2] is a CLI client for serial connection written in ruby. Install it with the following. S ruby. # gem install serialclient. Then, you can use like this. S0. And, for Windows. On Windows machines, connect to the serial port using programs like Pu. TTY[3] or Terminalbpp[4]. Graphical front- endsgtkterm. AUR[broken link: archived in aur- mirror] provides a graphical interface to the task, with most abilities provided by vte. AUR is another gui enabled serial monitor. Linux. moserial is a gtk- based serial terminal, primarily intended for technical users and hardware hackers who need to communicate with embedded systems, test equipment, and serial consoles. Installing Arch Linux using the serial console Note: The Arch Linux monthly release(i. CD)'s boot loader has been configured[5] to listen on 0 port(tty. S0/COM1) at 3. 84. Connect to the target machine using the method described above. Boot the target machine using the Arch Linux installation CD. When the bootloader appears, select Boot Arch Linux (< arch> ) and press Tab to edit Append console=tty. S0,3. 84. 00 and press Enter. Now systemd should detect tty. S0 and spawn a serial getty on it. Login as root and start the installation as usual. Note: After setup is complete, the console settings will not be saved on the target machine; in order to avoid having to connect a keyboard and monitor, configure console access on the target machine before rebooting. Note: While a port speed of 9. List of available speeds is displayed in Minicom by pressing 'Ctrl- A' and then 'P')Troubleshooting. Ctrl- C and Minicom. If you are having trouble sending a Control- C command through minicom you need to switch off hardware flow control in the device settings (minicom - s), which then enables the break. Resizing a terminal. Unlike ssh, serial connection does not have a mechanism to transfer something like SIGWINCH when a terminal is resized. This will cause weird problem with some full- screen programs (e. Resize the terminal via stty is a workaround. However the above one requires you to manually input the proper geometry. The following examples should simplify the work. There is a less- known utility called resize, which is shipped with xterm, can solve this problem. Invoke it without parameter after you resize the terminal emulator's window. In the case that you do not want to install xterm, it is possible to do the same work via a simple shell function. Put the following function into your zshrc, invoke it without parameter after you resize the terminal emulator's window. IFS='[; ' escape geometry x y. H\e[6n\e. 8'. read - sd R escape geometry. COLUMNS} - eq ${x} & & ${LINES} - eq ${y} ]]; then. TERM} ${x}x${y}". COLUMNS}x${LINES} - > ${x}x${y}". Usage: rsz' ## Easter egg here : ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |