2010-01-13 00:25:10     Unable to run Qt example on Blackfin board

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2010-01-13 00:25:10     Unable to run Qt example on Blackfin board

jagadish ramanja (INDIA)

Message: 84495   

 

Hi,

 

  I have built the Qt embedded library 4.5.1 for blackfin architecture, when I try to run an Qt example on blackfin board I am getting the below errors .. can any one please help me out?

 

QLinuxFbScreen::connect: No such deviice

 

Error: failed to map framebuffer device to memory

 

 

 

Thanks

 

Jagadish

 

jagadishjithu@indiatimes.com

QuoteReplyEditDelete

 

 

2010-01-13 01:56:21     Re: Unable to run Qt example on Blackfin board

Barry Song (CHINA)

Message: 84496   

 

>QLinuxFbScreen::connect: No such deviice

 

Has your framebuffer worked? Can you open /dev/fb0, mmap it and show pic on the screen by simple fb test program?

QuoteReplyEditDelete

 

 

2010-01-13 03:02:33     Unable to run Qt example on Blackfin board

Michael Hennerich (GERMANY)

Message: 84504    I guess you're using trunk kernel and uclinux-dist?

Try to revert and delete the qt-4.5.0-nommu-mmap.patch and build qt again.

The problem is due to the MAP_PRIVATE hack.

 

-Michael

QuoteReplyEditDelete

 

 

2010-01-13 03:40:13     Unable to run Qt example on Blackfin board

Michael Hennerich (GERMANY)

Message: 84526    Just noticed that this path file includes other mmap fixes as well.

So please remove only the first patch in file.

 

Index: lib/qt-embedded/patches/qt-4.5.0-nommu-mmap.patch

===================================================================

--- lib/qt-embedded/patches/qt-4.5.0-nommu-mmap.patch (revision 9367)

+++ lib/qt-embedded/patches/qt-4.5.0-nommu-mmap.patch (working copy)

@@ -1,22 +1,3 @@

---- a/src/gui/embedded/qscreenlinuxfb_qws.cpp

-+++ b/src/gui/embedded/qscreenlinuxfb_qws.cpp

-@@ -391,10 +391,15 @@ bool QLinuxFbScreen::connect(const QString &displaySpec)

-

- mapsize = finfo.smem_len;

-

-+#if defined(QT_LINUX_NOMMU)

-+# define MMAP_FLAGS MAP_PRIVATE

-+#else

-+# define MMAP_FLAGS MAP_SHARED

-+#endif

- data = (unsigned char *)-1;

- if (d_ptr->fd != -1)

- data = (unsigned char *)mmap(0, mapsize, PROT_READ | PROT_WRITE,

-- MAP_SHARED, d_ptr->fd, 0);

-+ MMAP_FLAGS, d_ptr->fd, 0);

-

- if ((long)data == -1) {

- if (QApplication::type() == QApplication::GuiServer) {

--- a/src/3rdparty/webkit/JavaScriptCore/wtf/TCSystemAlloc.cpp

+++ b/src/3rdparty/webkit/JavaScriptCore/wtf/TCSystemAlloc.cpp

@@ -303,7 +303,7 @@

 

 

-Michael

Attachments

    Outcomes