A Simple "nano-router" type Raspberry image
Using the mk
script.
- prep : Prepare the build environment
- clean : deletes the build and src trees
- ovl [sd=/dev/sdx] : copy the overlay files to sdcard
- sdcard [sd=/dev/sdx] : Install image to sdcard
- inst [sd=/dev/sdx ] : Install image and copy overlays to sdcard
- cc : Call make
Make targets:
- nconfig : Configure image
- linux-menuconfig : Configure kernel
- busybox-menuconfig : Configure busybox
./mk prep
Prepares the build environment./mk nconfig
Initialises basic configuration../mk
Builds the whole thing./mk sdcard sd=/dev/xxxx
Installs to SD card- Insert SD card into pi and run...
- setup ethernet
- setup wifi client
- setup AP router
- hostapd
- nat (IP!)
- static IP
- sysctl
- iptables
- ap_ipcfg (configs static IP and dnsmasq)
- dnsmasq (IP!)
- user interface
- Configure AP SSID and PSK
- TODO: udhcp script should kill dnsmasq (so it checks IPs again)