-
Notifications
You must be signed in to change notification settings - Fork 5
/
NETBOOT
75 lines (52 loc) · 2.08 KB
/
NETBOOT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
==================================
= PXE boot on the Sökris net4826 =
==================================
Unzip tftp.tgz into /srv/var. This directory contains the "stable" qurinet image
``qr-stable.img``.
$ sudo mkdir -p /srv/var
$ sudo chmod 777 /srv/var
$ tar -zxf tftp.tgz
$ mv tftp/* /srv/var
Download dnsmasq
$ sudo apt-get install dnsmasq
Append the following to /etc/dnsmasq.conf (change where appropriate, if needed)
## deactivate DNS
port=0
## listen on specific interface and/or address
## !!!! change this to match server interface/ip that target will communicate with !!!!
interface=eth0
#listen-address=192.168.1.1
bind-interfaces
## DHCP configuration
dhcp-range=192.168.1.50,192.168.1.150,12h
# detect PXE clients
dhcp-vendorclass=set:pxe,PXEClient
# MACs we serve (MAC address of target)
# !!!! change this to limit access to the server!!!!
#dhcp-host=00:00:24:C8:55:28
# do not send default route and DNS server options
dhcp-option=option:router
dhcp-option=option:dns-server
# ignore request from unknown hosts
# !!!! uncomment following if target MAC is specified by dhcp-host above !!!!
#dhcp-ignore=tag:!known
# and ignore non-PXE booting
dhcp-ignore=tag:!pxe
## TFTP configuration
enable-tftp
# !!!! change if pxe files are located in a different location !!!!
tftp-root=/srv/var
dhcp-boot=pxelinux.0
Start the DHCP and TFTP servers, add an IP addresss for ethernet interface
# service network-manager stop
# ifconfig eth0 192.168.1.254 netmask 255.255.255.0
# service dnsmasq restart
Connect ethernet (above dnsmasq config assumed direct connection between server and soekris board) and serial cable (terminal) to soekris board target.
Boot the board
In the terminal, hit ctrl+P at startup, and type 'boot f0' at the boot monitor.
Wait for wmn_os prompt. This takes a couple minutes after ready is displayed.
!!!!!!!!!TODO!!!!!!!!!!!!!
copy image to target
Restore previous networking settings:
# service dnsmasq stop
# service network-manager start