zoukankan      html  css  js  c++  java
  • GM8180启动过程调试 分类: arm-linux-Ubuntu 2013-07-22 16:31 276人阅读 评论(0) 收藏

    1.     burnin下的boot.s

       0:    boot start        1

    ;   1:    Init SMC configuration OK

    ;   2:    Init DDR configuration OK

    ;   3:    SDRAM Error (compare ROM and SDRAM code)

    ;   4:    SDRAM OK (compare ROM and SDRAM code)

    ;   5:    ReMAP OK

    ;   6:    Copy vector table OK

    ;   7:    Init Stack OK

    ;   8:    Init BSS OK

    ;   9:    hardware init OK

         ;start to go to main

         MOV      r0, #0             ; set argc to 0

         MOV      r1, #0             ; and argv to NUL       

         BL      fLib_DisableInt 

         BL       main           ; Call main

    2.     进入00_mai.c

       选择启动模式菜单

       current_tick = fLib_CurrentT1Tick();

     

        switch(go_to_where){

            case 0://linux

                boot_func(CPE_LINUX_KERNEL_BASE);

                break;

            case 1: //armboot

                boot_func(CPE_BOOT_BASE);

                break;

            default://2

                break;

    }

    while(1)//burn in

        {

            struct burnin_cmd *burnin_temp=burnin_cmd_value;

            printf(" Command>>");

    }

    #define CPE_BURNIN_BASE         0x80000000

    #define CPE_BOOT_BASE           0x80200000

    #define CPE_LINUX_KERNEL_BASE   0x80240000

    版权声明:本文为博主原创文章,未经博主允许不得转载。

  • 相关阅读:
    服务器基础安全配置
    PhpStorm服务激活
    MySQL快速生成本地测试数据
    mac上php版本切换
    保存修改数据记录(数据库)
    java面向对象整理
    用JavaScript实现表格编辑器
    循环之 打鱼还是晒网这是个问题
    循环之圆周率计算次数
    JAVASE 循环 之 计算各位上数字的和
  • 原文地址:https://www.cnblogs.com/mao0504/p/4706884.html
Copyright © 2011-2022 走看看