zoukankan      html  css  js  c++  java
  • 利用qemu学习嵌入式linux(三)——MIPS底层开发

    学习的时候,怎么折腾都行。还是打算先debug一遍uboot,熟悉下mips启动流程,然后转到win7下尝试编写几个小程序。

    ---------------

    linux下面:

    sudo dnf install glibc.i686

    然后去https://sourcery.mentor.com/GNUToolchain/release3136,下载一个mips-elf-gcc

    安装:

    ./mips-2015.11-33-mips-sde-elf.bin -console

    同样修改makefile,

    1 ARCH ?= mipsel
    2 CROSS_COMPILE ?= /home/llp/codebench/bin/mips-sde-elf-

    然后

    make maltael_defconfig

    make就编译成功了

    同样使用qemu,不过发现uboot卡死了

    [llp@llp u-boot-2015.10]$ qemu-system-mipsel -M malta -nographic -kernel u-boot
    
    
    U-Boot 2015.10 (Jan 10 2016 - 08:43:41 -0500)
    
    Board: MIPS Malta CoreLV
    DRAM:  256 MiB

    不过,这样并不影响我们继续使用codeblocks分析u-boot的启动流程。

    mips有些奇怪,uboot启动后,pc会在0xbfc00000和0xbe000000两处来回跳转,所以

    add-symbol-file u-boot 0xbfc00000

    弄个双符号表,这样就能单步了

  • 相关阅读:
    502 bad gateway错误的网关
    nodejs发展
    edgejs
    websocket nodejs实例
    nodejs原码
    node案例
    node 与php整合
    node c#
    jquery
    express
  • 原文地址:https://www.cnblogs.com/leop/p/5119122.html
Copyright © 2011-2022 走看看