现在的位置: 首页 > 综合 > 正文

redboot启动过程

2013年10月03日 ⁄ 综合 ⁄ 共 3558字 ⁄ 字号 评论关闭
 

     

 

redboot 编译烧写过程

 
 

1. Install Tool Chain for RedBoot
     % tar zxfv i686-pc-linux-gnulibc2.2-x-xscale-elf.tar.Z
     % cp i686-pc-linux-gnulibc2.2-x-xscale-elf/ H-i686-pc-linux-gnulibc2.2 /opt/redhat/ xscale-030422
     % cd /opt/redhat/xscale-030422/H-i686-pc-linux-gnulibc2.2/bin
     % ln -s xscale-elf-gcc arm-elf-gcc
     % ln -s xscale-elf-ar arm-elf-ar
     % ln -s xscale-elf-objcopy arm-elf-objcopy
     % export PATH=/opt/redhat/xscale-030422/H-i686-pc-linux-gnulibc2.2/bin:$PATH
   
2. Building Redboot
 tar vxzf redboot-intel-xscale-031212.tar.gz
 cd redboot-intel-xscale-030618
 rm -rf build
 export PATH=/opt/redhat/xscale-030422/H-i686-pc-linux-gnulibc2.2/bin:$PATH
 which xscale-elf-gcc
 if [ ! "$?" = "0" ]; then
  echo "ERROR: xscale-elf-gcc not found in path, please install the toolchain correctly!"
  echo "PATH: $PATH"
  echo "See release notes for details."
  exit 1
 fi
 export TOPDIR=`pwd`
 export ECOS_REPOSITORY=${TOPDIR}/packages
 (cd packages/hal/arm/xscale; ln -s or ixp425; ln -s oc ixdp425)
 chmod +x ${ECOS_REPOSITORY}/ecosadmin.tcl
 mkdir ${TOPDIR}/build
 cd ${TOPDIR}/build
 sh ../host/configure
 make
 cp tools/configtool/standalone/common/ecosconfig .
 #cp ${TOPDIR}/olo_scripts/ecosconfig .
 ./ecosconfig new ixdp425 redboot
 ./ecosconfig import ${ECOS_REPOSITORY}/hal/arm/xscale/ixdp425/current/misc/redboot_ROM.ecm
 /////////////////////////////////////////
 Then add NPE Ethernet support      
 ecosconfig add intel_npe
 ecosconfig add ixdp425_npe
 /////////////////////////////////////////
 ./ecosconfig check
 ./ecosconfig tree
 make

3. Burning Redboot.bin (tool: Intel(R) XDB Debugger)
 Initialize memory
 Initialize flash
 write flash
 
4. Boot command
 fconfig
 load -v -r -m tftp -h <ip address> -b 0x200000 zImage
 load -v -r -m tftp -h <ip address> -b 0x1000000 initrd_media.gz
 exec -r 0x1000000 -s 0x12B2BDD -l 0x300000 -c "console=ttyS0,115200 mem=100M@0x0 root=/dev/ram0 init=/linuxrc" 0x200000

 
     

     
 

昵称:tangker

 
     

 

博客访问数

 
 
8507

 
     

 



 

抱歉!评论已关闭.