Comments (5)
I've followed the instructions in build_qemu.md but once i execute the
WORK_FOLDER_PATH=
pwd/src ./build_scripts/build-qemu.sh --deb64 --no-strip
command i end up with the following output. I've seen other issues with similar docker problems that suggest running an update/upgrade in the container but it's not like i can open a shell in the container since it starts up executing that build script right away. Is there a solution?
Trying to fix it from my part too.
The image used to build QEMU within the docker container is a debian 8/Jessie.
Debian repos for Jessie do not exist at debian.net. Thus the error.
The easy fix would be to change the build environment within ...../build_scripts/build-qemu.sh
That probably means creating a debian based docker image that has the requirements for building QEMU gnuarmeclipse
- gcc toolchain
- other dependencies (not gonna write them out, they are at https://wiki.qemu.org/Hosts/Linux#Building_QEMU_for_Linux)
OPTION B is to build it in your machine by installing all dependencies listed in https://wiki.qemu.org/Hosts/Linux#Building_QEMU_for_Linux
from p2im.
Quick comment on OPTION B
Building manually only works if you can set it up so "gnuarmeclipse" can be a target when executing
./configure --target-list=gnuarmeclipse --python=PATHTOPYTHON2.x
Else the build crashes on vl.c
#if defined(CONFIG_GNU_ARM_ECLIPSE)
const char *mcu_device = NULL;
(....)
#endif
Because the proper target is not selected.
So probably fixing OPTION A is preferable.
The docker containers in OPTION A are deprecated and the original dev is working on QEMU xPack.
So, we are left with the following choices:
OPTION A
Create a new environment/docker container that is a clone of those used by Ionescu.
With an added fix.
Employing archive.debian.org as a source so apt update does not crash.
OPTION B
Probably discarded
OPTION C
Try to find a way of building P2IM's QEMU through xPack
from p2im.
I see. Thank you for the pointers! If you manage to fix it, could you let me know? I'm of course going to try to do it myself but my docker/linux knowledge is limited so it might take a while
from p2im.
I see. Thank you for the pointers! If you manage to fix it, could you let me know? I'm of course going to try to do it myself but my docker/linux knowledge is limited so it might take a while
Got the fixes up in my github account
https://github.com/xgandiaga/DRIVERS/tree/main
I made the build scripts point to new docker images I created in my dockerhub account.
Those point to archive.debian.org instead of deb.debian.org
Thus the apt updates don't crash
And the build goes through
(I'll fix the Licensing issues when I can. I kinda conjured up a fix from thin air quickly without looking to the licenses)
from p2im.
Hi @xgandiaga and @valuta1995, please consider submitting a pull request with the solution to the issue.
from p2im.
Related Issues (20)
- How to get the qemu log information, when afl is running. HOT 1
- me.py error "Stage 1 returned due to unexpected reasons!" HOT 7
- KeyError:255, QEMU's return value is not found HOT 2
- Encounter a problem: get qemu log when fuzzing and then can not find crash anymore HOT 2
- Qemu hangs when running unit test
- What is the "aup" mean? HOT 1
- Generated model can fail validation when loaded HOT 1
- When using cov.py, should I copy my firmware?
- Memory limit HOT 5
- OSError: [Errno 8] Exec format error
- Need some help on 'Analyzing crashing'
- Steering Control stalls on round 0 HOT 2
- Where to locate peri-mod/peri-mod.h HOT 1
- Cannot find the repo HOT 1
- Crash Analysis HOT 1
- How to compile using ARMCC HOT 4
- Can p2im only be used to test devices with source code? HOT 1
- Dose p2im support the firmware that uses the SD card? HOT 1
- QEMU image librt: undefined symbol: __clock_nanosleep HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p2im.