Home Forum Developers IP0x tftp and the SD card

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


switchfinreseller
useravatar
User Info

tftp and the SD card

This would be a dual question.

1. Is there a tftpd binary I can download to my IP0Xs and PR1-appliances?
2. If there is, can I tell the tftpd to look at the SD card for the files to give out?

If no to the above, please add it to the wish list for future upgrade items.  :-)

Thanks, in advance.


Administrator has disabled public posting
admin
useravatar
User Info

Re: tftp and the SD card

Hello,

We have all ftp, tftp and ssh servers running on the Switchfin PBXs
The default root directory for the tftp server is /persistent/tftp/

To change the root directory we have to modify the following line in /etc/rc

echo "tftp    dgram  udp wait   root /bin/in.tftpd /persistent/tftp" >> /etc/inetd.conf

Currently the rc is in RAM however so your changes will not persist after restart.

Probably we have to make rc persistent?
What do you think?

Cheers
Dimitar


Administrator has disabled public posting
switchfinreseller
useravatar
User Info

Re: tftp and the SD card

I see tftp in /usr/bin/  but I thought this was only a client and not a daemon.  I don't see it loaded when doing a ps ax or see an open port for tftpd when nmapping the PR1.  I will give it a try.

My goal is to use this tftp server dedicated only for PBX use and store a small amount of phone config files.  Keeping the files in /persistent/tftp is fine but placing them on the card would be better because I know some phone have large files, like the Polycom core SIP files.  Placing a seperate tftp server in a small business network is undesirable and this would work well.

However,  I have installed standard 2GB SD cards of the same make and model in both my IP04s and my PR1 and only the IP04 shows the SD card when I df in shell.   ??

Looking at what rc does I just tried to mount it in the PR1 and see this:
root@pr1:/etc> modprobe spi_mmc > /dev/null
modprobe: module spi_mmc not found in modules.dep


Administrator has disabled public posting
admin
useravatar
User Info

Re: tftp and the SD card

Hello,

The demon binary is /bin/in.tftpd

I will take a look what is going on with the SD card . 

Best Regards
Dimitar


Administrator has disabled public posting
switchfinreseller
useravatar
User Info

Re: tftp and the SD card

I just tested an old Grandstream 2000 I had laying around and placed the latest firmware in/persistent/tftp on my PR1.  It worked fine:

Jan  1 18:26:51 PR1 daemon.notice atftpd[2620]: Advanced Trivial FTP server started (0.7)
Jan  1 18:26:51 PR1 daemon.notice atftpd[2622]: Serving cfg000b8205561d to 172.26.1.75:34977
Jan  1 18:26:51 PR1 daemon.notice atftpd[2623]: Serving boot55b.bin to 172.26.1.75:34978
Jan  1 18:26:52 PR1 daemon.notice atftpd[2624]: Serving gxp2000b.bin to 172.26.1.75:34979
Jan  1 18:27:15 PR1 daemon.notice atftpd[2625]: Serving ring1.bin to 172.26.1.75:34980
Jan  1 18:27:16 PR1 daemon.notice atftpd[2626]: Serving ring2.bin to 172.26.1.75:34981
Jan  1 18:27:17 PR1 daemon.notice atftpd[2627]: Serving ring3.bin to 172.26.1.75:34982
Jan  1 18:28:05 PR1 daemon.notice atftpd[2628]: Serving cfg000b8205561d to 172.26.1.75:44610
Jan  1 18:28:05 PR1 daemon.notice atftpd[2629]: Serving boot55d.bin to 172.26.1.75:44611
Jan  1 18:28:09 PR1 daemon.notice atftpd[2630]: Serving gxp2000d.bin to 172.26.1.75:44612
Jan  1 18:29:03 PR1 daemon.notice atftpd[2631]: Serving ring1.bin to 172.26.1.75:44613
Jan  1 18:29:04 PR1 daemon.notice atftpd[2632]: Serving ring2.bin to 172.26.1.75:44614
Jan  1 18:29:04 PR1 daemon.notice atftpd[2633]: Serving ring3.bin to 172.26.1.75:44615
Jan  1 18:29:05 PR1 daemon.notice atftpd[2634]: Serving gxp2000.lpf to 172.26.1.75:44616
Jan  1 18:29:31 PR1 daemon.notice atftpd[2635]: Serving cfg000b8205561d to 172.26.1.75:6529
Jan  1 18:29:31 PR1 daemon.notice atftpd[2636]: Serving boot55e.bin to 172.26.1.75:6530
Jan  1 18:29:34 PR1 daemon.notice atftpd[2637]: Serving gxp2000e.bin to 172.26.1.75:6531
Jan  1 18:30:28 PR1 daemon.notice atftpd[2638]: Serving ring1.bin to 172.26.1.75:6532
Jan  1 18:30:29 PR1 daemon.notice atftpd[2639]: Serving ring2.bin to 172.26.1.75:6533
Jan  1 18:30:29 PR1 daemon.notice atftpd[2640]: Serving ring3.bin to 172.26.1.75:6534
Jan  1 18:30:29 PR1 daemon.notice atftpd[2641]: Serving gxp.lpf to 172.26.1.75:6535
Jan  1 18:31:04 PR1 daemon.notice atftpd[2642]: Serving cfg000b8205561d to 172.26.1.75:43947
Jan  1 18:31:04 PR1 daemon.notice atftpd[2643]: Serving boot55e.bin to 172.26.1.75:43948
Jan  1 18:31:04 PR1 daemon.notice atftpd[2644]: Serving gxp2000e.bin to 172.26.1.75:43949
Jan  1 18:31:06 PR1 daemon.notice atftpd[2645]: Serving ring1.bin to 172.26.1.75:43950
Jan  1 18:31:06 PR1 daemon.notice atftpd[2646]: Serving ring2.bin to 172.26.1.75:43951
Jan  1 18:31:06 PR1 daemon.notice atftpd[2647]: Serving ring3.bin to 172.26.1.75:43952
Jan  1 18:31:07 PR1 daemon.notice atftpd[2648]: Serving gxp.lpf to 172.26.1.75:43953

Oh and Yes my PR1 clock is wrong.  It's still in a test mode and NTP is giving me some issues.  I think it's my NTP server not the PR1.  :-)


Administrator has disabled public posting
admin
useravatar
User Info

Re: tftp and the SD card

Hello Guys,

Now PR1 supports SD card.
Please check the latest code in the SVN

Cheers
Dimitar


Administrator has disabled public posting
switchfinreseller
useravatar
User Info

Re: tftp and the SD card

Will you release this as a down loadable img file or do I need to get source and compile?  (thanks)


Administrator has disabled public posting
switchfinreseller
useravatar
User Info

Re: tftp and the SD card

I see uImage-pr1-v401.img on switchvoice.com.  I'll go get it.  Thanks.


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 152
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked