RE: Xilinx Linux 2.6 for XPS LL_TEMAC and LL_FIFO problem

2008-07-25 Thread Mirek23
Hi John and Mike, Thank you for your reply. We have modified out FPGA design and now we have LL_TEMAC with LL_DMA component connected instead of the LL_FIFO. Before building linux kernel we have tried to build the u-boot (downloaded from the xilinx-git tree). It was relatively easy to build

Xilinx Linux 2.6 for XPS LL_TEMAC and LL_FIFO problem

2008-07-24 Thread Mirek23
Dear All, I have done a design using EDK 8.2 using Hard_Temac IP component. In the EDK 9.2 there is a new idea to use ll_temac in conjunction with ll_fifo or ll_dma. So far I was using happily the linux kernel by Grant Likey. Unfortunately it does not deal with ll_temac. I have download the

Cross toolchain for ppc405 (virtex-4)

2008-05-28 Thread Mirek23
Hi All, I am using for some time the crosstool tool-chain (crosstool-0.43) for the ppc405 of my virtex-4. It seems to be that the crosstool was not updated for awhile but the glibc and gcc compiler has changed a bit meanwhile. The latest working configuration to build the toolchain for ppc405

Re: U-boot + Linux 2.6 + Avnet FX12 MM (based on ML403 config)

2008-03-30 Thread Mirek23
Hi Guillaume, I was facing the same problem with my Avent (virtex 4 FX12) evaluation board. Originally I have built successfully u-boot 1.2.0 and linux 2.6.21 but I was not able to boot kernel 2.6.21 from u-boot 1.2.0. Kernel 2.6.22 (uImage) onwards can be booted with u-boot 1.2 and higher.

Problem with 64-bit variables on ppc405

2007-11-19 Thread Mirek23
Dear All, I have successfully build crosstools (gcc-4.0.2-glibc-2.3.2) for my ppc 405 processor (part of xilinx virtex-4). I have compiled the Linux kernel 2.6.23rc2 and busy box 1.4.2. All together works fin but I am facing the problem with the variables declared in C as double and long long.

Re: Flash paritioning and JFFS2

2007-09-28 Thread Mirek23
Dear All, Finally I have sorted out few problems with linux and u-boot and I have tried to come back to the jffs2 and mtd partitioning issue. I am using CFI driver and I pass partitioning information from command line via u-boot. This part works fine: Unfortunatly I have the problem when

Re: Linux doesn not boot from u-boot on ML403

2007-09-25 Thread Mirek23
Hi Grant, Thank you very much for your response. actually I was wrong when saying: My observation is that the linux 2.6.23 rc-2 is not that stable as 2.6.21. In most cases It boots successfully (ie. zImage.elf) but occasionally it fails during booting. It has never occurred with 2.6.21

Re: Kernel 2.6 and INITRAMFS in one file booting problem on ml403

2007-09-21 Thread Mirek23
I have sorted out partially my problem. The thing was that in the command line which was passed from u-boot to the kernel I have put root=/dev/ram what refers to the old approach for the ramfs. In my case I use a new approach which does not need the ram disk? (I guess and I have reduced it to 4

Kernel 2.6 and INITRAMFS in one file booting problem on ml403

2007-09-20 Thread Mirek23
Dear All, I am dealing with kernel 2.6.23 (by Grant) on virtex-4 (ml403 like evaluation board with ppc405 built-in processor). The kernel boots fine by means of u-boot 1.2.0 when using nfs mounted root files system. My Board has 32MB of RAM memory (0x - 0x1ff) Right now I wanted

Re: Flash paritioning and JFFS2

2007-09-07 Thread Mirek23
Hi Michael, The partition information probably should go in a file that you create for your board located at drivers/mtd/maps/your_file.c Thank you very much for your answer. I went through the links you suggested. I got a main concept how to setup the kernel to deal with Flash and

Re: signals handling in the kernel

2007-08-30 Thread Mirek23
Hi David, I went throught the Rubini book about device drivers and I see that you are absolutly right about the way how to handle interrupts in the user space. When I find a bit of time I will try your first suggestion with read() which bolckes in the user space and waits forr ISR to

Linux doesn not boot from u-boot on ML403

2007-08-27 Thread Mirek23
Hi All, I run Linux 2.6.21 (by Grant) on my Avnet Virtex-4 evaluation board (ML403 like). When I load zIinux.elf via jtag to the board it runs properly: loaded at: 0040 004F9138 board

Re: signals handling in the kernel

2007-08-23 Thread Mirek23
Hi David, Thank you for your hints. I was not aware about race conditions in signal handling routines. So far I did not noticed any anomalies when running my server since I use only one interrupt which refers to only one signal. I would be interested however in the solution you have

Flash paritioning and JFFS2

2007-08-23 Thread Mirek23
Dear All, I am running linux 2.6.21 (by Grant) on the ppc405 which is build in Virtex-4 of Avnet (xlinx ml403 like) evaluation board. The Avnet board has the 4 MB of NOR Flash (Intel TE28F640) . I just wanted to make use of the Flash to store u-boot, linux kernel and some config files. To

Re: signals handling in the kernel

2007-08-20 Thread Mirek23
Thank you for you suggestions. Sorry for the dealy but I was on holidays. I understand that select() is more appropriate solution to handle interrupts. In my case I found somehow more convenient to deal with signals. The server program which I use was originally written for VxWorks. In VxWorks

Re: signals handling in the kernel

2007-08-08 Thread Mirek23
Hi Dave, I run embedded Linux on ppc405 (ml403 xilinx evaluation board). I use the GPIO based device build on FPGA part of the xilinx chip. My gpio device generates interrupts whenever it changes its state. I use Montavista gpio driver with some modifications to react on interrupts. Each

Re: signals handling in the kernel

2007-08-08 Thread Mirek23
Hi Dave, I have found the book by Rubini you have mentioned: http://www.oreilly.com/catalog/linuxdrive3/book/index.csp I did not find however what would be the best way to propagate interrupt signals to the USER level / notify the client that interrupt has occurred. I have checked also in

signals handling in the kernel

2007-08-07 Thread Mirek23
Hi All, I would like to send signals from the interrupt handler routine (in the kernel) to the user application (in user space). I have googled on that net and I have found that it could be done with the function: kill_proc_info. When I have compiled my module which uses the kill_proc_info

Re: Interrupts on xilinx ml403

2007-07-24 Thread Mirek23
Hi Grant, Thanks for the suggestion. I will fix that and see what the EDK will generate. Best Regards Mirek Grant Likely-2 wrote: On 7/20/07, Mirek23 [EMAIL PROTECTED] wrote: Does it mean that DIP Switches do not use INTC interrupt controller? How to handle the DIP Switches

Re: Interrupts on xilinx ml403

2007-07-24 Thread Mirek23
the interrupt controller register and do your settings correctly . If the same persists then you please send me the code and the documents then only i could give the exact explaination on this misbah Mirek23 wrote: Dear All, I use linux kernel 2.6 on ppc405 of my Avnet (xilinx

Interrupts on xilinx ml403

2007-07-20 Thread Mirek23
Dear All, I use linux kernel 2.6 on ppc405 of my Avnet (xilinx like ml403) evaluation board. I have setup the virtex-4 FPGA to deal with Themac and Serial interfaces. As input/output devices I have chosen 8 LEDs and DIP Switches. With such a configuration I am able to control from Linux

Re: xilinx gpio in kernel 2.6

2007-07-10 Thread Mirek23
Hi All, After some time I have found the way how to deal with GPIO driver from the user space: First you have to mknod xgpio under /dev : crw-rw-rw-1 root root 10, 185 Jun 1 13:59 /dev/xgpio Example program below shows how to read from the GPIO channel. To write to the channel

Re: zImage.elf loads but does not start

2007-05-25 Thread Mirek23
the packets to the client even if the client hags. Would you have some idea what could be wrong? Best Regards Mirek Mirek23 wrote: Anyway, you could try adding nfsroot=,rsize=1024,wsize=1024 to your cmdline just in case... I have tried that but it did not help :( Best Regards

Re: zImage.elf loads but does not start

2007-05-25 Thread Mirek23
Hi Andrei, Thank you very much for your suggestion. I am very grateful for all of your hints. They were always very valuable to me. I have set as you mentioned: #define XPAR_DDR_0_SIZE 0x200 And now all works fine The root file system is mounted and I can execute

Re: zImage.elf loads but does not start

2007-05-18 Thread Mirek23
Anyway, you could try adding nfsroot=,rsize=1024,wsize=1024 to your cmdline just in case... I have tried that but it did not help :( Best Regards Mirek -- View this message in context: http://www.nabble.com/zImage.elf-loads-but-not-starts-tf3607582.html#a10681348 Sent from the

RE: zImage.elf loads but does not start

2007-05-15 Thread Mirek23
It seems to be that the console works fine and the root file system is mounted properly via NFS. I do not however understand why eldk4.1 init does not work. I have done some more investigations. My observation is as following: The eldk4.1/ppc_4xx root file system has the init which is not

Re: zImage.elf loads but does not start

2007-05-08 Thread Mirek23
Thank you Andrei for your hint. I have hard-coded the mac address in the arch/ppc/boot/simple/embed_config.c. Maybe it is not the most elegant solution but it works. Right now I was able to mount the root file system via nfs but it seems to be still somthing missing: [0.00] Kernel

RE: zImage.elf loads but does not start

2007-05-04 Thread Mirek23
I came to the point with my kernel 2.6 (patched by Grant) struggle on ml403 that it reaches the stage to mount nfs root file system from the computer which is on another segment of the network: [2.565946] eth%d: XTemac: PHY detected at address 3. [2.629348] eth0: Xilinx TEMAC #0 at

Where to find the Montavista Linux kernel

2007-05-02 Thread Mirek23
Hi All. I have read some posts about the Montavista kernel and I wanted to give it a try. Unfortunately all links poiniting to the montavista server download area lead to nowhere. Would sombody suggest where to find the montavista kernel suitable for xilinx ml403. Thanks in advnace

xilinx gpio in kernel 2.6

2007-04-30 Thread Mirek23
Hi All, I am trying to build the kernel 2.6 for my ml403 board. I use the kernel 2.6 by Grant. The ethernet (Temac) and serial drivers work fine. It is however no support for xilinx gpio in the kernel tree. To satisfy that I have generated the xilinx_gpio driver by means of the EDK

Re: zImage.elf loads but does not start

2007-04-24 Thread Mirek23
Thanks for the suggestions. I have changed the command line argument: console:ttl0 - ttyUL0 and kernel has booted up to the point to mount the root file system. I have set up the kernel to mount the root file systems via the nfs. I have started the nfs server on the remote pc. Unfortunately the

RE: zImage.elf loads but does not start

2007-04-24 Thread Mirek23
Thanks for the suggestions. I have changed the command line argument: console:ttl0 - ttyUL0 and kernel has booted up to the point to mount the root file system. I have set up the kernel to mount the root file systems via the nfs. I have started the nfs server on the remote pc. Unfortunately

Re: zImage.elf loads but does not start

2007-04-23 Thread Mirek23
I have revised the xparameters_ml403.h and the setup of the FPGA part. I have found that the interrupt for the RS232 was not configured. Right now I was able to come to the point when the kernel was uncompressed but it did not start: loaded at: 0040 004F9138 board data at: 004F7120

zImage.elf loads but not starts

2007-04-19 Thread Mirek23
Hi All, I am just trying to build, load and run the kernel 2.6 on ppc405 of the Avnet evaluation board which uses Xilinx Virtex 4 FX-12 chip (ml403 like). I have downloaded the kernel 2.6 from Grant using git. I have downloaded ELDK 4.1 to my PC. I have compiled successfully the kernel with

Re: HOTO start with linux 2.6.* and ML403

2007-04-13 Thread Mirek23
I was able finally to build the kernel 2.6.19 by Denx. The problem was that I have previously used crosstool with gcc-3.2. At the end I was able to compile the kernel with crosstool gcc-4.0.2. I have compared the xparameters_ml403.h file which comes with the kernel and this one generated by EDK.

HOTO start with linux 2.6.* and ML403

2007-04-11 Thread Mirek23
I am new in embedded linux on xilinx boards. I have found great links how to deal with linuxppc 2.4 and xilinx boards like: http://www.klingauf.de/v2p/index.phtml unfortunately I did not find a similar page refering to kernel 2.6. I have tried on my own to load kernel 2.6.20 from kernel.org I