Показаны сообщения с ярлыком FreeBSD. Показать все сообщения
Показаны сообщения с ярлыком FreeBSD. Показать все сообщения

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!


2012-11-22

Setup FreeBSD to Efika MX (draft)

It's just my vision. So anyone who have better idea, please notify me about it and we will correct that document. Then I will reuse it to make "official" guide.

1. Invert all 4 swiches
smarttop - 4x DIP switch inside small window on bottom side (for debug board)
smartbook - 4x DIP switch under keyboard (remove/install keyboard with care)
2. Insert SD card (will prepare image for card when make sdhci works)
3. Power on device
it will do:
1. 1st uboot init mmc/SD subsystem
2. Find boot script on 1st FAT partition
3. Run script
4. Script load/run 2nd uboot
5. 2nd uboot init USB, SD, PATA
6. load/run ubldr
7. ubldr find UFS and load/run kernel
4. There must be customized bsdinstall, which must help to:
1. make FAT/EXTFS partition on PATA SSD
2. Install bootscript/uboot(second)/ubldr
3. Make his regular job to install distribution to UFS partition

(huh, enough for first time)

2012-09-30

KyivBSD 2012

Huh, hate to do public talks, but think I must to do that to advertise somehow FreeBSD power and ZRouter.org project itself.

Anyway, today was a good day, and I learn a lot of small but useful and/or interesting things. Thanks to the guys who give a talks today. And thanks to all that peoples who ask interesting questions!!!

2012-09-21

Ohhh! Mammy! Where is all files I wrote this week?!?!

Or: another way how to extract deleted data from big HDD.


Huh, hate to code without VCS support. Just recover several hundreds of code from 0.5T on which system currently run.

How to do that?
undelete? 
unrm?
All that is too much complicated ways for me :) so I need another way.
- Which?
- Simple! 

Simple script:
#!/bin/sh
# 500GB HDD, 488386584K
MAX=$((488386584 / 1024))

i=0
while true; do
    dd if=/dev/ad7 bs=1m count=1 skip=${i} 2> /dev/null | \
        tee ./blk.${i} | \
        grep -U 'LONG_KEY_TO_SEARCH' && \
        echo "BLK ${i} match" || rm ./blk.${i};
    i=$(( ${i} + 1 ));
    if [ $(( ${i} % 0x400 )) -eq 0 ]; then
        if [ $(( ${i} % 0x4000 )) -eq 0 ]; then
            echo ;
            echo "H{${i}}";
        else
            echo -n ".";
        fi
    fi
    if [ ${i} -ge ${MAX} ]; then
        exit 0;
    fi
done
Replace LONG_KEY_TO_SEARCH with some unique string, but remember: 1. less long and unique - more false matches; 2. more long - more time to grep;
And dot forget to replace MAX with your HDD/partition size.
Good luck!

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

Readers