Install MontaVista - PowerPoint PPT Presentation

1 / 73
About This Presentation
Title:

Install MontaVista

Description:

Auto decompress zImage and initial MontaVista Linux OS. MVL OS get network information from DHCP ... Check dhcp.leases. If not, use 'touch' Set up DHCP server ... – PowerPoint PPT presentation

Number of Views:179
Avg rating:3.0/5.0
Slides: 74
Provided by: insaCom
Category:

less

Transcript and Presenter's Notes

Title: Install MontaVista


1
Install MontaVista Linux PE 3.1 on ADI Coyote
IXP425
  • AdviserDr Cheng(???)
  • AuthorShower Tsai(???)
    E-mailxshower_at_gmail.com

2
Outline
  • Introduction
  • Set up Host environment
  • Compile kernel Image
  • Set up Target
  • Set up Server
  • Hello world
  • Kernel module
  • IXP400 Software Codelet

3
Introduction
  • ADI coyote ixp425
  • Environment
  • Prepare

4
ADI Coyote IXP425
Flash
Rs-232
Reset
Intel IXP425
USB 1.1
Phone port
power
WAN port
Mini PCI slot
LAN port
5
Development Environment
Hard device
  • TFTP server
  • zImage
  • DHCP server
  • NFS server

NFS mount
Network (Most work)
MVL
Mini com
Target board
Serial (Initial setup)
Host computer
6
Preparing Development System
  • OS
  • Mandrake 8.1 (on x86)
  • Red Hat 7.3 or 9.0 (on x86)
  • SuSE 9.0 (on x86)
  • Solaris 8 (on Sparc)
  • Windows 2000/XP
  • MontaVista Linux PE 3.1
  • File
  • ipl_ixp400accesslibrarywithcrypto-1_5.zip
    (include access library and drivers )
  • ixp400linuxethernetdriverpatch-1_2.zip
  • ixp400linuxintegrationpatch-1_2.zip (For kernel
    path and config CONFIG_IXP425_ETH)
  • ipl_ixp400npelibrarywithcrypto-1_5.zip

7
Initial process (1/2)
HOST
TARGET
Use Minicom / hyper terminal logon Redboot
Install Linux 7.2 / 7.3 with all packages and
shut down the firewall
Configure TFTP?DHCP?NFS server
Press Ctrl C to stop Redboot execute script
Install MVL PE 3.1 Host Binaries?arm_xscale_be ?
intel-ixdp425 LSP on Host and compile zImage
Edit script and network configuration
copy the zImage to /tftpboot
Press reset and restart Target
8
Initial process (2/2)
Turn on TARGET
Target execute script
Target download zImage from TFTP
Auto decompress zImage and initial MontaVista
Linux OS
MVL OS get network information from DHCP
MVL OS connect to NFS server
Complete the process and then enter root to use
the system
9
Set up Host environment
  • Install MVL 3.1

10
Install MontaVista Linux Version 3.1 Host
Binaries
  • Insert CD1MontaVista Linux Version 3.1 Host
    Binaries
  • Enter /mnt/cdrom/ install to install MontaVista
    Linux

11
Install MVL 3.1 Host Binaries
  • Open Web Browser, fill the URL with
    http//127.0.0.19999

12
Install MVL 3.1 Host Binaries
  • License agreement

13
Install MVL 3.1 Host Binaries
  • Select full installation

14
Install MVL 3.1 Host Binaries
  • Make sure everything is right and the press next

15
Install MVL 3.1 Development Environment
  • Insert CD2MontaVista Linux Version 3.1
    Development Environment

16
Install MVL 3.1 Development Environment
  • Agree license

17
Install MVL 3.1 Development Environment
  • Make sure everything is right and the press next

18
Install MVL 3.1 Development Environment
  • Installing..........

19
Install MVL 3.1 ADI coyote LSP arm_xscale_be
  • Insert CD3MontaVista Linux Version 3.1 ADI
    Coyote LSP arm_xscale_be

20
Install MVL 3.1 Development Environment
  • Select ADI coyote Reference Platform

21
Install MVL 3.1 cross arm_xscale_be
  • Insert CD4MontaVista Linux Version 3.1 cross
    arm_xscale_be

22
Install MVL 3.1 target arm_xscale_be
  • Insert CD5MontaVista Linux Version 3.1 target
    arm_xscale_be

23
Install MVL 3.1 target arm_xscale_be
24
Install MVL 3.1 target arm_xscale_be
  • Select skip

25
Install MVL 3.1 target arm_xscale_be
  • Finish

26
Compile kernel Image
  • Get the file
  • Patch
  • Compile zImage

27
File you need
  • go www.intel.com and download
  • ipl_ixp400accesslibrarywithcrypto-1_5.zip
  • ipl_ixp400npelibrarywithcrypto-1_5.zip
  • ixp400linuxethernetdriverpatch-1_2.zip
  • ixp400linuxintegrationpatch-1_2.zip
  • Unzip them to /root/nplab (work dir)

28
Patch the file
  • Copy the file /opt/montavista/pro/devkit/lsp/adi-c
    oyote-arm_xscale_be/linux-2.4.20_mvl31 linux
  • Here has the source code of the kernel we need
    and then create a soft link linux point to the
    copy directory

29
Patch the file
  • Fix ixp400_xscale_sw/buildUtils/environment.linux.
    sh
  • linuxbe_KERNEL_DIR/root/nplab/linux
  • IX_XSCALE_SW/root/nplab/ixp400_xscale_sw
  • execute . environment.linux.sh

30
Patch the file
  • Go to /root/nplab/linux
  • patch -p1 lt ../ixp400LinuxKernel-BE-1_2.patch
  • patch -p1 lt ../ixp400LinuxEthernetDriver-1_2.patch
  • Go to /root/nplab
  • Use ixp425_eth_update_nf_bridge-1_2.patch to fix
    ixp425_eth.c

31
Start to compile zImage
  • Go to /root/nplab/linux
  • make menuconfig
  • System Type -gtIXP425 Implementation Options
  • Network device support-gtEthernet (10 or 100Mbit)
  • Intel IXP425 Ethernet Device support

32
Start to compile zImage
  • After make menuconfig ,edit .config,patch
    Accesslibary CONFIG_IXP425_LIBm
  • make dep
  • make zImage

33
Complete the compile
  • We will have the zImage at /root/nplab/linux/arc
    h/arm/boot
  • Copy zImage to /tftpboot

34
Set up Target
  • Configure moinicom
  • Edit Script

35
Configure minicom
  • Logon Linux by root
  • Minicom s to configure minicom

36
Configure minicom
  • configure serial port by below

37
Configure minicom
  • Exit Serial port setup and enter Modem and
    dialing

38
Configure minicom
  • Clean A?B?K fields

39
Configure minicom
  • Save setup as df1
  • Select exit to exit and connect to target
  • Or select exit from minicom to exit

40
Edit Script
  • Restart target.
  • Press CtrlC to redboot

41
Edit Script
  • At RedBoot Command line,enter fconfig to edit
    Script and network

42
Edit Script
zImage ??
43
Edit Script
  • Set Script waiting time before execute(for
    example, wait 3 seconds )

44
Edit Script
  • Set up your network

45
Edit Script
  • Save and restart

46
Set up Server
  • TFTP server
  • DHCP server
  • NFS server

47
Set up TFTP server
  • Edit /etc/xinetd.d/tftp
  • Change the disable field from yes to no

48
Set up TFTP server
  • After save the file , execute etc/init.d/xinetd
    reload
  • zImage will be copied to /tftpboot

49
Set up DHCP server
  • Check dhcp.leases
  • If not, use touch

50
Set up DHCP server
  • Edit /etc/dhcp.conf

51
Set up DHCP server
  • Restart DHCP server
  • Run DHCP server when boot

52
Set up NFS server
  • Edit /etc/exports
  • Add /opt/montavista/pro/devkit/arm/xscale_be/targ
    et (rw,no_root_squash,no_all_squash)
  • Restart NFS

53
Set up NFS server
  • Run NFS server when boot /sbin/chkconfig nfs on
  • Sync NFS daemon/usr/sbin/exportfs -ra

54
Hello world
  • Set up executable search path
  • Compile a program

55
The executable search path of Target
  • ??Host???MontaVista Linux??
  • Application/opt/montavista/host/bin
  • Man Pages/opt/montavista/host/man
  • Info Pages/opt/montavista/host/info

56
The executable search path of host
  • ??Host???????Target??????
  • Application/opt/montavista/devkit/arm/xscale_be/
    bin
  • Man Pages/opt/montavista/devkit/arm/xscale_be/ma
    n
  • Info Pages/opt/montavista/devkit/arm/xscale_be/i
    nfo

57
The executable search path of Cross-development
  • Application/montavista/devkit/arm/xscale_be/targ
    et/bin?Target/bin/opt/montavista/devkit/arm/xsc
    ale_be/target/usr/bin?Target/usr/bin/opt/montav
    ista/devkit/arm/xscale_be/target/sbin?Target/sbi
    n/opt/montavista/devkit/arm/xscale_be/target/usr/
    sbin?Target/sbin/opt/montavista/devkit/arm/xsca
    le_be/target/usr/share?Target/usr/share
  • Man Pages/opt/montavista/devkit/arm/xscale_be/ta
    rget/usr/share/man
  • Info Pages/opt/montavista/devkit/arm/xscale_be/t
    arget/usr/share/info

58
Set up executable search path of Target?Host and
Cross-development
  • Set up Host Application path/opt/montavista/pro/h
    ost/bin
  • PATHPATH/opt/montavista/pro/host/bin
  • Then we can use the tool MontaVista Linux
    provide(ex. mvl-rpm)

montavista
59
Set up executable search path of Target?Host and
Cross-development
  • Set up Application path of Cross
    development/opt/montavista/pro/devkit/arm/xscale_
    be/bin
  • PATHPATH/opt/montavista/pro/devkit/arm/xscale_b
    e/bin
  • Cross development Application perfixxscale_be-(e
    x. xscale_be-gcc)

montavista
60
Set up executable search path of Target?Host and
Cross-development
  • Edit /etc/profile
  • Add Host Application path/opt/montavista/pro/hos
    t/bin
  • Add Cross development application
    path/opt/montavista/pro/devkit/arm/xscale_be/bin

61
Hello world
  • Create a directory myapplication
  • Edit a progream hellow.c

62
Hello world
  • Use xscale_be-gcc to compile your c file
  • Copy it to the directory where target mount
  • /opt/montavista/pro/devkit/arm/xscale_be/target/ro
    ot/

63
Execute the binary on target
  • Logon on target and execute

64
Kernel module
  • Create kernel module
  • Install NPE-Ethernet driver

65
Create kernel module
  • First, check the environment
  • Go to /root/nplab and then use make module to
    create kernel module

66
Create kernel module
  • Execute make modules_install INSTALL_MOD_PATH/
  • Install modules to the directory where target
    mount

67
Install NPE-Ethernet driver module
  • Logon on target and use lsmod to show what
    modules have been loaded use rmmod to remove
    the module

68
Install NPE-Ethernet driver module
  • Go to /lib/modules/2.4.20_mvl31-coyote/kernel/driv
    ers/ixp400/

69
Install NPE-Ethernet driver module
  • Ismod ixp400.o
  • Go to /lib/modules/2.4.18_mvl30-ixdp425/kernel/dri
    vers/net
  • Ismod ixp425_eth.o

70
Configure ixp0
  • Configure the ip of ixp0
  • At same time, minicom

71
IXP400 Software Codelet
  • Install a codelet
  • Test the codelet

72
Install ixp400 software codelet driver module
  • Go to /lib/modules/2.4.18_mvl30-ixdp425/kernel/dri
    vers/ixp400/
  • Ismod ixp400.o
  • Ismod ixp400_codelets_ethAcc.o with
    operationType1

73
Test codelet
  • At same time , minicom

ixp0????Test??????
Write a Comment
User Comments (0)
About PowerShow.com