CPM uart

2005-04-14 Thread Dan Malek

On Apr 14, 2005, at 7:24 PM, Ricardo Scop wrote:

> I suggest you to seek all smc_scc_num references inside both the 
> console
> routines and the #ifdef SCC_CONSOLE ... #endif code snippets. They 
> should be
> subtracted by SCC_NUM_BASE whenever they're used to access SCC-related 
> stuff,

This has all been corrected in later versions of the driver.  Take a
look at the linuxppc_2.4_devel or some other BK ppc kernels.  Start
at penguinppc.org for kernel access information.

Yes, I know, it shouldn't be in this state, but it is.  Find the 
various kernel
sources and peruse for what fits your requirements.

Thanks.

-- Dan




embedded newbie

2005-04-14 Thread Venky Krishnan
Thanks for your reply. The PMC card is an SBS palomar II card which I
think is a 5v card. No LED's on the card. I have started looking
around for a 3pin RS232 cable.

Thanks again for your inputs...

- venky
 

On 4/14/05, Chris Elston  wrote:
> > I bought an old powerpc PMC card and a PCI adapter to fit this into
> > the PC PCI slot. However a 'lspci -v' at the command doesn't show any
> > difference with/without the card. Does this mean the card is fried?
> 
> Maybe fried, or maybe it's just incompatible with your PCI/PMC adapter.  What 
> I/O voltage is the PMC card 5v or 3.3v?  Does the PMC card have any 
> independent I/O options - RS232 header or anything else?  Does it have any 
> status LEDs?  What type of card is it?
> 
> Thanks,
> 
> Chris.
> 
> 
> This e-mail has been scanned for all viruses by Star. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> 
>



Can you suggest a small FTP utility for Linux suitable for embedded systems?

2005-04-14 Thread Patrick Huesmann
Rupesh S wrote:

>I know 'betaftpd' is small & suitable for small systems.
>
>--
>Rupesh S
>  
>

we use trollftpd from trolltech, its also very small and simple
ftp://ftp.trolltech.com/freebies/ftpd/

Regards,
Patrick

>  
>
"Vijay Padiyar"  04/13/05 02:00PM >>>


>Hi there
>
>I am running BusyBox 1.0 on the Linux 2.6.10 kernel on an MPC8260 target.
>Since BusyBox currently doesn't appear to provide an FTP server utility, I
>wanted to know where I can get a small FTP utility for Linux that doesn't
>take up much space and is suitable for embedded applications.
>
>Regards
>
>Vijay Padiyar
>




Trying to understand alloc_skb()

2005-04-14 Thread Daniel Ann
On 4/13/05, Eugene Surovegin  wrote:
> Then do it. It should be trivial to unwind the stack and much simpler
> than moving this code to process context.

You know what ?? You were right about it being trivial. Didnt take me
to too long to find the line and saw what was going on.
Initially I started reading on how to put the line in process context,
but soon I realised its not something you want to spend your afternoon
on :P (Currently I dont have too many afternoons for this)

Anyway, thanks for the pointer.

Actual problem came from rtnetlink.c file where it called
rtmsg_ifinfo(). This in turn, called alloc_skb with GFP_KERNEL, rather
an GFP_ATOMIC. I guess GFP_KERNEL is right, but what's the difference
?

-- 
Daniel



{PATCH] Fix IBM EMAC driver ioctl bug

2005-04-14 Thread Eugene Surovegin
On Thu, Apr 14, 2005 at 11:20:32AM -0700, Geoff Levand wrote:
> Fix IBM EMAC driver ioctl bug.
> 
> I found IBM EMAC driver bug.
> So mii-tool command print wrong status.
> 
>   # mii-tool
>   eth0: 10 Mbit, half duplex, no link
>   eth1: 10 Mbit, half duplex, no link
> 
> I can get correct status on fixed kernel.
> 
>   # mii-tool
>   eth0: negotiated 100baseTx-FD, link okZZ
>   eth1: negotiated 100baseTx-FD, link ok
> 

There is a problem with this patch. I'm aware of this problem for 
quite some time, but chose to keep the current code.

This IOCTL implementation has been here for many years in all 
revisions of the driver, so I think we should keep it as is, because 
some software could rely on it, and your change will break it. 

And all new code should use ethtool anyway :).

-- 
Eugene





CPM uart

2005-04-14 Thread Ricardo Scop
Hi Marco,

On Thursday 14 April 2005 09:54, Marco Schramel wrote:
> Hi Dan,
>
> thanks for your answer.
>
> > > During booting kernel hangs on initializing ttyS2 forever.
> >
> > That is the console port, so take a look at the code for its
> > initialization for something affected by this configuration.
> > What kernel are you using?  There have been lots of
> > updates in recent versions.
>
> I use kernel version 2.4.25 of denx and the uart version is
   ^^

Perusing that code, I can see that the console routines assume that there are 
_no_ SMC ports initialized before the SCC ports in rs_table. This should be 
fixed before attempting to run your system again.

I suggest you to seek all smc_scc_num references inside both the console 
routines and the #ifdef SCC_CONSOLE ... #endif code snippets. They should be 
subtracted by SCC_NUM_BASE whenever they're used to access SCC-related stuff, 
AFAIK.

HTH,

Ricardo Scop.

\|/
___ -*-
   (@ @)/|\
  /  V  \|  R SCOP Consult.
 /( )\  Linux-based communications
--^^---^^+--
rscop at matrix.com.br
+55 51 999-36-777
Porto Alegre, RS - BRazil




embedded newbie

2005-04-14 Thread Chris Elston
> I bought an old powerpc PMC card and a PCI adapter to fit this into
> the PC PCI slot. However a 'lspci -v' at the command doesn't show any
> difference with/without the card. Does this mean the card is fried?

Maybe fried, or maybe it's just incompatible with your PCI/PMC adapter.  What 
I/O voltage is the PMC card 5v or 3.3v?  Does the PMC card have any independent 
I/O options - RS232 header or anything else?  Does it have any status LEDs?  
What type of card is it?

Thanks,

Chris.


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk




RE: Réf. : Re: Réf. : RE: mmap : please help !

2005-04-14 Thread Fillod Stephane
Sophie CARAYOL wrote:
>But, the real question is : if you use the /dev/mem (with open() and mmap
>()), could you use, in the user space, the pointer returned by the mmap
>function to access the physical memory or do you have to use read/write (on
>the file descriptor) to access physical memory because i haven't the same
>results according to the used method.

The read/write method is a heavy weight method, while the pointer returned by 
mmap is light and very efficient way in user-space, and It just works(tm).

Have you made sure the read/write is bypassing caching/speculative mode?
Can some timing issues explain the difference? Are you reading/writing 
the right number of bytes?
Can you check both methods on a ReadOnly hardware register, with a known
value to be read?

>Thanks for 'od' but i haven't in my packages.

Anything else from dd with hexdump to your own built peek & poke?
What about mempoke from Conor McLoughlin?
http://ozlabs.org/pipermail/linuxppc-embedded/2004-October/015871.html


Regards,
-- 
Stephane




Réf. : Re: Réf. : RE: mmap : pl ease help !

2005-04-14 Thread [EMAIL PROTECTED]

Hello Jean-Christophe,

That's right, I verify all the useful parameters in my driver and
everything seems OK.
But, the real question is : if you use the /dev/mem (with open() and mmap
()), could you use, in the user space, the pointer returned by the mmap
function to access the physical memory or do you have to use read/write (on
the file descriptor) to access physical memory because i haven't the same
results according to the used method.
Thanks for 'od' but i haven't in my packages.

Sophie.




  
Jean-Christop   
  
he DuboisPour :  scarayol at assystembrime.com  
 
  Objet :  Re: R?f. : RE: mmap : 
please help ! 

  
14/04/05
  
12:09   
  

  

  



Hello Sophie,

On Thu, 2005-04-14 at 11:38 +0200, scarayol at assystembrime.com wrote:
> St?phane,
>
> thanks for your help.
> But I think that, except instruction eieio,  I do similar things. You use
> the virtual address returned by mmap but have you the same values if you
> use write/read(axs_mem_fd,...) instead of in_8/out_8.
> That is  my problem : I want to be sure that when I use the virtual
address
> returned by mmap, I access really to the physical memory mapped area.

As the /dev/map_mc is your custom driver it should be fairly easy for
you to check the parameters you pass to remap_page_range().

> Do you know a shell command in order to dump the memory and verify what I
> do ?

try "od"

JC

> --
> Sophie CARAYOL
>
> TECHNOLOGIES & SYSTEMES
> 50 rue du Pr?sident Sadate
> F - 29337 QUIMPER CEDEX
>
> T?l: +33 2 98 10 30 06
> mailto:scarayol at assystembrime.com
> --
>
>
>
>
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded








CPM uart

2005-04-14 Thread Marco Schramel
Hi Steven,

thank you for your answer.


> The selection of the BRGs is hard coded last time I checked.  When you
> add SMC1 and SMC2 it may use the wrong BRG for SCC1.  Check the BRG
> registers, the cmx_smr register and cmx_scr register and make sure
> everything matches up. 

But this original code seems to be ok.

static int rs_brg_map[] = {
6,  /* BRG7 for SMC1 */
7,  /* BRG8 for SMC2 */
0,  /* BRG1 for SCC1 */
1,  /* BRG2 for SCC2 */
2,  /* BRG3 for SCC3 */
};


/* Wire BRG7 to SMC1 and BRG8 to SMC2 */
immap->im_cpmux.cmx_smr = 0x11;

Best regards
Marco






ELDK 3.1.1 support for x86_64 host architecture

2005-04-14 Thread [EMAIL PROTECTED]
Hi Wolfgang,

I have tried both an install and a build from scratch of v3.1.1;
both fail due to various scripting problems having to due with
unsupported HOST_ARCH of x86_64.

Below is a cut and paste of the install failure. I don't have
the build from scratch failure at the moment (but the initial failures were
in ELDK_BUILD and build.sh scripts; search ELDK_BUILD and
build.sh for uname -m and HOST_ARCH. You'll see what I mean :)

[larrchen at rslab46 opt]$ ls -l
total 24
drwxr-xr-x  2 larrchen root 4096 Apr 14 13:46 eldk2
[larrchen at rslab46 opt]$ cd /media/cdrom
[larrchen at rslab46 cdrom]$ ls
brandelf   ELDK_MAKEDEV  installppc_6xx   ppc_8xx  sys
common etc   ppc_4xxppc_74xx  README.html  tools
ELDK_FIXOWNER  icons ppc_4xxFP  ppc_85xx  RPMS version
[larrchen at rslab46 cdrom]$ ./install -d /opt/eldk2


Do you really want to install into /opt/eldk2 directory[y/n]?: y

Creating directories
Done
Installing cross RPMs

Preparing...### [100%]
package rpm-4.1.1-1.8xa_10 is intended for a i386 architecture
can't change dir: No such file or directory
[larrchen at rslab46 cdrom]$

Also, here is soem info on my host machine.

[root at rslab46 cdrom]# cat /etc/issue
Fedora Core release 3 (Heidelberg)
Kernel \r on an \m

[larrchen at rslab46 opt]$ ls -l
[larrchen at rslab46 ~]$ uname -m
x86_64
[larrchen at rslab46 ~]$ uname -a
Linux rslab46.scs.agilent.com 2.6.11-1.14_FC3smp #1 SMP Thu Apr 7 19:36:23 EDT 
2005 x86_64 x86_64 x86_64 GNU/Linux
[larrchen at rslab46 ~]$ cat /proc/cpuinfo
processor   : 0
vendor_id   : GenuineIntel
cpu family  : 15
model   : 4
model name  :   Intel(R) Xeon(TM) CPU 2.80GHz
stepping: 1
cpu MHz : 2800.205
cache size  : 1024 KB
physical id : 0
siblings: 2
fpu : yes
fpu_exception   : yes
cpuid level : 5
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm pni monitor 
ds_cpl cid cx16 xtpr
bogomips: 5521.40
clflush size: 64
cache_alignment : 128
address sizes   : 36 bits physical, 48 bits virtual
power management:


processor   : 1
vendor_id   : GenuineIntel
cpu family  : 15
model   : 4
model name  :   Intel(R) Xeon(TM) CPU 2.80GHz
stepping: 1
cpu MHz : 2800.205
cache size  : 1024 KB
physical id : 0
siblings: 2
fpu : yes
fpu_exception   : yes
cpuid level : 5
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall lm pni monitor 
ds_cpl cid cx16 xtpr
bogomips: 5586.94
clflush size: 64
cache_alignment : 128
address sizes   : 36 bits physical, 48 bits virtual
power management:

Thanks for your help in this matter.

Best Regards,
Larry Chen

-Original Message-
From: wd at denx.de [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 13, 2005 10:49 PM
To: larry_chen at agilent.com
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: ELDK 3.1.1 support for x86_64 host architecture 


In message <26F517960E0A454BAC0748B5C33D5DEA18A722 at wcosmb05.cos.agilent.com> 
you wrote:
> 
> I've noticed that the ELDK build and install scripts do NOT
> support x86_64 host architecture.

Which sort of host system is this (Processor(s), RAM, Linux distribution) ?

> What support for x86_64 host architecture ever attempted
> by anyone?

It works fine here on several Athlon / Opteron systems running Fedora
Core 2 and Fedora Core 3; for example:

-> cat /etc/issue
Fedora Core release 2 (Tettnang)
Kernel \r on an \m

-> uname -a
Linux pollux 2.6.10-1.770_FC2smp #1 SMP Sat Feb 26 19:46:59 EST 2005 x86_64 
x86_64 x86_64 GNU/Linux
-> cat /proc/cpuinfo 
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 5
model name  : AMD Opteron(tm) Processor 246
stepping: 10
cpu MHz : 2004.596
cache size  : 1024 KB
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush mmx fxsr sse sse2 pni syscall nx mmxext lm 3dnowext 3dnow
bogomips: 3940.35
TLB size: 1088 4K pages
clflush size: 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

processor   : 1
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 5
model name  : AMD Opteron(tm) Processor 246
stepping: 10
cpu MHz : 2004.596
cache size  : 1024 KB
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush mmx fxsr sse sse2 pni

CPM uart

2005-04-14 Thread Marco Schramel
Hi Dan,

thanks for your answer.

> > During booting kernel hangs on initializing ttyS2 forever.
> 
> That is the console port, so take a look at the code for its
> initialization for something affected by this configuration.
> What kernel are you using?  There have been lots of
> updates in recent versions.

I use kernel version 2.4.25 of denx and the uart version is 
static char *serial_name = "CPM UART driver";
static char *serial_version = "0.01";

Are there newer versions? Sorry, but i am not up to date with the uart.
Is my configuration so extraordinary ;-) ?

Thanks
Marco



-- 
-
Marco Schramel



824x Sandpoint with 2.6.x

2005-04-14 Thread Sam Song
--- "Mark A. Greer"  wrote:
[snip]
> No problem, Sam. Let me know if you encounter any
> problems with it.

Well, encounter one puzzle on bd_info:-)

I use 2.6.11 release package on my custom Sandpoint
board with u-boot. In 2.6.11 ppcboot.h, I noticed 
that there were no CONFIG_8260 but CONFIG_CPM2, 
which had a conflict with bd_info of u-boot. Does
CONFIG_CPM2 means CONFIG_8260 in 2.6.x? If so, it
seems that I should use CPM2 UART driver rather 
than the one CONFIG_SERIAL_8250 which is defined by
sandpoint_defconfig. Well, CPM2 UART driver support
is off line from menuconfig:-(

I created one image only with 8250 serial and RAMDISK
support kernel. The console setting is "ttyS0,115200".
But hanged after loading the kernel... What could the
problem be?

Thanks for your kind help,

Sam

_
Do You Yahoo!?
150??MP3
http://music.yisou.com/
???
http://image.yisou.com
1G??1000???
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/



Réf. : RE: mmap : please help !

2005-04-14 Thread Jean-Christophe Dubois
Hello Sophie,

On Thu, 2005-04-14 at 11:38 +0200, scarayol at assystembrime.com wrote:
> St?phane,
> 
> thanks for your help.
> But I think that, except instruction eieio,  I do similar things. You use
> the virtual address returned by mmap but have you the same values if you
> use write/read(axs_mem_fd,...) instead of in_8/out_8.
> That is  my problem : I want to be sure that when I use the virtual address
> returned by mmap, I access really to the physical memory mapped area.

As the /dev/map_mc is your custom driver it should be fairly easy for
you to check the parameters you pass to remap_page_range(). 

> Do you know a shell command in order to dump the memory and verify what I
> do ?

try "od"

JC

> --
> Sophie CARAYOL
> 
> TECHNOLOGIES & SYSTEMES
> 50 rue du Pr?sident Sadate
> F - 29337 QUIMPER CEDEX
> 
> T?l: +33 2 98 10 30 06
> mailto:scarayol at assystembrime.com
> --
> 
> 
> 
> 
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded




Flat OF Device Tree for ppc32 [was: Platform bus/ppc sys model...]

2005-04-14 Thread Jakob Viketoft
Has any more happened on this off-list, or it is just in testing-mode 
right now?

I applied the changes to a 2.6.12-rc2 tree (with some minor rejects to 
sort out) and it compiles and boots fine on my Memec FF1152 board with 
the Virtex-II Pro chip (Xilinx ML300 config).

A couple of small changes to be able to use the simple boot-loader is below.

Cheers!

/Jakob

diff -ruN org-nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/embed_config.c 
nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/embed_config.c
--- org-nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/embed_config.c 
2005-04-04 18:38:03.0 +0200
+++ nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/embed_config.c 
2005-04-14 11:36:49.0 +0200
@@ -23,6 +23,8 @@
  #endif
  extern unsigned long timebase_period_ns;

+#include 
+
  /* For those boards that don't provide one.
  */
  #if !defined(CONFIG_MBX)
@@ -776,8 +778,7 @@
 bd->bi_intfreq = XPAR_CORE_CLOCK_FREQ_HZ;
 bd->bi_busfreq = XPAR_PLB_CLOCK_FREQ_HZ;
 bd->bi_pci_busfreq = XPAR_PCI_0_CLOCK_FREQ_HZ;
-   timebase_period_ns = 10 / bd->bi_tbfreq;
-   /* see bi_tbfreq definition in 
arch/ppc/platforms/4xx/xilinx_ml300.h */
+   timebase_period_ns = 10 / bd->bi_intfreq;
  }
  #endif /* CONFIG_XILINX_ML300 */

diff -ruN org-nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/misc-embedded.c 
nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/misc-embedded.c
--- org-nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/misc-embedded.c 
2005-04-04 18:38:04.0 +0200
+++ nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/misc-embedded.c 
2005-04-14 10:22:38.0 +0200
@@ -22,6 +22,7 @@
  #endif

  #include "nonstdio.h"
+#include 

  /* The linker tells us where the image is. */
  extern char __image_begin, __image_end;


Jon Loeliger wrote:
> On Thu, 2005-04-07 at 12:49, Tom Rini wrote:
> 
> 
>>Please post to the list as an RFC.  Thanks.
> 
> 
> Folks,
> 
> Apologies to those who have received this notice twice.
> I first sent it to the list where it was summarily
> denied for size reasons.
> 
> I have now posted a tgz file here instead:
> 
> http://www.jdl.com/bdt_cleanup.tgz
> 
> What follows is my original email content.
> 
> 
> OK, for those keeping score over on the U-Boot list, _this_
> message is really intended to be sent to the public list. :-)
> 
> Here (as noted above) are my diffs against a clone of
> http://linux.bkbits.net/linux-2.6
> as last pulled a couple days ago. (*)
> 
> Please consider this a Request For Comments for now.  Feel free
> to apply it and test it out as well, of course. :-)  I'll sign-off
> on it when it has ripened some more and gets a nod or two...
> 
> These changes relocate almost all of the ppcboot.h definitions
> into new files, arc/ppc/syslib/fw_bdt.[ch] and front them
> with a new, shim interface in include/asm-ppc/firmware.h.
> 
> There is a Kconfig option that allows you to select between
> a "bd_t" interface and a non-existant "OF Flat dev tree"
> interface.  Choose wisely (default) for now.  It adds the
> new fw_bdt.o file.
> 
> Some potential gotchas or points to note:
> 
> - As of this patch, no interface to any board should change.
>   This just isolates the scattered bd_t references to one place.
> 
> - On Kumar's advice arch/ppc/boot/simple was totally ignored.
>   For now; this round.  It can be next on the hit parade easily.
>   It holds the last reference to ppcboot.h still.
> 
> - Earlier cut-n-paste of some devices led to me changing a few
>   files over in 68k land to remove some now-obsolete ppcboot.h
>   related comments justs for completeness.
> 
> - I've compiled uImage using defconfigs for the following boards:
> 
> 8560_adscpci690 ash redwood5
> 8540_adsads_8272TQM8260 est8260
> rpx8260 bseip   mbx mpc834x_sys
> ocotea  lite5200hdpulopec
> TQM860L rpxlite radstone_ppc7d  walnut
> 
> - The file include/asm-ppc/ppcboot.h used to contain a nested
>   include of linux/types.h that was tacitly used by many files.
>   In ripping ppcboot.h out of many platform .h files, I've had
>   to add direct #include  in several places.
>   If your board isn't listed above and it looks really broken,
>   consider if it needs a ?
> 
> 
> Enjoy,
> jdl
> 
> --
> (*) -- BK is dead.  Long live BK!
> 



CPM uart

2005-04-14 Thread Dan Malek

On Apr 14, 2005, at 8:54 AM, Marco Schramel wrote:

> I use kernel version 2.4.25 of denx and the uart version is
> static char *serial_name = "CPM UART driver";
> static char *serial_version = "0.01";

I don't remember the progress of the new cpm serial drivers in 2.4,
I've been spending too much time in 2.6.  If you find a 2.4 kernel
with the new serial driver model (drivers/seral/cpm_uart) that
would be a big help.

> Are there newer versions? Sorry, but i am not up to date with the uart.
> Is my configuration so extraordinary ;-) ?

Yes, there are newer versions and I've never tried what you are
doing.  The console code has always been sensitive to configurations.
Although the #defines may look like it will work, the code often isn't
there to support it, and I know wasn't there in that old version of the 
code.

Thanks.

-- Dan




Réf. : RE: mmap : please help !

2005-04-14 Thread [EMAIL PROTECTED]

St?phane,

thanks for your help.
But I think that, except instruction eieio,  I do similar things. You use
the virtual address returned by mmap but have you the same values if you
use write/read(axs_mem_fd,...) instead of in_8/out_8.
That is  my problem : I want to be sure that when I use the virtual address
returned by mmap, I access really to the physical memory mapped area.

Do you know a shell command in order to dump the memory and verify what I
do ?

--
Sophie CARAYOL

TECHNOLOGIES & SYSTEMES
50 rue du Pr?sident Sadate
F - 29337 QUIMPER CEDEX

T?l: +33 2 98 10 30 06
mailto:scarayol at assystembrime.com
--







{PATCH] Fix IBM EMAC driver ioctl bug

2005-04-14 Thread Geoff Levand
Fix IBM EMAC driver ioctl bug.

I found IBM EMAC driver bug.
So mii-tool command print wrong status.

  # mii-tool
  eth0: 10 Mbit, half duplex, no link
  eth1: 10 Mbit, half duplex, no link

I can get correct status on fixed kernel.

  # mii-tool
  eth0: negotiated 100baseTx-FD, link okZZ
  eth1: negotiated 100baseTx-FD, link ok

Hiroaki Fuse

Signed-off-by: Geoff Levand  for CELF
---

Index: linux-2.6.11/drivers/net/ibm_emac/ibm_emac_core.c
===
--- linux-2.6.11.orig/drivers/net/ibm_emac/ibm_emac_core.c  2005-04-14 
10:54:20.014023550 -0700
+++ linux-2.6.11/drivers/net/ibm_emac/ibm_emac_core.c   2005-04-14 
10:55:24.723458722 -0700
@@ -1587,7 +1587,7 @@
 static int emac_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
 {
struct ocp_enet_private *fep = dev->priv;
-   uint *data = (uint *) & rq->ifr_ifru;
+   uint16_t *data = (uint16_t *) & rq->ifr_ifru;
 
switch (cmd) {
case SIOCGMIIPHY:

-EOF




embedded newbie

2005-04-14 Thread Venky Krishnan
I bought an old powerpc PMC card and a PCI adapter to fit this into
the PC PCI slot. However a 'lspci -v' at the command doesn't show any
difference with/without the card. Does this mean the card is fried?

thanks

- venky



Boot problems (NFS)

2005-04-14 Thread André Bitzer
Hi,

I work with the 860FADS-Board and have the following problem:
I load the kernel to the flash with the u-boot (1.1.2). at startup of
the system, i copy the kernel to RAM and start it.
(set bootargs nfsroot=/tftpboot/busybox,nolock rw
ip=192.168.40.144:192.168.40.120eth0:on;
 setenv bootcmd "cp.b 0xfe08 0x10 0xf7fff; bootm")

But, when i don't establish a network connection to my server (nfs-root)
with u-boot, the kernel will hang with this messages:

PQRM: Init
PQFEC: Init
NET4: Linux TCP/IP 1.0 for NET4.0
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 1024)
PQFEC: Open eth0 device
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
  device=eth0, addr=192.168.40.144, mask=255.255.255.0,
gw=255.255.255.255,
 host=192.168.40.144, domain=, nis-domain=(none),
 bootserver=192.168.40.120, rootserver=192.168.40.120, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Looking up port of RPC 13/2 on 192.168.40.120
portmap: server 192.168.40.120 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 15/1 on 192.168.40.120
portmap: server 192.168.40.120 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
mount: server 192.168.40.120 not responding, timed out
Root-NFS: Server returned error -5 while mounting /tftpboot/busybox
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "" or 02:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 02:00

if i first open a tftp connection to my server with u-boot, then the
kernel starts properly.

With tcpdump i do the following dumps:

kernel start:

09:49:54.506470 arp who-has linux.site tell 192.168.40.144
09:49:54.506492 arp reply linux.site is-at 00:01:02:af:02:f0
09:49:54.506737 IP 192.168.40.144.mdbs_daemon > linux.site.sunrpc: UDP,
length: 56
09:49:54.508045 IP linux.site.sunrpc > 192.168.40.144.mdbs_daemon: UDP,
length: 28
09:49:54.522869 IP 192.168.40.144.mdbs_daemon > linux.site.sunrpc: UDP,
length: 56
09:49:54.523310 IP linux.site.sunrpc > 192.168.40.144.mdbs_daemon: UDP,
length: 28
09:49:54.524804 IP 192.168.40.144.mdbs_daemon > linux.site.783: UDP,
length: 64
09:49:54.547407 IP linux.site.783 > 192.168.40.144.mdbs_daemon: UDP,
length: 60
09:49:54.550351 IP 192.168.40.144.4024160259 > linux.site.nfs: 108
getattr [|nfs]
09:49:54.552402 IP linux.site.nfs > 192.168.40.144.4024160259: reply ok
96 getattr DIR 40755 ids 0/0 sz 480
09:49:54.553425 IP 192.168.40.144.4024160260 > linux.site.nfs: 108
fsstat [|nfs]
09:49:54.553473 IP linux.site.nfs > 192.168.40.144.4024160260: reply ok
48 fsstat tsize 32768 bsize 4096 blocks 1311254 bfree 198425 bavail
198425
09:49:54.564656 IP 192.168.40.144.4024160261 > linux.site.nfs: 108
getattr [|nfs]
09:49:54.564711 IP linux.site.nfs > 192.168.40.144.4024160261: reply ok
96 getattr DIR 40755 ids 0/0 sz 480
09:49:54.565727 IP 192.168.40.144.4024160262 > linux.site.nfs: 108
getattr [|nfs]
09:49:54.565759 IP linux.site.nfs > 192.168.40.144.4024160262: reply ok
96 getattr DIR 40755 ids 0/0 sz 480
09:49:54.566751 IP 192.168.40.144.4024160263 > linux.site.nfs: 116
lookup [|nfs]
09:49:54.597890 IP linux.site.nfs > 192.168.40.144.4024160263: reply ok
128 lookup [|nfs]
09:49:54.617168 IP 192.168.40.144.4024160264 > linux.site.nfs: 116
lookup [|nfs]
09:49:54.621860 IP linux.site.nfs > 192.168.40.144.4024160264: reply ok
128 lookup [|nfs]
09:49:54.623180 IP 192.168.40.144.4024160265 > linux.site.nfs: 116
lookup [|nfs]
09:49:54.637662 IP linux.site.nfs > 192.168.40.144.4024160265: reply ok
128 lookup [|nfs]
09:49:54.638776 IP 192.168.40.144.4024160266 > linux.site.nfs: 108
readlink [|nfs]
09:49:54.638900 IP linux.site.nfs > 192.168.40.144.4024160266: reply ok
48 readlink "../bin/busybox"
09:49:54.639991 IP 192.168.40.144.4024160267 > linux.site.nfs: 116
lookup [|nfs]
09:49:54.649638 IP linux.site.nfs > 192.168.40.144.4024160267: reply ok
128 lookup [|nfs]
09:49:54.650727 IP 192.168.40.144.4024160268 > linux.site.nfs: 120
lookup [|nfs]
09:49:54.663338 IP linux.site.nfs > 192.168.40.144.4024160268: reply ok
128 lookup [|nfs]
09:49:54.664753 IP 192.168.40.144.4024160269 > linux.site.nfs: 120 read
[|nfs]
09:49:54.684925 IP linux.site.nfs > 192.168.40.144.4024160269: reply ok
1472 read
09:49:54.684933 IP linux.site > 192.168.40.144: udp
..

kernel don't start:

nothing happens on the network interface!!

rpcinfo -p on server:
   program vers proto   port
102   tcp111  portmapper
102   udp111  portmapper
132   udp   2049  nfs
133   udp   2049  nfs
1002273   udp   2049  nfs_acl
132   tcp   2049  nfs
133   tcp   2049  nfs
1002273   tcp   2049  nfs_acl
1000211   udp  32768  nlockmgr
1000213   udp  32768  nlockmgr
1000214   udp  32768  nlockmgr
1000

CPM uart

2005-04-14 Thread Dan Malek

On Apr 14, 2005, at 9:34 AM, Marco Schramel wrote:

>> The selection of the BRGs is hard coded last time I checked.

Newer drivers don't do this.  They are probably stuck in the 
linuxppc_devel
kernels and never made it into the main tree.  The only problem with
BRGs will be with 8xx, where the max is 4 and some variants have fewer.


-- Dan




CPM uart

2005-04-14 Thread Marco Schramel
Hi,

on my target (MPC8270, 2.4.25) SCC1, SCC2 and SCC3 will work fine as ttyS0 .. 
ttyS2 with console at ttyS0.

It works with this code in arch/ppc/8260_io/uart.c
#define CONFIG_SERIAL_CONSOLE_PORT  0

#define SCC_NUM_BASE0   /* SCC base tty "number" */
#define SCC_IDX_BASE0   /* table index */
static struct serial_state rs_table[] = {
/* UART CLK   PORT  IRQ  FLAGS  NUM   */
{ 0, 0, PROFF_SCC1, SIU_INT_SCC1,   0, SCC_NUM_BASE},  /* 
SCC1 ttyS0 */
{ 0, 0, PROFF_SCC2, SIU_INT_SCC2,   0, SCC_NUM_BASE + 1},/* 
SCC2 ttyS1 */
{ 0, 0, PROFF_SCC3, SIU_INT_SCC3,   0, SCC_NUM_BASE +2}, /* 
SCC3 ttyS2 */


Now i need the two SMC's.
I changed the source to:
#define CONFIG_SERIAL_CONSOLE_PORT  2
#define SCC_NUM_BASE2   /* SCC base tty "number" */
#define SCC_IDX_BASE2   /* table index */
static struct serial_state rs_table[] = {
/* UART CLK   PORT  IRQ  FLAGS  NUM   */
{ 0, 0, PROFF_SMC1, SIU_INT_SMC1,   0, 0},/* SMC1 ttyS0 */
{ 0, 0, PROFF_SMC2, SIU_INT_SMC2,   0, 1},/* SMC2 ttyS1 */  
{ 0, 0, PROFF_SCC1, SIU_INT_SCC1,   0, SCC_NUM_BASE},/* SCC1 
ttyS2 */
{ 0, 0, PROFF_SCC2, SIU_INT_SCC2,   0, SCC_NUM_BASE + 1},/* 
SCC2 ttyS3 */
{ 0, 0, PROFF_SCC3, SIU_INT_SCC3,   0, SCC_NUM_BASE + 2},/* 
SCC3 ttyS4 */
and passed the bootloader the correct console=ttyS2.

During booting kernel hangs on initializing ttyS2 forever.

What could be wrong ? I only changed the io port configuration in the init 
function.

Thanks in advance
Marco





-
Marco Schramel



embedded newbie

2005-04-14 Thread Venky Krishnan
I bought an old powerpc PMC card and a PCI adapter to fit this into
the PC PCI slot. However a 'lspci -v' at the command doesn't show any
difference with/without the card. Does this mean the card is fried?

thanks

- venky



CPM uart

2005-04-14 Thread Dan Malek

On Apr 14, 2005, at 3:26 AM, Marco Schramel wrote:

> During booting kernel hangs on initializing ttyS2 forever.

That is the console port, so take a look at the code for its
initialization for something affected by this configuration.
What kernel are you using?  There have been lots of
updates in recent versions.

> What could be wrong ? I only changed the io port configuration in the 
> init function.

Heh :-)  There are lots of permutations of serial ports that probably
haven't been tested.  You probably found one of them.

Thanks.


-- Dan




ELDK 3.1.1 support for x86_64 host architecture

2005-04-14 Thread Wolfgang Denk
In message <26F517960E0A454BAC0748B5C33D5DEA18A722 at wcosmb05.cos.agilent.com> 
you wrote:
> 
> I've noticed that the ELDK build and install scripts do NOT
> support x86_64 host architecture.

Which sort of host system is this (Processor(s), RAM, Linux distribution) ?

> What support for x86_64 host architecture ever attempted
> by anyone?

It works fine here on several Athlon / Opteron systems running Fedora
Core 2 and Fedora Core 3; for example:

-> cat /etc/issue
Fedora Core release 2 (Tettnang)
Kernel \r on an \m

-> uname -a
Linux pollux 2.6.10-1.770_FC2smp #1 SMP Sat Feb 26 19:46:59 EST 2005 x86_64 
x86_64 x86_64 GNU/Linux
-> cat /proc/cpuinfo 
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 5
model name  : AMD Opteron(tm) Processor 246
stepping: 10
cpu MHz : 2004.596
cache size  : 1024 KB
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush mmx fxsr sse sse2 pni syscall nx mmxext lm 3dnowext 3dnow
bogomips: 3940.35
TLB size: 1088 4K pages
clflush size: 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

processor   : 1
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 5
model name  : AMD Opteron(tm) Processor 246
stepping: 10
cpu MHz : 2004.596
cache size  : 1024 KB
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush mmx fxsr sse sse2 pni syscall nx mmxext lm 3dnowext 3dnow
bogomips: 4005.88
TLB size: 1088 4K pages
clflush size: 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

-> type ppc_8xx-gcc
ppc_8xx-gcc is /opt/eldk/usr/bin/ppc_8xx-gcc
-> ppc_8xx-gcc -v
Reading specs from /opt/eldk-3.1.1/usr/bin/../lib/gcc-lib/ppc-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--disable-checking --with-system-zlib --enable-__cxa_atexit --with-newlib 
--enable-languages=c,c++ --disable-libgcj --host=i386-redhat-linux 
--target=ppc-linux
Thread model: posix
gcc version 3.3.3 (DENX ELDK 3.1.1 3.3.3-9)


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
Neckties strangle clear thinking.   -- Lin Yutang



From the Desk of Mr. Paul Kadiri

2005-04-14 Thread Paul Kadiri

>From the Desk of Mr. Paul Kadiri

Dear Sir/Madam,
   My name is Paul Kadiri, I am a banker with one of the banks 
in Lagos in Nigeria. I have urgent and very confidential 
business proposition for you. On June 6 2002, a Zimbabwean 
farmer/businessman made a numbered time(Fixed) deposited 
for twelve calendar months, valued at $15,320,000.00 
(Fifteen million,three hundred and twenty thousand united 
states dollars-five) in my branch. Upon maturity, I sent a 
routine notification to his forwarding address but got no 
reply. After a month,i sent a reminder and finally we 
discovered from his co-farmer who previously had a joint 
account with him in my bank that he died in the land 
crisis in Zimbabwe.
 
  On further investigation, I found out that he did not 
leave a WILL and all attempts to trace his next of kin 
were fruitless. I therefore made further investigation and 
discovered that he did not declare any next of kin in all 
his official documents, including his Bank Deposit
paperwork.
 
 This sum of US$15,320,000.00 is still sitting in the Bank 
and the interest is being rolled over with the principal 
sum at the end of each year. No one will come forward to 
claim it. According to the Nigerian Law, at the expiration 
of 5 (five) years, the money will revert to the ownership 
of the Nigerian Government{STATE} if nobody applies to 
claim the funds. Consequently, my proposal is that I will 
like you as a foreigner to stand in as his next of kin so 
that the fruits of this old man's labor will not get into 
the hands of some corrupt officials. I will intimate you 
with the requirements that the attorney will need to 
prepare the necessary documents and affidavits, which will 
put you in place as the next of kin upon your positive 
response.
 
 We shall employ the services of two attorneys for drafting 
and notarization of the WILL and obtain the necessary 
documents and letter of probate/administration in your 
favor for the transfer. A bank Account in any part of the 
world, which you provide, will then facilitate the 
transfer of this money to you as the beneficiary/next of 
kin. The money will be paid into your account for us to 
share in the ratio of 70% for me and 30% for you, There is 
no risk at all as all the paperwork for this transaction 
will be done by the attorney and my position as the 
Regional manager guarantees the successful execution of 
this transaction. Upon your positive response,i shall let 
you know who i am,the name of my bank and the name of the 
deceased.I will also provide you with more details and 
relevant documents that will put you in a clearer picture 
of this pending transaction.
 Please observe utmost confidentiality, and be rest assured 
that this transaction would be most profitable for both of 
us because I shall require your assistance to invest my 
share in your country.
You can email me via this email 
address:pakadi13 at yahoo.com
Awaiting your urgent reply 
Yours faithfully.
Mr. Paul Kadiri