2013-01-13

Hope you like it :-)

XOrg on Efika MX Smartbook.


Xpdf with huge i.MX51 development manual (22MB)

I hope you already run FreeBSD on your Efika MX Smartbook :) (read here

So, you have FreeBSD on Smartbook and want to run Xorg.
You need two not standard items:
1. Patched Xorg port. Extract it over original /usr/ports/x11-servers/xorg-server.
2. Port of new xf86-video-scfb driver. Extract it into /usr/ports/x11-drivers/

Then build/install both.
cd /usr/ports/..../
make install clean

It will take some time, maybe next morning you will find that some port from dependency list asking you some question and it was happen right after you went to sleep last night :))))
To not have such situation, better to read man ports first about BATCH and INTERACTIVE modes. It's good idea to build xinit port also, since project branch still not ready to test ARM EABI and with old ARM ABI I found problems with build gobject-introspection which makes impossible to build many parts of Gnome (maybe not only Gnome apps). IIRC, same happen with KDE/Qt parts. So, don't be so fast, and try xinit with xterm and xclock :)
And xpdf :) (See image in header).

What next?! Ahh! Yeah, /etc/X11/xorg.conf, I make small Xorg.conf, because Xorg fail to autodetect things (maybe it's already fixed by some my fix, but I've not checked it again yet).

Section "Files"
EndSection

Section "Module"
    Load        "dbe"
    Disable    "dri"
    Disable    "dri2"
    Disable    "glx"
    SubSection  "extmod"
        Option  "omit xfree86-dga"
    EndSubSection
EndSection

Section "ServerFlags"
    Option    "AIGLX"        "false"
    Option    "NoAccel"    "True"
    Option    "NoDRI"        "True"
    Option    "DRI"        "False"
    Option    "DRI2"        "False"
EndSection

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option      "Protocol"      "auto"
    Option      "Device"        "/dev/sysmouse"
EndSection

Section "Monitor"
    Identifier  "Monitor"
    Mode "1024x600"
        DotClock        25.175
        HTimings        1024 1048 1148 1200
        VTimings        600 610 620 700
    EndMode
EndSection

Section "Device"
    Identifier  "Generic FB"
    Driver      "scfb"
    Option    "NoAccel"    "True"
EndSection

Section "Screen"
    Identifier  "Screen"
    Device      "Generic FB"
    Monitor     "Monitor"
    DefaultDepth 16
    SubSection "Display"
        Depth           16
        Modes           "1024x600"
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "layout"
    Screen      0 "Screen" 0 0
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Now just do:
startx

Done!

It will be very nice if you will get everything working after first attempt :)
Anyway, glad to hear any opinions! (ray@... )

Thank you very much!


7 комментариев:

  1. Please disable HAL support in the xorg-server port config

    cd /usr/ports/x11-servers/xorg-server
    make config

    Here deselect HAL.

    Otherwise your build will fail on gio-introspection dependency of hald.

    It will build fine, when we will switch to ARM EABI (soon)

    ОтветитьУдалить
  2. Dobryj den',
    podderzhivaet li FreeBSD i.mx53 Quick Start Board ot Freescale?

    Spasibo

    ОтветитьУдалить
  3. Добрый!

    не вижу тут особых проблем, но на сколько мне известно никто не пробовал. А у меня такого устройства нет.

    Всегда пожалуйста.

    ОтветитьУдалить
  4. Chto by poprobovat' kakie znaniya dlya etogo trebuyutsya krome C++ ? S chego mozhno bylo by nochat'? Est' kakaya to dokumentaciya? Ya tak podozrevayu nado znat' OS FreeBSD kak razrabotchik a ne tolko kak polzovatel?

    ОтветитьУдалить
    Ответы
    1. Скорее C, а не C++ :)

      1. Поставить FreeBSD
      2. Научиться ей пользоваться
      3. Обчитаться парой книг по С и попробовать все что там есть
      4. Найти что вам интересно в FreeBSD и докапываться до истины
      4a. паралельно почитывая "man 9 style" чтоб потом не переучиваться.

      :)

      Удалить
  5. Doesn't work on Raspberry PI
    ----
    root@generic:/usr/ports/x11-servers/xorg-server# make install clean
    ===> xorg-server-1.7.7_6,1 requires unknown xorg module (xkbui).
    *** Error code 1

    Stop.
    make: stopped in /usr/ports/x11-servers/xorg-server
    root@generic:/usr/ports/x11-servers/xorg-server#

    ОтветитьУдалить

Поиск по этому блогу

Readers