X.Org and E17 packages for Ltib
- October 16th, 2008
- Posted in e17 . english . ltib . profusion
- Write comment
Lately I’ve been working on Ltib (Linux Target Image Builder) in order to have Enjoy running on a demo iMX31 board here in ProFUSION. We’ve already published a few videos on youtube demoing our work here and here (more to follow soon), but so far the packages were scattered through different e-mails on the Ltib mailing list. But as of yesterday, Stuart Hughes merged those packages upstream and now it’s publicly available for all users of Ltib. Also, I’ve been given access to Ltib’s CVS and will be uploading more packages there soon (Enjoy and Illume are next on the list, already packaged and just in need of a few clean-ups).
If you are using Ltib and wish to test E17 (or just X.Org), here are the steps necessary (if you find anything missing from this guide or have any other suggestions, please do leave a comment here since this guide will probably be posted later on Ltib’s homepage) :
1) Update to the latest CVS version if you haven’t already.
2) If you’re going to install the Enlightenment packages, you’re going to need a few packages to be available on your host. Luckily you can just use Ltib to install them :
$ ./ltib –hostcf -p eet.spec
$ ./ltib –hostcf -p embryo.spec
$ ./ltib –hostcf -p evas.spec
$ ./ltib –hostcf -p ecore.spec
$ ./ltib –hostcf -p edje.spec
3) Run ‘./ltib –configure’, and inside Package List, there should be two new submenus, one for Enlightenment and one for X11. Choose the packages you wish to install. One package worth mentioning is Expedite, which can be easily used to benchmark your device and see if the installation was OK.
4) If you are going to run X.Org, you might need to patch xorg-server depending on your device’s supported display resolution (on CVS there is already a patch to add support for vga-portrait mode which is the default resolution for our test board, and I’m sending another patch soon to add support for WVGA).
5) Example of how to start X :
$ Xfbdev -screen 480×640 -mouse tslib,,device=/dev/input/ts0
6) Example of how to start Enlightenment :
$ DISPLAY=:0 enlightenment_start
Try it out and tell us if it worked well for you. Cheers.
Hi, Could you do me a favor please. I have finished compiled the X-server. But I do not konw how to start the xfbdev. I use Xfbdev -screen 480×640 -mouse tslib,,device=/dev/input/ts0 and DISPLAY=:0 enlightenment_start but I failed. The screen turns white. How can I do next? Do I need any settings?
Best regards!
Well, is there no output whatsoever from enlightenment or X ? Does it create a .e directory ?
Thank you for your reply.
Yeah, there is no output, both X and E17. Just one time, the screen show a cursor, and I do like that: echo hello > /dev/tty0, then the screen showed hello. But I do not know how the cursor show again. I did not create the directory. Where should I create the directory and What is the complete name? And after I create the directory, How do I write the settings? I do not know how to use E17. Do I need other settings?
After you run Xfbdev, the screen should show a mouse pointer right on the middle and stay there. Then, when you run start_enlightenment,
it should start e17 and e17 itself should create the configuration directory for you. You’re connecting through ssh to the board, right ?
There is no text output from the Xfbdev line which can help debugging ?
Hi, the mouse pointer do not show on the screen, just one time. I’m sorry, I did not know how to show the mouse . When I run Xfbdev, the screen turns white immediately, and when I run enlightenment_start, it seems like there is no change on the screen. The output shows some errors about fonts. I just want the screen can start the E17 or show a picture, that’s enough. What should I do then?
When starting the kernel and mounting the file system, I run it like that:
1. mount -t ramfs ramfs /tmp
2. ln -s /dev/vc/0 /dev/tty0
ln -s /dev/vc/1 /dev/tty1
ln -s /dev/vc/2 /dev/tty2
3. Xfbdev -screen 480×640 -mouse tslib,,device=/dev/ts &
4. DISPLAY=:0 enlightenment_start
Is there anything wrong with the operations?
I am so glad that you could reply again.
Best regards!
yeah, i’am connecting through ssh to the board
when i run it like that:
1. mount -t ramfs ramfs /tmp
2. mknod /dev/input/event1 c 13 65
mknod /dev/input/mice c 13 63
rm /dev/ts
mknod /dev/ts c 11 0
3. ln -s /dev/vc/0 /dev/tty0
ln -s /dev/vc/1 /dev/tty1
ln -s /dev/vc/2 /dev/tty2
4. Xfbdev -screen 480x640x16 -mouse tslib,,device=/dev/ts &
the screen show a mouse pointer and also something wrong as follow:
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/freescale:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
Couldn’t find keyboard driver
Backtrace (1 deep):
0: /lib/ld-linux.so.3 [0x4001312c]
Fatal server error:
Segmentation fault caught
5. when i input echo “Hello, world” > /dev/tty0, and the screen show Hello, world
but when i input DISPLAY=:0 enlightenment_start, it show as follow:
E – PID=1735, do_precache=0
ESTART: 0.00001 [0.00001] – begin
ESTART: 0.00085 [0.00083] – signals done
ESTART: 0.06490 [0.06405] – determine prefix
DYNAMIC DETERMINED PREFIX: /usr
ESTART: 0.23390 [0.16900] – prefix done
ESTART: 0.23438 [0.00047] – intl init
ESTART: 0.41044 [0.17606] – parse args
ESTART: 0.41568 [0.00524] – arg parse done
ESTART: 0.44817 [0.03249] – ecore init
ESTART: 0.54841 [0.10024] – ecore_file init
ESTART: 0.54968 [0.00127] – more ecore
ESTART: 0.54992 [0.00023] – x connect
<<<>>>
Enlightenment cannot initialize its X connection.
Have you set your DISPLAY variable?
i am so happy that you could reply again
Best regards!
Sam Shen, it seems that X is segfaulting, and then E17 really cannot start (E17 complains about DISPLAY not being correctly set, but that is just because X segfaulted and is not running). The output X is showing before that (keyboard and inet6 related is kinda normal). Which board are you using ? Did all X packages compile without problems ???
Cheers
My board is freescale mx31 , e17 is not compiled by myself, i just integrate that,so i want to recompile the e17,could you tell me which packages e17 depengs on and how to set DISPLAY when i compile e17, thanks a lot !
Best regards!!!
Sam Shen, from what I understood you’re compiling e17 using ltib, aren’t you ? Try to get Ltib from CVS and using it to generate your packages, from the start. Also, it probably would be better if you asked this things by email on the ltib list, because more people would be able to help you and benefit from the discussion.
Cheers.
yeah, i know, thank you very much
Hello, I compiled xorg-server, evas, ecore, eet, embryo, edje, and enlightenment via ltib (updated and configured for x11 and enlightenment). No build problems. I am using the Freescale imx31 ADS board. I am experiencing the same problem described by Sam Shen above. Xfbdev segfaults and so enlightenment can’t run. Any ideas? Thanks
Ok, it works. The problem was the mode of the display. in /xserver/hw/kdrive/src/kmode.c you need to have a mode that is correct for your display. To get this run fbset and use the vales returned to set the mode.
Also when I built this I had a problem with xorg-server, the libXfont was not found and the build stops. To fix this go to the …ltib/rootfs/usr/lib and (as root) delete libXfont.la then
go back and localhost ltib]$ ./ltib it will pick up from where it left off and not complain.
I have a new question: if I want to use directFB must I still build with x11 configured? Is it possible to build enlightenment with no x11 support?
Thanks
Yeah, all .la files should be deleted, probably that one remained there. Gonna see if I commit a fix for that tomorrow.
Regarding directFB, you don’t need to compile X11 if you’re going to compile stuff that does not depend on it (just select
the packages you want on the Enlightenment submenu, we’ve Enjoy running really nicely just
on the framebuffer).
гляди! Я ржал – http://ibigdan.livejournal.com/4243319.html – тема дня
)
Фото на тему кризиса..
да, и спасибо за пост) добавил в избранное
Nice post u have here
Added to my RSS reader
Hello LF,
Enlightenment loads and runs on my imx31 board but I cannot get the mouse or the touchscreen to work as input device with X.
# Xfbdev -screen 240x320x16 -mouse tslib,,device=/dev/ts0 &
1777
-sh-2.05b# _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/freescale:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
Couldn’t find keyboard driver keybd
Backtrace (1 deep):
0: /lib/ld-linux.so.3 [0x4001312c]
Fatal server error:
Segmentation fault caught
Can’t deallocate console 2 errno 16
It appears I have no tslib although I do have ts modules being built and modprobed.
I have a libts and when I try:
# Xfbdev -screen 240x320x16 -mouse libts,,device=/dev/ts0 &
1792
-sh-2.05b# _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/freescale:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
Couldn’t find keyboard driver keybd
Couldn’t find pointer driver libts
but now X starts and I can proceed to start enlightenment but with no mouse/kbd/ts
any clues?
Thanks
Ok it works! Very nice.
Thank you!
Hello messias ,
Can you let me know where is the CVS for downloading Xfbdev with portrait mode support?
The official version has support for lots of screen modes. If yours is not supported, you just need to add it. The CVS mentioned on the post is the CVS for Ltib.