zoukankan      html  css  js  c++  java
  • S3C6410移植uboot2010.3(4)uboot的dnw功能添加

      由于我电脑win7上的DNW-USB驱动一直装不上,所以选择在ubuntu下完成dnw的操作实现与uImage的引导。

      

      先给开发板的uboot添加dnw功能

      具体文件可以git这里

    https://github.com/plinx/uboot_dnw

      1、将cmd_usbd.c拷贝到common目录下

      2、添加规则到/common/Makefile

    # core command
    ...
    COBJS-y += cmd_usbd.o

      3、将usbd-otg-hs.h,usbd-otg-hs.c拷贝到u-boot/cpu/arm1176/s3c64xx/

      4、regs.h,s3c64x0.h 拷贝到u-boot/include/

      5、修改include/configs/smdk6410.h文件,加入下面两句

    #define CONFIG_S3C_USBD
    #define USBD_DOWN_ADDR           0xc0000000

      成功导入后,如下图

      出现了新的问题,先不管,help看一下

      dnw功能已经加入了。

      现在反过来解决Signal # 8 caught问题:

      修改/cpu/arm1176/s3c64xx/timer.c文件如下内容:

    ulong get_timer_masked(void)
    {
            unsigned long long res = get_ticks();
    //      do_div (res, (timer_load_val / (100 * CONFIG_SYS_HZ)));
            return res;
    }

      重新烧写后如图:

      下一篇讲Dnw for linux(ubuntu)。

  • 相关阅读:
    四则运算 calc()
    如何创建width与height比例固定的元素
    eslint规则 中文备注
    使用gulp构建工具
    JavaScript 给表格排序
    【转】grunt动态生成文件名
    vim正则表达式(转)
    正则表达式30分钟入门教程(转)
    hdu 1874 Dijkstra算法
    centos7.4安装mysql
  • 原文地址:https://www.cnblogs.com/plinx/p/3019860.html
Copyright © 2011-2022 走看看