installation guide for mv320 (linux 2.6)
TRANSCRIPT
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 1
Installation Guide for MV320
(Linux 2.6)
MicroVision.,Cd.Ltd
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 2
Document Information
Version 1.0
File Name MV320 Linux 2.6 Guide.doc
Date 2009.2.6.
Satus Working
Revision History
Date Version Update Descriptions Editor
2009.2.6. V1.0 First Edition Jongill Wee
MV320-LCD WinCE BSP User Guide
Copyright © 2007 MicroVision Co.,Ltd. All rights reserved.
Published by MicroVision Co.,Ltd.
(☎) +82-2-3283-0101, (*) [email protected]
http://www.microvision.co.kr, http://www.mvtool.co.kr
Room #610, Hanshin IT Tower 235, Guro3-dong, Guro-gu, Seoul, Korea.
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 3
Contents……………………………...…….....
1. Outline ………………………………………...…………..…...……4/43
2. Packages…………………………….……………...………..…....…6/43
3. BSP Package Contents ……….………………...…………....……10/43
4. Setting Up TFTP Server ……………………...………………..…11/43
5. Setting Toolchain……………………...…………….……...….…12/43
6. Setting BootLoader…………………………..…….…….…….….13/43
6.1 NAND Loader : mobm……………………..….………………13/43
6.2 Boot Loader : Blob………………….…….….………………14/43
6.3 Boot Image : boot.bin...……………….…………….………14/43
7. Building Kernel……………………………………………………15/43
8. Installing XDB for using Black Stone
for programming Bootloader………….……….…………..……17/43
9. Downloading …….……………………………….……………..…37/43
10. Doing Application of Camera…………….………….……….…43/43
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 4
1. Outline
This solution board is developed with the Xscale Core Monahans PXA320P processor
(806MHz) which allows testing of every functionality required for developimg luxury
navigation and other mobile terminals like Smart Phone and PMP. The product is
equipped with 7” wide TFT-LCD screen and a movie player with touch screen
to provide optimal environment for 3D Graphic and moving pictures. The product is
applied with circuit design for battery charging which is an essential function for
mobile devices. This product truly demonstrates an in- depth mobile solution.
▶ PXA320 (Monahans) / ARM11 Based on XScale Core
ㆍ Equipped with high performance processor PXA320 based on XScale Core
ㆍ Features PXA320-P model which is equivalent to 806MHz based on ARM11 Core
ㆍ Extra Built-in Mini LCD Controller which is adequate with LCD Controller and Smart
Phone (Allows control of two LCD with one PXA320)
ㆍ Uniquely supports NAND Flash and DDR memory among Xscale processor
ㆍ Features SD/MMC Controller
▶ Features high performance and low-cost memory cell for mass production
ㆍ Equipped with NAND Flash (128MB) which is low-cost and has lager storage space
than NOR Flash
ㆍ Equipped with DDR (Dual DRAM Ver.2) which is twice as fast as tradition SDRAM
▶ Features 7” wide TFT-LCD and module for development of luxury navigation
ㆍ Equipped with 7” wide TFT-LCD, providing optimal environment to play the movie
or DMB, and also the electronic map. (Resolution Size 800 X 480)
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 5
▶ Features DMB module for portable broadcasting system
ㆍ Equipped with terrestrial DMB module which is one of the essential items for luxury
navigation
ㆍ The module is developed by SAMSUNG allowing easy development of luxury
navigation that uses SAMSUNG GPS module
▶ Features 3D graphic engine for development of next-generation 3D electronic maps
and games
ㆍ Equipped with OpenGL ES hardware F3D2000
▶ Renders 3D sound system for stereophonic sound effect
ㆍ Provides 3D sound system for mobile terminal, which conventionally has been
only available in theater
▶ Equipped with high-resolution camera module for portable DVR, movie shot and
screen capture.
ㆍ Equipped with 2M Pixel of High-resolution In-house developed CMOS camera
module
▶ Super High Speed USB 2.0 for best development environment
ㆍ USB 2.0 Device interface based on 480Mbps of maximum speed
ㆍ Provides best development environment with high-speed image downloading
capability for Windows CE, Linux BSP
▶ Features Battery for mobile applications and charging circuits for mass production
of mobile terminals
ㆍ Beyond the simple adapter type used in reference and training kit, the product
supports
main and Sub-Battery which are essential for real mobile devices
ㆍ Features Battery charging circuit and software that are applicable for mobile
devices
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 6
2. Packages
Item Description
Base Board
PXA320(806MHz), DDR2(128MB), NAND Flash(128MB),
UART(2), Camera(2.0M), GPS, CF(1), SD/MMC(2), USB 1.1
Host/Device, USB 2.0 Device, Ethernet(1),
Audio(SPK/MIC), Keypad, I/O Extension.
Board
LCD 7” Wide TFT-LCD (WVGA, 800 * 480, 64K Color, Touch)
Power AC Power Adaptor (Output: DC 5V, 3A) 1 EA
Cable Serial Cable 1EA, USB Cable 1EA
CD BSP Images & Sources, Schematic, Data Sheet, Document
Antenna GPS Antenna 1EA
Camera 2.0Mega Pixel (CMOS type)
Battery 2000mAH 1EA, Backup Mini Battery 1EA
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 7
Layout
-Front-
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 8
-Back-
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 9
H/W Specifications
Item Description
CPU(MCU) XScale PXA320-P (Monahans-P, 806MHz)
DDR2(SDRAM) Samsung 64MB DDR2(Dual DDR) 2EA (128MB)
FLASH Samsung NAND Flash 128MB 1EA
Ethernet SMSC LAN91C(10/100Mbps Fast Ethernet) 1 Port
Display 7” Wide TFT-LCD(WVGA, 800*480, 64K Color), Touch
GPS(Navigation) Samsung GPD14B001007(GPS Module)
Camera 2.0Mega Pixel CIS Module, CMOS type
UART UART 2 Ports(Debug, FFUART)
USB USB 1.1 Host/Device(slave), USB 2.0 Device
Card Socket CF Card Socket 1 EA, SD/MMC Card Socket 2 EA
Audio AC97 Audio Codec(MIC & SPK)
I/O Extension GPIO, Address, Data Bus Pin (44 Pin Header)
Emulator 20 Pin JTAG Emulator Port 1 EA (Debug & Download)
Power DC 5V Jack, Battery Connector
S/W Specifications
OS(BSP) Description
Toolchain Platform Builder 5.0 version Windows CE
BSP Windows CE .net 5.0 version
(arm-linux) gcc 4.1.1 version
(arm-linux) glibc 2.5 version Toolchain
(arm-linux) binutil 2.16.92 version
Boot Loader Blob 2.0.5-pre3 version
Kernel Embedded Linux Kernel 2.6.14.6 version
Linux
File System JFFS2
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 10
3. BSP Package Contents
Filename Description
arm-linux-4.1.1.tar.gz Toolchain for Compilation
linux-2.6.21-mv320.tar.gz Kernel
blob.tar, mobm.tar Bootloader
rootfs.jffs2 Qtopia window Root file System
descr_v2_lb.txt Blob, Mobm combination of file
link_image Blob, Mobm combination of file
After made new folder mv320 through the command of “mkdir”, Copy it to the working
directory /mv320
[root@localhost mv320]# ls
mobm.tar
blob.tar
arm-linux-4.1.1.tar.gz
linux-2.6.21-mv320.tar.gz
rootfs.jffs2
descr_v2_lb.txt
link_image
[root@localhost mv320]#
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 11
4. Setting Up TFTP Server
Follow the command
[root@localhost mv320]# setup
Choose one from “System services”
Choose one from “tftp”
Click “OK”. Finally “quit” setup utility and execute Follow the command
[root@localhost mv320]# service xinetd restart
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 12
5. Setting Toolchain
arm-linux-4.1.1.tar.gz to the working directory /mv320
The above commands will generate the “arm-linux-4.1.1” folder under the /mv320/
directory. Move this folder under “/usr/local/arm/” directory.
Please follow the commands
[root@localhost mv320]# madir –p /usr/local/arm
[root@localhost mv320]# tar xvf arm-linux-4.1.1.tar.gz
[root@localhost mv320]# mv arm-linux-4.1.1 /usr/local/arm/
[root@localhost mv320]# vi ~/.bash_profile
[root@localhost mv320]# source ~/.bash_profile
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 13
6. Setting BootLoader
6.1 NAND Loader : mobm
The need for NAND Loader because NAND of Flash saved bootloader, Kernel, F/S for loading
to DDR. Mobm is possible that loading to DDR
We call “mobm” in PXA320P. mobm (mini OEM Boot Moule)
Please follow the commands
[root@localhost mv320]# tar xvf mobm.tar
[root@localhost mv320]# cd mobm
[root@localhost mobm]# make clean ; make
For combine with Blob, After made new folder “tools” Copy mobm to /tools
[root@localhost mobm]# cd ..
[root@localhost mv320]# mkdir tools
[root@localhost mv320]# cd mobm
[root@localhost mobm]# cp mobm /root/mv320/tools
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 14
6.2 Boot Loader : Blob
Please follow the commands
[root@localhost mv320]# tar xvf blob.tar
[root@localhost mv320]# cd blob
[root@localhost blob]# make clean
[root@localhost blob]# ./config.sh MonahansP
[root@localhost blob]# cp blob /root/mv320/tools
6.3 Boot Image : boot.bin
It is time to combine mobm with Blob to make boot.bin
First Copy descr_v2_lb.txt and link_image to /root/mv320/tools for combining
[root@localhost tools]# ls
blob descr_v2_lb.txt link_image mobm
[root@localhost tools]#
Please follow the commands
[root@localhost tools]# ./link_image –d descr_v2_lb.txt
Descript's version doesn't equal to 3
[root@localhost tools]# ls
blob boot.bin descr_v2_lb.txt link_image mobm
[root@localhost tools]# cp boot.bin /tftpboot
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 15
7. Building Kernel
Please follow the commands
[root@localhost mv320]# tar xvf linux-2.6.21-mv320.tar.gz
[root@localhost mv320]# cd linux-2.6.21-mv320
[root@localhost linux-2.6.21-mv320]# make menuconfig
Select “Load an Alternate Configuration File”
Fill in “arch/arm/configs/mv320_defconfig
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 16
Exit
Please follow the commands
[root@localhost linux-2.6.21-mv320]# make zImage
[root@localhost linux-2.6.21-boot]# cd arch/arm/boot
[root@localhost linux-2.6.21-boot]# cp zImage /tftpboot
File System
[root@localhost linux-2.6.21-mv320]# cp rootfs.jffs2 /tftpboot
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 17
8. Installing XDB for using Black Stone for programming Bootloader
PXA320P designed NAND of Flash. As you know that Nor of flash designed Address of lines
but NAND didn’t design Address of lines so that Common JTAG Emulator can not transmit
Data with NAND of flash Because JTAG Emulator can transmit through address of line to Flash
on the Board. But from Marvell product that Black Stone can transmit NAND of flash your
wants Data through printer cable.
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 18
Run “w_XDB_u_3.2.004.exe”
Click “NEXT”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 19
Click “Marvell(R) eXtreme Debugger 3.2”
Click “Install Now”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 20
Click “NEXT”
Select “I accept the terms in the license agreement” and then click “NEXT”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 21
Click “NEXT”
Click “Browse” for loading license
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 22
Select “marvell_dbg_30_June_2009.lic” and then click “Open”
Click “NEXT”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 23
Click “Install”
Click “OK”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 24
Click “NEXT”
Click “NEXT”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 25
Click “NEXT”
Click “Install”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 26
Click “Finish”
Click “Yes”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 27
Select “Yes, I want to restart computer now” and then click “Finish”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 28
Copy BGP_MH_NAND.bd, BGP_MH_NAND.bin to C:\Program
Files\Marvell\XDB3.2\plugin\marvellpxa\flash\burnalg
BGP_MH_NAND.bd, BGP_MH_NAND.bin which are NAND of logic
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 29
Running “Black Stone”
-> Start
-> Programs
-> Marvell(R) Software Development Tools
-> Marvell(R) eXtreme Debugger 3.2
-> XDB Configurations
-> JTAG Debugger
-> JTAG PXA320
Click “Settings”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 30
After make sure options, Click “OK”
Click “Start”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 31
XDB
Click “Icon”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 32
Make sure “options”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 33
You have to select “Initialize NAND flash” and run “Execute” when first soldered NAND of
Flash on the MV320 of Board.
Warning! Do only once not to be failed.
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 34
Programming Boot
Set up offset number 0 and then click “…”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 35
Select “boot.bin” and then click “Open”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 36
Click “Burn”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 37
9. Downloading
You can understand how to download zImage, File system. Please the following window
appears on your screen.
First, you have to set up environment such as Connect Ethernet cable with your Host
PC to download zImage, File system and also UART for monitoring.
The ways are between HyperTerminal and Minicom through TFTP form Linux of Server.
I tell you about HyperTerminal through TFTP.
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 38
Set up HyperTerminal
Start -> Programs -> Accessories -> Communications -> Run “HyperTerminal”
Setting port
(115200/8/none/1/none)
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 39
Turn on MV320 of Board
As soon as turn on the power of button. Appears boot menu. “Enter Key”
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 40
Server PC IP : setip server 192.168.0.232
MV320 of Board IP : setip client 192.168.0.236
MAC Address : setmac 11-22-33-44-55-88
For downloading kernel : tftp zImage
For programming : nandwrite –j 0x80800000 0x40000 0x200000
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 41
For downloading file system : tftp rootfs.jffs2
For programming : nandwrite –j 0x80800000 0x240000 0x3000000
Rebooting
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 42
Done
MV320 Linux 2.6 Guide MicroVision
MV320 Linux 2.6 Guide 43
10. Doing Application of Camera
Connect Camera with Board as a picture before booting
Click “icon of camera