Coder Social home page Coder Social logo

Comments (4)

wenhuizhang avatar wenhuizhang commented on July 22, 2024

I have updated qemu-system-arm with 2.9 version. And using qemu-system-arm -machine versatileab -cpu cortex-m4 ./lk.bin I got:

vagrant@vagrant-ubuntu-trusty-32:~/lk/build-lm3s6965evb-test$ qemu-system-arm -machine versatileab -cpu cortex-m4 ./lk.elf
WARNING: Image format was not specified for './lk.elf' and probing guessed raw.
         Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
         Specify the 'raw' format explicitly to remove the restrictions.
audio: Could not init `oss' audio driver
gtk initialization failed

Any suggestions for debugging traces please?

from lk.

nvll avatar nvll commented on July 22, 2024

from lk.

wenhuizhang avatar wenhuizhang commented on July 22, 2024

Is it possible to eliminate audio and graphics interfaces modules on little kernel while compiling please? I think I only need file system and network interfaces/the tcp/ip stack. I tried to pass -nographics flag, and got trace as following:

vagrant@vagrant-ubuntu-trusty-32:~/lk$ qemu-system-arm -machine versatileab -cpu cortex-m4 -m 64  -smp 1 -kernel ./build-qemu-m4-test/lk.elf -nographic
audio: Could not init `oss' audio driver
qemu-system-arm: Trying to execute code outside RAM or ROM at 0x08000e54
This usually means one of the following happened:

(1) You told QEMU to execute a kernel for the wrong machine type, and it crashed on startup (eg trying to run a raspberry pi kernel on a versatilepb QEMU machine)
(2) You didn't give QEMU a kernel or BIOS filename at all, and QEMU executed a ROM full of no-op instructions until it fell off the end
(3) Your guest kernel has a bug and crashed by jumping off into nowhere

This is almost always one of the first two, so check your command line and that you are using the right type of kernel for this machine.
If you think option (3) is likely then you can try debugging your guest with the -d debug options; in particular -d guest_errors will cause the log to include a dump of the guest register state at this point.

Execution cannot continue; stopping here.

from lk.

wenhuizhang avatar wenhuizhang commented on July 22, 2024

Hi, I think it is just a mapping issue, managed to match the board name and cpu name. Working fine now, however did not find tcp/ip stack .... I think probably I have to write myself, thanks :)

from lk.

Related Issues (20)

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.