All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] U-BOOT TFTP
@ 2011-07-16  0:03 simran gill
  0 siblings, 0 replies; 10+ messages in thread
From: simran gill @ 2011-07-16  0:03 UTC (permalink / raw)
  To: u-boot


Hello,I am running Linux 2.6.34.6 on p4080ds board. I am trying to get the interfaces running on the kernel but it does not seem to be working. So far I am able to set up the ipaddress etc for the interface "fm1-gb1" but still cannot ping the outside world. I edited the file /etc/rc.d/rc.conf with no luck. My configuration is as follows:
address at hidden rc.d]# vi rc.conf

export HOSTNAME="p4080"                                                         
export NTP_SERVER=""                                                            
export MODLIST=""                                                               
export RAMDIRS=""                                                               
export TMPFS="tmpfs"                                                            
export TMPFS_SIZE="512k"                                                        
export READONLY_FS=""   
export INETD_ARGS=""    
export BOA_ARGS="-c /etc"
export SMBD_ARGS=""      
export NMBD_ARGS=""      
export DHCP_ARG=""       
export DEPLOYMENT_STYLE="RAMDISK"
export SYSCFG_DHCPC_CMD="udhcpc -b -i "
export DROPBEAR_ARGS=""                
                                       
export SYSCFG_IFACE0=y                 
export INTERFACE0="fm1-gb1"            
export IPADDR0="192.168.1.145'         
export NETMASK0="255.255.255.0"        
export BROADCAST0="192.168.1.255"      
export GATEWAY0="192.168.1.1"


After restarting the rcS script::


address at hidden rc.d]# sh /etc/rc.d/rcS restart network
Running sysctl
Setting up networking on loopback device: 
SIOCADDRT: File exists
Setting up networking on fm1-gb1: 
Adding static route for default gateway to 192.168.1.1: 
/etc/rc.d/init.d/network: line 90: cannot create tmp/hosts: nonexistent directory
mv: cannot rename '/tmp/hosts': No such file or directory
address at hidden rc.d]# ifconfig
fm1-gb1   Link encap:Ethernet  HWaddr 00:04:9F:02:01:FD  
          inet addr:192.168.1.145  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:238 (238.0 b)
          Memory:fe4e2000-fe4e2fff 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

address at hidden rc.d]# 


Thank you in advance for any help. Sorry if this is easy, I am a little new to this. 		 	   		  

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] U-BOOT TFTP
  2011-07-21 10:24       ` vignesh rajendran
@ 2011-07-25 18:40         ` simran gill
  0 siblings, 0 replies; 10+ messages in thread
From: simran gill @ 2011-07-25 18:40 UTC (permalink / raw)
  To: u-boot


Hello all,
I really appreciate all of your replies and sorry for not being responsive for sometime. But I am glad to say that I was able to flash new u-boot along with fman ucode and rcw. I am using p4080DS dev board from freescale and the rcw is important in terms of which ports to be enabled upon boot. I ran into all of these problems because the ltib version I was using was not compatible with my version of the board. Wish I knew this earlier but there was no way for me to find this out. Neways all is up and running and thanks once again for providing all the help. 
Sincerely,Simran

Date: Thu, 21 Jul 2011 10:24:07 +0000
Subject: Re: [U-Boot] U-BOOT TFTP
From: vickylinuxer@gmail.com
To: simrangill999 at hotmail.com
CC: u-boot at lists.denx.de


Hello simran



The things u have to do is check your network connectivity between board
 and target .If it is not working after that, make a clean  u-boot 
compilation again with basic configuration(no confusing)  of your board 
header file and port again.





Regards

Vignesh Rajendran




 		 	   		  

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] U-BOOT TFTP
  2011-07-19 17:08     ` simran gill
  2011-07-21  8:46       ` Detlev Zundel
@ 2011-07-21 10:24       ` vignesh rajendran
  2011-07-25 18:40         ` simran gill
  1 sibling, 1 reply; 10+ messages in thread
From: vignesh rajendran @ 2011-07-21 10:24 UTC (permalink / raw)
  To: u-boot

>
> Hello simran
>
> The things u have to do is check your network connectivity between board
> and target .If it is not working after that, make a clean  u-boot
> compilation again with basic configuration(no confusing)  of your board
> header file and port again.
>
>
> Regards
> Vignesh Rajendran
>
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] U-BOOT TFTP
  2011-07-19 17:08     ` simran gill
@ 2011-07-21  8:46       ` Detlev Zundel
  2011-07-21 10:24       ` vignesh rajendran
  1 sibling, 0 replies; 10+ messages in thread
From: Detlev Zundel @ 2011-07-21  8:46 UTC (permalink / raw)
  To: u-boot

Hi simran,

you should really provide us with more data to give us even a remote
chance of helping you.  What board do you use, what CPU is it, what
U-Boot version do you use?  Are you doing a custom U-Boot port or
"simply use a well-supported U-Boot configuration from mainline"?

> Hello, This is the ouput when I do tftp or try the ping with the
> environment set accordingly. Could it possibly be one of the
> configuration files such as the RCW (reset configuration word) but I
> cannot change this file withno tftp connection.Any help would be
> great. Thank you.

To be honest, I do not understand what a RCW has got to do with a tftp
transfer.

> => ping 192.168.1.1
> ping failed; host 192.168.1.1 is not alive
> => ping 192.168.1.129
> ping failed; host 192.168.1.129 is not alive
> => tftp 1000000 /tftpboot/uImage
> => tftp 0x1000000 /tftpboot/uImage
> => 
> => printenv
>
> ramboot=setenv bootargs root=/dev/ram rw
> console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp
> $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr
> $fdtaddr nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath
> ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off
> console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp
> $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr bootdelay=10 baudrate=115200
> loads_echo= rootpath=/opt/nfsroot loadaddr=1000000 netdev=eth0 uboot=u-boot.bin
> tftpflash=tftpboot $loadaddr $uboot; protect off 0xeff80000 +$filesize; erase
> 0xeff80000 +$filesize; cp.b $loadaddr 0xeff80000 $filesize; protect on
> 0xeff80000 +$filesize; cmp.b $loadaddr 0xeff80000 $filesize consoledev=ttyS0
> ramdiskaddr=2000000 fdtaddr=c00000 fman_ucode=0xEF000000
> eth1addr=00:04:9F:02:01:FD eth2addr=00:04:9F:02:02:FD
> eth3addr=00:04:9F:02:03:FD eth4addr=00:04:9F:02:04:FD
> eth5addr=00:04:9F:02:05:FD eth6addr=00:04:9F:02:06:FD
> eth7addr=00:04:9F:02:07:FD eth8addr=00:04:9F:02:08:FD eth9addr=00:04:9F:02:09:FD
> bootfile=uImage ramdiskfile=rootfs.ext2.gz.uboot fdtfile=p4080ds.dtb
>
> bdev=sda3
>
> bank4=mw.b 0xffdf002c 0x40; mw.b 0xffdf002d 70; mw.b
> 0xffdf0010 0; mw.b 0xffdf0010 1
>
> gatewayip=192.168.1.1
>
> bootcmd=bootm e8020000 e9300000 e8800000
>
> ipaddr=192.168.1.145
>
> serverip=192.168.1.129
>
> bootargs=root=/dev/mtdblock0 rw console=ttyS0,115200
> ethaddr=00:C0:F7:02:01:FD stdin=serial stdout=serial stderr=serial
>
> ethact=FM1 at DTSEC1
>
>  
>
> Environment size: 1500/8188 bytes

Where do all those empty lines in the log come from?  Are you sure that
the setting for ethact is correct?  Do you really have 8 network devices
but only 4 mac addresses assigned to them?  I.e. usually we have
"ethaddr", "eth1addr", etc. for the network interfaces - I've never seen
such a combinmation as in your logs.

Do you have the variable "netmask" setup correctly?

In short, it seems like there is a lot of confusion in your setup.  Does
U-Boot work for you at all or is the network failure only "one of the
problems"?

Cheers
  Detlev

-- 
Nothing under heaven is softer or more yielding than water; but when it attacks
things hard and resistant there is not one of them that can prevail.  For they
can find no way of altering it.  That the yielding conquers the resistant and
the soft conquers the hard is a fact known by all men, yet utilised by none.
                       -- Tao Te Ching
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] U-BOOT TFTP
  2011-07-18  1:40   ` simran gill
  2011-07-18 18:22     ` simran gill
@ 2011-07-19 17:08     ` simran gill
  2011-07-21  8:46       ` Detlev Zundel
  2011-07-21 10:24       ` vignesh rajendran
  1 sibling, 2 replies; 10+ messages in thread
From: simran gill @ 2011-07-19 17:08 UTC (permalink / raw)
  To: u-boot


Hello, This is the ouput when I do tftp or try the ping with the environment set accordingly. Could it possibly be one of the configuration files such as the RCW (reset configuration word) but I cannot change this file withno tftp connection.Any help would be great. Thank you.
=> ping 192.168.1.1
ping failed; host 192.168.1.1 is not alive
=> ping 192.168.1.129
ping failed; host 192.168.1.129 is not alive
=> tftp 1000000 /tftpboot/uImage
=> tftp 0x1000000 /tftpboot/uImage
=> 
=> printenv

ramboot=setenv bootargs root=/dev/ram rw
console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp
$loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr
$fdtaddr nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath
ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off
console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp
$fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr bootdelay=10 baudrate=115200
loads_echo= rootpath=/opt/nfsroot loadaddr=1000000 netdev=eth0 uboot=u-boot.bin
tftpflash=tftpboot $loadaddr $uboot; protect off 0xeff80000 +$filesize; erase
0xeff80000 +$filesize; cp.b $loadaddr 0xeff80000 $filesize; protect on
0xeff80000 +$filesize; cmp.b $loadaddr 0xeff80000 $filesize consoledev=ttyS0
ramdiskaddr=2000000 fdtaddr=c00000 fman_ucode=0xEF000000
eth1addr=00:04:9F:02:01:FD eth2addr=00:04:9F:02:02:FD
eth3addr=00:04:9F:02:03:FD eth4addr=00:04:9F:02:04:FD
eth5addr=00:04:9F:02:05:FD eth6addr=00:04:9F:02:06:FD
eth7addr=00:04:9F:02:07:FD eth8addr=00:04:9F:02:08:FD eth9addr=00:04:9F:02:09:FD
bootfile=uImage ramdiskfile=rootfs.ext2.gz.uboot fdtfile=p4080ds.dtb

bdev=sda3

bank4=mw.b 0xffdf002c 0x40; mw.b 0xffdf002d 70; mw.b
0xffdf0010 0; mw.b 0xffdf0010 1

gatewayip=192.168.1.1

bootcmd=bootm e8020000 e9300000 e8800000

ipaddr=192.168.1.145

serverip=192.168.1.129

bootargs=root=/dev/mtdblock0 rw console=ttyS0,115200
ethaddr=00:C0:F7:02:01:FD stdin=serial stdout=serial stderr=serial

ethact=FM1 at DTSEC1

 

Environment size: 1500/8188 bytes

=> boot


From: simrangill999@hotmail.com
To: vickylinuxer at gmail.com
Date: Sun, 17 Jul 2011 18:40:55 -0700
CC: u-boot at lists.denx.de
Subject: Re: [U-Boot] U-BOOT TFTP

 
Hello,Nothing happens after I run the tftp command. It just returns a new u-boot prompt with no warnings at all.
 
Date: Sat, 16 Jul 2011 06:01:27 +0000
Subject: Re: [U-Boot] U-BOOT TFTP
From: vickylinuxer@gmail.com
To: simrangill999 at hotmail.com
CC: u-boot at lists.denx.de
 
 
Hi 
 
  Can u give a clear log about uboot version and what u getting after executing  "tftp 1000000 /tftpboot/uImage".
 
 
Regards
Vignesh Rajendran
 		 	   		  

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot 		 	   		  

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] U-BOOT TFTP
  2011-07-18  1:40   ` simran gill
@ 2011-07-18 18:22     ` simran gill
  2011-07-19 17:08     ` simran gill
  1 sibling, 0 replies; 10+ messages in thread
From: simran gill @ 2011-07-18 18:22 UTC (permalink / raw)
  To: u-boot


Hello,Nothing happens after I run the tftp command. It just returns a new u-boot prompt with no warnings at all.Is there a tftp variable in u-boot that has to be set inorder for the tftp to work.


From: simrangill999@hotmail.com
To: vickylinuxer at gmail.com
Date: Sun, 17 Jul 2011 18:40:55 -0700
CC: u-boot at lists.denx.de
Subject: Re: [U-Boot] U-BOOT TFTP

 
Hello,Nothing happens after I run the tftp command. It just returns a new u-boot prompt with no warnings at all.
 
Date: Sat, 16 Jul 2011 06:01:27 +0000
Subject: Re: [U-Boot] U-BOOT TFTP
From: vickylinuxer@gmail.com
To: simrangill999 at hotmail.com
CC: u-boot at lists.denx.de
 
 
Hi 
 
  Can u give a clear log about uboot version and what u getting after executing  "tftp 1000000 /tftpboot/uImage".
 
 
Regards
Vignesh Rajendran
 		 	   		  

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot 		 	   		  

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] U-BOOT TFTP
  2011-07-16  6:01 ` vignesh rajendran
  2011-07-16  6:04   ` vignesh rajendran
@ 2011-07-18  1:40   ` simran gill
  2011-07-18 18:22     ` simran gill
  2011-07-19 17:08     ` simran gill
  1 sibling, 2 replies; 10+ messages in thread
From: simran gill @ 2011-07-18  1:40 UTC (permalink / raw)
  To: u-boot


Hello,Nothing happens after I run the tftp command. It just returns a new u-boot prompt with no warnings at all.

Date: Sat, 16 Jul 2011 06:01:27 +0000
Subject: Re: [U-Boot] U-BOOT TFTP
From: vickylinuxer@gmail.com
To: simrangill999 at hotmail.com
CC: u-boot at lists.denx.de


Hi 

  Can u give a clear log about uboot version and what u getting after executing  "tftp 1000000 /tftpboot/uImage".


Regards
Vignesh Rajendran
 		 	   		  

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] U-BOOT TFTP
  2011-07-16  6:01 ` vignesh rajendran
@ 2011-07-16  6:04   ` vignesh rajendran
  2011-07-18  1:40   ` simran gill
  1 sibling, 0 replies; 10+ messages in thread
From: vignesh rajendran @ 2011-07-16  6:04 UTC (permalink / raw)
  To: u-boot

sorry about my wrong post

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] U-BOOT TFTP
  2011-07-16  0:05 simran gill
@ 2011-07-16  6:01 ` vignesh rajendran
  2011-07-16  6:04   ` vignesh rajendran
  2011-07-18  1:40   ` simran gill
  0 siblings, 2 replies; 10+ messages in thread
From: vignesh rajendran @ 2011-07-16  6:01 UTC (permalink / raw)
  To: u-boot

Hi

  Can u give a clear log about uboot version and what u getting after
executing  "tftp 1000000 /tftpboot/uImage".


Regards
Vignesh Rajendran

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] U-BOOT TFTP
@ 2011-07-16  0:05 simran gill
  2011-07-16  6:01 ` vignesh rajendran
  0 siblings, 1 reply; 10+ messages in thread
From: simran gill @ 2011-07-16  0:05 UTC (permalink / raw)
  To: u-boot


Sorry about my last post. I am new and need some help.
Hello,I am developing on freescale P4080DS	BOARD. I am trying to put new kernel image onto the board but need a tftp connection. When I type "tftp 1000000 /tftpboot/uImage" nothing happens and the new prompt appears. I was able to tftp before and upgrade but seems like one of the changes has broken it. I have set the target and host ip address accordingly. Below is the printenv on bank 0. Any help would be much appreciated. Thank you.
=> printenv
ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr
nfsboot=setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr
bootdelay=10
baudrate=115200
loads_echo=
rootpath=/opt/nfsroot
loadaddr=1000000
netdev=eth0
uboot=u-boot.bin
tftpflash=tftpboot $loadaddr $uboot; protect off 0xeff80000 +$filesize; erase 0xeff80000 +$filesize; cp.b $loadaddr 0xeff80000 $filesize; protect on 0xeff80000 +$filesize; cmp.b $loadaddr 0xeff80000 $filesize
consoledev=ttyS0
ramdiskaddr=2000000
fdtaddr=c00000
fman_ucode=0xEF000000
eth1addr=00:04:9F:02:01:FD
eth2addr=00:04:9F:02:02:FD
eth3addr=00:04:9F:02:03:FD
eth4addr=00:04:9F:02:04:FD
eth5addr=00:04:9F:02:05:FD
eth6addr=00:04:9F:02:06:FD
eth7addr=00:04:9F:02:07:FD
eth8addr=00:04:9F:02:08:FD
eth9addr=00:04:9F:02:09:FD
bootfile=uImage
ramdiskfile=rootfs.ext2.gz.uboot
fdtfile=p4080ds.dtb
bdev=sda3
bank4=mw.b 0xffdf002c 0x40; mw.b 0xffdf002d 70; mw.b 0xffdf0010 0; mw.b 0xffdf0010 1
host=192.168.1.129
server=192.168.1.129
address at hidden
serverip=192.168.1.129
gatewayip=192.168.1.1
ipaddr=192.168.1.145
netmask=255.255.255.0
broadcast=192.168.1.255
gateway=192.168.1.1
nameserverip=192.168.1.1
ethaddr=00:C0:F7:02:01:FD
bootcmd=bootm e8020000 e9300000 e8800000
bootargs=root=/dev/nfs rw console=ttyS0,115200
stdin=serial
stdout=serial
stderr=serial

Environment size: 1620/8188 bytes 		 	   		  

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-07-25 18:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-16  0:03 [U-Boot] U-BOOT TFTP simran gill
2011-07-16  0:05 simran gill
2011-07-16  6:01 ` vignesh rajendran
2011-07-16  6:04   ` vignesh rajendran
2011-07-18  1:40   ` simran gill
2011-07-18 18:22     ` simran gill
2011-07-19 17:08     ` simran gill
2011-07-21  8:46       ` Detlev Zundel
2011-07-21 10:24       ` vignesh rajendran
2011-07-25 18:40         ` simran gill

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.