Artesyn PM/PPC 750 U-Boot/Linux support? Datasheet?

2006-08-23 Thread alva
You can find nearly all the power pc datasheet from IBM (ibm.com) own
web site. I think the most important feature of this 750 series ppc is
its capability to run 4 instructions per cycle and have built-in FPU.  

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:linuxppc-embedded-bounces+vows_siu=yahoo.com.hk at ozlabs.org] On
Behalf Of mahesh.roy at wipro.com
Sent: Tuesday, August 22, 2006 10:16 PM
To: linuxppc-embedded at ozlabs.org
Subject: Artesyn PM/PPC 750 U-Boot/Linux support? Datasheet?

 

hi man

  i saw ur mail and wanted the datasheet of ppc 750 board.

 so if u can kindly mail  it me i ll be grateful to u.

 

   Mahesh Roy

Designation :Project Engineer
Extn  : 74162
Direct: 0484-3054162 
Mobile   : +91-9895572846

(8:30 am to 9:00 pm)

 (MON to FRI)

 




The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com



--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.4/424 - Release Date:
2006/8/21



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.4/424 - Release Date:
2006/8/21
 

-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060823/ab6d1eff/attachment.htm
 
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 4389 bytes
Desc: not available
Url : 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060823/ab6d1eff/attachment.jpeg
 
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 7830 bytes
Desc: not available
Url : 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060823/ab6d1eff/attachment.gif
 


atomic operations in user space

2006-08-23 Thread Arnd Bergmann
Am Tuesday 22 August 2006 22:50 schrieb Xupei Liang:
 #include asm-ppc/atomic.h

 int main()
 {
 atomic_t atom;

 atomic_add(1, atom);
 return (0);
 }

 I am able to compile it and the atomic_add seems to be
 translated into the correct instructions. Can anybody
 please confirm? Thanks.

No, you can't do that, the kernel headers are not generally
working in user space, recent kernel versions protect you
from doing this.

If you don't have a library providing you with atomic operations,
you can copy the inline functions from the kernel, which will
work fine, but require that your app is GPL licensed.

Arnd 



help about configuring and initializing serial console under kernel 2.6.18-rc2

2006-08-23 Thread jie han
 am trying to take a working embedded linux system
from kernel 2.4.24 to 
2.6.18. The hardware is a custom board using a MPC8270
processor.
The working system uses u-boot 1.1.4 with linux kernel
2.4.24.

I am using the same u-boot and I am trying to port
linux kernel 2.6.18 
to our platform. Tthe kernel seems to hang after being
uncompressed. Here is what I see after running bootm
from u-boot:

## Booting image at 0040 ...
   Image Name:   Linux-2.6.18/Ocean BoradBand Ltd
   Image Type:   PowerPC Linux Kernel Image (gzip
compressed)
   Data Size:995213 Bytes = 971.9 kB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Current stack ends at 0x0FB73C38 = set upper limit
to 0x0080
## cmdline at 0x007FFF00 ... 0x007FFF3D
bd address  = 0x0FB73FB4
memstart= 0x
memsize = 0x1000
flashstart  = 0xFE00
flashsize   = 0x0200
flashoffset = 0x
sramstart   = 0x
sramsize= 0x
immr_base   = 0xF000
bootflags   = 0x0001
vco =264 MHz
sccfreq = 66 MHz
brgfreq = 16.500 MHz
intfreq =198 MHz
cpmfreq =132 MHz
busfreq = 66 MHz
ethaddr = 00:13:09:00:01:04
IP addr = 192.168.2.46
baudrate=  19200 bps
No initrd
## Transferring control to Linux (at address )
...

I check the __log_buf buffer and found message as
follow
020c634: 20736368 6564756c 65722063 66712072
scheduler cfq r
0020c644: 65676973 74657265 64202864 65666175   
egistered (defau
0020c654: 6c74290a 3c363e53 65726961 6c3a2043   
lt).6Serial: C
0020c664: 504d2064 72697665 72202452 65766973PM
driver $Revis
0020c674: 696f6e3a 20302e30 3220240a 3c363e63ion:
0.02 $.6c
0020c684: 706d5f75 6172743a 20574152 4e494e47   
pm_uart: WARNING
0020c694: 3a206e6f 20554152 54206465 76696365: no
UART device
0020c6a4: 7320666f 756e6420 6f6e2070 6c617466s
found on platf
0020c6b4: 6f726d20 62757321 0a3c363e 63706d5form
bus!.6cpm_
0020c6c4: 75617274 3a207468 65206472 69766572uart:
the driver
0020c6d4: 2077696c 6c206775 65737320 636f6e66 will
guess conf
0020c6e4: 69677572 6174696f 6e2c2062 75742074   
iguration, but t
0020c6f4: 68697320 6d6f6465 20697320 6e6f206chis
mode is no l
0020c704: 6f6e6765 72207375 70706f72 7465642eonger
supported.

I got a  result,I failed to initialize smc1 port,the
function is 
static int cpm_uart_init(void) ---dev =
bus_find_device(platform_bus_type, NULL, 0,
match_is_uart),I always got dev == NULL,
how can I define struct platform_bus_type

My kernel config file about serial drivers as follow
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_SERIAL_CPM=y
CONFIG_SERIAL_CPM_CONSOLE=y
# CONFIG_SERIAL_CPM_SCC1 is not set
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not set
# CONFIG_SERIAL_CPM_SCC4 is not set
CONFIG_SERIAL_CPM_SMC1=y
# CONFIG_SERIAL_CPM_SMC2 is not set
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=256

define cpm parallel port D as follow
_/* PD9  */ {   0,   1,   0,   1,   0,   0   },
_/* SMC1 TXD */
_/* PD8  */ {   0,   1,   0,   0,   0,   0   },
_/* SMC1 RXD */

Any ideas would be appreciated.

Regards,

Jie


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



what is difference between cpm_uart_cpm1.c and cpm_uart_cpm2.c

2006-08-23 Thread jie han
I am new about kernel 2.6.18.I just want to know
what's difference bwtween cpm_uart_cpm1.c and
cpm_uart_cpm2.c?and how to initialize cmp module?
thanks advance, 

Jie


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



ioremap() fails for 64 MB

2006-08-23 Thread Phil Nitschke
On Tue, 2006-08-22 at 09:22 -0500, Matt Porter wrote:
 On Tue, Aug 22, 2006 at 05:11:09PM +0930, Phil Nitschke wrote:
  Hi all,
  
  I have 2 GB memory on a 7448 processor, and want to reserve a huge chunk
  of it at boot-time, then ioremap() it into the kernel space inside a
  device driver.  So far I've succeeded with 64 MB, but can't go any
  higher, as mm/vmalloc.c tells me: allocation failed: out of vmalloc
  space - use vmalloc=size to increase size.
  
  So I tried adding a vmalloc line to the kernel command line as follows:
  Kernel cmd line: root=/dev/nfs rw mem=1920M vmalloc=1024M nfsroot=... 
  
 Yeah, that suggestion is bogus. That option can't help with getting
 more vmalloc space in this case.
 
  So the vmalloc=size argument has made no difference.  What do I need
  to do to make this work?
 
 Go to the Advanced setup menu. There's a number of options to provide
 fine-grained control of the PPC kernel virtual address space.

SNIP

Thanks Matt (and others) for your suggestions.  Matt has given me the
answers I was looking for.

Since my (2 GB) memory is within the (4 GB) addressable by a 32-bit
processor, why do I need high memory at all?  

Are there performance implications on this platform from having a non
optimal low/high ratio?

 That said, why don't you just use alloc_bootmem() to reserve memory
 for your driver at boot time? 

I avoided this simply because I wanted to load/unload my driver (during
development), and alloc_bootmem() seemed better suited to drivers
compiled into the kernel.  But I'll look again at this idea if further
problems arise with the approach above.

Thanks again,

-- 
Phil




the 8260 MMU problem

2006-08-23 Thread [EMAIL PROTECTED]
I meet some problems about MMU with 8260 cpu.In the function of 
map_page(),the reference f is the flag to set the page present and can be 
read or write. 
but I find if I set the flag zero,the linux will start normal and memory 
can be read and write also ,so why these  happened? The MMU do not worked 
normally!
wish you reply,think you.
 
yang.chun
   2006.8.23


~~~
?
??3??6?
MSN?yc_mail at eyou.com
~~~




ZTE Information Security Notice: The information contained in this mail is 
solely property of the sender's organization. This mail communication is 
confidential. Recipients named above are obligated to maintain secrecy and are 
not permitted to disclose the contents of this communication to others.
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the originator of the 
message. Any views expressed in this message are those of the individual sender.
This message has been scanned for viruses and Spam by ZTE Anti-Spam system.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060823/88a279f8/attachment.htm
 


ioremap() fails for 64 MB

2006-08-23 Thread Dan Malek

On Aug 23, 2006, at 6:00 AM, Phil Nitschke wrote:

 Since my (2 GB) memory is within the (4 GB) addressable by a 32-bit
 processor, why do I need high memory at all?

Because the processor used virtual memory addressing, and
we divide this 4G virtual space up among application, kernel,
IO mapping, etc.  The kernel can't map the whole 4G (or even
the 2G) physical space at one time.


 I avoided this simply because I wanted to load/unload my driver  
 (during
 development),

My personal preference is to debug drivers in a development
mode by building them into the kernel.  I find it easier to debug,
and you are also likely to be rebooting anyway :-)


-- Dan




I2C Linux driver on 8260

2006-08-23 Thread Boris Shteinbock
Hi.

Is there any chance, that some of you, guys,
have a working version of I2C driver for 8260/CPM2
for the latest kernels. The driver posted last year
doesn't seem to work for me: the bus is not identified.

Thanks a lot,
Boris



ioremap() fails for 64 MB

2006-08-23 Thread Matt Porter
On Tue, Aug 22, 2006 at 05:05:01PM -0400, David H. Lynch Jr. wrote:
 is ioremap() failing or is vmalloc failing ?
 
 ioremap should just assign a virtual address to a physical address -
 does it actually allocate anything ?
 I beleive I am ioremap()ing a greater than 64MB Flash ROM and I do
 not think it is failing.

ioremap() allocates virtual address space in order to be able to
do the assignment.  The ability to allocate this vmalloc space
(which is used by ioremap() and vmalloc() calls) varies based
on amount of memory, etc. in a system.  It also depends on how
good of a quality of a board port is done. It's possible to do
some very stupid things that constrict availability of vmalloc
space. So YMMV versus others.

-Matt



update: consolidated flat device tree code

2006-08-23 Thread Hollis Blanchard
On Wed, 2006-08-23 at 16:47 +1000, Paul Mackerras wrote:
 Hollis Blanchard writes:
 
  Still haven't looked to merge Matt's changes (because I'm busy, the
  current code works for me, and they haven't been accepted in u-boot
  yet).
 
 The other version that was posted had support for modifying an
 existing flat tree, which I need for the wrapper code for prep.  Are
 those Matt's changes?  Are you thinking of adding that capability to
 your version?

You can do this now with the ft_set_prop() function, which is what I'm
using for Xen.

At the moment that function isn't able to modify the size of a property,
but Mark is going to adapt his code (which supports that).

-- 
Hollis Blanchard
IBM Linux Technology Center




TEMAC problem on ML403 with U-boot.

2006-08-23 Thread Frank D Lombardo
Ming Liu wrote:
 Dear Frank,
 In your ML403 design which is booted by U-boot, do you use the normal
 10/100M Enet MAC or TEMAC? Is TEMAC supported by U-Boot 1.1.4? In my
 design I use TEMAC and it works well when I boot my Linux directly
 using Xilinx EDK bootloader. However it fails when using U-boot..

 Thanks for your telling.

 Regards
 Ming

 _
 ??? MSN Hotmail? http://www.hotmail.com

Ming,

The ML403 reference design from Xilinx uses the 10/100 Ethernet MAC and
works with U-Boot 1.1.4. The Xilinx GSRD design uses the ll_temac and it
does not work with U-Boot. We have decided that it would not be worth
the effort to port the ll_temac driver to work with U-Boot. However, if
anybody has done so, I would be interested.

Frank



atomic operations in user space

2006-08-23 Thread Terry Liang
Thanks. Arnd. My main concern is whether the operations are really atomic as 
they are in the kernel space. I have read some discussion in another forum that 
on other platforms, even if you are able to compile the atomic_add(), 
atomic_set(), etc. from an user space application,  they don't guarantee to be 
atomic. Thanks.

Regards,

Terry Liang
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060823/cb3d9daf/attachment.htm
 


Philips isp1362 linux driver

2006-08-23 Thread Kartik Babu
Hi,

  I was looking through the ozlabs forums, and saw your post about the 
driver for the Philips isp1362 USB host controller. You had offered to 
put up the for this driver to another poster.
  I was wondering if you would be able to share that code with me, I'm 
working on getting USB working reliably on a Phytec PXA255 board, and 
I'm having some issues. I was looking to see if the other drivers out 
there would do a better job. (Currently using the driver from ELINOS).

Thanks in advance.
Kartik




crashes on NFS

2006-08-23 Thread Wade Maxfield
Hi,

  I accidentally posted some kernel crashes when running updatedb on an
ML403 using MontaVista tools.  I was meaning to send them to MV.

  I had swap enabled over NFS (128meg), and the NFS directory being exported
was about 2 gigabytes in sizes.

  According to MontaVista, the problem was the kernel was running out of
memory.  (There are 64 megs of ram on that board.)

  I guess updatedb is very greedy.

thanks,
wade
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060823/9e467937/attachment.htm
 


PCI resource allocation MPC8540ADS

2006-08-23 Thread Clint Thomas
Hey guys,

I have a development board based loosely off the MPC8540ADS design that
I am trying to move to the Linux kernel 2.6. I already have this system
working successfully in Linux Kernel 2.4, but after dealing with
compilation and load errors, i've come to the point where I can get to a
console. However, this problem at boot time keeps me from using a lot of
onboard hardware. When I enable PCI support in the Kernel configuration,
this is the text I get at boot time...

PCI: Probing PCI hardware
PCI: Cannot allocate resource region 1 of PCI bridge 1
PCI: Cannot allocate resource region 2 of PCI bridge 1
PCI: bridge 1 resource 2 moved to 9ff0..9fff
PCI: Cannot allocate resource region 1 of PCI bridge 2
PCI: Cannot allocate resource region 2 of PCI bridge 2
PCI: bridge 2 resource 2 moved to 9fe0..9fef
PCI: Cannot allocate resource region 1 of device :00:14.0
PCI: Cannot allocate resource region 2 of device :00:14.0
PCI: Cannot allocate resource region 0 of device :01:01.0
PCI: Cannot allocate resource region 1 of device :01:01.0
PCI: Cannot allocate resource region 2 of device :01:01.0
PCI: Cannot allocate resource region 0 of device :01:05.0
PCI: Cannot allocate resource region 1 of device :01:05.0
PCI: Cannot allocate resource region 2 of device :01:05.0
PCI: Cannot allocate resource region 0 of device :01:06.0
PCI: Cannot allocate resource region 0 of device :01:06.1
PCI: Cannot allocate resource region 0 of device :01:06.2
PCI: Failed to allocate mem resource #0:100 at 0 for :01:01.0
PCI: Failed to allocate I/O resource #1:100 at 1000 for :01:01.0
PCI: Failed to allocate mem resource #2:1000 at 0 for :01:01.0
PCI: Failed to allocate mem resource #0:1 at 0 for :01:05.0
PCI: Failed to allocate mem resource #2:1 at 0 for :01:05.0
PCI: Failed to allocate mem resource #0:1000 at 0 for :01:06.0
PCI: Failed to allocate mem resource #0:1000 at 0 for :01:06.1
PCI: Failed to allocate mem resource #0:100 at 0 for :01:06.2
 
the system is using a PLX PCI bridge chip. Like I said, this works fine
in my 2.4 distribution. Thanks for any and all help!
 
Clinton Thomas
cthomas at soneticom.com
 
-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20060823/c95004fa/attachment.htm
 


CompactFlash on PQII Pro

2006-08-23 Thread Ben Warren
Hello,

I have a custom board where we've hung a CompactFlash on the local bus
of an MPC8349 processor, intending to use it in 'True IDE' mode.  The
closest thing I've found in the kernel tree is
drivers/ide/ppc/ide-m8xx.c, although it's *very* possible I'm not
looking in the right place.  

I believe my chip's local bus is similar to the 8xx, so making this
driver work with my hardware doesn't seem like that big a deal.  I fully
expect to have to monkey with UPM timings among other things.  On the
other hand, this seems like something other people would have done,
maybe with one of the other PQ families like 82xx or 85xx.

Does anyone have a patch, suggestions or flames they can throw my way?

cheers,
Ben




CompactFlash on PQII Pro

2006-08-23 Thread Kumar Gala

On Aug 23, 2006, at 5:16 PM, Ben Warren wrote:

 Hello,

 I have a custom board where we've hung a CompactFlash on the local bus
 of an MPC8349 processor, intending to use it in 'True IDE' mode.  The
 closest thing I've found in the kernel tree is
 drivers/ide/ppc/ide-m8xx.c, although it's *very* possible I'm not
 looking in the right place.

 I believe my chip's local bus is similar to the 8xx, so making this
 driver work with my hardware doesn't seem like that big a deal.  I  
 fully
 expect to have to monkey with UPM timings among other things.  On the
 other hand, this seems like something other people would have done,
 maybe with one of the other PQ families like 82xx or 85xx.

 Does anyone have a patch, suggestions or flames they can throw my way?

I know I posted a patch for cf-ide.c to lkml some time ago, this was  
to do a CF in true ide mode using the 83xx localbus.

http://marc.theaimsgroup.com/?l=linux-kernelm=113877891224982w=2

We did some UPM setup in u-boot to use two CS on Localbus for this.

- kumar