Deployment Instruction for Freescale MPC8313ERDB Board

Freescale MPC8313 ERDB 板部署指南
本文提供了一套详细的步骤来配置和部署 Freescal MPC8313 ERDB 板,包括网络连接设置、内存映射、引导加载程序和内核的闪存操作。
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

【博士论文复现】【阻抗建模、验证扫频法】光伏并网逆变器扫频与稳定性分析(包含锁相环电流环)(Simulink仿真实现)内容概要:本文档是一份关于“光伏并网逆变器扫频与稳定性分析”的Simulink仿真实现资源,重点复现博士论文中的阻抗建模与扫频法验证过程,涵盖锁相环和电流环等关键控制环节。通过构建详细的逆变器模型,采用小信号扰动方法进行频域扫描,获取系统输出阻抗特性,并结合奈奎斯特稳定判据分析并网系统的稳定性,帮助深入理解光伏发电系统在弱电网条件下的动态行为与失稳机理。; 适合人群:具备电力电子、自动控制理论基础,熟悉Simulink仿真环境,从事新能源发电、微电网或电力系统稳定性研究的研究生、科研人员及工程技术人员。; 使用场景及目标:①掌握光伏并网逆变器的阻抗建模方法;②学习基于扫频法的系统稳定性分析流程;③复现高水平学术论文中的关键技术环节,支撑科研项目或学位论文工作;④为实际工程中并网逆变器的稳定性问题提供仿真分析手段。; 阅读建议:建议读者结合相关理论教材与原始论文,逐步运行并调试提供的Simulink模型,重点关注锁相环与电流控制器参数对系统阻抗特性的影响,通过改变电网强度等条件观察系统稳定性变化,深化对阻抗分析法的理解与应用能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值