Code Monkey home page Code Monkey logo

linux0.11_to_arm's Introduction

环境配置

//下载交叉编译库
sudo apt install gcc-arm-linux-gnueabihf
//下载QEMU
sudo apt install qemu-system-arm
//下载gdb
sudo apt install gdb-multiarch

启动项解释

	qemu-system-arm \
		-machine virt,gic-version=3 \
		-m 3G \
		-cpu cortex-a7 \
		-nographic \
		-kernel Image \
		-serial mon:stdio \
		-append "console=ttyAMA1 root=/dev/vda rw" \
		-s -S
  • gic-version=3: cortex-a7架构理应用gic-version=2,但发现qemu对gic模拟好像一直出了啥问题(地址0x8000000-0x8010000),在GIC_init()获取GICD_TYPER时进入Data abort, DFSR代码为0x8,即Synchronous external abort, 怀疑是qemu的模拟出问题
  • -kernel 默认将地址放到0x40010000中执行
  • -s: 默认让QEMU监听localhost:1234
  • -S: 一开始停止cpu工作,方便调试
  • -serial mon:stdio 把控制台作为uart输出

调试

  1. 在terminal中先make qemu启动qemu
  2. 再开一个terminal, 输入gdb-multiarch -x init.gdb 或者 make tmux

linux0.11_to_arm's People

Contributors

haosonn avatar deerinforestovo avatar

Stargazers

 avatar hank avatar  avatar Sicheng Zhou avatar  avatar

Watchers

 avatar  avatar

linux0.11_to_arm's Issues

is this prj finished

i just pull down this prj,but i find some where not modify for arm-a7,
is this prj finished or not?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.