Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Thursday, April 22, 2010

/dev/vmmon error

When I start VMwarePlayer 2, error occur could not find /dev/vmmon.
In google, many people say "use vmware-config.pl", But mostly they do it as same as casting spell.
Also my VMware has not that perl file.
Maybe depend on user that boot VMwarePlayer and load module list.(need more debug myself)
Anyway,load vmmon.ko then ok.
1.check where is my vmmon.ko
# vmplayer
then it show vmmon.ko path.
2.load it
# sudo insmod _that_path_vmmon.ko
3.run VMwarePlayer

Friday, April 9, 2010

Error when reading rootfs

Embedded linux on SD card, Hiding problems in many case as doubt.
  • sometime kernel could not boot
  • Kernel panic - not syncing: No init found, Try passing init= option to kernel".
  • sometime read SD card
  • SD card Buffer I/O error.
  • sometime dd command could not done
  • read error or write error
Please consider it before doubt your embedded linux system.
1st,that kernel panic is evidence u-boot,grub,any boot system are maybe ok.
2nd,try mkfs against rootfs partition and write rootfs all again.
3rd,change SD card writer that using write rootfs.

In my experience mostly SD card writer are problem.
Error occur while dd command, Usually SD card problem. I used many SD card even famous brand.
But how do you believe it?

There is much much illegal copy brand.

It is little help to choice with R mark or not when you purchase SD card.
It is much case in dd command error that using without R mark SD card.
By the way how weak SD card...

Wednesday, February 17, 2010

Gumstix Overo Fire!!!

But it is not only for overo issue. I never think ANTENNA is so much important in very close range.
When I try check wifi chip RT2870, It is still not work completely.
Anyway Fire:88W8686 needs ANTENNA even 30cm radius from AP.

And headache cross compile RT2870.
Change Makefile like that,Hope it will help for another too.
I used bitbake, So better use that tool chain for cross compile. Because bitbake already gitted kernel headers and build tool chain.
For example, little change RT2870's Makefile.
in ~/tmp/work dir there is source for build and ~/tmp/cross dir there is Tool chain.
But end of line should be "arm-angstrom-linux-gnueabi-", compiler will attach on that end.

ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = ~/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.31-r51/image/lib/modules/2.6.31-omap1/build
LINUX_SRC_MODULE = ~/overo-oe/tmp/work/overo-angstrom-linux-gnueabi/linux-omap3-2.6.31-r51/image/lib/modules/2.6.31-omap1/kernel/drivers/net/wireless/
CROSS_COMPILE = /home/tknv/overo-oe/tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi-
endif

'HAS_WPA_SUPPLICANT=y' and 'HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n'
that version doesn't work in arm... still I am testing.

Tuesday, January 12, 2010

Bitbake how to rebuild easy

My proposal is TAKE SNAP SHOT.


When change foo.config for configure.
Bitbake does not rebuild include that reconfigure pkg.
For example, When add some recipes to ~/images/omap3-console-image.bb.
1st build,that added recipes include for deploy images.

But

,when need reconfigure again for that. 2nd times,never include what you want.(from my experience).
It is sure rebuild by rm -rf tmp, But it will make again soooooooooooooo long building time.
My Idea is use VM.(many people use it,when developing)
It is best use-case that TAKE SNAP SHOT since VM take snap shot history ever(maybe), Just build simple omap3-console-image then Take snap shot and after that easy to add recipes,reconfigure,rebuild... also faster.

Saturday, January 9, 2010

C++ Associativity

When reading c++ code, find interesting.
If input 0 then num1 is 5 else num1 is input number.

#include

int
main ( )
{
int num1;
std::cin >> num1;
num1 || (num1 = 5);
std::cout << num1 << std::endl;
return 0;
}


If input 0 then num1 is 0 else num1 is always 5.

#include

int
main ( )
{
int num1;
std::cin >> num1;
num1 && (num1 = 5);
std::cout << num1 << std::endl;
return 0;
}

interesting.

C++ and C setting for VIM

OmniCppComplete & C/C++ IDE


1.get src.


  • ctags

  • c.vim : C/C++ IDE

  • OmniCppComplete : C/C++ omni-completion with ctags database

  • 2.setup ctags


    # tar xzvf ctags-XXXX.tar.gz
    # cd ctags-xxxx
    # ./configure
    # make
    # make install
    when install,should be root or user has permission.

    3.setup vim plugin


    # mkdir ~/.vim
    # cd ~/.vim
    # unzip
    # unzip

    4.add .vimrc


    # vim ~/.vimrc
    ---add this below 2 lines---
    filetype plugin on
    set nocompatible

    5.activate OmniComplete


    # vim foo.cx
    :helptags ~/.vim/doc

    Then now able to do this functions.
    OmniComplete
    Adding file header
    Adding function/frame comment
    Including default code snippet
    Performing syntax check
    Reading documentation about a function
    Converting a code block to comment, and vice versa

    Thursday, September 3, 2009

    redmine & git repo on debian

    1.setup redmine

    普通にrubyの環境があって、passengerが入ってて、redmineが/var/wwwの下に展開されています。
    サーバのホスト名:base08。
    セットアップしているマシンのユーザがtknv。
    #/etc/apache2/httpd.conf
    LoadModule passenger_module /home/tknv/.gem/ruby/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so
    PassengerRoot /home/tknv/.gem/ruby/1.8/gems/passenger-2.2.4
    PassengerRuby /usr/bin/ruby1.8

    PassengerDefaultUser www

    ServerName base08
    DocumentRoot /var/www/redmine/public


    で、redmineで使用するdbの準備が完了していれば、http://base08でredmineが表示されるはず。
    表示されないようだったらサイトで確認
    サーバで/var/log/apache2のログを見てもおかしいところがなければ、redmine/tmpのパーミッションが強すぎだったり、666では起動する。または、/etc/apache2/.htaccessファイルがあっていないとか、、、
    2.git リポジトリーを立てる。

    このサイトが参考になります。
    概要:ここで作成したgitユーザがこのbase08ホストで、gitのリポジトリーを立てたり、アップデートしたりします。
    注意は説明で行われている、gitリポジトリーを使用するユーザ、gitユーザもbase08ホストで使用しますが、通常業務(趣味ではやらない)で使用するほうで、gitosisの設定を行います。
    下記ユーザのマシンでの設定
    #~/gitosis-admin/gitosis.conf
    [gitosis]

    [group gitosis-admin]
    writable = gitosis-admin
    members = aaa@TKNV bbb@bbc usr1@base08 root@base08

    [group dev-Ateam]
    writable = project1 project2 project-foo project-wow
    members = aaa@TKNV tuka@REP USER1@thinkpad-x300 usr1@base08 root@base08 git@base08

    # git@base08が今回の肝です。

    [repo project1]
    gitweb = yes
    owner = tknv@amateras
    description = module for UI and support Ajax

    大事なのはgit@base08
    アカウントをredmineで登録したいリポジトリーのグループに入れておくこと。
    あとは、リンクにあるように、/gitosis-admin/keydirに、git@base.pubのように、sshの公開鍵を入れて、gitでサーバにプッシュ。必要なユーザ分、全部おこなう。
    3.サーバ上でどうやって、gitリポジトリーを作成しpushのたびに更新するか。

    ここ参考になります。しかしながら、ネットにある大抵のHowToは簡単には最近、うまくゆかない。こちらのスキルレベルもあるが、こんだけユーザが多いと、ゴミ情報がたくさん、また、最近は新しいこうゆうテクノロジーが出てくると、とにかくやってみて(やればいいのだが、未検証もあり)サイトにアップする人が多く、間違えもそのままコピペしていたり、、、で
    #~/home/git/repositories//hooks/post-update
    export GIT_DIR=/home/git/checkout//.git

    pushd /home/git/checkout/ > /dev/null
    git reset --hard
    git pull
    popd > /dev/null

    WORKDIR="/home/git/checkout/"

    /usr/bin/git-update-server-info

    unset GIT_DIR

    で、先のサイトにもあるが、Don’t forget to create a _local git copy_ (via git clone git@localhost:.git in /home/git/checkout (or whatever folder you prefer)
    しかし、このままでも、まだ、無理で、もう2つやることが必要で、まずは、


    1.先の今回の肝、git@base08がこの、cloneした、ソースのユーザになっている必要がある。
    2.ssh-agentでこのgit@base08ユーザの秘密鍵の方を登録して、パスワード認証を無しにする必要がある。


    チェックリスト
    • git@~ ユーザがredmineでブラウジングしたいgitリポジトリーのアクセス許可グループに入っているか?(gitosis.conf)
    • git@~ ユーザのsshの秘密鍵がサーバ(redmineとgitリポジトリのある)にてssh-agentで追加され、パスワード認証が不要になっているか?
    • サーバ(redmineとgitリポジトリのある)の/home/git/checkout/のユーザがgit@~ であるか?

    勘違いでした。
    git clone で問題ない、、、

    How to create repo from remote(not at server)

    Monday, August 3, 2009

    趣味のエディタ評価

    Emacs

    => light~heavy,comfortable when know many short-cuts.But no need do it all in Emacs.

    Vim

    => light,comfortable,better to know vim when working.

    Editra

    => sometime feel heavy,good editor.

    Geany

    => light,good editor.

    notepad++

    => light,good editor for windows

    Eclipse

    => Heavy,nice editor on super machine.

    Xcode

    => light,nice editor,But only mac

    My sets:
    *Geany for main job
    *Vim for git
    *Meld for git
    *Mutt for email
    *twidge for twit
    *FireFox for google apps
    need some calendar client? need some RSS reader?,Browser is enough for that.

    Sunday, August 2, 2009

    MacのファイルがLinuxでPermission denied

    Macのデータを外付けHDにバックアップして、Linuxでファイルを見ようとしたら、Permission denied.

    だいたい、画像(iphotoの画像)、音楽(itunesのファイル)などのフォルダが見られない。

    Linuxにてrootになって、chown +R ユーザ /そのフォルダ/ 

    すると、ファイルを参照することができる。
    もともとマックでどのユーザが作ったフォルダかどうかによります。

    Thursday, July 30, 2009

    Linux network manager

    Wicd is an open source wired and wireless network manager for Linux which aims to provide a simple interface to connect to networks with a wide variety of settings.


    Some of Wicd's features include:

    No Gnome dependencies (although it does require GTK), so it is easy to use in XFCE, Fluxbox, Openbox, Enlightenment, etc.
    Ability to connect to wired and wireless networks
    Profiles for each wireless network and wired network
    Many encryption schemes, some of which include WEP/WPA/WPA2 (and you can add your own)
    Remains compatible with wireless-tools
    Tray icon showing network activity and signal strength
    A full-featured console interface

    There are instructions for installing Wicd on Ubuntu, Debian, Arch, Fedora, Slackware, and Gentoo on the downloads page, although it should work on any Linux distro.

    Linuxをnotebookで使ってる人には、便利。

    home of wicd

    Monday, July 20, 2009

    Gmail IMAP by Mutt "Zero config !"

    Zero config !


    There are many how to internet Gmail IMAP by Mutt

    But this is interactive way for feel Mutt with Gmail IMAP.


    % mutt (enter)
    Then when see mutt,Type 'c'
    #####Starting Interactive with mutt########
    Open mailbox ('?') for list):imaps://imap.gmail.com:993(enter)
    your account or id:Yours@gmail.com(enter)
    Passwd:YoursPasswd(enter)

    It is sure works Mutt 1.5.20.

    Friday, July 17, 2009

    Make Java environment,Stuck on Debian

    Make Java environment on Debian Lenny

    (non free)

    I stuck to ant for jruby.

    1st.add it your /etc/apt/sources.list

    deb http://mirrors.kernel.org/debian/ lenny main non-free
    # this is your main mirrors when you install
    deb-src http://mirrors.kernel.org/debian/ lenny main non-free
    # this is your main mirrors when you install

    deb http://security.debian.org/ lenny/updates main non-free
    deb-src http://security.debian.org/ lenny/updates main non-free

    2nd.

    aptitude update
    aptitude install sun-java6-jdk

    3rd.if you need.
    update-java-alternatives -s java-6-sun
    echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | tee -a /etc/environment

    Wednesday, July 15, 2009

    Configure Evolution for gmail IMAP

    => Receiving E-mail


    Server Type: IMAP
    Server: imap.gmail.com:993
    Username: Your complete Gmail address
    Security: SSL
    Authentication Type: Password
    Remember Password: Check (optional)

    => Sending E-mail


    Server Type: SMTP
    Server: smtp.gmail.com:587
    Server Requires Authentication: Check
    Security: TLS
    Authentication Type: Login
    Username: Your complete Gmail address
    Remember Password: Check (optional)

    Debian Enable IBM embedded bluetooth

    Bluetooth

    Works out of the box using the bluetooth and hci_usb driver. The laptop's Bluetooth device is USB-attached internally and shows up in lsusb as:

    $ lsusb
    Bus 003 Device 004: ID 1668:0441 Actiontec Electronics, Inc. [hex] IBM Integrated Bluetooth II

    The device is not enabled per default though (which is a good thing), you can enable it like this:

    $ echo enable > /proc/acpi/ibm/bluetooth

    Disabling is equally simple:

    $ echo disable > /proc/acpi/ibm/bluetooth

    After that, you can use hcitool / hciconfig etc. as usual, and/or enable more related stuff with /etc/init.d/bluetooth restart.
    also

    Tuesday, July 14, 2009

    Get skype for Debian Lenny

    # vim /etc/apt/sources.list
    ADD:
    deb http://download.skype.com/linux/repos/debian/ stable non-free
    then
    aptitude update
    to install the skype:
    # aptitude install skype

    Monday, July 6, 2009

    Computers,cars and motorcycles.

    For example, when since 80's motorcycle or car is broken,,,

    • The coil was broken. => Want a coil => I want to buy only coil => There is only Assy, no choice. And should to get a combined order. => Will take a heavy flywheel and coil.
    • The car window open switch was a broeken. => I want to buy a switch => There is only Assy, no choice. And should to get a combined order. =>Will take all electrical system is on the inside of the door.
    • Ignition timing is wrong. => CDI problem. => Impossible repairs => Exchange.

    For example, when the old 60's motorcycle or car is broken,,,

    • The coil was broken. => Want a coil => Search => To replace the coil.
    • The car window open switch was a broeken.(Maybe no electric window open) => Adjust or replace the gear.
    • Ignition timing is wrong. => Something wrong with the governor. => Re-adjust or replace the timing capacitor.

    For example, Microsoft WindowsXP,,,

    • When Excel often down. => I do not know. => Excel send report, But MS does not send any reply to the report, even fell frequently. => Re-install it.Because paid soft,don't want waste.
    • When Blue back. => Not start. => I do not know. => MSN is going to the site, the comments that have rotation spots to hit similar problems. (Why MS does not support by phone?)
    • When IE8 has been updated by automatic(People usually think so). => Can not browse some site. => Can not be downgraded. => Probably reinstall windowsXP.

    For example, GNU/Linux,,,

    • When OpenOffice down. (Sometime A little heavy, But never down) => So what the hell(This is free). => Re-install.
    • When Kernel panic on wake. => Not start. => I do not know. => Ask for help from the community. Usually can find answer.
    • When FF 3.5 is an updated itself. (But does not update without expressly) => Can not browse the site occurs. (Not currently), some plug-in is unusable. => Give up pulg-in or downgraded.

    I am not saying Linux is old, Mostly Linux has the User. Microsoft has the Customer. It is your money that for supporting.
    Who make good software free ! Although Bill Gates is saying. But paying money without support. Who attention to pay ?
    Also, Now increaseing people leave for be freedom from Microsoft product net even pay.
    The Delight of old cars and motorcycles are feeling that old maker build that fine and strong with builder pride and enjoy my own repairs and the custom, because it is able to be attempted understanding the mechanism.
    This is open source in GNU/Linux. Able to read the source, you can try to understand. Analysis of electron injection program the ROM to try to tune in, here's Linux side. It was tuned to the ROM is replaced, this is a windows side and they want.
    CDI will be replaced as maker say the manufacturer has failed. When strange Governor, who will happily tell us how to do, of course able to understand it yourself too. Because you can open.
    There are some differences work and hobby. But we should have no stress.
    I want be surrounded by known and open things.