2009-01-13 05:50:01     VNC-Server and microwindows in uCLinux-dist2009pre

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

2009-01-13 05:50:01     VNC-Server and microwindows in uCLinux-dist2009pre

Patrick Hotz (GERMANY)

Message: 67859   

 

Hi

 

Now that the uClinux2009pre is running successfully on my system i try to get microwindows running to test the performance.

The only problem i have is that we have no display on our system.

 

Is there a possibility to get vncserver running on uCLinux ?

For example i want to play tetris on my system.....

 

Regards

 

- Patrick

TranslateQuoteReplyEditDelete

 

 

2009-01-13 06:31:53     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Mike Frysinger (UNITED STATES)

Message: 67865   

 

if you're referring to an X based vncserver implementation from say realvnc or tightvnc then i doubt it'll work easily (if at all).  those code bases are a mess and integrate the X server package right into it rather than being split up like normal.  it often fails to build on desktop systems (x86/x86_64) let alone embedded systems ...

 

qt has an embedded vnc server that works just fine (ive tested it).

QuoteReplyEditDelete

 

 

2009-01-13 07:32:30     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Patrick Hotz (GERMANY)

Message: 67871   

 

Hi,

 

if i understand you, i must set the "Build QT => Build QT Virtual Framebuffer and Build demos/examples" in Library Configuration, right?

I have set this three configs and try a "make"...

 

First the procedure has downloaded the qt-embedded libraries (about 100mb) and then build....

I have got an failure:

 

"The DirectFB screen driver functionality test failed!

You might need to modify the include and library search paths by editing QMAKE_INCDIR and QMAKE_LIBDIR in

/home/photz/uclinux-dist/lib/qt-embedded/qt-embedded-linux-opensource-src-4.4.3/mkspecs/qws/linux-bfin-fdpic-g++"

 

 

 

What does this means?

Can you give me a example what i have exactly to set in config?

 

 

 

 

 

- Patrick

TranslateQuoteReplyEditDelete

 

 

2009-01-13 07:35:49     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Mike Frysinger (UNITED STATES)

Message: 67872   

 

so try enabling directfb in the library options

QuoteReplyEditDelete

 

 

2009-01-13 07:46:05     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Patrick Hotz (GERMANY)

Message: 67873   

 

Hi Mike,

 

i have enabled the DirectFB in library but the failure still occurs.

Have i to set something special?

TranslateQuoteReplyEditDelete

 

 

2009-01-13 08:14:06     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Mike Frysinger (UNITED STATES)

Message: 67874   

 

no idea ... it just worked fine for me.  run `make bugreport` and post the tarball as an attachment.  i'll have to compare to what i do to see where the problem is coming from.

QuoteReplyEditDelete

 

 

2009-01-13 08:17:18     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Patrick Hotz (GERMANY)

Message: 67875   

 

Hi Mike,

 

here is the bugreport

 

- Patrick

 

bugreport.tgz

TranslateQuoteReplyEditDelete

 

 

2009-01-13 21:18:34     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Mike Frysinger (UNITED STATES)

Message: 67899   

 

the qt build system doesnt check for directfb config scripts.  ive fixed it in svn.

QuoteReplyEditDelete

 

 

2009-01-14 05:58:26     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Patrick Hotz (GERMANY)

Message: 67932   

 

Hi Mike,

 

thank you for your fast update,

the uCLinux runs now on my Board.

 

I have compiled the "DirectFB" and the "QT with Virtual Framebuffer and Demos/Examples".

 

But now i have another problem running a example,

I try to run "tetrix" or "analogclock" which i have copied from "..staging/usr/qt/examples/widgets/...".

 

root:/media> ./analogcl -qws -display VNC:0

analogcl: page allocation failure. order:11, mode:0x40d0

Hardware Trace:

   0 Target : <0x00004928> { _dump_stack + 0x0 }

     Source : <0x00032602> { ___alloc_pages_internal + 0x1be } CALL pcrel

   1 Target : <0x00032602> { ___alloc_pages_internal + 0x1be }

     Source : <0x0000e4e6> { _printk + 0x16 } RTS

   2 Target : <0x0000e4e2> { _printk + 0x12 }

     Source : <0x0000ed0c> { _vprintk + 0x130 } RTS

   3 Target : <0x0000ed00> { _vprintk + 0x124 }

     Source : <0xffa00bd0> { __common_int_entry + 0xd8 } RTI

   4 Target : <0xffa00b6e> { __common_int_entry + 0x76 }

     Source : <0xffa009b8> { _return_from_int + 0x58 } RTS

   5 Target : <0xffa009b8> { _return_from_int + 0x58 }

     Source : <0xffa0098e> { _return_from_int + 0x2e } IF !CC JUMP

   6 Target : <0xffa00960> { _return_from_int + 0x0 }

     Source : <0xffa00b6a> { __common_int_entry + 0x72 } CALL pcrel

   7 Target : <0xffa00b68> { __common_int_entry + 0x70 }

     Source : <0xffa0035a> { _asm_do_IRQ + 0x6e } RTS

   8 Target : <0xffa00352> { _asm_do_IRQ + 0x66 }

     Source : <0x0001228a> { __local_bh_enable + 0x3e } RTS

   9 Target : <0x0001224c> { __local_bh_enable + 0x0 }

     Source : <0x00012374> { ___do_softirq + 0xa0 } JUMP.L

  10 Target : <0x0001236c> { ___do_softirq + 0x98 }

     Source : <0x00012350> { ___do_softirq + 0x7c } IF !CC JUMP

  11 Target : <0x00012332> { ___do_softirq + 0x5e }

     Source : <0x0002d368> { _rcu_process_callbacks + 0x30 } RTS

  12 Target : <0x0002d364> { _rcu_process_callbacks + 0x2c }

     Source : <0x0002d29e> { ___rcu_process_callbacks + 0x132 } RTS

  13 Target : <0x0002d298> { ___rcu_process_callbacks + 0x12c }

     Source : <0x0002d222> { ___rcu_process_callbacks + 0xb6 } IF !CC JUMP

  14 Target : <0x0002d21c> { ___rcu_process_callbacks + 0xb0 }

     Source : <0x0002d2a4> { ___rcu_process_callbacks + 0x138 } IF CC JUMP

  15 Target : <0x0002d2a0> { ___rcu_process_callbacks + 0x134 }

     Source : <0x0002d20e> { ___rcu_process_callbacks + 0xa2 } IF !CC JUMP

Stack info:

SP: [0x00521e04] <0x00521e04> /* kernel dynamic memory */

FP: (0x00521e10)

Memory from 0x00521e00 to 00522000

00521e00:<000325da>[002d7380]<00032606> 002d7380 (00000000)<000240d0> 002d7568

00521e20: 000040d0  00000001  00000048  00520000  00520000  00000000 <000240d0>

00521e40: 00000010  00000000  00000000  00000000  00000000  000000f5 <0003272e>

00521e60: 0069c000  0032a3e0  ffffffda  00000000  00000002  00a904a0 <00039d2e>

00521e80: 00000004  00000000 <00039f58> 00000000  00000000  0051fa4c <0003e404>>

00521ea0: 00000000  00000000  00834a80  00001000  00001000  0051fa4c <000038c8>

00521ec0: 0069b3ec  00abd034  00520000  00000002  00a904a0  00000005  00001000

00521ee0: 00000000  00000005  00000002  00000000 <ffa0082c> 00003880  000000c0

00521f00: ffffe000  00000000  00000003  0098c776 <001a7c60> 00187ecc  00001802

00521f20: 00000000  00ab34fe  00008000  00000000  00000000  00522000  00ab34fe

00521f40:<00ab2c92><ffa00d94> 02002020  00ab5051  0035f8db  00ab5050  0035f8da

00521f60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00521f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00521fa0: 00000000  00000000  00000000  001b42a8  001a6005  0051f8fc  0051fa4c

00521fc0: 001a63cf  00abd034  00000000  00abd034  000000c0  0069b3ec  00000001

00521fe0: 00000003  00001802  00000005  0069b3ec  00000000  00000000  000000c0

00522000: 00000097

Return addresses in stack:

    address : <0x000325da> { ___alloc_pages_internal + 0x196 }

    address : <0x00032606> { ___alloc_pages_internal + 0x1c2 }

   frame  1 : <0x000240d0> { _timer_list_show + 0x424 }

    address : <0x000240d0> { _timer_list_show + 0x424 }

    address : <0x0003272e> { ___get_free_pages + 0x1e }

    address : <0x00039d2e> { _do_mmap_pgoff + 0x35a }

    address : <0x00039f58> { _do_mmap_pgoff + 0x584 }

    address : <0x0003e404> { _vfs_read + 0xac }

    address : <0x0064e2f4> /* kernel dynamic memory */

    address : <0x000038c8> { _sys_mmap2 + 0x48 }

    address : <0xffa0082c> { _system_call + 0x68 }

    address : <0x001a7c60> { _bfin_debug_mmrs_init + 0x1bf0 }

    address : <0x00ab2c92> [ /lib/ld-uClibc.so.0 + 0x2c92 ]

    address : <0xffa00d94> { _evt_system_call + 0x64 }

Mem-Info:

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

Active_anon:0 active_file:0 inactive_anon:0

inactive_file:11 dirty:0 writeback:0 unstable:0

free:1353 slab:448 mapped:0 pagetables:0 bounce:0

DMA free:5412kB min:420kB low:524kB high:628kB active_anon:0kB inactive_anon:0ko

lowmem_reserve[]: 0 0 0

DMA: 37*4kB 40*8kB 23*16kB 13*32kB 11*64kB 5*128kB 1*256kB 3*512kB 1*1024kB 0*2B

11 total pagecache pages

2816 pages RAM

492 pages reserved

7 pages shared

944 pages non-shared

Allocation of length 6930432 from process 87 failed

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

Active_anon:0 active_file:0 inactive_anon:0

inactive_file:11 dirty:0 writeback:0 unstable:0

free:1353 slab:448 mapped:0 pagetables:0 bounce:0

DMA free:5412kB min:420kB low:524kB high:628kB active_anon:0kB inactive_anon:0ko

lowmem_reserve[]: 0 0 0

DMA: 37*4kB 40*8kB 23*16kB 13*32kB 11*64kB 5*128kB 1*256kB 3*512kB 1*1024kB 0*2B

11 total pagecache pages

./analogcl:582: can't map '/usr/lib/libQtGui.so.4'

analogcl: page allocation failure. order:11, mode:0x40d0

Hardware Trace:

   0 Target : <0x00004928> { _dump_stack + 0x0 }

     Source : <0x00032602> { ___alloc_pages_internal + 0x1be } CALL pcrel

   1 Target : <0x00032602> { ___alloc_pages_internal + 0x1be }

     Source : <0x0000e4e6> { _printk + 0x16 } RTS

   2 Target : <0x0000e4e2> { _printk + 0x12 }

     Source : <0x0000ed0c> { _vprintk + 0x130 } RTS

   3 Target : <0x0000ed00> { _vprintk + 0x124 }

     Source : <0xffa00bd0> { __common_int_entry + 0xd8 } RTI

   4 Target : <0xffa00b6e> { __common_int_entry + 0x76 }

     Source : <0xffa009b8> { _return_from_int + 0x58 } RTS

   5 Target : <0xffa009b8> { _return_from_int + 0x58 }

     Source : <0xffa0098e> { _return_from_int + 0x2e } IF !CC JUMP

   6 Target : <0xffa00960> { _return_from_int + 0x0 }

     Source : <0xffa00b6a> { __common_int_entry + 0x72 } CALL pcrel

   7 Target : <0xffa00b68> { __common_int_entry + 0x70 }

     Source : <0xffa0035a> { _asm_do_IRQ + 0x6e } RTS

   8 Target : <0xffa00352> { _asm_do_IRQ + 0x66 }

     Source : <0x0001228a> { __local_bh_enable + 0x3e } RTS

   9 Target : <0x0001224c> { __local_bh_enable + 0x0 }

     Source : <0x00012374> { ___do_softirq + 0xa0 } JUMP.L

  10 Target : <0x0001236c> { ___do_softirq + 0x98 }

     Source : <0x00012350> { ___do_softirq + 0x7c } IF !CC JUMP

  11 Target : <0x00012332> { ___do_softirq + 0x5e }

     Source : <0x0001251a> { _tasklet_action + 0x8a } RTS

  12 Target : <0x00012514> { _tasklet_action + 0x84 }

     Source : <0x000124ea> { _tasklet_action + 0x5a } IF !CC JUMP

  13 Target : <0x000124e8> { _tasklet_action + 0x58 }

     Source : <0x000af456> { _tty_wakeup + 0x2a } RTS

  14 Target : <0x000af450> { _tty_wakeup + 0x24 }

     Source : <0x00009b28> { ___wake_up + 0x2c } RTS

  15 Target : <0x00009b10> { ___wake_up + 0x14 }

     Source : <0x00009af8> { ___wake_up_common + 0x58 } RTS

Stack info:

SP: [0x00521e04] <0x00521e04> /* kernel dynamic memory */

FP: (0x00521e10)

Memory from 0x00521e00 to 00522000

00521e00:<000325da>[002d7380]<00032606> 002d7380 (00000000)<000240d0> 002d7568

00521e20: 000040d0  00000001  00000048  00520000  00520000  00000000 <000240d0>

00521e40: 00000010  00000000  00000000  00000000  00000000  000000f5 <0003272e>

00521e60: 0069c000  0032a3e0  ffffffda  00000000  00000002  008cbb40 <00039d2e>

00521e80: 00000004  00000000 <00039f58> 00000000  00000000  0051f200 <0003e404>>

00521ea0: 00000000  00000000  00834a80  00001000  00001000  0051f200 <000038c8>

00521ec0: 0069b3ec  00abd034  00520000  00000002  008cbb40  00000005  00001000

00521ee0: 00000000  00000005  00000002  00000000 <ffa0082c> 00003880  000000c0

00521f00: ffffe000  00000000  00000003  ffffe000  00000000  0000fffe  00001802

00521f20: 00000000  00ab34fe  00008000  00000000  00000000  00522000  00ab34fe

00521f40:<00ab2c92><ffa00d94> 02002020  00ab5051  0035f8db  00ab5050  0035f8da

00521f60: 00000000  00000004  00000000  00000004  00000000  00000000  00000000

00521f80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000

00521fa0: 00000000  00000000  00000000  001b441c  00000002  0051f0b0  0051f200

00521fc0: 0051f22c  00abd034  00000000  00abd034  000000c0  0069b3ec  00000001

00521fe0: 00000003  00001802  00000005  0069b3ec  00000000  00000000  000000c0

00522000: 00000097

Return addresses in stack:

    address : <0x000325da> { ___alloc_pages_internal + 0x196 }

    address : <0x00032606> { ___alloc_pages_internal + 0x1c2 }

   frame  1 : <0x000240d0> { _timer_list_show + 0x424 }

    address : <0x000240d0> { _timer_list_show + 0x424 }

    address : <0x0003272e> { ___get_free_pages + 0x1e }

    address : <0x00039d2e> { _do_mmap_pgoff + 0x35a }

    address : <0x00039f58> { _do_mmap_pgoff + 0x584 }

    address : <0x0003e404> { _vfs_read + 0xac }

    address : <0x0064e2f4> /* kernel dynamic memory */

    address : <0x000038c8> { _sys_mmap2 + 0x48 }

    address : <0xffa0082c> { _system_call + 0x68 }

    address : <0x00ab2c92> [ /lib/ld-uClibc.so.0 + 0x2c92 ]

    address : <0xffa00d94> { _evt_system_call + 0x64 }

Mem-Info:

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

Active_anon:0 active_file:8 inactive_anon:0

inactive_file:0 dirty:0 writeback:0 unstable:0

free:1356 slab:448 mapped:0 pagetables:0 bounce:0

DMA free:5424kB min:420kB low:524kB high:628kB active_anon:0kB inactive_anon:0ko

lowmem_reserve[]: 0 0 0

DMA: 40*4kB 40*8kB 23*16kB 13*32kB 11*64kB 5*128kB 1*256kB 3*512kB 1*1024kB 0*2B

8 total pagecache pages

2816 pages RAM

492 pages reserved

7 pages shared

941 pages non-shared

Allocation of length 6930432 from process 87 failed

DMA per-cpu:

CPU    0: hi:    0, btch:   1 usd:   0

Active_anon:0 active_file:8 inactive_anon:0

inactive_file:0 dirty:0 writeback:0 unstable:0

free:1356 slab:448 mapped:0 pagetables:0 bounce:0

DMA free:5424kB min:420kB low:524kB high:628kB active_anon:0kB inactive_anon:0ko

lowmem_reserve[]: 0 0 0

DMA: 40*4kB 40*8kB 23*16kB 13*32kB 11*64kB 5*128kB 1*256kB 3*512kB 1*1024kB 0*2B

8 total pagecache pages

./analogcl:582: can't map '/usr/lib/libQtGui.so.4'

./analogcl: can't load library 'libQtGui.so.4'

root:/media>

 

I think the problem can be the very low free ram..

root:/media> free

              total         used         free       shared      buffers

  Mem:         9296         3984         5312            0           40

root:/media>

 

 

 

What can i do?

 

TranslateQuoteReplyEditDelete

 

 

2009-01-14 06:05:51     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Mike Frysinger (UNITED STATES)

Message: 67933   

 

the error message tells you the problem.  you tried to allocate a contiguous 8meg chunk but your board did not have it.  dont allocate large buffers or only do it once -- at the very beginning.

QuoteReplyEditDelete

 

 

2009-01-14 06:14:07     Re: VNC-Server and microwindows in uCLinux-dist2009pre

Patrick Hotz (GERMANY)

Message: 67937   

 

That means that the programm wants to use about 6Meg RAM but on the Board there are less free?

I dont know what this program needs because it is only an example....

 

- Patrick

Attachments

    Outcomes