Skip to content

Instantly share code, notes, and snippets.

@Avasz
Last active August 12, 2016 16:53
Show Gist options
  • Save Avasz/dc7f73ad92d68ffeb666036a31e209a2 to your computer and use it in GitHub Desktop.
Save Avasz/dc7f73ad92d68ffeb666036a31e209a2 to your computer and use it in GitHub Desktop.

#Tips on installing Debian (8, Jessie) in apu2c4

apu2c4 has only serial output, so it maybe a bit different installing not only debian but any Operating Systems in it. Following steps can help a lot in installing Debian in apu2c4.

  1. First prepare some serial console like minicom or picocom. (I use picocom). Connect the serial out of APU to your laptop using Serial-to-USB cables.
  2. Perform the following command as root:
picocom -b 115200 /dev/ttyUSB0
  1. A serial console will come up. You need a Debian installation disk beforehand. Insert it, and poweron the APU. Select 'f10' when prompted and choose the USB Disk for booting.

  2. Before choosing the Install Option, we need to pass an arguement that changes the default output of the installer from VGA/HDMI to Serial. Press tab and you will see a line to edit the boot parameter. Remove the word vga=788 and replace it with console=ttyS0,115200,n8 and press enter to boot.

  3. Continue normal debian installation process.

  4. After completion of the installation, you won't be able to boot because the system tries to send output to VGA/HDMI/(etc). We need to configure it to send output over Serial.

  5. Get a shell, either by some sort of live boot or via ssh if you had enabled it and are connected to the network.

  6. Edit the file /etc/default/grub as following, append or replace as required

    GRUB_CMDLINE_LINUX='console=tty0 console=ttyS0,115200,n8'
    GRUB_TERMINAL=serial
    GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
  7. After that run, update-grub and reboot.

  8. Enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment