* Problems on porting linux 2.6 to xilinx ML410 @ 2007-08-24 3:11 woyuzhilei 2007-08-24 18:21 ` Grant Likely 0 siblings, 1 reply; 10+ messages in thread From: woyuzhilei @ 2007-08-24 3:11 UTC (permalink / raw) To: grant.likely; +Cc: linuxppc-embedded [-- Attachment #1: Type: text/plain, Size: 1444 bytes --] Hey: Recently I'm doing some project on Xilinx Ml410 evaluation board.The first step is porting linux 2.6 to ml410,but I got some problems on this,and my project cann't proceed,so I come to you for some help. I use the linux kernel source tree download from http://git.secretlab.ca/git/linux-2.6-virtex.git (The latest one).Add the file the xparameters.h,xparameter_ml40x.h. Then add arch/ppc/platforms/4xx/xilinx_generic_ppc.c(Use the patch I get here),and change it's name to ml40x.c,then I make some necessay change of the configuration files to accept selecting a Ml40x type board.Then compile the kernel,and get the image file from arch/ppc/boot/images, (On kernel compiling,the only device driver I sellect is " 8250/16550 and compatible serial support ").After that I download the zImage.elf file to the target board,and run it.But there is no output from the serial port at all.Am I doing somthing wrong?I really don't know goes wrong. Can anyone here help me with this?Any help from you is appreciated.Thank you very much! woyuzhilei 2007-08-24 [-- Attachment #2: Type: text/html, Size: 3952 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Problems on porting linux 2.6 to xilinx ML410 2007-08-24 3:11 Problems on porting linux 2.6 to xilinx ML410 woyuzhilei @ 2007-08-24 18:21 ` Grant Likely 2007-08-25 7:37 ` woyuzhilei 2007-08-25 8:48 ` how to get your linux-2.6-virtex tree? Ming Liu 0 siblings, 2 replies; 10+ messages in thread From: Grant Likely @ 2007-08-24 18:21 UTC (permalink / raw) To: woyuzhilei; +Cc: linuxppc-embedded On 8/23/07, woyuzhilei <woyuzhilei@163.com> wrote: > > > Hey: > Recently I'm doing some project on Xilinx Ml410 evaluation board.The > first step is porting linux 2.6 to ml410,but I got some problems on this,and > my project cann't proceed,so I come to you for some help. > I use the linux kernel source tree download from > http://git.secretlab.ca/git/linux-2.6-virtex.git (The > latest one).Add the file the xparameters.h,xparameter_ml40x.h. Then add > arch/ppc/platforms/4xx/xilinx_generic_ppc.c(Use the patch I > get here),and change it's name to ml40x.c,then I make some necessay change > of the configuration files to accept selecting a Ml40x type board. You shouldn't need to do all of this; only the xparameters_ml40x.h file is needed. To get started, I'd just use replace xparameters_ml403.h with your custom xparameters_ml40x.h and use the ml403 board port. Once you've got it booting, you can get more fancy. > Then > compile the kernel,and get the image file from arch/ppc/boot/images, (On > kernel compiling,the only device driver I sellect is " 8250/16550 and > compatible serial support ").After that I download the zImage.elf file to > the target board,and run it.But there is no output from the serial port at > all.Am I doing somthing wrong?I really don't know goes wrong. > Can anyone here help me with this?Any help from you is appreciated.Thank > you very much! Make sure you've got 16550 console support enabled and 'console=/dev/ttyS0' in your kernel command line. Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. grant.likely@secretlab.ca (403) 399-0195 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: Problems on porting linux 2.6 to xilinx ML410 2007-08-24 18:21 ` Grant Likely @ 2007-08-25 7:37 ` woyuzhilei 2007-08-25 8:48 ` how to get your linux-2.6-virtex tree? Ming Liu 1 sibling, 0 replies; 10+ messages in thread From: woyuzhilei @ 2007-08-25 7:37 UTC (permalink / raw) To: Grant Likely; +Cc: linuxppc-embedded [-- Attachment #1: Type: text/plain, Size: 1966 bytes --] Thank you very much for your help!I think there may be somthing wrong with my kernel command line. woyuzhilei 2007-08-25 发件人: Grant Likely 发送时间: 2007-08-25 02:21:11 收件人: woyuzhilei 抄送: linuxppc-embedded 主题: Re: Problems on porting linux 2.6 to xilinx ML410 On 8/23/07, woyuzhilei <woyuzhilei@163.com > wrote: > > > Hey: > Recently I'm doing some project on Xilinx Ml410 evaluation board.The > first step is porting linux 2.6 to ml410,but I got some problems on this,and > my project cann't proceed,so I come to you for some help. > I use the linux kernel source tree download from > http://git.secretlab.ca/git/linux-2.6-virtex.git (The > latest one).Add the file the xparameters.h,xparameter_ml40x.h. Then add > arch/ppc/platforms/4xx/xilinx_generic_ppc.c(Use the patch I > get here),and change it's name to ml40x.c,then I make some necessay change > of the configuration files to accept selecting a Ml40x type board. You shouldn't need to do all of this; only the xparameters_ml40x.h file is needed. To get started, I'd just use replace xparameters_ml403.h with your custom xparameters_ml40x.h and use the ml403 board port. Once you've got it booting, you can get more fancy. > Then > compile the kernel,and get the image file from arch/ppc/boot/images, (On > kernel compiling,the only device driver I sellect is " 8250/16550 and > compatible serial support ").After that I download the zImage.elf file to > the target board,and run it.But there is no output from the serial port at > all.Am I doing somthing wrong?I really don't know goes wrong. > Can anyone here help me with this?Any help from you is appreciated.Thank > you very much! Make sure you've got 16550 console support enabled and 'console=/dev/ttyS0' in your kernel command line. Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. grant.likely@secretlab.ca (403) 399-0195 [-- Attachment #2: Type: text/html, Size: 5832 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* how to get your linux-2.6-virtex tree? 2007-08-24 18:21 ` Grant Likely 2007-08-25 7:37 ` woyuzhilei @ 2007-08-25 8:48 ` Ming Liu 2007-08-25 14:10 ` Grant Likely 1 sibling, 1 reply; 10+ messages in thread From: Ming Liu @ 2007-08-25 8:48 UTC (permalink / raw) To: grant.likely; +Cc: linuxppc-embedded Dear Grant, I am trying to get your linux-2.6-virtex tree. When I release the command "git-clone git://git.secretlab.ca/git/linux-2.6-virtex.git", it shows fatal: unexpected EOF fetch-pack from 'git://git.secretlab.ca/git/linux-2.6-virtex.git' failed. How can I get your tree? Thanks for your telling. BR Ming _________________________________________________________________ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: how to get your linux-2.6-virtex tree? 2007-08-25 8:48 ` how to get your linux-2.6-virtex tree? Ming Liu @ 2007-08-25 14:10 ` Grant Likely 2007-08-25 14:29 ` Jon Smirl 2007-08-25 14:46 ` Ming Liu 0 siblings, 2 replies; 10+ messages in thread From: Grant Likely @ 2007-08-25 14:10 UTC (permalink / raw) To: Ming Liu; +Cc: linuxppc-embedded On 8/25/07, Ming Liu <eemingliu@hotmail.com> wrote: > Dear Grant, > I am trying to get your linux-2.6-virtex tree. When I release the command > "git-clone git://git.secretlab.ca/git/linux-2.6-virtex.git", it shows > > fatal: unexpected EOF > fetch-pack from 'git://git.secretlab.ca/git/linux-2.6-virtex.git' failed. Hmmm.... Works fine from my machines. What does 'dig git.secretlab.ca' tell you? I see this: ;; ANSWER SECTION: git.secretlab.ca. 1320 IN A 208.123.74.12 Have you tried the git:// protocol? This is what I get when I clone from another machine: grant@trillian:~/temp$ git-clone git://git.secretlab.ca/git/linux-2.6-virtex.git Initialized empty Git repository in /home/grant/temp/linux-2.6-virtex/.git/ remote: Generating pack... remote: Counting objects: 504459 remote: Done counting 548333 objects. remote: Deltifying 548333 objects... remote: 100% (548333/548333) done Indexing 548333 objects... remote: Total 548333 (delta 445331), reused 547457 (delta 444455) 100% (548333/548333) done Resolving 445331 deltas... 100% (445331/445331) done Checking 22546 files out... 100% (22546/22546) done grant@trillian:~/temp$ --- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. grant.likely@secretlab.ca (403) 399-0195 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: how to get your linux-2.6-virtex tree? 2007-08-25 14:10 ` Grant Likely @ 2007-08-25 14:29 ` Jon Smirl 2007-08-25 14:46 ` Ming Liu 1 sibling, 0 replies; 10+ messages in thread From: Jon Smirl @ 2007-08-25 14:29 UTC (permalink / raw) To: Grant Likely; +Cc: linuxppc-embedded On 8/25/07, Grant Likely <grant.likely@secretlab.ca> wrote: > Hmmm.... Works fine from my machines. > > grant@trillian:~/temp$ git-clone > git://git.secretlab.ca/git/linux-2.6-virtex.git I just checked it for you, both http and git are working. -- Jon Smirl jonsmirl@gmail.com ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: how to get your linux-2.6-virtex tree? 2007-08-25 14:10 ` Grant Likely 2007-08-25 14:29 ` Jon Smirl @ 2007-08-25 14:46 ` Ming Liu 2007-08-25 15:24 ` Grant Likely 1 sibling, 1 reply; 10+ messages in thread From: Ming Liu @ 2007-08-25 14:46 UTC (permalink / raw) To: grant.likely; +Cc: linuxppc-embedded Dear Grant, >What does 'dig git.secretlab.ca' tell you? I see this: >;; ANSWER SECTION: >git.secretlab.ca. 1320 IN A 208.123.74.12 I released 'dig git.secretlab.ca' and saw this: ;; QUESTION SECTION: ;git.secretlab.ca. IN A ;; ANSWER SECTION: git.secretlab.ca. 855 IN A 208.123.74.12 >Have you tried the git:// protocol? Yes. I tried both git:// and http://. For git:// protocal: mingliu@romeo ~ $ git-clone git://git.secretlab.ca/git/linux-2.6-virtex.git fatal: unexpected EOF fetch-pack from 'git://git.secretlab.ca/git/linux-2.6-virtex.git' failed. For http:// protocal: mingliu@romeo ~ $ git-clone http://git.secretlab.ca/git/linux-2.6-virtex.git Getting alternates list for http://git.secretlab.ca/git/linux-2.6-virtex.git/ Getting pack list for http://git.secretlab.ca/git/linux-2.6-virtex.git/ Getting index for pack d1a6ff0f5f0433214bc37fd3038ff75f080c073d Getting index for pack 41af2e852d9cb50ce5c8b3fe77c269780b979323 Getting index for pack a36ffcb5ecf2e87cbd9da9384dc9bd617f6169c4 Getting pack a36ffcb5ecf2e87cbd9da9384dc9bd617f6169c4 which contains 0d62d8a8e639210cecab55f5921f293cb8250a31 walk 0d62d8a8e639210cecab55f5921f293cb8250a31 walk f9892f74b7d827a7d1b80cd418aca30f32b46c73 Getting pack d1a6ff0f5f0433214bc37fd3038ff75f080c073d which contains ebf9bf84da0aab5ed944264a5db2a65fe3a3e883 ...... Is that the problem of my cluster? Ohmm. I need to check this now. BR Ming _________________________________________________________________ 免费下载 MSN Explorer: http://explorer.msn.com/lccn/ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: how to get your linux-2.6-virtex tree? 2007-08-25 14:46 ` Ming Liu @ 2007-08-25 15:24 ` Grant Likely 2007-08-25 16:13 ` Ming Liu 0 siblings, 1 reply; 10+ messages in thread From: Grant Likely @ 2007-08-25 15:24 UTC (permalink / raw) To: Ming Liu; +Cc: linuxppc-embedded On 8/25/07, Ming Liu <eemingliu@hotmail.com> wrote: > Dear Grant, > > >What does 'dig git.secretlab.ca' tell you? I see this: > >;; ANSWER SECTION: > >git.secretlab.ca. 1320 IN A 208.123.74.12 > > I released 'dig git.secretlab.ca' and saw this: > ;; QUESTION SECTION: > ;git.secretlab.ca. IN A > > ;; ANSWER SECTION: > git.secretlab.ca. 855 IN A 208.123.74.12 Upgrade to a newer version of git. git.secretlab.ca uses the virtual hosting feature of git daemon, but you need to be using git version > 1.5 Cheers, g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. grant.likely@secretlab.ca (403) 399-0195 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: how to get your linux-2.6-virtex tree? 2007-08-25 15:24 ` Grant Likely @ 2007-08-25 16:13 ` Ming Liu 0 siblings, 0 replies; 10+ messages in thread From: Ming Liu @ 2007-08-25 16:13 UTC (permalink / raw) To: grant.likely; +Cc: linuxppc-embedded Dear Grant, That's right!!! My git's version is quite old. OK then. Thus I will upgrade my git and obtain your kernel tree. Thanks for your help. BR Ming >From: "Grant Likely" <grant.likely@secretlab.ca> >To: "Ming Liu" <eemingliu@hotmail.com> >CC: linuxppc-embedded@ozlabs.org >Subject: Re: how to get your linux-2.6-virtex tree? >Date: Sat, 25 Aug 2007 09:24:31 -0600 > >On 8/25/07, Ming Liu <eemingliu@hotmail.com> wrote: > > Dear Grant, > > > > >What does 'dig git.secretlab.ca' tell you? I see this: > > >;; ANSWER SECTION: > > >git.secretlab.ca. 1320 IN A 208.123.74.12 > > > > I released 'dig git.secretlab.ca' and saw this: > > ;; QUESTION SECTION: > > ;git.secretlab.ca. IN A > > > > ;; ANSWER SECTION: > > git.secretlab.ca. 855 IN A 208.123.74.12 > >Upgrade to a newer version of git. git.secretlab.ca uses the virtual >hosting feature of git daemon, but you need to be using git version > >1.5 > >Cheers, >g. > >-- >Grant Likely, B.Sc., P.Eng. >Secret Lab Technologies Ltd. >grant.likely@secretlab.ca >(403) 399-0195 _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <mailman.726.1187970656.2970.linuxppc-embedded@ozlabs.org>]
* Re:Problems on porting linux 2.6 to xilinx ML410 [not found] <mailman.726.1187970656.2970.linuxppc-embedded@ozlabs.org> @ 2007-08-25 1:53 ` 林瑶 0 siblings, 0 replies; 10+ messages in thread From: 林瑶 @ 2007-08-25 1:53 UTC (permalink / raw) To: linuxppc-embedded [-- Attachment #1: Type: text/plain, Size: 11023 bytes --] Maybe you did not set your baud rate while config the kernel. If you use UART16550, you should set your baud rate while config the kernel.In the kernel 2.6.22, the option is in "Platform options", selecting "Default bootloader kernel arguments" and then setting your baud rate. However, if you use UARTLITE, the baud rate dose not need to be set by yourself. If the problem did not due to the baud rate, then perhaps your xparameters_ml40x.h file did not correctly define the register address of the serial port device. Your can find the correct register address of the serial port device in BSP generated by EDK. linyao 在2007-08-24,linuxppc-embedded-request@ozlabs.org 写道: Send Linuxppc-embedded mailing list submissions to linuxppc-embedded@ozlabs.org To subscribe or unsubscribe via the World Wide Web, visit https://ozlabs.org/mailman/listinfo/linuxppc-embedded or, via email, send a message with subject or body 'help' to linuxppc-embedded-request@ozlabs.org You can reach the person managing the list at linuxppc-embedded-owner@ozlabs.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Linuxppc-embedded digest..." Today's Topics: 1. Problems on porting linux 2.6 to xilinx ML410 (woyuzhilei) 2. little endian page mapping on PQ3 (Jose Almeida) 3. RE: little endian page mapping on PQ3 (Joyeau Sylvain) 4. Re: little endian page mapping on PQ3 (Jose Almeida) 5. Re: little endian page mapping on PQ3 (Clemens Koller) 6. [linux kernel 2.6.19] ethernet driver for Marvell bridge GT-64260 (joachim.bader@diehl-aerospace.de) 7. Re: little endian page mapping on PQ3 (David Hawkins) ---------------------------------------------------------------------- Message: 1 Date: Fri, 24 Aug 2007 11:11:57 +0800 From: "woyuzhilei" <woyuzhilei@163.com> Subject: Problems on porting linux 2.6 to xilinx ML410 To: "grant.likely" <grant.likely@secretlab.ca> Cc: linuxppc-embedded <linuxppc-embedded@ozlabs.org> Message-ID: <200708241111513591137@163.com> Content-Type: text/plain; charset="gb2312" Hey: Recently I'm doing some project on Xilinx Ml410 evaluation board.The first step is porting linux 2.6 to ml410,but I got some problems on this,and my project cann't proceed,so I come to you for some help. I use the linux kernel source tree download from http://git.secretlab.ca/git/linux-2.6-virtex.git (The latest one).Add the file the xparameters.h,xparameter_ml40x.h. Then add arch/ppc/platforms/4xx/xilinx_generic_ppc.c(Use the patch I get here),and change it's name to ml40x.c,then I make some necessay change of the configuration files to accept selecting a Ml40x type board.Then compile the kernel,and get the image file from arch/ppc/boot/images, (On kernel compiling,the only device driver I sellect is " 8250/16550 and compatible serial support ").After that I download the zImage.elf file to the target board,and run it.But there is no output from the serial port at all.Am I doing somthing wrong?I really don't know goes wrong. Can anyone here help me with this?Any help from you is appreciated.Thank you very much! woyuzhilei 2007-08-24 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070824/b495befd/attachment-0001.htm ------------------------------ Message: 2 Date: Fri, 24 Aug 2007 09:59:17 +0200 From: Jose Almeida <jalmeida@sysgo.fr> Subject: little endian page mapping on PQ3 To: Linuxppc-embedded@ozlabs.org Message-ID: <46CE8FD5.2060609@sysgo.fr> Content-Type: text/plain; charset=ISO-8859-1 Hi all, Looking at PQ3 documentation, it looks like there is a way to select on a page basis if we would like to map one particular page in BIG or LITTLE endian. This is a very nice feature when you need to exchange some data between a PC and a PQ3 target. I am wondering if someone have already tryed this PQ3 feature ? I guess this would require some kind of hook in the kernel ... Any clue ? Thanks - Jose ------------------------------ Message: 3 Date: Fri, 24 Aug 2007 13:40:31 +0200 From: "Joyeau Sylvain" <Sylvain.Joyeau@thomson.net> Subject: RE: little endian page mapping on PQ3 To: "Jose Almeida" <jalmeida@sysgo.fr>, <Linuxppc-embedded@ozlabs.org> Message-ID: <B00307ADBC68954AA8D6FB3AC8FD66F30141DE36@rennsmail05.eu.thmulti.com> Content-Type: text/plain; charset="iso-8859-1" Jose, You are right, PQ3 supports endianess choice on a per page basis. Without any hook in Linux, you can remap physical address range (but RAM), by calling __ioremap() with the "_PAGE_ENDIAN" bit set in the flags. -- sj > -----Original Message----- > From: > linuxppc-embedded-bounces+sylvain.joyeau=thomson.net@ozlabs.or > g > [mailto:linuxppc-embedded-bounces+sylvain.joyeau=thomson.net@o > zlabs.org] On Behalf Of Jose Almeida > Sent: vendredi 24 ao?t 2007 09:59 > To: Linuxppc-embedded@ozlabs.org > Subject: little endian page mapping on PQ3 > > Hi all, > > Looking at PQ3 documentation, it looks like there is a way to select > on a page basis if we would like to map one particular page in BIG or > LITTLE endian. > This is a very nice feature when you need to exchange some data > between a PC and a PQ3 target. > > I am wondering if someone have already tryed this PQ3 feature ? > I guess this would require some kind of hook in the kernel ... > > Any clue ? > > Thanks - Jose > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > ------------------------------ Message: 4 Date: Fri, 24 Aug 2007 15:08:33 +0200 From: Jose Almeida <jalmeida@sysgo.fr> Subject: Re: little endian page mapping on PQ3 To: Joyeau Sylvain <Sylvain.Joyeau@thomson.net> Cc: Linuxppc-embedded@ozlabs.org Message-ID: <46CED851.70002@sysgo.fr> Content-Type: text/plain; charset="us-ascii" An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070824/3072d9f9/attachment-0001.htm ------------------------------ Message: 5 Date: Fri, 24 Aug 2007 15:19:17 +0200 From: Clemens Koller <clemens.koller@anagramm.de> Subject: Re: little endian page mapping on PQ3 To: Jose Almeida <jalmeida@sysgo.fr> Cc: Linuxppc-embedded@ozlabs.org Message-ID: <46CEDAD5.1070506@anagramm.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, Jose! Jose Almeida schrieb: > Hi all, > > Looking at PQ3 documentation, it looks like there is a way to select > on a page basis if we would like to map one particular page in BIG or > LITTLE endian. > This is a very nice feature when you need to exchange some data > between a PC and a PQ3 target. I would be interested, however cannot spend time right now to work on that subject. > I am wondering if someone have already tryed this PQ3 feature ? > I guess this would require some kind of hook in the kernel ... Just some random bits I found in the web: http://developer.apple.com/documentation/Hardware/DeviceManagers/pci_srvcs/pci_cards_drivers/PCI_BOOK.250.html The Interesting part is: "Thus, the address swizzle is completely transparent to software." So, I would just try to setup some memory mapping and turn on little endian mode to access that area... MMMV. Just a guess. Regards, -- Clemens Koller __________________________________ R&D Imaging Devices Anagramm GmbH Rupert-Mayer-Stra?e 45/1 Linhof Werksgel?nde D-81379 M?nchen Tel.089-741518-50 Fax 089-741518-19 http://www.anagramm-technology.com ------------------------------ Message: 6 Date: Fri, 24 Aug 2007 15:51:33 +0200 From: joachim.bader@diehl-aerospace.de Subject: [linux kernel 2.6.19] ethernet driver for Marvell bridge GT-64260 To: linuxppc-embedded@ozlabs.org Message-ID: <OF2C2E8C6F.3860730F-ONC1257341.004B3D4B-C1257341.004C2882@diehl-gruppe.de> Content-Type: text/plain; charset="utf-8" Hello everybody, I continue the work of ThomasB to get a linux kernel 2.6.19 up and running on a PPC750FX based platform using a GT-64260. From Thomas I got a patched mv643xx_eth driver which is ported to support the 64260, too. Now the driver is integrated and runs complete through initialisation bringing up an eth0 device. The initialisation seams to be ok (no error messages), the device is up and routing information is setup. Now I try to ping a remote station but I receive nothing and I get no feedback from the remote compter. As soon as I turn of the net interface (ifconfig eth0 down) I get the message "Tx time out or no link?) Is there anything else I can check? Any idea what may cause this problem? Thanks a lot for your help Joachim _______________________________________________________________________________________________________________________ Der Inhalt dieser E-Mail ist f?r den Absender rechtlich nicht verbindlich. Informieren Sie uns bitte, wenn Sie diese E-Mail f?lschlicherweise erhalten haben (Fax: +49-69-5805-1399). Bitte l?schen Sie in diesem Fall die Nachricht. Jede Form der weiteren Benutzung ist untersagt. The content of this e-mail is not legally binding upon the sender. If this e-mail was transmitted to you by error, then please inform us accordingly (Fax: +49-69-5805-1399). In such case you are requested to erase the message. Any use of such e-mail message is strictly prohibited. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20070824/5bb5a616/attachment-0001.htm ------------------------------ Message: 7 Date: Fri, 24 Aug 2007 08:49:46 -0700 From: David Hawkins <dwh@ovro.caltech.edu> Subject: Re: little endian page mapping on PQ3 To: Jose Almeida <jalmeida@sysgo.fr> Cc: Joyeau Sylvain <Sylvain.Joyeau@thomson.net>, Linuxppc-embedded@ozlabs.org Message-ID: <46CEFE1A.40905@ovro.caltech.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Jose, > I want to do using an mmap() entry point in a driver, in order to map > this to the user. Of course in that case ioremap() does not work. > > Any Clue ? > I used the little-endian flag on the Yosemite board (440EP) to test what the flag did. http://www.ovro.caltech.edu/~dwh/correlator/pdf/LNX-762-Hawkins.pdf http://www.ovro.caltech.edu/~dwh/correlator/software/driver_design.tar.gz Look at the mmap function in pci_io.c. /* PowerPC endian control * - default is cleared, big-endian */ #ifdef _PAGE_ENDIAN if (bar->little_endian) { pgprot_val(vma->vm_page_prot) |= _PAGE_ENDIAN; } else { pgprot_val(vma->vm_page_prot) &= ~_PAGE_ENDIAN; } if (pgprot_val(vma->vm_page_prot) & _PAGE_ENDIAN) { LOG_DEBUG("_PAGE_ENDIAN is set\n"); } else { LOG_DEBUG("_PAGE_ENDIAN is not set\n"); } #endif It might be the same for the PQ3 ... at least it'll be pretty similar. Dave ------------------------------ _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded End of Linuxppc-embedded Digest, Vol 36, Issue 59 ************************************************* [-- Attachment #2: Type: text/html, Size: 12798 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-08-25 16:13 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-08-24 3:11 Problems on porting linux 2.6 to xilinx ML410 woyuzhilei 2007-08-24 18:21 ` Grant Likely 2007-08-25 7:37 ` woyuzhilei 2007-08-25 8:48 ` how to get your linux-2.6-virtex tree? Ming Liu 2007-08-25 14:10 ` Grant Likely 2007-08-25 14:29 ` Jon Smirl 2007-08-25 14:46 ` Ming Liu 2007-08-25 15:24 ` Grant Likely 2007-08-25 16:13 ` Ming Liu [not found] <mailman.726.1187970656.2970.linuxppc-embedded@ozlabs.org> 2007-08-25 1:53 ` Re:Problems on porting linux 2.6 to xilinx ML410 林瑶
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).