Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howtos:hardware:serial_installation [2014/06/23 13:30 (UTC)]
rbn created
howtos:hardware:serial_installation [2014/06/27 18:11 (UTC)]
sycamorex [Installation] Syntax cleanup for consistency with other pages
Line 16: Line 16:
 mount the usbboot.img somewhere like this: mount the usbboot.img somewhere like this:
  
-''​# mount -o loop usbboot.img /mnt/tmp''​+  ​# mount -o loop usbboot.img /mnt/tmp
  
 Now that the image is mounted, you can change the ''​syslinux.cfg''​ found in ''/​mnt/​tmp''​. Insert Now that the image is mounted, you can change the ''​syslinux.cfg''​ found in ''/​mnt/​tmp''​. Insert
 as a first line: as a first line:
  
-''​serial 0 115200''​+  ​serial 0 115200
  
 This enables the serial line for syslinux with 115200 bauds (parity and stopbit are hardcoded to n8). This enables the serial line for syslinux with 115200 bauds (parity and stopbit are hardcoded to n8).
 While the bootloader is now using the serial, the kernel still doesn'​t. Add While the bootloader is now using the serial, the kernel still doesn'​t. Add
  
-''​console=ttyS0,​115200''​+  ​console=ttyS0,​115200
  
 To the append-line of the first kernel image (huge.s). To the append-line of the first kernel image (huge.s).
Line 32: Line 32:
 the things up you can set another timeout (in s/10) after which the default image (huge.s) is booted.</​note>​ the things up you can set another timeout (in s/10) after which the default image (huge.s) is booted.</​note>​
  
-When you are done with the changes, you can unmount the image as usual. Like recommended by Eric  +When you are done with the changes, you can unmount the image as usual. Like [[http://​alien.slackbook.org/​dokuwiki/​doku.php?​id=slackware:​usbboot#​assembling_the_usb_image| recommended by Eric]]
-([[http://​alien.slackbook.org/​dokuwiki/​doku.php?​id=slackware:​usbboot#​assembling_the_usb_image]])+
 install the syslinux bootloader to the image: install the syslinux bootloader to the image:
  
-''​$ syslinux -s usbboot.img''​+  ​$ syslinux -s usbboot.img
  
 The image is ready now to be dd'd onto a usb-key: The image is ready now to be dd'd onto a usb-key:
  
-''​# dd if=usbboot.img of=/​dev/​myusbkey''​+  ​# dd if=usbboot.img of=/​dev/​myusbkey
  
 ===== Installation ===== ===== Installation =====
 Connect the serial ports of your two machines with a null-modem cable, and run  Connect the serial ports of your two machines with a null-modem cable, and run 
  
-''​minicom -D /dev/ttyS0 -b 115200''​+  ​minicom -D /dev/ttyS0 -b 115200
  
 on the machine you will use as your terminal. Now boot the machine you are installing on the machine you will use as your terminal. Now boot the machine you are installing
Line 55: Line 54:
 in ''/​dev/​disk/​by-label'',​ it makes stuff a __lot__ easier later e.g: in ''/​dev/​disk/​by-label'',​ it makes stuff a __lot__ easier later e.g:
  
-''​# mke2fs -L root /dev/sdb1''​+  ​# mke2fs -L root /dev/sdb1
  
-Don't let the slackware ​installer format them then of course.+Don't let the Slackware ​installer format them then of course.
 </​note>​ </​note>​
  
Line 63: Line 62:
 from dialog: from dialog:
  
-''​export DIALOGOPTS="​--ascii-lines"​''​+  ​export DIALOGOPTS="​--ascii-lines"​
  
 The rest of the installation should work as usual ("​special"​ keys like page up don't seem to work correctly though..). But instead of rebooting after the installation has finished, we need to set the installed system to also use the serial line. Chroot into the installation:​ The rest of the installation should work as usual ("​special"​ keys like page up don't seem to work correctly though..). But instead of rebooting after the installation has finished, we need to set the installed system to also use the serial line. Chroot into the installation:​
  
-''​# chroot /mnt''​+  ​# chroot /mnt
  
 Now edit your ''/​etc/​lilo.conf''​ and insert a line  Now edit your ''/​etc/​lilo.conf''​ and insert a line 
  
-''​serial= 0,115200n8''​+  ​serial= 0,115200n8
  
 right at the top. The global append line needs the addition like the one right at the top. The global append line needs the addition like the one
 used for the ''​usbboot.img'':​ used for the ''​usbboot.img'':​
  
-''​console=ttyS0,​115200''​+  ​console=ttyS0,​115200
  
 to let it come up before the init system tries to mount it. to let it come up before the init system tries to mount it.
Line 84: Line 83:
 you should also add: you should also add:
  
-''​rootdelay=10''​+  ​rootdelay=10
  
 The device order on the APU is likely to change. So you should The device order on the APU is likely to change. So you should
Line 101: Line 100:
  
 Uncomment the line enabling serial login in your inittab and change the speed to 115200: Uncomment the line enabling serial login in your inittab and change the speed to 115200:
-''​+<​code>​
 [...] [...]
  
Line 109: Line 108:
  
 [...] [...]
-''​+</​code>​
  
 <note important>​Uncomment ''​ttyS0''​ in ''/​dev/​securetty''​ or you will not be able to login as root from the serial line!</​note>​ <note important>​Uncomment ''​ttyS0''​ in ''/​dev/​securetty''​ or you will not be able to login as root from the serial line!</​note>​
  
-This should be all, exit the chrootand reboot your system!+This should be all. Exit the chroot and reboot your system!
  
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "​template"​ below before saving your new page --> <!-- You must remove the tag-word "​template"​ below before saving your new page -->
 {{tag>​howtos serial installation}} {{tag>​howtos serial installation}}

In Other Languages
QR Code
QR Code howtos:hardware:serial_installation (generated for current page)