What's new

netboot from router usb - asuswrt-merlin - RT-AC87U problem

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

filip

New Around Here
Hello,
I am following this blog on easy setup for pxe booting from usb connected to router.

after booting the client, I am getting this message:
PXE-T01 : File not found (/tmp/pxelinux.0)

my dnsmasq.conf.add:
# index file which will start boot
dhcp-boot=pxelinux.0

# Enable dnsmasq's built-in TFTP server
enable-tftp

# put here the full path to your netboot image on a flash-drive
tftp-root=/tmp/mnt/PUPPY/netboot

log-dhcp

winscp-screenshot for the filestructure:
winsp_scr.jpg


could anybody help please?
 
There appeared to be a bug in @RMerlin's implementation of tftp/dnsmasq as seen here.

It was working at a later date (at least with @john9527's firmware) as seen here.

What firmware version are you running?
 
There appeared to be a bug in @RMerlin's implementation of tftp/dnsmasq as seen here.

It was working at a later date (at least with @john9527's firmware) as seen here.

What firmware version are you running?

Hello Colin,
many thanks for your response, yeah it seems as it is exactly same issue as at @RMerlin (strange was searching the net two days for this issue and have not foud that thread). I tried to test pxelinux.0 in /tmp/ folder and it got loaded.

my firmware version is: 384.4_2 - just checked that is the most recent - I will try the beta version or revert to older one - lets see if that helps!
 
no success so far,

syslog:

dnsmasq-dhcp[1766]: DHCP, IP range 192.168.1.100 -- 192.168.1.254, lease time 1d
dnsmasq-tftp[1766]: TFTP root is /tmp/mnt/PUPPY/netboot


same issue
PXE-T01 : File not found (/tmp/pxelinux.0)

tested with firmware:
recent38.4-2; 380.68_4 and 380.70beta

usb sharing setup:
usb_sharing_opt.jpg
 
What can I say... it works for me using John's firmware.

It's probably worth double-checking that it's a tftp-root problem and not a client issue. From a LAN client's command prompt can you issue the following:

tftp 192.168.1.1 get zzzz

You should then see what path it is defaulting to in the router's syslog:

Apr 3 20:36:43 dnsmasq-tftp[21490]: file /tmp/mnt/VERBATIM/ASUS/pxe/bios/zzzz not found
Apr 3 20:36:44 dnsmasq-tftp[21490]: file /tmp/mnt/VERBATIM/ASUS/pxe/bios/zzzz not found
Apr 3 20:36:46 dnsmasq-tftp[21490]: file /tmp/mnt/VERBATIM/ASUS/pxe/bios/zzzz not found
Apr 3 20:36:50 dnsmasq-tftp[21490]: file /tmp/mnt/VERBATIM/ASUS/pxe/bios/zzzz not found
Apr 3 20:36:58 dnsmasq-tftp[21490]: file /tmp/mnt/VERBATIM/ASUS/pxe/bios/zzzz not found
 
dont know linux and just few days in pxe... I understand what I want, but dont understand much how to do it and what I am doing...

after ssh to 192.168.1.1 from different pc your command nothing happen in syslog (192.168.1.1/tmp/syslog.log).
here is what happens in putty:
filip@RT-AC87U:/tmp/home/root# netstat -an|grep 69
tcp 0 0 169.254.39.49:669 169.254.39.53:686 ESTABLISHED
tcp 0 0 169.254.39.49:679 169.254.39.53:686 ESTABLISHED
udp 0 0 0.0.0.0:69 0.0.0.0:*
filip@RT-AC87U:/tmp/home/root# tftp 192.168.1.1 get zzzz
BusyBox v1.25.1 (2018-03-31 20:06:45 EDT) multi-call binary.

Usage: tftp [OPTIONS] HOST [PORT]

Transfer a file from/to tftp server

-l FILE Local FILE
-r FILE Remote FILE
-g Get file
-p Put file
filip@RT-AC87U:/tmp/home/root#
filip@RT-AC87U:/tmp/home/root#

after unsuccessfull diskless client in syslog:
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 available DHCP range: 192.168.1.100 -- 192.168.1.254
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 vendor class: PXEClient:Arch:00000:UNDI:002001
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 DHCPDISCOVER(br0) fc:aa:14:07:ed:b5
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 tags: lan, br0
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 DHCPOFFER(br0) 192.168.1.122 fc:aa:14:07:ed:b5
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 1:netmask, 2:time-offset, 3:router, 4, 5,
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 6:dns-server, 11, 12:hostname, 13:boot-file-size,
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 15:domain-name, 16:swap-server, 17:root-path,
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 18:extension-path, 22:max-datagram-reassembly,
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 23:default-ttl, 28:broadcast, 40:nis-domain,
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 41:nis-server, 42:ntp-server, 43:vendor-encap,
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 50:requested-address, 51:lease-time, 54:server-identifier,
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 58:T1, 59:T2, 60:vendor-class, 66:tftp-server,
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 67:bootfile-name, 128, 129, 130, 131, 132,
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 requested options: 133, 134, 135
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 next server: 192.168.1.1
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 broadcast response
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 1 option: 53 message-type 2
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 4 option: 54 server-identifier 192.168.1.1
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 4 option: 51 lease-time 1d
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 11 option: 67 bootfile-name pxelinux.0
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 4 option: 58 T1 12h
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 4 option: 59 T2 21h
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 4 option: 1 netmask 255.255.255.0
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 4 option: 28 broadcast 192.168.1.255
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 4 option: 6 dns-server 192.168.1.1
Apr 3 22:54:06 dnsmasq-dhcp[1344]: 352841141 sent size: 4 option: 3 router 192.168.1.1

johns firmware unfortunately for older routers only...:( cannot test on my ac87u
 
This is from a Windows command prompt:

tftp 192.168.1.1 get zzzz

tftp is a Windows Feature. I can't remember whether it's installed by default.
 
Last edited:
took me a while to figure that out - needs to be enabled on win10
anyway the result is:
C:\WINDOWS\system32>tftp 192.168.1.1 get zzzz
Connect request failed
anything in syslog

is it enabled as in dnsmasq.conf.add? is there anything else I need to do for activation?
# Enable dnsmasq's built-in TFTP server
enable-tftp

thanks for your help so far! now filip get zzzZZZzzz ;)
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top