* TFTP not able to find file???
@ 2003-02-02 21:56 brian.auld
2003-02-02 22:09 ` Wolfgang Grandegger
2003-02-02 22:58 ` Wolfgang Denk
0 siblings, 2 replies; 6+ messages in thread
From: brian.auld @ 2003-02-02 21:56 UTC (permalink / raw)
To: linuxppc-embedded
All y'all must've been wondering why I hadn't posted with a problem yet
today. Surprise!!
Checklist for my embedded 'linux on ebony/440GP' project:
---------------------------------------------------------
- cross tools working (check)
- bootloader built (check)
- bootloader installed in flash (check!!)
- bootloader runs (check!!)
- ... next load linux
Well, I've progressed to the point where u-boot is installed on the ebony
and running. I'm now trying to load linux and run, but I'm getting stumped
where tftp is not able to find the file I'm trying to load. The following
are attached below to show my settings:
(a) dhcp conf file on host
(b) listing of tftp directory
(c) ebony serial port log
Please note the following:
- Host/DHCP server ip=172.16.77.151
- Target ip=172.16.77.152 (assigned by dhcp server)
- Permissions in tftpboot directory are more than adequate
- I used DHCP because as I fuddled around with u-boot, it didn't see
possible to separate tftp from bootp. In other words, even if I set
ip addr(s) and stuff through the u-boot setenv command, the values
would be automatically overidden when I run the bootp command. The
BOOTP command seems to be the only way to kick off tftp, so I really
wasn't able to find a way to make use of statically set network
Config info.
- vmlinux.PPCBOOT is the product of my 'make uImage' build in my kernel
source tree.
Any ideas on why this isn't working??
***************************************************************************
********************* (a) dhcp config file ********************************
***************************************************************************
subnet 172.16.77.0 netmask 255.255.255.0 {
option routers 172.16.77.1;
option subnet-mask 255.255.255.0;
option domain-name "adic.com";
host trgt { hardware ethernet 00:04:AC:E3:1B:55;
fixed-address 172.16.77.152;
option root-path "/opt/eldk/ppc_4xx";
option host-name "ebony1-linux-iSCSI";
next-server 172.16.77.151;
filename "/tftpboot/vmlinux.PPCBoot";
}
}
***************************************************************************
***************************************************************************
***************************************************************************
********************* (b) tftp directory *********************************
***************************************************************************
[root@ppc-dev logs]# ls -al /tftpboot
total 4336
drwxrwxrwx 4 root root 4096 Feb 2 11:08 .
drwxr-xr-x 20 root root 4096 Jan 30 04:47 ..
-rw-r--r-- 1 root root 256 Jan 31 09:33 bdi_log
-rw-r--r-- 1 root root 3061 Feb 2 11:08 evb440gp.cfg
drwxr-xr-x 2 root root 4096 Feb 2 11:52 logs
-rwxr-xr-x 1 root root 524288 Jan 31 13:51 ppcboot.bin
-rw-r--r-- 1 root root 9597 Feb 1 08:20 reg405gp.def
-rw-r--r-- 1 root root 10722 Feb 2 04:37 reg440gp.def
-rwxr-xr-x 1 root root 539716 Jan 31 08:43 u-boot
-rwxr-xr-x 1 root root 524288 Jan 31 08:43 u-boot.bin
-rwxr-xr-x 1 root root 1572962 Jan 31 08:43 u-boot.srec
-rwxrwxrwx 1 root root 583425 Feb 2 07:48 vmlinux.PPCBoot
drwxr-xr-x 3 root root 4096 Jan 30 04:11 X86PC
-rwxr-xr-x 1 root root 611872 Feb 1 08:18 zImage.ebony
[root@ppc-dev logs]#
***************************************************************************
***************************************************************************
***************************************************************************
********************* (c) ebony serial port *******************************
***************************************************************************
U-Boot 0.2.0 (Jan 31 2003 - 05:12:55)
IBM PowerPC 440 Rev. C
Board: IBM 440GP Evaluation Board (Ebony)
VCO: 800 MHz
CPU: 400 MHz
PLB: 133 MHz
OPB: 66 MHz
EPB: 66 MHz
I2C: ready
DRAM: I2c read: failed 4
I2c read: failed 4
128 MB
FLASH: 4.5 MB
PCI: Bus Dev VenId DevId Class Int
In: serial
Out: serial
Err: serial
KGDB: kgdb ready
ready
BEDBUG:ready
=> bootp
ENET Speed is 100 Mbps - HALF duplex connection
BOOTP broadcast 1
DHCP client bound to address 172.16.77.152
ARP broadcast 1
TFTP from server 172.16.77.151; our IP address is 172.16.77.152
Filename '/tftpboot/vmlinux.PPCBoot'.
Load address: 0x100000
Loading: *
TFTP error: 'File not found' (1)
Starting again
***************************************************************************
***************************************************************************
-- Brian
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TFTP not able to find file???
2003-02-02 21:56 brian.auld
@ 2003-02-02 22:09 ` Wolfgang Grandegger
2003-02-02 22:58 ` Wolfgang Denk
1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Grandegger @ 2003-02-02 22:09 UTC (permalink / raw)
To: brian.auld; +Cc: linuxppc-embedded
Is the TFTP server started with the argument "-s"? Then do:
$ cd /tftpboot
$ ln -s . tftpboot
Hope it helps,
Wolfgang.
On 02/02/2003 10:56 PM brian.auld@adic.com wrote:
> All y'all must've been wondering why I hadn't posted with a problem yet
> today. Surprise!!
>
> Checklist for my embedded 'linux on ebony/440GP' project:
> ---------------------------------------------------------
> - cross tools working (check)
> - bootloader built (check)
> - bootloader installed in flash (check!!)
> - bootloader runs (check!!)
> - ... next load linux
>
> Well, I've progressed to the point where u-boot is installed on the ebony
> and running. I'm now trying to load linux and run, but I'm getting stumped
> where tftp is not able to find the file I'm trying to load. The following
> are attached below to show my settings:
>
> (a) dhcp conf file on host
> (b) listing of tftp directory
> (c) ebony serial port log
>
> Please note the following:
> - Host/DHCP server ip=172.16.77.151
> - Target ip=172.16.77.152 (assigned by dhcp server)
> - Permissions in tftpboot directory are more than adequate
> - I used DHCP because as I fuddled around with u-boot, it didn't see
> possible to separate tftp from bootp. In other words, even if I set
> ip addr(s) and stuff through the u-boot setenv command, the values
> would be automatically overidden when I run the bootp command. The
> BOOTP command seems to be the only way to kick off tftp, so I really
> wasn't able to find a way to make use of statically set network
> Config info.
> - vmlinux.PPCBOOT is the product of my 'make uImage' build in my kernel
> source tree.
>
> Any ideas on why this isn't working??
>
> ***************************************************************************
> ********************* (a) dhcp config file ********************************
> ***************************************************************************
> subnet 172.16.77.0 netmask 255.255.255.0 {
> option routers 172.16.77.1;
> option subnet-mask 255.255.255.0;
>
> option domain-name "adic.com";
>
> host trgt { hardware ethernet 00:04:AC:E3:1B:55;
> fixed-address 172.16.77.152;
> option root-path "/opt/eldk/ppc_4xx";
> option host-name "ebony1-linux-iSCSI";
> next-server 172.16.77.151;
> filename "/tftpboot/vmlinux.PPCBoot";
> }
> }
> ***************************************************************************
> ***************************************************************************
>
>
> ***************************************************************************
> ********************* (b) tftp directory *********************************
> ***************************************************************************
> [root@ppc-dev logs]# ls -al /tftpboot
> total 4336
> drwxrwxrwx 4 root root 4096 Feb 2 11:08 .
> drwxr-xr-x 20 root root 4096 Jan 30 04:47 ..
> -rw-r--r-- 1 root root 256 Jan 31 09:33 bdi_log
> -rw-r--r-- 1 root root 3061 Feb 2 11:08 evb440gp.cfg
> drwxr-xr-x 2 root root 4096 Feb 2 11:52 logs
> -rwxr-xr-x 1 root root 524288 Jan 31 13:51 ppcboot.bin
> -rw-r--r-- 1 root root 9597 Feb 1 08:20 reg405gp.def
> -rw-r--r-- 1 root root 10722 Feb 2 04:37 reg440gp.def
> -rwxr-xr-x 1 root root 539716 Jan 31 08:43 u-boot
> -rwxr-xr-x 1 root root 524288 Jan 31 08:43 u-boot.bin
> -rwxr-xr-x 1 root root 1572962 Jan 31 08:43 u-boot.srec
> -rwxrwxrwx 1 root root 583425 Feb 2 07:48 vmlinux.PPCBoot
> drwxr-xr-x 3 root root 4096 Jan 30 04:11 X86PC
> -rwxr-xr-x 1 root root 611872 Feb 1 08:18 zImage.ebony
> [root@ppc-dev logs]#
> ***************************************************************************
> ***************************************************************************
>
>
> ***************************************************************************
> ********************* (c) ebony serial port *******************************
> ***************************************************************************
> U-Boot 0.2.0 (Jan 31 2003 - 05:12:55)
>
> IBM PowerPC 440 Rev. C
> Board: IBM 440GP Evaluation Board (Ebony)
> VCO: 800 MHz
> CPU: 400 MHz
> PLB: 133 MHz
> OPB: 66 MHz
> EPB: 66 MHz
> I2C: ready
> DRAM: I2c read: failed 4
> I2c read: failed 4
> 128 MB
> FLASH: 4.5 MB
> PCI: Bus Dev VenId DevId Class Int
> In: serial
> Out: serial
> Err: serial
> KGDB: kgdb ready
> ready
> BEDBUG:ready
> => bootp
> ENET Speed is 100 Mbps - HALF duplex connection
> BOOTP broadcast 1
> DHCP client bound to address 172.16.77.152
> ARP broadcast 1
> TFTP from server 172.16.77.151; our IP address is 172.16.77.152
> Filename '/tftpboot/vmlinux.PPCBoot'.
> Load address: 0x100000
> Loading: *
> TFTP error: 'File not found' (1)
> Starting again
> ***************************************************************************
> ***************************************************************************
>
>
> -- Brian
>
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: TFTP not able to find file???
@ 2003-02-02 22:28 brian.auld
2003-02-02 22:59 ` Wolfgang Denk
0 siblings, 1 reply; 6+ messages in thread
From: brian.auld @ 2003-02-02 22:28 UTC (permalink / raw)
To: linuxppc-embedded
Wolfgang,
That was it. Thanks. I needed that sym link "ln -s . tftpboot" to get it to
work. Thanks a million.
Wolfgang Denk:
Might want to make a note to add that clip to section 3.2 "Configuration of
a TFTP Server" to the "PPCBoot and Embedded Linux Guide" as I don't recall
seeing it there.
-- Brian
-----Original Message-----
From: Wolfgang Grandegger [mailto:wolfgang.grandegger@bluewin.ch]
Sent: Sunday, February 02, 2003 5:10 PM
To: brian.auld@adic.com
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: TFTP not able to find file???
Is the TFTP server started with the argument "-s"? Then do:
$ cd /tftpboot
$ ln -s . tftpboot
Hope it helps,
Wolfgang.
On 02/02/2003 10:56 PM brian.auld@adic.com wrote:
> All y'all must've been wondering why I hadn't posted with a problem yet
> today. Surprise!!
>
> Checklist for my embedded 'linux on ebony/440GP' project:
> ---------------------------------------------------------
> - cross tools working (check)
> - bootloader built (check)
> - bootloader installed in flash (check!!)
> - bootloader runs (check!!)
> - ... next load linux
>
> Well, I've progressed to the point where u-boot is installed on the ebony
> and running. I'm now trying to load linux and run, but I'm getting stumped
> where tftp is not able to find the file I'm trying to load. The following
> are attached below to show my settings:
>
> (a) dhcp conf file on host
> (b) listing of tftp directory
> (c) ebony serial port log
>
> Please note the following:
> - Host/DHCP server ip=172.16.77.151
> - Target ip=172.16.77.152 (assigned by dhcp server)
> - Permissions in tftpboot directory are more than adequate
> - I used DHCP because as I fuddled around with u-boot, it didn't see
> possible to separate tftp from bootp. In other words, even if I set
> ip addr(s) and stuff through the u-boot setenv command, the values
> would be automatically overidden when I run the bootp command. The
> BOOTP command seems to be the only way to kick off tftp, so I really
> wasn't able to find a way to make use of statically set network
> Config info.
> - vmlinux.PPCBOOT is the product of my 'make uImage' build in my kernel
> source tree.
>
> Any ideas on why this isn't working??
>
>
***************************************************************************
> ********************* (a) dhcp config file
********************************
>
***************************************************************************
> subnet 172.16.77.0 netmask 255.255.255.0 {
> option routers 172.16.77.1;
> option subnet-mask 255.255.255.0;
>
> option domain-name "adic.com";
>
> host trgt { hardware ethernet 00:04:AC:E3:1B:55;
> fixed-address 172.16.77.152;
> option root-path "/opt/eldk/ppc_4xx";
> option host-name "ebony1-linux-iSCSI";
> next-server 172.16.77.151;
> filename
"/tftpboot/vmlinux.PPCBoot";
> }
> }
>
***************************************************************************
>
***************************************************************************
>
>
>
***************************************************************************
> ********************* (b) tftp directory
*********************************
>
***************************************************************************
> [root@ppc-dev logs]# ls -al /tftpboot
> total 4336
> drwxrwxrwx 4 root root 4096 Feb 2 11:08 .
> drwxr-xr-x 20 root root 4096 Jan 30 04:47 ..
> -rw-r--r-- 1 root root 256 Jan 31 09:33 bdi_log
> -rw-r--r-- 1 root root 3061 Feb 2 11:08 evb440gp.cfg
> drwxr-xr-x 2 root root 4096 Feb 2 11:52 logs
> -rwxr-xr-x 1 root root 524288 Jan 31 13:51 ppcboot.bin
> -rw-r--r-- 1 root root 9597 Feb 1 08:20 reg405gp.def
> -rw-r--r-- 1 root root 10722 Feb 2 04:37 reg440gp.def
> -rwxr-xr-x 1 root root 539716 Jan 31 08:43 u-boot
> -rwxr-xr-x 1 root root 524288 Jan 31 08:43 u-boot.bin
> -rwxr-xr-x 1 root root 1572962 Jan 31 08:43 u-boot.srec
> -rwxrwxrwx 1 root root 583425 Feb 2 07:48 vmlinux.PPCBoot
> drwxr-xr-x 3 root root 4096 Jan 30 04:11 X86PC
> -rwxr-xr-x 1 root root 611872 Feb 1 08:18 zImage.ebony
> [root@ppc-dev logs]#
>
***************************************************************************
>
***************************************************************************
>
>
>
***************************************************************************
> ********************* (c) ebony serial port
*******************************
>
***************************************************************************
> U-Boot 0.2.0 (Jan 31 2003 - 05:12:55)
>
> IBM PowerPC 440 Rev. C
> Board: IBM 440GP Evaluation Board (Ebony)
> VCO: 800 MHz
> CPU: 400 MHz
> PLB: 133 MHz
> OPB: 66 MHz
> EPB: 66 MHz
> I2C: ready
> DRAM: I2c read: failed 4
> I2c read: failed 4
> 128 MB
> FLASH: 4.5 MB
> PCI: Bus Dev VenId DevId Class Int
> In: serial
> Out: serial
> Err: serial
> KGDB: kgdb ready
> ready
> BEDBUG:ready
> => bootp
> ENET Speed is 100 Mbps - HALF duplex connection
> BOOTP broadcast 1
> DHCP client bound to address 172.16.77.152
> ARP broadcast 1
> TFTP from server 172.16.77.151; our IP address is 172.16.77.152
> Filename '/tftpboot/vmlinux.PPCBoot'.
> Load address: 0x100000
> Loading: *
> TFTP error: 'File not found' (1)
> Starting again
>
***************************************************************************
>
***************************************************************************
>
>
> -- Brian
>
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TFTP not able to find file???
2003-02-02 21:56 brian.auld
2003-02-02 22:09 ` Wolfgang Grandegger
@ 2003-02-02 22:58 ` Wolfgang Denk
1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2003-02-02 22:58 UTC (permalink / raw)
To: brian.auld; +Cc: linuxppc-embedded
In message <995FF289C9D69747A09E42992644595405B23642@penguin.adic.com> you wrote:
>
> - I used DHCP because as I fuddled around with u-boot, it didn't see
> possible to separate tftp from bootp. In other words, even if I set
Oops? What's wrong with just using U-Boot's "tftp" command?
> ip addr(s) and stuff through the u-boot setenv command, the values
> would be automatically overidden when I run the bootp command. The
Right. When you use DHCP or BOOTP you ask for network configuration
from the server, so this is what you get.
> BOOTP command seems to be the only way to kick off tftp, so I really
Wrong. You can start in manually (using the "tftp" / "tftpboot"
command, or automagically as part of the "rarpboot", "bootp" and/or
"dhcp" commands.
> wasn't able to find a way to make use of statically set network
> Config info.
Did you read the PPCBoot guid at our web page? It explains this stuff
pretty well.
> - vmlinux.PPCBOOT is the product of my 'make uImage' build in my kernel
> source tree.
>
> Any ideas on why this isn't working??
...
> filename "/tftpboot/vmlinux.PPCBoot";
...
> => bootp
> ENET Speed is 100 Mbps - HALF duplex connection
> BOOTP broadcast 1
> DHCP client bound to address 172.16.77.152
> ARP broadcast 1
> TFTP from server 172.16.77.151; our IP address is 172.16.77.152
> Filename '/tftpboot/vmlinux.PPCBoot'.
> Load address: 0x100000
> Loading: *
> TFTP error: 'File not found' (1)
Your TFTP server might do a "chroot" into the /tftpboot directory, so
the file "/tftpboot/vmlinux.PPCBoot" cannot be found there.
Fix yout TFTP server configuration.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
No problem is insoluble.
-- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: TFTP not able to find file???
2003-02-02 22:28 TFTP not able to find file??? brian.auld
@ 2003-02-02 22:59 ` Wolfgang Denk
0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2003-02-02 22:59 UTC (permalink / raw)
To: brian.auld; +Cc: linuxppc-embedded
In message <995FF289C9D69747A09E42992644595405B23643@penguin.adic.com> you wrote:
>
> That was it. Thanks. I needed that sym link "ln -s . tftpboot" to get it to
> work. Thanks a million.
Note that this is just a workaround, not a fix.
> Wolfgang Denk:
>
> Might want to make a note to add that clip to section 3.2 "Configuration of
> a TFTP Server" to the "PPCBoot and Embedded Linux Guide" as I don't recall
> seeing it there.
I don't intend to document workarounds for broken configurations.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Q: Do you know what the death rate around here is?
A: One per person.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: TFTP not able to find file???
@ 2003-02-02 23:12 Rod Boyce
0 siblings, 0 replies; 6+ messages in thread
From: Rod Boyce @ 2003-02-02 23:12 UTC (permalink / raw)
To: 'brian.auld@adic.com', linuxppc-embedded
Have you tried tftpboot <load address> <filename>
Then you don't have to use DHCP.
Rod
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-02-02 23:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-02 22:28 TFTP not able to find file??? brian.auld
2003-02-02 22:59 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2003-02-02 23:12 Rod Boyce
2003-02-02 21:56 brian.auld
2003-02-02 22:09 ` Wolfgang Grandegger
2003-02-02 22:58 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).