Deployment Instruction for Freescale MPC8313ERDB Board

Deployment Instruction for Freescale MPC8313ERDB Board
-----------------------------------------


1.  General Settup


    Connect the board to the network via the eTSEC2 or any one of eTSEC1 ports.
 
    Connect the board to your host machine via the serial port (upper one of P11).
    Setup the terminal baudrate 115200bps, 8-N-1, no flow control.


    Verify the dip switches and jumpers.
    The following setting will boot using a 66 MHz crystal, 
    the image at 0xFE000000 and the HRCW in NOR flash.


SW3    SW4
        +------+    +------+
        |      |    | **** |
        | **** |    |      |
        +------+ ON    +------+ ON
 4321      4321

    (where the '*' indicates the position of the tab of the switch.)


    Connect the ATX power supply to the board and 5V_SB LED will light.
    Press the S2 button to power-on the board.
    It need to be pressed twice for the first time.
    All the voltage indicators and eight LEDs near the S2 will light.


    The U-boot will show clock and memory setting 
Coherent System Bus:  133 MHz
            Core:             266 MHz
        Local Bus Controller: 133 MHz
        Local Bus:             66 MHz
        DDR:                  266 MHz
        SEC:                   44 MHz
        I2C1:                 133 MHz
        I2C2:                 133 MHz
        TSEC1:                133 MHz
        TSEC2:                133 MHz
        USB MPH:                0 MHz
        USB DR:                44 MHz


2. Memory Map of the board

        0x0000_0000 0x07ff_ffff DDR 128M
        0x8000_0000 0x8fff_ffff PCI MEM 256M
        0x9000_0000 0x9fff_ffff PCI_MMIO 256M
        0xe000_0000 0xe00f_ffff IMMR 1M
        0xe200_0000 0xe20f_ffff PCI IO 16M
        0xe280_0000 0xe280_7fff NAND FLASH 32K
        0xfe00_0000 0xfe7f_ffff NOR FLASH 8M


3.  Flash U-Boot


3.1 Flash U-Boot using U-Boot


    Copy the u-boot.bin from <install_path>/ltib/rootfs/boot/
    to the /tftpboot directory on your host.
    The u-boot.bin is built for loading from the bottom of Flash
    (TEXT_BASE = 0xFE000000)


    Download and burn U-Boot image:
    tftp 100000 /tftpboot/u-boot.bin
    =>protect off all
    =>erase fe000000 fe06ffff
    =>cp.b 100000 fe000000 $filesize


    Or using easy command in our u-boot
    =>run burn_uboot


3.2 Flash U-Boot using CodeWarrior and PowerTAP Pro
    
    If the HRCW has been erased off from flash,
    using this switch setting


SW3 SW4
+------+ +------+
| ** * | | **** |
|   *  | |      |
+------+ ON +------+ ON
 4321  4321


    Connect JTAG port of PowerTAP Pro with the board.
    Connect USB/ethenet port of PowerTAP pro correctly.
    
    Power on the board and PowerTAP Pro.


    Create a 8313E project with CodeWarrior wizard.


    In IDE, Tools->Flash Programmer menu
Target Configuration =>
Proecessor: 83xx, Target: 8313;
Target Intialization: 8313evb_init.cfg (coming from the iso).
Flash Configuration =>
Flash Memory Base Address 0xfe000000
Device AM29LV640D, Organization 4Mx16x1.
Erase/Blank Check =>
erase flash from 0xfe000000 to 0xfe7fffff.
  Program/Verify =>
File Type: Binary/Raw
Formate and apply address offset: 0x0


4.   Downloading and Flashing vsc7385 L2 Switch Image for eTSEC1(TSEC0)


    Copy the vsc7385 firmware image "vsc2bin" from <install_path> /ltib/rootfs/lib/firmware/
    to the /tftpboot directory on your host.


    Copy the vsc7385 loader app "vsc7385_load.bin" from <install_path> /ltib/rootfs/boot/
    to /tftpboot directory on your host.


    Download the vsc7385 firmware image
    =>tftp 100000 /tftpboot/vsc2bin


    Burn it to flash at address 0xfe7fe000.
    =>protect off all
    =>erase fe7fe000 fe7fffff
    =>cp.b 100000 fe7fe000 $filesize
    =>protect on all


    Download and run the loader application
    =>tftp 40000 /tftpboot/vsc7385_load.bin
    =>go 40004


    Or using easy command in our u-boot
    =>run burn_vscfw
    =>run run_vscld


5.4 Deployment


5.4.1 NFS Deployment
    =>setenv ipaddr 10.193.20.184
    =>setenv eth1addr 00:E0:0C:00:7E:21
    =>setenv serverip 10.193.20.61
    =>setenv gatewayip 10.193.20.254


    =>setenv bootargs root=/dev/nfs rw nfsroot=10.193.20.61:/tftpboot/10.193.20.184 ip=10.193.20.184:10.193.20.61:10.193.20.254:255.255.255.0:mpc8313erdb :eth1:off panic=1 console=ttyS0,115200
    =>saveenv


    Or use easy command in our u-boot.
    =>run nfsargs addip addtty


    Copy the kernel image from <install_path>/ltib/rootfs/boot/uImage
    to the /tftpboot directory on your host.


    Download the Linux kernel binary to DDR ram.
    =>tftp 200000 /tftpboot/uImage
    
    Download the dtb to DDR ram.
    =>tftp 400000 /tftpboot/mpc8313erdb.dtb
    
    To boot linux, issue the following uboot command.
    =>bootm 200000 - 400000


5.4.2 RAMDISK deployment


    =>setenv ipaddr 10.193.20.184
    =>setenv serverip 10.193.20.61
    =>setenv gatewayip 10.193.20.254
    =>setenv bootargs root=/dev/ram console=ttyS0,115200
    =>saveenv


    Or using easy command in our u-boot
    =>run ramargs addtty


    Copy the kernel image from <install_path> /ltib/rootfs/boot/uImage
    to the /tftpboot directory on your host.


    Copy the ramdisk image from <install_path> /ltib/rootfs.ext2.gz.uboot
    to the /tftpboot directory on your host.


    Download the Linux kernel binary to RAM.
    =>tftp 200000 /tftpboot/uImage
    Burn the Linux kernel to flash
    =>protect off all
    =>erase fe100000 fe2fffff
    =>cp.b 200000 fe100000 $filesize


    Download the Ramdisk file system image to RAM.
    =>tftp 1000000 /tftpboot/rootfs.ext2.gz.uboot
    Burn the ramdisk image to flash.
    =>erase fe300000 fe6fffff
    =>cp.b 1000000 fe300000 $filesize


    Download the dtb to DDR ram
    =>tftp 400000 /tftpboot/mpc8313erdb.dtb
    Burn the dtb to flash
    =>erase fe700000 fe73ffff
    =>cp.b 400000 fe700000 $fileseize
    => protect on all


    If not burn kernel and ramdisk to the flash, boot the kernel now
    =>bootm 200000 1000000 400000 
    
    Or


    Boot the kernel
    =>bootm fe100000 fe300000 fe700000 ---production


5.4.3 JFFS2 deployment
    =>setenv ipaddr 10.193.20.184
    =>setenv eth1addr 00:E0:0C:00:7E:21
    =>setenv serverip 10.193.20.61
    =>setenv gatewayip 10.193.20.254
    =>setenv bootargs root=/dev/mtdblock2 rootfstype=jffs2 rw console=ttyS0,115200
    =>saveenv


    Copy the kernel image from <install_path> /ltib/rootfs/boot/uImage
    to the /tftpboot directory on your host.


    Copy the JFFS2 image from <install_path> /ltib/rootfs.jffs2
    to the /tftpboot directory on your host.


    Download the Linux kernel image to RAM
    =>tftp 200000 /tftpboot/uImage
    Burn the Linux kernel to flash
    =>protect off all
    =>erase fe100000 fe2fffff
    =>cp.b 200000 fe100000 $filesize




    Download the JFFS2 file system image to RAM
    =>tftp 1000000 /tftpboot/rootfs.jffs2
    Burn the JFFS2 image to flash
    =>erase fe300000 fe6fffff
    =>cp.b 1000000 fe300000 $filesize


    Download the dtb to DDR ram
    =>tftp 400000 /tftpboot/mpc8313erdb.dtb
    Burn dtb to flash
    =>erase fe700000 fe73ffff
    =>cp.b 400000 fe700000 $fileseize
    => protect on all


    Boot linux 
    =>bootm 200000 - 400000


    Or


    Boot the linux
    =>bootm fe100000 - fe700000 ---production


6.  Notes
    The U-Boot is not yet supported booting from NAND flash

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值