Presentation is loading. Please wait.

Presentation is loading. Please wait.

Install MontaVista™ Linux® PE 3.1 on ADI® Coyote IXP425 Adviser : Dr Cheng (鄭伯炤) Author : Shower Tsai (蔡鎮宇) :

Similar presentations


Presentation on theme: "Install MontaVista™ Linux® PE 3.1 on ADI® Coyote IXP425 Adviser : Dr Cheng (鄭伯炤) Author : Shower Tsai (蔡鎮宇) :"— Presentation transcript:

1 Install MontaVista™ Linux® PE 3.1 on ADI® Coyote IXP425 Adviser : Dr Cheng (鄭伯炤) Author : Shower Tsai (蔡鎮宇) E-mail : xshower@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 LAN port WAN port Phone port Mini PCI slot power Intel® IXP425™ Reset Flash USB 1.1 Rs-232

5 Development Environment Host computer Target board Serial (Initial setup) NFS mount Network (Most work) Hard device TFTP server zImage DHCP server NFS server MVL Mini com

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) 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 /tftpbootPress reset and restart Target HOSTTARGET

8 Initial process (2/2) 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 Turn on TARGET

9 Set up Host environment Install MVL 3.1

10 Install MontaVista™ Linux® Version 3.1 Host Binaries Insert CD1 : MontaVista™ 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.1:9999 “

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 CD2 : MontaVista™ 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 CD3 : MontaVista™ 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 CD4 : MontaVista™ Linux® Version 3.1 cross arm_xscale_be

22 Install MVL 3.1 target arm_xscale_be Insert CD5 : MontaVista™ Linux® Version 3.1 target arm_xscale_be

23 Install MVL 3.1 target arm_xscale_be

24 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 downloadwww.intel.com  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- coyote-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 <../ixp400LinuxKernel-BE-1_2.patch  patch -p1 <../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 ->IXP425 Implementation Options  Network device support->Ethernet (10 or 100Mbit)  Intel IXP425 Ethernet Device support

32 Start to compile zImage After “make menuconfig”,edit “.config” , patch Accesslibary CONFIG_IXP425_LIB=m make dep make zImage

33 Complete the compile We will have the “zImage” at /root/nplab/linux/arch/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 Ctrl+C 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/target *(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/inf o

57 The executable search path of Cross-development Application : /montavista/devkit/arm/xscale_be/target/bin  Target : /bin /opt/montavista/devkit/arm/xscale_be/target/usr/bin  Target : /usr/bin /opt/montavista/devkit/arm/xscale_be/target/sbin  Target : /sbin /opt/montavista/devkit/arm/xscale_be/target/usr/sbin  Target : /sbin /opt/montavista/devkit/arm/xscale_be/target/usr/share  Target : /usr/share Man Pages : /opt/montavista/devkit/arm/xscale_be/target/usr/share/man Info Pages : /opt/montavista/devkit/arm/xscale_be/target/usr/share/info

58 Set up executable search path of Target 、 Host and Cross-development Set up Host Application path : /opt/montavista/pro/host/bin PATH=$PATH:/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 PATH=$PATH:/opt/montavista/pro/devkit/arm /xscale_be/bin Cross development Application perfix : xscale_be- ( ex. 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/host/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/root/

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/drivers/ixp400/

69 Install NPE-Ethernet driver module Ismod ixp400.o Go to /lib/modules/2.4.18_mvl30-ixdp425/kernel/drivers/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/drivers/ixp400/ Ismod ixp400.o Ismod ixp400_codelets_ethAcc.o with operationType=1

73 Test codelet At same time, minicom~~ ixp0 擷取到由 Test 所產生的封包


Download ppt "Install MontaVista™ Linux® PE 3.1 on ADI® Coyote IXP425 Adviser : Dr Cheng (鄭伯炤) Author : Shower Tsai (蔡鎮宇) :"

Similar presentations


Ads by Google