[U-Boot] NFS boot problems !

On Sat, Oct 24, 2009 at 5:09 PM, Jerry Van Baren gvb.uboot@gmail.comwrote:
Cristian Axenie wrote:
Hi all !
I try to boot the kernel and rootfs using NFS! Next is my u-boot env:
[snip]
bootfile=/home/haustiq/development/uImage
Likely wrong (see below).
My problem is that when I
run bootcmd
I get :
Speed: 100, full duplex Using eTSEC0 device TFTP from server 192.168.1.103; our IP address is 192.168.1.100 Filename '/home/haustiq/development/uImage'.
This does *NOT* look like a valid path. TFTP servers typically serve out of a dedicated directory (often /tftpboot) and the paths to the files are usually relative to the root folder.
But if I changed the directory to the one mentioned before in the /etc/inetd.conf and didn't used /tftpboot ?
You probably want to copy your uImage to /tftpboot/uImage and use the file name either uImage or /uImage or /tftboot/uImage.
Yes indeed I copy my kernel image to the specified folder (home/haustiq/development/) !
Do a "tftp get" from a computer, preferably not your tftp server computer, to figure out your TFTP server path and file names before trying to TFTP from u-boot.
If you run stuck, use wireshark on your server to see what is going on on the wire.
Load address: 0x1000000
Loading: * TFTP error: 'Access violation' (2) Starting again
Any ideas ?
Wrong path/file.
I've also tried the way you mentioned , selected /tftpboot the dedicated folder, made the appropriate modifications and moved the uImage there... and the problem persists !
Good luck, gvb
Thanks for the response !
If further ideas, please post them !
Best !
[snip]

Cristian Axenie wrote:
On Sat, Oct 24, 2009 at 5:09 PM, Jerry Van Baren gvb.uboot@gmail.comwrote:
Cristian Axenie wrote:
Hi all !
[snip]
My problem is that when I
run bootcmd
I get :
Speed: 100, full duplex Using eTSEC0 device TFTP from server 192.168.1.103; our IP address is 192.168.1.100 Filename '/home/haustiq/development/uImage'.
This does *NOT* look like a valid path. TFTP servers typically serve out of a dedicated directory (often /tftpboot) and the paths to the files are usually relative to the root folder.
But if I changed the directory to the one mentioned before in the /etc/inetd.conf and didn't used /tftpboot ?
The TFTP protocol has *NO* security, so changing the root folder to a subdirectory your home directory is *NOT* a good practice.
The tftp server very likely doesn't have read permission to read the directory you set it to. Your /home directory is probably not world-readable. Setting it to be world readable is not a good practice. This will probably "fix" your problem, but IS A BAD PRACTICE: chmod -R o+r /home/haustiq
You need to configure your tftp server properly.
DO THIS:
Do a "tftp get" from a computer, preferably not your tftp server computer, to figure out your TFTP server path and file names before trying to TFTP from u-boot.
If you run stuck, use wireshark on your server to see what is going on on the wire.
[snip]
Best regards, gvb

Dear Cristian Axenie,
In message 9c789a000910240721x1789c1d9n3fefd3abd327e07c@mail.gmail.com you wrote:
But if I changed the directory to the one mentioned before in the /etc/inetd.conf and didn't used /tftpboot ?
In addition to all the excellent advice JvB already gave you just one more hint: editing /etc/inetd.conf alone is not sufficient; such changes will only become effective after you restart the inetd server.
Best regards,
Wolfgang Denk

On Sat, Oct 24, 2009 at 8:12 PM, Wolfgang Denk wd@denx.de wrote:
Dear Cristian Axenie,
In message 9c789a000910240721x1789c1d9n3fefd3abd327e07c@mail.gmail.com you wrote:
But if I changed the directory to the one mentioned before in the /etc/inetd.conf and didn't used /tftpboot ?
In addition to all the excellent advice JvB already gave you just one more hint: editing /etc/inetd.conf alone is not sufficient; such changes will only become effective after you restart the inetd server.
Thank you all for your "minimal latency" response! I managed to make the proper configs and now I'm booting fine over NFS usign TFTP!
Best regards !
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de In English, every word can be verbed. Would that it were so in our programming languages.
participants (3)
-
Cristian Axenie
-
Jerry Van Baren
-
Wolfgang Denk