[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] VGA controller in Microblaze



Hi Pablo,

 this xilinx framebuffer driver is just for Linux kernel, U-boot uses its own framebuffer driver. So, having the device /dev/fb0, could you try to dump something (dummy file) to /dev/fb0?

 > cat /bin/busybox > /dev/fb0

 you should see something in the screen.

Have you tried the TFT peripheral test from EDK to see if the TFT IP works?

Regards,

 Inaki


-----Mensaje original-----
De: owner-microblaze-uclinux@xxxxxxxxxxxxxx en nombre de pcolodron@xxxxxxxx
Enviado el: mié 18/03/2009 13:07
Para: microblaze-uclinux@xxxxxxxxxxxxxx
Asunto: Re: [microblaze-uclinux] VGA controller in Microblaze
 
Hi Inaki,

In order to set up the framebuffer for my Spartan3 board, I've done  
what you told me. I added xilinxfb.c and xilinxfb.h to the petalinux  
tree. I've also modified the 'Kconfig' and 'Makefile' files which are  
in .../drivers/video. Then, in 'menuconfig' I have selected the  
framebuffer such that the compiler uses xilinxfb.c as framebuffer.

I've compiled the kernel and everything seemed to be ok. However, my  
uClinux system doesn't recognize the framebuffer. If I execute 'fbset  
--show' it says that there are no devices (although in folder /dev I  
can see 'fb0'). I have also tried to check if U-boot recognized the  
device using the command 'coninfo', but the list of available devices  
was empty.

I think I am missing some steps when trying to set up the framebuffer.  
Do you know if U-boot needs an extra configuration to add the  
framebuffer? I've been tried to figure this out for many days but I  
couldn't do it.

Please if anybody has any hint it would be very appreciated.

Thank you very much.

Regards,

Pablo Colodron



Val Inaki escribió:
> Hi,
>
>  you also need the headers file 'xilinxfb.h' and modify the  
> 'Kconfig' and 'Makefile' files from the /drivers/video folder. There  
> is another issue with this driver because you need to add the code  
> for registering the device with its resources, which are the address  
> space for accesing the SPLB registers.
>
>  The graphical libraries can use the framebuffer driver, so they  
> will use '/dev/fb0'.
>
> Best regards,
>
>  Inaki
>
>
> -----Mensaje original-----
> De: owner-microblaze-uclinux@xxxxxxxxxxxxxx en nombre de pcolodron@xxxxxxxx
> Enviado el: mar 20/01/2009 10:31
> Para: microblaze-uclinux@xxxxxxxxxxxxxx
> Asunto: RE: [microblaze-uclinux] VGA controller in Microblaze
>  Hi Inaki,
>
> It is nice to have your help, thanks a lot. As you have guessed, I  
> am  thinking of using a LDC display and I have configured the IP  
> core to  25MHz.
>
> So, according to your mail, the only thing that I should do is to  
> copy  the driver 'xilinxfb.c' in the directory  
> .../linux-2.6.x/drivers/video  and after that rebuild the kernel. Is  
> that right?
>
> Once the kernel is built, one should start with the graphical  
> library  but in this step, which is the video device that you use (I  
> mean the  device in romfs/dev/)? fb0? console?
>
> Thank you very much for your help Inaki.
>
> Kind regards,
>
> Pablo
>
>
> Val Inaki escribió:
>> Hi,
>>
>>  We are also using the Xilinx TFT IP with a Spartan3A FPGA and
>> Petalinux/MicroblazeMMU. In our Petalinux distribution there was not any
>> TFT driver, so we had to add it manually in the kernel tree:
>>
>> http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/drivers/video/xilinxfb.c
>>
>> You also need to activate the framebuffer support in order to access de
>> video memory. After everything is working you can use any graphical
>> library, in our case we have started working with the supplied version
>> of microwindows in the Petalinux distribution.
>>
>> Remember that the Xilinx TFT IP is for a hardcoded 640x480 resolution,
>> but clocking the IP to 25MHz, you can connect a LCD display through the
>> VGA connector.
>>
>> I hope this information would be helpful.
>>
>> Regards,
>>
>>  Inaki
>>
>> -----Mensaje original-----
>> De: owner-microblaze-uclinux@xxxxxxxxxxxxxx
>> [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] En nombre de
>> pcolodron@xxxxxxxx
>> Enviado el: lunes, 19 de enero de 2009 9:57
>> Para: microblaze-uclinux@xxxxxxxxxxxxxx
>> Asunto: Re: [microblaze-uclinux] VGA controller in Microblaze
>>
>> Hi John,
>>
>> Thanks a lot for your answer. I am using the XPS TFT ip core (which  
>>  is  available in IP Catalog -> IO Modules, in EDK 10.1).
>>
>> I will take a look to the framebuffer drivers that you told me.    
>> Anyway, I think I will have to activate the 'framebuffer support'  
>> in   the Petalinux configuration, is that right?
>>
>> In addition to this, I will try to figure out which is the most    
>> suitable graphics engine for my system because I am using fbcon and  
>>  I  don't know if it is very common in embedded systems.
>>
>> I could find this framebuffer in the directory    
>> /linux-2.6.x/drivers/video/console/fbcon.c. However, when I create   
>> the  petalinux kernel and I explore the directory /romfs/dev/, it   
>> seems  that the only frammebuffers that I have are '@console,c,5,1'  
>>  and  '@fb0,c,29,0' (is the fbcon framebuffer really activated?). I  
>>  have not  tested it yet, but, before doing this, it would be great  
>>  to know if my  kernel is properly configured.
>>
>> Thank you very much for your help John.
>>
>> Kind regards
>>
>>> Hi Pablo,
>>>
>>> On Fri, Jan 9, 2009 at 8:22 PM, <pcolodron@xxxxxxxx> wrote:
>>>
>>>
>>>    I am actually trying to work with the latest version of   
>>> Petalinux  in my >Xilinx Spartan3 development kit. I am quite   
>>> unexperienced in  this sense but I >have already solved some   
>>> problems concerning EDK  and building the Petalinux >kernel.
>>>
>>>    What I would like to do now is to develop a graphical user    
>>> interface in >Petalinux (to do this, I will use a graphic library   
>>>  called MiniGUI). This >software is basically a C-written program   
>>>  which shows the GUI by means of the >framebuffer fbcon. However,  
>>> I   have some doubts about how to do it.
>>>
>>>    My problems are related to the EDK project. I don't really know  
>>>   if >Petalinux will work with any type of VGA IP Core. I mean,  
>>> will   petalinux >detect that I have a VGA IP core? That will be  
>>> enough if   I want to use a LCD >or a monitor? Because of my lack  
>>> of knowledge   in this sense I don't really get >to understand how  
>>> to do this.
>>>
>>>    Please if you know any place where some cores are avaliable (or  
>>>   some >information about how to build a VGA controller which  
>>> works  in  Petalinux) it >would be nice of you to tell me.
>>>
>>>
>>> You will require a framebuffer device driver - they are quite   
>>> simple  to write, >with many examples in linux-2.6.x/drivers/video
>>>
>>> Which VGA IP core are you using?
>>>
>>> Regards,
>>>
>>> John
>>
>>
>> ___________________________
>> microblaze-uclinux mailing list
>> microblaze-uclinux@xxxxxxxxxxxxxx
>> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>> Mailing List Archive :
>> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>>
>>
>> ___________________________
>> microblaze-uclinux mailing list
>> microblaze-uclinux@xxxxxxxxxxxxxx
>> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>> Mailing List Archive :   
>> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>>
>>
>
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :  
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>



___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


<<winmail.dat>>