From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by ozlabs.org (Postfix) with ESMTP id AD050DDED3 for ; Fri, 20 Jun 2008 20:42:22 +1000 (EST) Received: by wf-out-1314.google.com with SMTP id 24so945704wfg.15 for ; Fri, 20 Jun 2008 03:42:20 -0700 (PDT) Message-ID: Date: Fri, 20 Jun 2008 16:12:20 +0530 From: "Nidhi Dua" To: linuxppc-embedded@ozlabs.org Subject: mpc8313erdb MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7345_16926078.1213958540559" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_7345_16926078.1213958540559 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline We are using the board MPC8313ERDB and we are facing problems regarding u-boot environment variables(the environment variables displayed after giving 'printenv' command at u-boot prompt). We are following the steps stated as below: 1. =>printenv output is: .... .... bootargs=root=/dev/mtdblock2 rootfstype=jffs2 rw console=ttyS0,115200 bootcmd=bootm fe100000 - fe700000 filesize=1a4a05 fileaddr=200000 ipaddr=192.168.1.101 serverip=192.168.1.57 stdin=serial stdout=serial stderr=serial ethact=TSEC0 Here ethact is TSEC0 by default. 2. =>setenv ethact TSEC1 3. =>saveenv output: Saving Environment to Flash... Un-Protected 1 sectors Erasing Flash... . done Erased 1 sectors Writing to Flash... done Protected 1 sectors Here we have set the ethact variable to TSEC1 and saved it. Now it is showing that this value of ethact is burnt in flash. But after the board is reset, 4. =>printenv ileaddr=200000 ipaddr=192.168.1.101 serverip=192.168.1.57 stdin=serial stdout=serial stderr=serial ethact=TSEC0 Here again the value of ethact is changed to TSEC0. we have following questions: question 1: We want to know the reason why it(ethact variable) changes to TSEC0 everytime with a reset. question2: After we have set ethact to TSEC1 and saved it(=>saveenv) and tried to ping the Host from u-boot prompt it is working (displaying: 'host alive'). But when we are trying to ping Target board from the host it is showing: PING 192.168.1.101 (192.168.1.101) 56(84) bytes of data. >>From 192.168.1.57 icmp_seq=2 Destination Host Unreachable >>From 192.168.1.57 icmp_seq=3 Destination Host Unreachable .... .... --- 192.168.1.101 ping statistics --- 12 packets transmitted, 0 received, +9 errors, 100% packet loss, time 11002ms , pipe 3 Why is it happening so? question 3: After we have set 'ethact' to TSEC1, the kernel is loaded, and we have logged -in, when we try to ping the Host from target it says '100% packet lost'. also we are unable to ping target from the host. Why is it happening so? Awaiting a prompt reply Regards Nidhi Dua ------=_Part_7345_16926078.1213958540559 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline We are using the board MPC8313ERDB and we are facing problems regarding u-boot environment variables(the environment variables displayed after giving 'printenv' command at u-boot prompt).

We are following the steps stated as below:

1. =>printenv

output is:
....
....
bootargs=root=/dev/mtdblock2 rootfstype=jffs2 rw console=ttyS0,115200
bootcmd=bootm fe100000 - fe700000
filesize=1a4a05
fileaddr=200000
ipaddr=192.168.1.101
serverip=192.168.1.57
stdin=serial
stdout=serial
stderr=serial
ethact=TSEC0


Here ethact is TSEC0 by default.

2. =>setenv ethact TSEC1
3. =>saveenv
output:
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors

Here we have set the ethact variable to TSEC1 and saved it. Now it is showing that this value of ethact is burnt in flash. But after the board is reset,

4. =>printenv

ileaddr=200000
ipaddr=192.168.1.101
serverip=192.168.1.57
stdin=serial
stdout=serial
stderr=serial
ethact=TSEC0

Here again the value of ethact is changed to TSEC0.

we have following questions:

question 1: We want to know the reason why it(ethact variable) changes to TSEC0 everytime with a reset.

question2: After we have set ethact to TSEC1 and saved it(=>saveenv) and tried to ping the Host from u-boot prompt it is working (displaying: 'host alive').
But when we are trying to ping Target board from the host it is showing:

PING 192.168.1.101 (192.168.1.101) 56(84) bytes of data.
>>From 192.168.1.57 icmp_seq=2 Destination Host Unreachable
From 192.168.1.57 icmp_seq=3 Destination Host Unreachable
....
....
--- 192.168.1.101 ping statistics ---
12 packets transmitted, 0 received, +9 errors, 100% packet loss, time 11002ms
, pipe 3

Why is it happening so?

question 3: After we have set 'ethact' to TSEC1, the kernel is loaded, and we have logged -in, when we try to ping the Host from target it says '100% packet lost'. also we are unable to ping target from the host. Why is it happening so?

Awaiting a prompt reply
Regards
Nidhi Dua

------=_Part_7345_16926078.1213958540559-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nausicaa2.coritel.it (host254-130-static.190-82-b.business.telecomitalia.it [82.190.130.254]) by ozlabs.org (Postfix) with ESMTP id 59B3EDDF7D for ; Fri, 20 Jun 2008 21:21:57 +1000 (EST) Message-ID: <485B9360.2070702@coritel.it> Date: Fri, 20 Jun 2008 13:24:16 +0200 From: Marco Stornelli MIME-Version: 1.0 To: Nidhi Dua Subject: Re: mpc8313erdb References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Nidhi Dua ha scritto: > We are using the board MPC8313ERDB and we are facing problems regarding > u-boot environment variables(the environment variables displayed after > giving 'printenv' command at u-boot prompt). > > We are following the steps stated as below: > > 1. =>printenv > > output is: > .... > .... > bootargs=root=/dev/mtdblock2 rootfstype=jffs2 rw console=ttyS0,115200 > bootcmd=bootm fe100000 - fe700000 > filesize=1a4a05 > fileaddr=200000 > ipaddr=192.168.1.101 > serverip=192.168.1.57 > stdin=serial > stdout=serial > stderr=serial > ethact=TSEC0 > > > Here ethact is TSEC0 by default. > > 2. =>setenv ethact TSEC1 > 3. =>saveenv > output: > Saving Environment to Flash... > Un-Protected 1 sectors > Erasing Flash... > . done > Erased 1 sectors > Writing to Flash... done > Protected 1 sectors > > Here we have set the ethact variable to TSEC1 and saved it. Now it is > showing that this value of ethact is burnt in flash. But after the board is > reset, > > 4. =>printenv > > ileaddr=200000 > ipaddr=192.168.1.101 > serverip=192.168.1.57 > stdin=serial > stdout=serial > stderr=serial > ethact=TSEC0 > > Here again the value of ethact is changed to TSEC0. > > we have following questions: > > question 1: We want to know the reason why it(ethact variable) changes to > TSEC0 everytime with a reset. > > question2: After we have set ethact to TSEC1 and saved it(=>saveenv) and > tried to ping the Host from u-boot prompt it is working (displaying: 'host > alive'). > But when we are trying to ping Target board from the host it is showing: > > PING 192.168.1.101 (192.168.1.101) 56(84) bytes of data. >>>From 192.168.1.57 icmp_seq=2 Destination Host Unreachable >>>From 192.168.1.57 icmp_seq=3 Destination Host Unreachable > .... > .... > --- 192.168.1.101 ping statistics --- > 12 packets transmitted, 0 received, +9 errors, 100% packet loss, time > 11002ms > , pipe 3 > > Why is it happening so? > > question 3: After we have set 'ethact' to TSEC1, the kernel is loaded, and > we have logged -in, when we try to ping the Host from target it says '100% > packet lost'. also we are unable to ping target from the host. Why is it > happening so? > > Awaiting a prompt reply > Regards > Nidhi Dua > > > > ------------------------------------------------------------------------ > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded You have to set ethprime=TSEC1 because ethact isn't saved, but surely you can find more information in the U-Boot mailing list. -- Marco Stornelli Embedded Software Engineer CoRiTeL - Consorzio di Ricerca sulle Telecomunicazioni http://www.coritel.it marco.stornelli@coritel.it +39 06 72582838 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.181]) by ozlabs.org (Postfix) with ESMTP id C90ADDE220 for ; Sat, 21 Jun 2008 01:02:26 +1000 (EST) Received: by el-out-1112.google.com with SMTP id o28so62490ele.3 for ; Fri, 20 Jun 2008 08:02:25 -0700 (PDT) Message-ID: Date: Fri, 20 Jun 2008 11:02:23 -0400 From: "Nidhi Dua" To: linuxppc-embedded@ozlabs.org Subject: mpc8313erdb In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8412_15426141.1213974143403" References: List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , ------=_Part_8412_15426141.1213974143403 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline ---------- Forwarded message ---------- From: Nidhi Dua Date: Fri, Jun 20, 2008 at 10:57 AM Subject: mpc8313erdb To: inuxppc-embedded@ozlabs.org Dear All I am using evaluation board MPC8313ERDB. Earlier i was having issues with the uboot environment variable 'ethact'. I am using eth1 (i.e TSEC1). earlier each time i used to reset the board it used to toggle back to TSEC0. But now after setting ethprime=TSEC1 that problem is rectified. The second issue i am having is: after the board gets booted and kernel gets loaded, if i try to ping the board from host or to ping host from board, it is not working. Can anyone help me with this? Awaiting a prompt reply... thanks in advance regards Nidhi ------=_Part_8412_15426141.1213974143403 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

---------- Forwarded message ----------
From: Nidhi Dua <dua.nidhi2007@gmail.com>
Date: Fri, Jun 20, 2008 at 10:57 AM
Subject: mpc8313erdb
To: inuxppc-embedded@ozlabs.org


Dear All

I am using evaluation board MPC8313ERDB. Earlier i was having issues with the uboot environment variable 'ethact'. I am using eth1 (i.e TSEC1). earlier each time i used to reset the board it used to toggle back to TSEC0. But now after setting ethprime=TSEC1 that problem is rectified.

The second issue i am having is:
after the board gets booted and kernel gets loaded, if i try to ping the board from host or to ping host from board, it is not working. Can anyone help me with this?

Awaiting a prompt reply...

thanks in advance

regards
Nidhi

------=_Part_8412_15426141.1213974143403-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ares.digitel.com.br (cosmos.digitel.com.br [200.198.105.42]) by ozlabs.org (Postfix) with ESMTP id E7B37DDF45 for ; Sat, 21 Jun 2008 02:53:39 +1000 (EST) Received: from [192.168.20.171] (unknown [192.168.20.171]) by ares.digitel.com.br (Postfix) with ESMTP id 98F1F7160DE for ; Fri, 20 Jun 2008 13:46:16 -0300 (BRT) Subject: Re: mpc8313erdb From: Carlos Roberto Moratelli To: linuxppc-embedded@ozlabs.org In-Reply-To: References: Content-Type: text/plain Date: Fri, 20 Jun 2008 13:43:15 -0300 Message-Id: <1213980195.6911.15.camel@parana> Mime-Version: 1.0 List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > Date: Fri, 20 Jun 2008 16:12:20 +0530 > From: "Nidhi Dua" > Subject: mpc8313erdb > To: linuxppc-embedded@ozlabs.org > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > We are using the board MPC8313ERDB and we are facing problems regarding > u-boot environment variables(the environment variables displayed after > giving 'printenv' command at u-boot prompt). > > We are following the steps stated as below: > > 1. =>printenv > > output is: > .... > .... > bootargs=root=/dev/mtdblock2 rootfstype=jffs2 rw console=ttyS0,115200 > bootcmd=bootm fe100000 - fe700000 > filesize=1a4a05 > fileaddr=200000 > ipaddr=192.168.1.101 > serverip=192.168.1.57 > stdin=serial > stdout=serial > stderr=serial > ethact=TSEC0 > > > Here ethact is TSEC0 by default. > > 2. =>setenv ethact TSEC1 > 3. =>saveenv > output: > Saving Environment to Flash... > Un-Protected 1 sectors > Erasing Flash... > . done > Erased 1 sectors > Writing to Flash... done > Protected 1 sectors > > Here we have set the ethact variable to TSEC1 and saved it. Now it is > showing that this value of ethact is burnt in flash. But after the board is > reset, > > 4. =>printenv > > ileaddr=200000 > ipaddr=192.168.1.101 > serverip=192.168.1.57 > stdin=serial > stdout=serial > stderr=serial > ethact=TSEC0 > > Here again the value of ethact is changed to TSEC0. > > we have following questions: > > question 1: We want to know the reason why it(ethact variable) changes to > TSEC0 everytime with a reset. > This variable (ethact) isn't save with the enviroment variables. > question2: After we have set ethact to TSEC1 and saved it(=>saveenv) and > tried to ping the Host from u-boot prompt it is working (displaying: 'host > alive'). > But when we are trying to ping Target board from the host it is showing: > > PING 192.168.1.101 (192.168.1.101) 56(84) bytes of data. > >From 192.168.1.57 icmp_seq=2 Destination Host Unreachable > >From 192.168.1.57 icmp_seq=3 Destination Host Unreachable > .... > .... > --- 192.168.1.101 ping statistics --- > 12 packets transmitted, 0 received, +9 errors, 100% packet loss, time > 11002ms > , pipe 3 > > Why is it happening so? Ping from a host to U-Boot should't work. U-Boot isn't able to respond a ping protocol. Maybe this link can be usefull: http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:faq > > question 3: After we have set 'ethact' to TSEC1, the kernel is loaded, and > we have logged -in, when we try to ping the Host from target it says '100% > packet lost'. also we are unable to ping target from the host. Why is it > happening so? > After the kernel boot, did you try using ifconfig command to configure the ethernet interface? > Awaiting a prompt reply > Regards > Nidhi Dua I hope this can help you. Regards Carlos R. Moratelli