There are a few guides that show how to do a Linux distro but I can't find any to set up a Windows pxe.
Many thanks
Moderator: Moderators
Code: Select all
cd /tmp/usb_mount/dev_sdb1
mkdir tftp tftp/pxelinux.cfg tftp/disks tftp/disks/ubuntu1604-64
mkdir /tmp/usb_mount/dev_sdb1/syslinux-download
cd /tmp/usb_mount/dev_sdb1/syslinux-download
wget --no-check-certificate https://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-6.03.tar.gz
gzip -df syslinux-6.03.tar.gz
tar -xf syslinux-6.03.tar
cd /tmp/usb_mount/dev_sdb1/syslinux-download/syslinux-6.03/bios
cp core/pxelinux.0 com32/elflink/ldlinux/ldlinux.c32 com32/menu/vesamenu.c32 com32/lib/libcom32.c32 com32/libutil/libutil.c32 /tmp/usb_mount/dev_sdb1/tftp
touch /tmp/usb_mount/dev_sdb1/tftp/pxelinux.cfg/default
Code: Select all
DEFAULT vesamenu.c32
PROMPT 0
MENU TITLE OpenWrt PXE-Boot Menu
label Ubuntu
MENU LABEL Ubuntu Live 16.04 64-Bit
KERNEL disks/ubuntu1604-64/casper/vmlinuz
APPEND boot=casper ide=nodma netboot=nfs nfsroot=192.168.1.1:/tmp/usb_mount/dev_sdb1/tftp/disks/ubuntu1604-64/ initrd=disks/ubuntu1604-64/casper/initrd
TEXT HELP
Starts the Ubuntu Live-CD - Version 16.04 64-Bit
ENDTEXT
Code: Select all
uci set dhcp.@dnsmasq[0].enable_tftp='1'
uci set dhcp.@dnsmasq[0].tftp_root='/tmp/usb_mount/dev_sdb1/tftp'
uci set dhcp.linux='boot'
uci set dhcp.@boot[0].filename='pxelinux.0'
uci set dhcp.@boot[0].serveraddress='192.168.1.1'
uci set dhcp.@boot[0].servername='OpenWrt'
uci set dhcp.@boot[0].force='1'
uci add_list dhcp.@boot[0].dhcp_option='209,pxelinux.cfg/default'
uci commit dhcp