Skip to content

Instantly share code, notes, and snippets.

@jameswhite
Last active April 23, 2017 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameswhite/95158a55f6670348c23841b072f8b542 to your computer and use it in GitHub Desktop.
Save jameswhite/95158a55f6670348c23841b072f8b542 to your computer and use it in GitHub Desktop.

Raspberry Pi:

Set up minicom, serial console a soekris 5501 with a pl2303 adapter
apt-get install -y minicom
cat<<EOF> /root/minirc.ttyUSB0
# Machine-generated file - use setup menu in minicom to change parameters.
pu port             /dev/ttyUSB0
pu baudrate         38400
pu bits             8
pu parity           N
pu stopbits         1
pu rtscts           No
EOF

Use a minicom session to grab the MAC Address the soekris will attempt to PXE boot from

minicom ttyUSB0
Welcome to minicom 2.7

OPTIONS: I18n
Compiled on Jan 12 2014, 05:42:53.
Port /dev/ttyUSB0, 18:31:36

Press CTRL-A Z for help on special keys

> show

ConSpeed = 38400
ConLock = Enabled
ConMute = Disabled
BIOSentry = Enabled
PCIROMS = Enabled
PXEBoot = Enabled
FLASH = Primary
BootDelay = 5
FastBoot = Disabled
BootPartition = Disabled
BootDrive = 80 81 F0 FF
ShowPCI = Enabled
Reset = Hard
CpuSpeed = Default

> set BootDrive F0 80 81 FF
> reboot
POST: 012345689bcefghips1234ajklnopqr,,,tvwxy
comBIOS ver. 1.33  20070103  Copyright (C) 2000-2007 Soekris Engineering.
net5501
CPU Geode LX 500 Mhz
0000 Mbyte Memory
0512
Pri Mas  SanDisk SDCFH-004G              LBA Xlt 968-128-63  3906 Mbyte
Slot   Vend Dev  ClassRev Cmd  Stat CL LT HT  Base1    Base2   Int
-------------------------------------------------------------------
0:01:2 1022 2082 10100000 0006 0220 08 00 00 A0000000 00000000 10
0:06:0 1106 3053 02000096 0117 0210 08 40 00 0000E101 A0004000 11
0:07:0 1106 3053 02000096 0117 0210 08 40 00 0000E201 A0004100 05
0:08:0 1106 3053 02000096 0117 0210 08 40 00 0000E301 A0004200 09
0:09:0 1106 3053 02000096 0117 0210 08 40 00 0000E401 A0004300 12
0:20:0 1022 2090 06010003 0009 02A0 08 40 80 00006001 00006101
0:20:2 1022 209A 01018001 0005 02A0 08 00 00 00000000 00000000
0:21:0 1022 2094 0C031002 0006 0230 08 00 80 A0005000 00000000 15
0:21:1 1022 2095 0C032002 0006 0230 08 00 00 A0006000 00000000 15
Seconds to automatic boot.   Press Ctrl-P for entering Monitor.
 5
 4
 3
 2
 1
Intel UNDI, PXE-2.0 (build 082)
Copyright (C) 1997,1998,1999  Intel Corporation
VIA Rhine III Management Adapter v2.43 (2005/12/15)
CLIENT MAC ADDR: 00 00 24 CC 5B 00.

Set up DHCP
  • wlan0: 10.255.3.101/24 (uplink)
  • eth0: 10.255.1.101/24 (downlink)
apt-get install -y isc-dhcp-server

cat<<EOF > /etc/dhcp/dhpcd.conf
ddns-update-style none;
option domain-name "apartment.jameswhite.org
option domain-name-servers 10.255.1.101;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

subnet 10.255.3.0 netmask 255.255.255.0 {
  deny unknown-clients;
}

subnet 10.255.1.0 netmask 255.255.255.0 {
  option routers 10.255.1.101;
  # clients
  deny unknown-clients;
}
EOF

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