Installation Guide for MV320 (Linux 2.6)

Transcription

Installation Guide for MV320 (Linux 2.6)
MV320 Linux 2.6 Guide
MicroVision
Installation Guide for MV320
(Linux 2.6)
MicroVision.,Cd.Ltd
MV320 Linux 2.6 Guide
1
MV320 Linux 2.6 Guide
MicroVision
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
2
MV320 Linux 2.6 Guide
MicroVision
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
3
MV320 Linux 2.6 Guide
MicroVision
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
4
MV320 Linux 2.6 Guide
MicroVision
▶ 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
5
MV320 Linux 2.6 Guide
MicroVision
2. Packages
Item
Description
PXA320(806MHz), DDR2(128MB), NAND Flash(128MB),
Board
Base Board
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.
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
6
MV320 Linux 2.6 Guide
MicroVision
Layout
-Front-
MV320 Linux 2.6 Guide
7
MV320 Linux 2.6 Guide
MicroVision
-Back-
MV320 Linux 2.6 Guide
8
MV320 Linux 2.6 Guide
MicroVision
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)
Windows CE
Description
Toolchain
Platform Builder 5.0 version
BSP
Windows CE .net 5.0 version
Toolchain
Linux
(arm-linux) gcc
4.1.1 version
(arm-linux) glibc
2.5 version
(arm-linux) binutil
2.16.92 version
Boot Loader
Blob 2.0.5-pre3 version
Kernel
Embedded Linux Kernel 2.6.14.6 version
File System
JFFS2
MV320 Linux 2.6 Guide
9
MV320 Linux 2.6 Guide
MicroVision
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
10
MV320 Linux 2.6 Guide
MicroVision
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
11
MV320 Linux 2.6 Guide
MicroVision
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
12
MV320 Linux 2.6 Guide
MicroVision
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
13
MV320 Linux 2.6 Guide
MicroVision
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
14
MV320 Linux 2.6 Guide
MicroVision
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
15
MV320 Linux 2.6 Guide
MicroVision
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
16
MV320 Linux 2.6 Guide
MicroVision
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
17
MV320 Linux 2.6 Guide
MicroVision
Run “w_XDB_u_3.2.004.exe”
Click “NEXT”
MV320 Linux 2.6 Guide
18
MV320 Linux 2.6 Guide
MicroVision
Click “Marvell(R) eXtreme Debugger 3.2”
Click “Install Now”
MV320 Linux 2.6 Guide
19
MV320 Linux 2.6 Guide
MicroVision
Click “NEXT”
Select “I accept the terms in the license agreement” and then click “NEXT”
MV320 Linux 2.6 Guide
20
MV320 Linux 2.6 Guide
MicroVision
Click “NEXT”
Click “Browse” for loading license
MV320 Linux 2.6 Guide
21
MV320 Linux 2.6 Guide
MicroVision
Select “marvell_dbg_30_June_2009.lic” and then click “Open”
Click “NEXT”
MV320 Linux 2.6 Guide
22
MV320 Linux 2.6 Guide
MicroVision
Click “Install”
Click “OK”
MV320 Linux 2.6 Guide
23
MV320 Linux 2.6 Guide
MicroVision
Click “NEXT”
Click “NEXT”
MV320 Linux 2.6 Guide
24
MV320 Linux 2.6 Guide
MicroVision
Click “NEXT”
Click “Install”
MV320 Linux 2.6 Guide
25
MV320 Linux 2.6 Guide
MicroVision
Click “Finish”
Click “Yes”
MV320 Linux 2.6 Guide
26
MV320 Linux 2.6 Guide
MicroVision
Select “Yes, I want to restart computer now” and then click “Finish”
MV320 Linux 2.6 Guide
27
MV320 Linux 2.6 Guide
MicroVision
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
28
MV320 Linux 2.6 Guide
MicroVision
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
29
MV320 Linux 2.6 Guide
MicroVision
After make sure options, Click “OK”
Click “Start”
MV320 Linux 2.6 Guide
30
MV320 Linux 2.6 Guide
MicroVision
XDB
Click “Icon”
MV320 Linux 2.6 Guide
31
MV320 Linux 2.6 Guide
MicroVision
Make sure “options”
MV320 Linux 2.6 Guide
32
MV320 Linux 2.6 Guide
MicroVision
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
33
MV320 Linux 2.6 Guide
MicroVision
Programming Boot
Set up offset number 0 and then click “…”
MV320 Linux 2.6 Guide
34
MV320 Linux 2.6 Guide
MicroVision
Select “boot.bin” and then click “Open”
MV320 Linux 2.6 Guide
35
MV320 Linux 2.6 Guide
MicroVision
Click “Burn”
MV320 Linux 2.6 Guide
36
MV320 Linux 2.6 Guide
MicroVision
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
37
MV320 Linux 2.6 Guide
MicroVision
Set up HyperTerminal
Start -> Programs -> Accessories -> Communications -> Run “HyperTerminal”
Setting port
(115200/8/none/1/none)
MV320 Linux 2.6 Guide
38
MV320 Linux 2.6 Guide
MicroVision
Turn on MV320 of Board
As soon as turn on the power of button. Appears boot menu. “Enter Key”
MV320 Linux 2.6 Guide
39
MV320 Linux 2.6 Guide
MicroVision
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
40
MV320 Linux 2.6 Guide
MicroVision
For downloading file system : tftp rootfs.jffs2
For programming : nandwrite –j 0x80800000 0x240000 0x3000000
Rebooting
MV320 Linux 2.6 Guide
41
MV320 Linux 2.6 Guide
MicroVision
Done
MV320 Linux 2.6 Guide
42
MV320 Linux 2.6 Guide
MicroVision
10. Doing Application of Camera
Connect Camera with Board as a picture before booting
Click “icon of camera
MV320 Linux 2.6 Guide
43

Similar documents

Poster I

Poster I It is my great pleasure to welcome all of the participants to The International Conference of The Korean Ceramic Society for the 50th anniversary. On behalf of the organizing committee, first of al...

More information