route problem and simple sniffer

2006-05-16 Thread Wolfgang Denk
In message 200605152209.13033.antonio.dibacco at aruba.it you wrote:
 Anyone knows a lightweight sniffer for linux embedded?

tcpdump ?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
How come everyone's going so slow if it's called rush hour?



Need help to configure DNS on the Embedded system

2006-05-16 Thread [EMAIL PROTECTED]
Hi All,

 I am working on implementing wget future on my Embedded device.
 So i downloaded free wget sources (version 1.10.2) and compiled for my
system.
My system is walnut based one(IBM405EP processor). But wget is working if
i specify IP when i try to download some file from my support site(i gave
IP of support site), but when i specify like www.support.netenrich.com, it
is not able to resolve.

 I Modified /etc/resolve.conf, but still it says unable to resolve .

 I am using MontaVista Linux Kernel 2.4.20.

can some one let me know how to configure the DNS on any embedded systems.
I have gone through some of the meterial available on the net, but could
not resolve it.

Thanks in Advance,
Nagi Reddy.C




Need help to configure DNS on the Embedded system

2006-05-16 Thread Eberhard Stoll
Which C library do you use?
Did you setup /etc/hosts.conf correctly?
It should look like this:
---
   order hosts, bind
   multi on
---

If you use glibc you shold add 'dns' to /etc/nsswitch.conf file like that:
---
   ...
   hosts: files dns
   networks: files dns
   ...
---
This will tell glibc to look for hostnames in /etc/hosts and via dns.
Additionally glibc needs the two libraries libresolv and libnss_dns for
this setting to work!

Good luck
Eberhard




MPC8248 goes berserk when printing messages on the SMC console

2006-05-16 Thread Laurent Pinchart
Hi,

after further investigation, I found out that my SMC problem is probably 
caused by cache issues.

 The SMC console works fine in U-Boot. 115200 8N1, no problem there.

 When booting a Linux 2.6.16 kernel, the processor doesn't print anything on
 the console and seems to hang. Further analysis with a BDI2000 reveals the
 following.

 - The CPU is stuck in cpm_uart_console_write, checking for

 while ((bdp-cbd_sc  BD_SC_READY) != 0);

   At that point, most of the external and internal memory read as 0 (SDRAM,
 flash, ...). A few memory locations contain values different than 0, and I
 suspect those to come directly from the cache.

The only memory locations that aren't filled with 0 when read from the BDI are 
the ones present in D-cache lines. Accessing unmapped memory doesn't fail and 
returns 0.

 - If I break right before setting the BD_SC_READY flag and run using stepi,
 random characters are sent on the serial port. Measuring the baudrate using
 an oscilloscope confirms that it has been correctly configured. Only the
 data is wrong.


Unable to boot a kernel on a MPC8560

2006-05-16 Thread CORVELLER Mickael
Hello,

first of all, I am a newbie in embedded linux systems.

I'm trying to boot a board based on a MPC8560 (with a e500 core).

I'm using a RS232 console via a debug module connected to the SCC1 port of 
the 8560.

The boot loader is U-Boot.

It appears that the transfert of the kernel from the host to target is OK 
(I'm using TFTP).

Problems begin when I try to execute the kernel. The system appears to be 
frozen.

I don't know if the board is really frozen or if I have only lost the 
console.

I suspect that my error is situated in the load/execution addresses.

I've tried different couples of values : 0/0, 10/10, 1/1, 
20/20, etc...

I've also tried different file format (uImage, zImage.elf, zImage.s ...)

I've tried two distributions : ELINOS and DENX.

I don't know what's happened because I lose the console .

Here is the result of one of my tests :
- niot 0
Client IP Address (0 for unknown)   = 192.168.001.126 ?
Client address mask (0 for unknown) = 255.255.255.000 ?
Server IP Address (0 for unknown)   = 192.168.001.127 ?
File Format S(rec)/I(ntel)/B(in)/E(lf)  = B ? e
Boot File Name(NULL for unknown)= pimage ? zimage.elf
Boot File Load address  = 8 ? 0
Boot File Execution address = 8 ? 10
Data update in progress...
- nbo 0
Initialize ETH 0 in progress...
Physical link is up at 100f.

TFTP parameters :
Client IP Address   192.168.001.126
Server IP Address   192.168.001.127
Boot File FormatE
Boot File Name  zimage.elf
Boot File Load address  0
Boot File Execution address 10
TFTP load in progress...
Packets : 2065
ELF information :
Loading  .text @ 0x0080 :18620 bytes
Loading  .data @ 0x00805000 :   966656 bytes
Clearing .bss  @ 0x008F1000 : 8500 bytes
Bytes received = 1057082, Bytes loaded = 0
Low address = 80, High address = 7F

After that, the console is died !

I could use some help in trying to understand what's going on.

Regards,
Micka?l





what does this mean?

2006-05-16 Thread Steve Iribarne (GMail)
My code is hitting in sched.c -

if (unlikely(in_interrupt())) {
printk(Scheduling in interrupt\n);
BUG();
}
It is hitting this printk.  So is this telling me I'm calling schedule
from within an interrupt?  How can this be?  Has anyone else seen
something like this and can anyone give me a hint as to what to look
for.

Thanks.
-stv



what does this mean?

2006-05-16 Thread Walter L. Wimer III
On Tue, 2006-05-16 at 09:51 -0700, Steve Iribarne (GMail) wrote:
 My code is hitting in sched.c -
 
   if (unlikely(in_interrupt())) {
   printk(Scheduling in interrupt\n);
   BUG();
   }
 It is hitting this printk.  So is this telling me I'm calling schedule
 from within an interrupt?  How can this be?  Has anyone else seen
 something like this and can anyone give me a hint as to what to look
 for.

Check to make sure that in your interrupt handler you are not calling
something that can sleep.  E.g. sleep(), usleep(), kmalloc(), vmalloc(),
etc. 


 Thanks.
 -stv


Best regards,

Walt Wimer
TimeSys Corporation





what does this mean?

2006-05-16 Thread Walter L. Wimer III
On Tue, 2006-05-16 at 13:38 -0400, Walter L. Wimer III wrote:
 Check to make sure that in your interrupt handler you are not calling
 something that can sleep.  E.g. sleep(), usleep(), kmalloc(),
 vmalloc(), etc. 

Also watch out for semaphore operations such as down() and
down_interruptible().  They can sleep too.


Walt





what does this mean?

2006-05-16 Thread Steve Iribarne (GMail)
Thanks.  That's what I think it is, but I didn't write this code so
I'm trying to track down
who is calling down at interrupt time.



On 5/16/06, Walter L. Wimer III walt.wimer at timesys.com wrote:
 On Tue, 2006-05-16 at 13:38 -0400, Walter L. Wimer III wrote:
  Check to make sure that in your interrupt handler you are not calling
  something that can sleep.  E.g. sleep(), usleep(), kmalloc(),
  vmalloc(), etc.

 Also watch out for semaphore operations such as down() and
 down_interruptible().  They can sleep too.


 Walt






Unable to boot a kernel on a MPC8560

2006-05-16 Thread Greg Weeks
CORVELLER Mickael wrote:
 Hello,

 first of all, I am a newbie in embedded linux systems.

 I'm trying to boot a board based on a MPC8560 (with a e500 core).

 I'm using a RS232 console via a debug module connected to the SCC1 port of 
 the 8560.

 The boot loader is U-Boot.

   
What version of u-boot do you have? At some point I had a u-boot with 
the value of CCSRBAR set different from what the current kernels use. It 
caused a failure like this.

Greg Weeks





Unable to boot a kernel on a MPC8560

2006-05-16 Thread Walter L. Wimer III
On Tue, 2006-05-16 at 15:12 +, CORVELLER Mickael wrote:
 The boot loader is U-Boot.
 
[...]
 
 Here is the result of one of my tests :
 - niot 0
 Client IP Address (0 for unknown)   = 192.168.001.126 ?
 Client address mask (0 for unknown) = 255.255.255.000 ?
 Server IP Address (0 for unknown)   = 192.168.001.127 ?
 File Format S(rec)/I(ntel)/B(in)/E(lf)  = B ? e
 Boot File Name(NULL for unknown)= pimage ? zimage.elf
 Boot File Load address  = 8 ? 0
 Boot File Execution address = 8 ? 10
 Data update in progress...
 - nbo 0
 Initialize ETH 0 in progress...
 Physical link is up at 100f.
 
 TFTP parameters :
 Client IP Address   192.168.001.126
 Server IP Address   192.168.001.127
 Boot File FormatE
 Boot File Name  zimage.elf
 Boot File Load address  0
 Boot File Execution address 10
 TFTP load in progress...
 Packets : 2065
 ELF information :
 Loading  .text @ 0x0080 :18620 bytes
 Loading  .data @ 0x00805000 :   966656 bytes
 Clearing .bss  @ 0x008F1000 : 8500 bytes
 Bytes received = 1057082, Bytes loaded = 0
 Low address = 80, High address = 7F
 
 After that, the console is died !


Um, this doesn't look like U-Boot.  This looks like an old Motorola
bootloader like MOTLoad


Walt Wimer
TimeSys Corporation





Unable to boot a kernel on a MPC8560

2006-05-16 Thread Wolfgang Denk
In message BAY105-F10857BC9DB3B958AC19C8D8EA00 at phx.gbl you wrote:
 
 first of all, I am a newbie in embedded linux systems.

Seems you are also a newbie when it comes to posting to mailing lists
in general. Posting  the  same  question  several  times  to  several
mailinglistsisnotagoodidea.Pleaseread
http://www.catb.org/%7eesr/faqs/smart-questions.html


 The boot loader is U-Boot.
...
 Here is the result of one of my tests :
 - niot 0
...
 - nbo 0

These are definitely no U-Boot commands. 

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
He's dead, Jim
-- McCoy, The Devil in the Dark, stardate 3196.1



Common Flash Interface v1.4(P30) and MTD support in Linux-2.4.16 kernel

2006-05-16 Thread Jayasri Sangu
Hi,

Does linux-2.4.16 kernel MTD support the Intel P30 flash ?

If not what are the solutions ?

Thanks
Jayasri 

Come see us at CommunicAsia 2006 http://www.communicasia.com/
June 20-23, 2006 in Singapore at the US International Pavilion booth 6F1-03




Common Flash Interface v1.4(P30) and MTD support in Linux-2.4.16 kernel

2006-05-16 Thread Josh Boyer
On Tue, 2006-05-16 at 16:18 -0700, Jayasri Sangu wrote:
 Hi,
 
 Does linux-2.4.16 kernel MTD support the Intel P30 flash ?

No.  That's almost 4.5 years old now.  Intel P30 was released within the
last year.

 
 If not what are the solutions ?

Use 2.6.15 or 2.6.16

josh