$B$*$PMM$G2T$0!*!*(B

2005-09-28 Thread [EMAIL PROTECTED]
$B'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X(B

$B=w at -$NAjhttp://awg.webchu.com/gyakuten/?dog

$BJg=8>r7o!!#2#2:P$+$i#3#5:P$^$G$NCK at -(B

$BJs=7$K4X$7$F$O!"Aj@\OC$7$F$*7h$a2<$5$$!#(B

$BEvJ}$O8r>D at .N)$N:]!"=w at -2q0w$NJ}$+$iNA6b$rD:$/0Y(B

$BCK at -2q0w$NJ}$+$i0l at Z$*6b$rD:$-$^$;$s!#(B

$B>0!"EPO?$7$F$$$k=w at -2q0w$NJ}$O!"?H85?3::$r$7$?(B

$BJ}$N$_$H$J$j$^$9!#2q0w$NCf$K$Oo<1$"$kJ}$N$_$NJg=8$H$5$;$FD:$-$^$9!#(B

$B59$7$/$*4j$$CW$7$^$9!#(B

http://awg.webchu.com/gyakuten/?dog

$B'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X'X(B








I don't veceive yourmail

$B%a!<%k

booting and mounting PCIIDE: kernel access of bad area

2005-09-28 Thread KokHow Teh
Hi;
  I have rebuilt arabella linux kernel with PCI IDE support. However,
the kernel bootup crashes with "kernel access of bad area" message. I think
it has something to do with the IDE base addess setup. I have tried to
change the ide0=base,ctl but to no avail. Hope you are able to advise me on
that. Thanks.

Regards,
TEH
u-boot> diskboot $loadaddr 0:1

Loading from IDE device 0, partition 1: Name: hda1
  Type: U-Boot
   Image Name:   Linux Kernel Image
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:893382 Bytes = 872.4 kB
   Load Address: 
   Entry Point:  
u-boot> bootm
## Booting image at 0010 ...
   Image Name:   Linux Kernel Image
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:893382 Bytes = 872.4 kB
   Load Address: 
   Entry Point:  
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
MPC82xxADS/PQ2FADS board support by Arabella
Memory BAT mapping: BAT2=32Mb, BAT3=0Mb, residual: 0Mb
Linux version 2.4.26 (root at ShrekII.marconi.com) (gcc version 3.3.2) #6 Wed
Sep 28 11:58:24 MYT 2005
ADS setup arch
MPC82xx PCI bridge initialization
On node 0 totalpages: 8192
zone(0): 8192 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/hda2 rw ide0=0x1f0,0x3f6
ide_setup: ide0=0x1f0,0x3f6

ADS init IRQ. NR_IRQS=256
PIC: fully preemptible IRQ mode
ADS time init
ADS calibrate decrementer. FREQ=1, tb_ticks_per_jiffy=25
Calibrating delay loop... 266.24 BogoMIPS
Memory: 30252k available (1384k kernel code, 472k data, 232k init, 0k
highmem)
Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Inode cache hash table entries: 2048 (order: 2, 16384 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 8192 (order: 3, 32768 bytes)
POSIX conformance testing by UNIFIX
PCI: Probing PCI hardware
PCI: moved device 00:16.0 resource 6 (7201) to 9000
PCI: moved device 00:16.0 resource 4 (101) to 0
PCI: moved device 00:16.0 resource 0 (101) to 10
PCI: moved device 00:16.0 resource 2 (101) to 10
PCI: moved device 00:16.0 resource 1 (101) to 20
PCI: moved device 00:16.0 resource 3 (101) to 20
ADS init
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch (rgooch at atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir at monad.swb.de).
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
pty: 256 Unix98 ptys configured
Generic RTC Driver v1.07
devsoc: devsoc_init:
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Oops: kernel access of bad area, sig: 11
NIP: C00BC0B0 XER: 2000 LR: C00BC0A4 SP: C02F1F20 REGS: c02f1e70 TRAP:
0300Not tainted
MSR: 1032 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
DAR: 0CFB, DSISR: 2200
TASK = c02f[1] 'swapper' Last syscall: 120
last math  last altivec 
GPR00: 0001 C02F1F20 C02F 0001 9032 0001 0832

GPR08: C01E C01B C01E  C01E  01FC5000

GPR16: 0001 0001  007FFF00 003FF000  0001
01B78978
GPR24:   4000  007FFF00 C01E C01B067C
C01E
Call backtrace:
C0197464 C01A7658 C01A88B8 C01A8940 C01A898C C019E684 C0003970
C000820C
Kernel panic: Attempted to kill init!
 <0>Rebooting in 180 seconds..






mpc5200 and pcmcia

2005-09-28 Thread Derycke, Johan
Hi all,

I am working on a custom board based on the Lite5200.
It is expanded with a PCI1410 PC Card Controller on the PCI bus.

In the history of this list I found a patch against an older kernel version
to solve some issues:
http://ozlabs.org/pipermail/linuxppc-embedded/2004-December/016273.html

I took the old 2.4.23 kernel and applied the patch. 
I could get my 3c589 network adaptor to work.
Is this patch available for the current 2.4.25 kernel?

Br,

Johan Derycke

-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050928/825f627e/attachment.htm
 


CPM2 early console

2005-09-28 Thread Kalle Pokki
Dan Malek wrote:

> On Sep 27, 2005, at 4:35 PM, Kalle Pokki wrote:
>
>> OK. Then the question really is why isn't the cache controller 
>> enforcing coherency between the G2_LE core and the CPM.
>
> Is the GBL and DTB set properly in the function code registers
> of the SCC parameter ram?


The 60x bus is used, but snooping wasn't enabled before.

However, even after enabling snooping it still doesn't work right. If 
I'm just within my boot loader I still cannot use e.g. the SMC with WIMG 
bits 0010 and the GBL 1. If I set the write-through in WIMG bits as 
1010, it works. The core now sees the RX buffers from the CPM and, of 
course, my TX buffers since they are written to the memory.

I guess Linux remaps the RAM as copy-back. But snooping should work with 
copy-back caches, shouldn't it?




Driver radeonfb for ATI M6 video controller

2005-09-28 Thread Stefan Nickl
On Wed, 2005-09-28 at 09:02 +0200, Roberto Pavon Sierra wrote:
> Hi,
> 
> i try to initialize my video card ATI M6. I installed the driver radeonfb
> (kernel linux 2.6.12) for ATI M6 in ppc, but this driver cann?t read the
> BIOS-serial flash and takes always default values and not the initialization
> values from the BIOS.
> Can someone help me with this problem? must i install too a XF86-emulator in
> my board (ppc 440GX)? Can i initialize this video card without BIOS?

We tried that too :-}  Without BIOS initialisation, the chip won't work.

The x86 emulation approach was led by a company
http://www.scitechsoft.com,
but I seems they got to know the chips well enough in the meantime to
program them directly...

The emulator was based on x86emu, and the last time I saw it was in one
of the {linux,free}bios projects. I actually ran it once with a M6 BIOS
on a PPC,
but it didn't work right away and I didn't wanted to dig in there at the
time.

While I would be interested to hear about any progess you can make with
ATI on PPC, I'll tell that we gave up on that and settled for another
chip.
You may want to have a look at Siliconmotion's SM501 or Fujitsu's
Coral-P.

Regards,

-- 
Stefan Nickl
Kontron Modular Computers





Installation XF86 in powerpc

2005-09-28 Thread Roberto Pavon Sierra
Hi,

i work in my Master Thesis with a custom board ppc 440GX  and i try to
install xfree86 on my board. I work with kernel 2.6.12 and i use to boot an
uImage-Boot.

How can i install the xfree86 on my board?

Best regards,

Roberto Pav?n





How to use SPE on MPC8541

2005-09-28 Thread Andy Fleming

On Sep 28, 2005, at 03:12, Fillod Stephane wrote:

> Bonjour G?rard,
>
> G?rard Gu?vel wrote:
>
>> I don't especially want to see if the bit is set, I just want
>> to improve the board performance for a Linux application :-).
>>
>
> Do you know where your CPU is spending much of its time?
> It looks like a job for OProfile. Support for e500 exists in 2.6.x
> thanks to the fine folks of Freescale. We appreciate their involvement
> in OSS community.


Yeah, oprofile would probably help here.

>
>> with the standard glibc (strcpy, strcmp, ...) on one part, and with
>> the freescale SPE library on the other part (vstrcpy, vstrcmp, ...).
>>
>
> Will the SPE enhanced C library calls will be integrated in Glibc  
> one day?
>

I don't think the glibc people integrate processor-specific changes,  
so it's not likely.

Andy


How to use SPE on MPC8541

2005-09-28 Thread Andy Fleming

On Sep 28, 2005, at 03:02, G?rard Gu?vel wrote:

>
> Andy,
>
>
>> Your driver runs in kernel space.  The kernel has the SPE bit off.
>> The MSR state is process-specific.  If the code executes, the
>> MSR bit
>> is set.  Why do you want to see if the bit is set?
>>
>
> OK, this is a bad idea to use a driver to check the msr register.
>
> I don't especially want to see if the bit is set, I just want
> to improve the board performance for a Linux application :-).
>
> To check the performance, I used the Dhrystone 2.1 benchmark with
> the standard glibc (strcpy, strcmp, ...) on one part, and with
> the freescale SPE library on the other part (vstrcpy, vstrcmp, ...).
>
> I already verified in the binary elf file that the right functions are
> called.
> When I run the benchmark, I get the same MIPS with and without SPE  
> code.

Hmm... This is very strange, because Dhrystone is exactly the  
benchmark this was tested on.  How did you determine that the SPE  
functions are called?


> I ran the same benchmark on the same board without OS,
> with a personal pseudo glibc, I have the same MIPS as under Linux,
> with the freescale library, I gain 40% of perf.
>
> That's I want to retreive with the Linux OS.

I'm not sure why you aren't seeing a performance gain, but I assure  
you that, if SPE instructions weren't working, Dhrystone would  
crash.  The only other possibility I can think of is that the SPE  
versions of the functions aren't being called.


How to use SPE on MPC8541

2005-09-28 Thread Fillod Stephane
Bonjour G?rard,

G?rard Gu?vel wrote:
>I don't especially want to see if the bit is set, I just want
>to improve the board performance for a Linux application :-).

Do you know where your CPU is spending much of its time?
It looks like a job for OProfile. Support for e500 exists in 2.6.x 
thanks to the fine folks of Freescale. We appreciate their involvement 
in OSS community.

>To check the performance, I used the Dhrystone 2.1 benchmark 

I like the lmbench microbenchmark too. It depends on what profile
is your application (instruction mix, library calls, cache usage, paging,..)

>with the standard glibc (strcpy, strcmp, ...) on one part, and with
>the freescale SPE library on the other part (vstrcpy, vstrcmp, ...).

Will the SPE enhanced C library calls will be integrated in Glibc one day? 


Regards,
Stephane




How to use SPE on MPC8541

2005-09-28 Thread Gérard Guével

Andy,

> Your driver runs in kernel space.  The kernel has the SPE bit off.
> The MSR state is process-specific.  If the code executes, the
> MSR bit
> is set.  Why do you want to see if the bit is set?

OK, this is a bad idea to use a driver to check the msr register.

I don't especially want to see if the bit is set, I just want
to improve the board performance for a Linux application :-).

To check the performance, I used the Dhrystone 2.1 benchmark with
the standard glibc (strcpy, strcmp, ...) on one part, and with
the freescale SPE library on the other part (vstrcpy, vstrcmp, ...).

I already verified in the binary elf file that the right functions are
called.
When I run the benchmark, I get the same MIPS with and without SPE code.

I ran the same benchmark on the same board without OS,
with a personal pseudo glibc, I have the same MIPS as under Linux,
with the freescale library, I gain 40% of perf.

That's I want to retreive with the Linux OS.

Regards
G?rard








Driver radeonfb for ATI M6 video controller

2005-09-28 Thread Roberto Pavon Sierra
Hi,

i try to initialize my video card ATI M6. I installed the driver radeonfb
(kernel linux 2.6.12) for ATI M6 in ppc, but this driver cann?t read the
BIOS-serial flash and takes always default values and not the initialization
values from the BIOS.
Can someone help me with this problem? must i install too a XF86-emulator in
my board (ppc 440GX)? Can i initialize this video card without BIOS?

Best regards,

Roberto





Source of xparameter_ml300.h

2005-09-28 Thread Peter Ryser
Please have a look at XAPP765 
(http://direct.xilinx.com/bvdocs/appnotes/xapp765.pdf) and the EDK 
documentation to see how this works. The latest MLD to create a BSP for 
a linuxppc-2.4 kernel is linuxppc_mvl31_v1_01_a. linuxppc_mvl31_v1_00_a 
works too but everything else is not up-to-date.

The documentation and tutorials for the ML310 board are also an 
excellent source of information how to get a Linux kernel up and running 
on Virtex-II Pro (see http://www.xilinx.com/ml310).

The reference design for the ML403 is yet another source of information 
(http://www.xilinx.com/ml403). Have a look at the reference design users 
guide.

Using the MLD (tcl script) is much less error-prone than any other 
method that involves changing the files by hand. It's a little bit of a 
learning curve but once mastered it just works.

- Peter



Andrei Konovalov wrote:

> Grant Likely wrote:
>
>> Does anyone know the origin of xparameter_ml300.h?  The
>> Xilinx EDK generates an xparameters.h file for each design, but the
>> structure of the file changes between releases.
>>
>> I want to know if xparameters_ml300.h is the exact output produced by
>> EDK or if stuff was changed before it was submitted to the mainline
>> tree.  (ie. all the stuff under the "linux redefines" comment block)
>
>
> EDK can also generate the "Linux BSP".
> In this case EDK uses the scripts from (depending on your setup)
> /opt/xilinx/edk/7.1/sw/ThirdParty/bsp/linux_v2_00_b/data/
> In particular, linux_v2_1_0.tcl adds those "linux redefines"
> and renames xparameters.h to xparameters_ml300.h.
>
>> Also, where can I get the bitstream/systemace file that matches
>> xparameters_ml300.h?
>
>
> The most reliable way is to generate both (bitstream and
> xparameters_ml300.h) by yourself. :)
>
> But if you are speaking about the xparameters_ml300.h in the community
> trees (linuxppc-2.4 and the 2.6 one from kernel.org), this file
> is for the reference design by Xilinx:
>
> http://www.xilinx.com/ise/embedded/edk6_2docs/ml300_edk3.zip
>
>> I've got a custom ml300 image that I'm regression
>> testing against, but I'd like to also test against some form of 'stock'
>> image. :)
>>
>> Thanks,
>> g.
>
>
> Thanks,
> Andrei
>
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
>






linuxppc-2.4.30-pre1 crashes with root fs on Xilinx SystemACE

2005-09-28 Thread Peter Ryser
Some time ago we did some tests with bonnie++ on Linux running on the 
PPC405 in a Virtex-II Pro FPGA. You can expect the following performance:

Read peak: 629 KB/s
Write peak: 299 KB/s

Not considering network overhead, a 10MB file should take less than a 
minute to update.

- Peter


Tony Lee wrote:

> Keith, 
>
> Some suggestions, before you verify your hw board/FPGA works fine with 
> SYSACE,
> * don't use sysace as root fs.
> * use a ram fs as root fs.  
> * Next, load sysace driver a loadable driver module.  It works, I 
> tried it.
> * check mount read only and see if it works.
> * Next, mount it writable.
>
> We have some issues with sysace driver initially, everything works out 
> fine later.
> There were small errors in our HW layout.
>
> I had to hack the sysace driver left and right to id the problem.  But 
> at the
> end, after I fixed the layout problem from the fpga's ucf file, the 
> original driver
> run perfectly without any modification.
>
> In my experiences, the ppc linux distribution and its linux sysace 
> driver are good
> if everything is setup correctly.
>
> One minor issues:  The sysace driver's write performance sucks.  I 
> have to explain
> to others why the upgrade 10 MBytes files with usb flash writer takes 
> tens of
> seconds.  When we do it from linux (nfs or ftp), it tooks minutes to sync.
>
> Peter, maybe you can push the xilinx a bit on sysace write 
> performance? :-)
>
> -Tony
>
> On 8/29/05, Peter Ryser  <mailto:peter.ryser at xilinx.com>> wrote:
>
> Hi Keith,
>
> I sent you a private email but for other interested people:
> Downloading the latest linuxppc-2.4 kernel I could boot from and
> access
> System ACE CF without problems on a ML403 (Virtex-4, 4VFX12) and a
> ML310
> (Virtex-II Pro, 2VP30) using EDK 7.1.2. In both cases I started with
> config_xilinx_ml300.
>
> - Peter
>
>
>
> Keith J Outwater wrote:
>
> >Hello -
> >Per a previous suggestion from this list, I rsynced the linuxppc-2.4
> >kernel sources from MontaVista and modified the kernel to run on
> my custom
> >ppc405/VirtexII Pro based system with U-Boot as the bootloader.
> >When I try to use the SystemACE device as the root filesystem,
> the kernel
> >crashes with a sig 11.  Looking at the 'oops' output it appears  the
> >SystemACE driver may be to blame.  The crash is random -
> sometimes I get
> >all the way to login as root and then things crash on a file copy
> or a
> >file read.
> >Before I start digging deeper, is anyone running a VirtexIIPro based
> >system with the root filesystem in the CF card attached to a
> SystemACE?
> >I'm wondering if I really have the best kernel and SystemACE driver.
> >BTW, I'm developing the hardware design using Xilinx EDK 7.02i.
> >Thanks,
> >Keith
> >___
> >Linuxppc-embedded mailing list
> > Linuxppc-embedded at ozlabs.org <mailto:Linuxppc-embedded at ozlabs.org>
> >https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> >
> >
> >
> >
>
>
>
> ___
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org <mailto:Linuxppc-embedded at ozlabs.org>
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> <https://ozlabs.org/mailman/listinfo/linuxppc-embedded>
>
>
>
>
> -- 
> -Tony
> Having fun with FPGA HW + ppc + Linux

-- next part --
An HTML attachment was scrubbed...
URL: 
http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20050928/261cdc11/attachment.htm