วันพุธที่ 17 กันยายน พ.ศ. 2557

iMX6-Quad wandboard cannot load fedora linux kernel problem solve.

I've install Fedora20 into Wandboard Quad by following URL.

https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29

But it found problem about cannot load linux. This is my error message.

Wrong Image format for sysboot command
ERROR: can't get kernel image!

I think it cannot find image on SD-Card. But I'm found this page.

https://fedoraproject.org/wiki/User:Mrunge/Wandboard_quad

And I'm recheck __/etc/fstab. This result

[root@localhost etc]# cat fstab
UUID=67fd65e0-63d0-492d-bac9-f1a7702e30ca  / ext4    defaults,noatime 0 0
UUID=85e29c85-1d3f-4dd2-b0d5-f4a41fe95569  /boot ext3    defaults,noatime 0 0
UUID=a6c693c6-99c1-4e79-b522-7cae47d96d38  swap swap    defaults,noatime 0 0

It's show root is mounted on UUID=67fd65e0-63d0-492d-bac9-f1a7702e30ca.

But when I'm cat __boot/extlinux/extlinux.conf it's show result.

# extlinux.conf generated by anaconda

#ui menu.c32

menu autoboot Welcome to Fedora. Automatic boot in # second{,s}. Press a key for options.
#menu title Fedora Boot Options.
#menu hidden

timeout 60
#totaltimeout 9000

label Fedora (3.11.10-301.fc20.armv7hl) 20 (Heisenbug)
        kernel /vmlinuz-3.11.10-301.fc20.armv7hl
        append console=ttymxc0,115200 root=UUID=7ee85ed8-de4a-4779-8658-2daed0d35e97 ro rhgb quiet LANG=en_US.UTF-8
        fdt /dtb/imx6q-wandboard.dtb
        initrd /initramfs-3.11.10-301.fc20.armv7hl.img

It's show root path is UUID=7ee85ed8-de4a-4779-8658-2daed0d35e97. Oh my god UUID is not correct. When i'm change UUID in __boot/extlinux/extlinux.conf to 67fd65e0-63d0-492d-bac9-f1a7702e30ca now it's boot correctly.

Reference Link

https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
https://fedoraproject.org/wiki/User:Mrunge/Wandboard_quad

วันอาทิตย์ที่ 17 พฤศจิกายน พ.ศ. 2556

How to install nemesis on Ubuntu

1.  Install Dependency
     apt-get install libdnet-dev 
     apt-get install libpcap-dev
2.  Install Libnet
     I'm assume build location at /usr/nembuild
     wget http://ips-builder.googlecode.com/files/libnet-1.0.2a.tar.gz 
     tar -xf libnet-1.0.2a.tar.gz
     cd Libnet-1.0.2a
     ./configure
     make && make install
     

     if found "make error 1" edit Makefile
     change
          MAN_PREFIX  =
     to
          MAN_PREFIX  =   /usr/share/doc/
     and then make it again!
3.  Install Nemesis
     I'm assume build location at /usr/nembuild
     if you follow me from step 2 please type following line
          cd ..
     now you are at
          /usr/nembuild/
     wget http://heanet.dl.sourceforge.net/project/nemesis/nemesis/1.4/nemesis-1.4.tar.gz
     tar -xf nemesis-1.4.tar.gz
     cd nemesis-1.4
     ./configure --with-libnet-includes=/usr/nembuild/Libnet-1.0.2a/include --with-libnet-libraries=/usr/nembuild/Libnet-1.0.2a/lib
     make && make install

     if found 
     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:87:8: warning: missing terminating " character [enabled      by default]
     /usr/nembuild/Libnet-1.0.2a/include/libnet.h:89:50: warning: missing terminating " character [enabled by default]
     nemesis-functions.c: In function ‘nemesis_check_link’:
     nemesis-functions.c:342:36: error: dereferencing pointer to incomplete type
     make[2]: *** [nemesis-functions.o] Error 1
     make[2]: Leaving directory `/usr/nembuild/nemesis-1.4/src'
     make[1]: *** [all-recursive] Error 1
     make[1]: Leaving directory `/usr/nembuild/nemesis-1.4'
     make: *** [all] Error 2
     edit libnet-headers.h
     vim ../Libnet-1.0.2a/include/libnet/libnet-headers.h
     change 
     #if (!__GLIBC__)
   struct ether_addr
   {
       u_char  ether_addr_octet[6];
   };
   #endif
     to
   //#if (!__GLIBC__)
   struct ether_addr
   {
       u_char  ether_addr_octet[6];
   };
   //#endif

วันพุธที่ 10 ตุลาคม พ.ศ. 2555

EMC2 Video card Problem solve.

if you have problem about glx and etc on start up emc2 software on ubuntu 10LTS. It's mean you have video card problem i think. My System have PIII 1.13GHz and Voodoo5 5500 AGP card. Now I can solve this problem by use the following solution.


press CTRL + ALT + F1
login and run following command

sudo service gdm stop




sudo apt-get build-dep xserver-xorg-video-tdfx
sudo apt-get source xserver-xorg-video-tdfx
sudo apt-get install libglide3
sudo ldconfig

cd ~/xserver-xorg-video-tdfx-1.4.3/
./configure
make
make install
cd /usr/local/lib/xorg/modules/drivers/
sudo cp *.* /usr/lib/xorg/modules/drivers/

sudo Xorg -configure
sudo mv ~/xorg.conf.new /etc/X11/xorg.conf

Add the following red line to /etc/X11/xorg.conf

Section "Device
            Identifier   "Configured Video Device"
            Driver "vesa" 

Section "Module"
            Load "glx"
            Load "dri" 
            Load "GLcore"
            Load "v4l"

sudo service gdm start

reference link

วันจันทร์ที่ 1 ตุลาคม พ.ศ. 2555

On-screen keyboard not working when USB barcode scanner is connected Problem


When you connect a USB barcode scanner, the on-screen keyboard of your Android Tablet may stop working. To resolve this problem, take the following steps:

Open the Applications tab and tap Settings.
Tap Language & Input, and next Current input method.
Disable the Use Physical Keyboard option.

from : http://acer--uk.custhelp.com/app/answers/detail/a_id/12300/~/on-screen-keyboard-not-working-when-usb-barcode-scanner-is-connected

วันจันทร์ที่ 17 กันยายน พ.ศ. 2555

Command to Make MySQL with utf8 charset

make \
WITH_CHARSET=utf8 \
WITH_XCHARSET=all \
WITH_COLLATION=utf8_general_ci \
WITH_OPENSSL=yes \
BUILD_OPTIMIZED=yes \
install && make clean

How to Install PostgreSQL on FreeBSD using ports

Step 1 : Update ports
Step 2 : cd /usr/ports/databases/postgresql92-server
Step 3 : make && make install && make clean
Step 4 : /usr/local/etc/rc.d/postgresql initdb
Step 5 : Add following line to /usr/local/pgsql/data/pg_hba.conf
             host    all             all             _your_network_          password
Step 6 : Change this value in file /usr/local/pgsql/data/postgresql.conf
             #listen_addresses = 'localhost'    -> listen_addresses = '*'
             #port = 5432                             -> port = 5432
Step 7 : Add Following line to /etc/rc.conf
             postgresql_class="postgres"
             postgresql_enable="YES"
Step 8 : Start you postgres using command
             /usr/local/etc/rc.d/postgresql start

Solution From : http://wiki.openstreetmap.org/wiki/User:S-s-s_wiki/Creating_a_local_OSM_server_under_FreeBSD

How add postgres user

Step 1 : Add Unix/Linux User
Step 2 : Using Superuser command
             #su -l pgsql
Step 3 : Connect to Database Server
             #psql template1
             or
             #psql -d template1 -U pgsql

             Output
             bla bla bla
             template1=#
Step 4 : Add user
             template1=#CREATE USER xman WITH PASSWORD 'mypass';
Step 5 : Add Database
             template1=#CREATE DATABASE test1;
             template1=#GRANT ALL PRIVILEGES ON DATABASE test1 to xman;
             *** If you want to alter user to superuser use the following command
             ALTER USER myuser WITH SUPERUSER;
             template1=#\q
Step 6 : Test Login
             $su -l xman
             $psql -d test1 -U xman
         
             Output
             bla bla bla
             test1=>

Solution from http://www.cyberciti.biz/faq/howto-add-postgresql-user-account/