Re: Device Tree

2008-10-29 Thread Sébastien Chrétien
Thank for your answers. Sébastien Matt Sealey a écrit : Benjamin Herrenschmidt wrote: On Tue, 2008-09-30 at 18:08 -0500, Matt Sealey wrote: It's far more common than people might think at first glance. With x86 I am sure it would benefit the platform a little more if the OF support was

Device Tree

2008-09-29 Thread Sébastien Chrétien
Hello, I have a question about Device Tree. Is Device Tree found only only on Linux Powerpc ? Thanks Sébastien ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
Hello, When I use ioremap, the second time, I obtain this message : allocation failed: out of vmalloc space - use vmalloc=size to increase size. What can I do in order to fix this problem ? ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

Re: ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
The first is ioremap(0x2000,0x1000); The second is ioremap(0x8000,0x1000); Is it too long Grant Likely a écrit : On Fri, Sep 19, 2008 at 01:15:20PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: Hello, When I use ioremap, the second time, I obtain this message :

Re: ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
if I write : ioremap(0x2000,0x4) and ioremap(0x2000,0x5) Will it crash ? Josh Boyer a écrit : On Fri, Sep 19, 2008 at 06:34:06PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: The first is ioremap(0x2000,0x1000); The second is ioremap(0x8000,0x1000);

Re: ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
I made a mistake. The right code is : ioremap(0x2000,0x4) and ioremap(0x8000,0x5) Grant Likely a écrit : On Fri, Sep 19, 2008 at 10:58 AM, Josh Boyer [EMAIL PROTECTED] wrote: On Fri, Sep 19, 2008 at 06:45:01PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: if

Re: ioremap and vmalloc

2008-09-19 Thread Sébastien Chrétien
The chip that I am using is a MPC7448. The Kernel version is 2.6.26. I am developping my own driver. I am making some tests Josh Boyer a écrit : On Fri, Sep 19, 2008 at 06:45:01PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: if I write : ioremap(0x2000,0x4) and

IRQ : IRQ_HOST_MAP_LEGACY

2008-09-12 Thread Sébastien Chrétien
Hello I am seeing irq source. What is the use of : IRQ_HOST_MAP_LEGACY http://tomoyo.sourceforge.jp/cgi-bin/lxr/ident?i=IRQ_HOST_MAP_LEGACY ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: IDE

2008-09-11 Thread Sébastien Chrétien
Where can I find a pata_of_platform node example ? Sergei Shtylyov a écrit : Arnd Bergmann wrote: Most probably you can use the existing platform drivers: drivers/ide/egacy/ide_platform.c or drivers/ata/pata_platform.c. Create/register a platform device named pata_platform with 2 memory

Re: IDE

2008-09-11 Thread Sébastien Chrétien
I saw pata_of_platform source. And when is called pata_of_platform_probe ? 2008/9/11, Sébastien Chrétien [EMAIL PROTECTED]: Where can I find a pata_of_platform node example ? Sergei Shtylyov a écrit : Arnd Bergmann wrote: Most probably you can use the existing platform drivers: drivers

IDE

2008-09-10 Thread Sébastien Chrétien
Hello I would like to setup my IDE controller. It uses a generic mapping. And he is located at the adress 0x20003000. How can I specifie this adress to the ide driver ? ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

Re: IDE

2008-09-10 Thread Sébastien Chrétien
Have I to rewrite a IDE driver ? 2008/9/10, Sergei Shtylyov [EMAIL PROTECTED]: Hello. Sébastien Chrétien wrote: I would like to setup my IDE controller. It uses a generic mapping. And he is located at the adress 0x20003000. What kin of controller, and what do you mean by generic

Re: IDE

2008-09-10 Thread Sébastien Chrétien
It is a common ide controller : offset 0x0 Data offset 0x1 error offset 0x2 Sector count offset 0x3 sector No offset 0x4 Cylinder low offset 0x5 Cylinder High offset 0x6 Head offset 0x7 status 2008/9/10, Sergei Shtylyov [EMAIL PROTECTED]: Hello. Sébastien Chrétien wrote: I would like

Re: IDE

2008-09-10 Thread Sébastien Chrétien
I looked falconide.c, it uses hw_regs_t hw; and ide_hwif_t *hwif. Is it a good way ? 2008/9/10, Arnd Bergmann [EMAIL PROTECTED]: On Wednesday 10 September 2008, Sergei Shtylyov wrote: Most probably you can use the existing platform drivers: drivers/ide/egacy/ide_platform.c or

Re: IDE

2008-09-10 Thread Sébastien Chrétien
ok I will use the flat device tree. Do you utils in order to use ata and check ata link ? For example, to read some information of my compact flash 2008/9/10, Sergei Shtylyov [EMAIL PROTECTED]: Arnd Bergmann wrote: Most probably you can use the existing platform drivers:

Re: irq

2008-09-04 Thread Sébastien Chrétien
]: On Wed, 2008-09-03 at 23:02 +0200, Sébastien Chrétien wrote: irq_of_parse_and_map is equivalent to ioremap in the MMU case ? On the powerpc architecture, we use virtualized IRQ numbers in order to deal with the wide range of interrupt controllers around and multiple of them cascaded

Re: irq

2008-09-04 Thread Sébastien Chrétien
) printk(%s: No uart node found !\n, __func__); virt=irq_of_parse_and_map(uart_irq, 0); printk(Virtual irq : %d \n,virt); When I boot linux, virt=0; What is wrong ? 2008/9/4, Sébastien Chrétien [EMAIL PROTECTED]: I read the booting_without_of.txt document and the Interrupt Mapping

Re: Trace

2008-09-04 Thread Sébastien Chrétien
I followed your advice : I used the UART layer. It is easier. Thanks Benjamin Herrenschmidt a écrit : On Tue, 2008-09-02 at 09:34 +0200, Sébastien Chrétien wrote: ok is it a bad way to write a tty driver ? why ? Not necessarily, it's just overkill. The UART layer handles a lot

irq

2008-09-03 Thread Sébastien Chrétien
Hello, I am trying to register a function writh IRQ : static irqreturn_t uart_test (int irq , void *dev_id) { printk(/!\\ Interruption : tx_empty\n); return IRQ_HANDLED; } req=request_irq(0x18,uart_test,NULL,uart_test,NULL); printk(Initialisation IRQ UART : %d \n, req); When

Re: irq

2008-09-03 Thread Sébastien Chrétien
like: SA_SHIRQInterrupt is shared SA_INTERRUPTDisable local interrupts while processing SA_SAMPLE_RANDOMThe interrupt can be used for entropy otherwise try to use the function install_irq_handler() bye Daniele Sébastien Chrétien ha scritto: Hello

Re: irq

2008-09-03 Thread Sébastien Chrétien
Ok I will try irq_create_mapping tomorrow. When have I to use this function ? I am using a MPC7448. M B a écrit : Hi, this seems to be the same problem I had, when registering an irq with UIO. On Wed, Sep 3, 2008 at 5:03 PM, Sébastien Chrétien [EMAIL PROTECTED] wrote: The failure referes

Re: irq

2008-09-03 Thread Sébastien Chrétien
irq_of_parse_and_map is equivalent to ioremap in the MMU case ? Scott Wood a écrit : On Wed, Sep 03, 2008 at 06:36:39PM +0200, Sébastien Chrétien wrote: Ok I will try irq_create_mapping tomorrow. When have I to use this function ? You always need to create a mapping (though doing

Re: Trace

2008-09-02 Thread Sébastien Chrétien
ok is it a bad way to write a tty driver ? why ? 2008/9/2, Benjamin Herrenschmidt [EMAIL PROTECTED]: On Tue, 2008-09-02 at 07:13 +0200, Sébastien CHRETIEN wrote: My board has only a uart device on a FPGA. I don't use the serial layer because it isn't documented in Linux Device Driver 3rd.

Re: Trace

2008-09-02 Thread Sébastien Chrétien
ok. I will try the serial layer 2008/9/2, Benjamin Herrenschmidt [EMAIL PROTECTED]: On Tue, 2008-09-02 at 09:34 +0200, Sébastien Chrétien wrote: ok is it a bad way to write a tty driver ? why ? Not necessarily, it's just overkill. The UART layer handles a lot of stuff for you. The tty

Trace

2008-09-01 Thread Sébastien Chrétien
Hello, I am triying to write a tty_driver under ppc. And I get a kernel panic. Can somebody explain me how finding the source of the error with a kernel panic trace : thanks Unable to handle kernel paging request for data at address 0x57f9 Faulting instruction address: 0xc0110ddc Oops:

Re: Trace

2008-09-01 Thread Sébastien Chrétien
+clive.jenkins linuxppc-dev-bounces%2Bclive.jenkins= [EMAIL PROTECTED] On Behalf Of Sébastien Chrétien Sent: 01 September 2008 10:16 To: linuxppc-dev@ozlabs.org Subject: Trace Hello, I am triying to write a tty_driver under ppc. And I get a kernel panic. Can somebody explain me how finding

Re: Trace

2008-09-01 Thread Sébastien Chrétien
of the parameter int* index. So Linux loaded a tty_structure which was in tiny_ttys[-1] console.h is not very well documented about this. Thanks Sébastien Chrétien Jenkins, Clive a écrit : Why can't tty have value 0x5741 ? To answer my own question, because it ends in 1 and is not word

Advice : console

2008-08-29 Thread Sébastien Chrétien
Hello, I am trying to port linux for my ppc board. There is no keybord and no scree. There is only UART. I would like to have a console/terminal using UART. What is the best way ? to write a serial driver using struct uart_driver or using tty_driver or to write a driver from scratch. Maybe there

RAMDISK driver initialized

2008-08-29 Thread Sébastien Chrétien
Hello, I am using Linux 2.6.26. When I boot my board, I don't see the message : RAMDISK driver initialized:... Is it right ? ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[TTY] driver sriel tty on ppc board

2008-08-27 Thread Sébastien Chrétien
Hello, I am trying to code a tty serial driver (UART link). The initialization is : (model LDD 3) static int __init tiny_tty_init(void) { int i, retval; printk(Initialization of ttyS - \n); tiny_tty_driver=alloc_tty_driver(NB_TTY); if(!tiny_tty_driver) return -ENOMEM;

initramfs vs initrd

2008-08-25 Thread Sébastien Chrétien
Hello, What is the difference between initramfs and initrd ? Sébastien Chrétien ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

ttyS0

2008-08-25 Thread Sébastien Chrétien
Hello, I must create a ttyS0 console for my ppc board. Can someone advice an example ? Thanks Sébastien Chrétien ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: initramfs vs initrd

2008-08-25 Thread Sébastien Chrétien
ok thank you 2008/8/25, Josh Boyer [EMAIL PROTECTED]: On Mon, Aug 25, 2008 at 02:57:14PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: Hello, What is the difference between initramfs and initrd ? You could poke around in the Documentation directory of the kernel. That should

Re: initramfs vs initrd

2008-08-25 Thread Sébastien Chrétien
When the kernel is booting, is it possible to check if the initrd is good ? 2008/8/25, Sébastien Chrétien [EMAIL PROTECTED]: ok thank you 2008/8/25, Josh Boyer [EMAIL PROTECTED]: On Mon, Aug 25, 2008 at 02:57:14PM +0200, =?ISO-8859-1?Q?S=E9bastien_Chr=E9tien_ wrote: Hello, What

Re: [machdep_calls] IRQ

2008-08-22 Thread Sébastien Chrétien
Ok thank you, I will begin to implement the irq functions 2008/8/22, Michael Ellerman [EMAIL PROTECTED]: On Thu, 2008-08-21 at 10:23 +0200, Sébastien Chrétien wrote: Exactly, I mean ppc_md.init_IRQ(). Ok. What have I to setup in this function ? I set the mask and other registers

Initrd

2008-08-22 Thread Sébastien Chrétien
Hello, I am using linux 2.6.26 on a powerpc board. I would like to use a initrd. So I set the initrd option in the kernel. But when I boot Linux, it crashes before start_kernel(). And after the configuration of the MMU. The last words of the prompt are : Probing machine type ... MPC7448 on

[Initrd] Initialization

2008-08-21 Thread Sébastien Chrétien
Hello, When Linux is booting, when does it verify if a initrd exists ? Thanks ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[machdep_calls] IRQ

2008-08-21 Thread Sébastien Chrétien
Hello, What are the constraints in order to implement a irq_init function ? I think it has to set the mask. Does it enable IRQ ? What is the aim or get_irq ? Does it retun an information about the mask, the states, or... ? Thanks Sébastien Chrétien

Re: [machdep_calls] IRQ

2008-08-21 Thread Sébastien Chrétien
layer of Linux. 2008/8/21, Michael Ellerman [EMAIL PROTECTED]: On Thu, 2008-08-21 at 09:13 +0200, Sébastien Chrétien wrote: Hello, What are the constraints in order to implement a irq_init function ? You mean ppc_md.init_IRQ() ? If so, it's a hook you can use to setup your interrupt

Initrd

2008-08-21 Thread Sébastien Chrétien
Hello, I am trying to setup a initrd on my board. I selected initrd support in the 2.6.26 kernel. But when my boad boots, it crashes affet MMU:exit. What is the process in order to use a initrd ? Thanks Sébastien Chrétien ___ Linuxppc-dev mailing list

Re: [MPC7448] machdep_calls

2008-08-19 Thread Sébastien Chrétien
SPRN_DBAT1U, r11 blr #endif With this code I can use udbg. According to you, what is the best way ? 2008/8/18, Benjamin Herrenschmidt [EMAIL PROTECTED]: On Mon, 2008-08-18 at 16:17 +0200, Sébastien Chrétien wrote: The mpc7448hpc2 uses a tsi108-bridge. My board uses an IP on a FPGA.. I read

Re: [MPC7448] machdep_calls

2008-08-19 Thread Sébastien Chrétien
So I will write .setup_arch of machine_call structure. When is ppc_md.setup_arch() called ? 2008/8/19, Benjamin Herrenschmidt [EMAIL PROTECTED]: On Tue, 2008-08-19 at 09:00 +0200, Sébastien Chrétien wrote: I have no screen that's why I have to use UART. I followed the CPM model in head_32

[MPC7448] machdep_calls

2008-08-18 Thread Sébastien Chrétien
Hello, I am developping a Linux for my PPC Board. I must write a define_machine structure (marchdep_calls). Where can I find some Information about functions of this structure ? Thanx Sébastien Chrétien ___ Linuxppc-dev mailing list Linuxppc-dev

Re: [MPC7448] machdep_calls

2008-08-18 Thread Sébastien Chrétien
Ok I am going to copy some examples. 2008/8/18, Benjamin Herrenschmidt [EMAIL PROTECTED]: On Mon, 2008-08-18 at 10:45 +0200, Sébastien Chrétien wrote: Hello, I am developping a Linux for my PPC Board. I must write a define_machine structure (marchdep_calls). Where can I find some

Re: [MPC7448] machdep_calls

2008-08-18 Thread Sébastien Chrétien
Can somebody explain me the aim of the function setup_arch in the machine_call structure ? 2008/8/18, Sébastien Chrétien [EMAIL PROTECTED]: Ok I am going to copy some examples. 2008/8/18, Benjamin Herrenschmidt [EMAIL PROTECTED]: On Mon, 2008-08-18 at 10:45 +0200, Sébastien Chrétien wrote

Re: [MPC7448] machdep_calls

2008-08-18 Thread Sébastien Chrétien
, Michael Ellerman [EMAIL PROTECTED]: On Mon, 2008-08-18 at 13:35 +0200, Sébastien Chrétien wrote: Can somebody explain me the aim of the function setup_arch in the machine_call structure ? Is this MPC7448 anything like an mpc7448hpc2 ? If so maybe you should start by looking at the code

Powerpc and ioremap

2008-08-07 Thread Sébastien Chrétien
Hello, I am trying to port linux on my Powerpc Board. I have used Linux 2.6.26 and gcc 3.4.5. I have used Uboot 1.2. Linux seems running from _start to udbg_early_init(). That's why I develloped a udbg_driver. It must write in a register which is located at 0x2001b044. So I wrote : void __iomem

Re: Powerpc and ioremap

2008-08-07 Thread Sébastien Chrétien
Thanks for your answer. But it doesn't work. I think ioremap create a kernel panic. But I can't see because i have no UART ready. Is there a way in order to trace the failure ? 2008/8/7, Juergen Beisert [EMAIL PROTECTED]: Am Donnerstag, 7. August 2008 11:54 schrieb Sébastien Chrétien: Hello

Re: Powerpc and ioremap

2008-08-07 Thread Sébastien Chrétien
Can we call ioremap() during udbg_early_init ? 2008/8/7, Sébastien Chrétien [EMAIL PROTECTED]: Thanks for your answer. But it doesn't work. I think ioremap create a kernel panic. But I can't see because i have no UART ready. Is there a way in order to trace the failure ? 2008/8/7, Juergen