วันเสาร์ที่ 27 กุมภาพันธ์ พ.ศ. 2553

Easy way,HOW to test serial on embedded linux with minicom

Easy way,HOW to test serial on embedded linux with minicom
when you want to test serial port over this case,we tested with gbox sam9260 board.
OVER EMBEDDED BOARD TERMINAL
1.The first,you need to install minicom packet on your embedded board
#apt-get install minicom
JUST WAIT
2.now you got minicom packet,so you would do configuration later
#minicom -s
Then,you would see configuration table and choose SERIAL PORT SETUP and enter
you would see setting table and set parameter what you want such as
if you want to connect via USB0 (USB to serial)
press A and type in A- Serial Device to /dev/ttyS1 then press enter to first page
3.choose SAVE SETUP AS DFL and choose EXIT later
4.test serial (if there is not equipment to connect with your serial port,may be you need to connect loop back to your serial by hard wire between RX and TX and connect CTS<>RTS)
#minicom
type anything you would see anything what you typed.
5.If you want to exit program press 'Ctrl+a' then 'z' then 'x' and enter
Thanks for anyone please and Greats day.

วันศุกร์ที่ 26 กุมภาพันธ์ พ.ศ. 2553

HOW TO COMPILE KERNEL


HOW TO COMPILE KERNEL

  1. Providing environment

    you need to install needed packet and follow by
    #sudo apt-get update
    #sudo apt-get install build-essential
    #sudo apt-apt-get install libncurses5-dev
    #sudo apt-get install uboot-mkimage
  2. Download kernel source (from now,I use 2.26.33 version)

    from http://www.kernel.org/
    and extract it to your desire directory  (I extract in to /home/mestcom/Desktop/src/ then I would get /home/mestcom/Desktop/src/linux-2.6.33 )

    **

  3. Download toolchain from
    http://www.codesourcery.com/sgpp/lite/arm
    and extract(now I extrat in to /home/(your user)/bin/)

    set path of toolchains
    #export $PATH:/home/mestcom/bin/codesourcery-armgcc-2009q1/bin/:$HOME/bin
  4. go into linux source directory

    config .config file to match your board.

    #make sam9_l9260_defconfig
    #export ARCH=arm
    #export CROSS_COMPILE=arm-none-linux-gnueabi-
    #make menuconfig
    you would see config window and then exit and save
    (if you need to config an environment,you can do in this then exit and save BUT make sure that you config as the cross compiling may not work)
  5. Cross Compile kernel

    #make uImage
    after that u need to just wait...
  6. When Cross compiling finish, you would get uImage file in (kener source directory)/arch/arm/boot/ directory
  7. make modules
    #mkdir kernel-modules
    #make modules INSTALL_MOD_PATH=kernel-modules/
    #make modules_install INSTALL_MOD_PATH=kernel-modules/
  8.