Comments (13)
@hkjn I am not at work anymore, will check tomorrow. But it must come from my environment or armbian rather than this repo. Will keep you updated when I managed to fix it.
from bitbox-base.
I can confirm that building Armbian works on my machine using:
- Ubuntu 18.04 LTS
- Docker version 18.09.6, build 481bc77
- see
docker info
on Pastebin for more info
from bitbox-base.
At one point I also got
I am wondering if this is some qemu trickery going on.
from bitbox-base.
@NicolasDorier: Do you have some docs or other reference explaining what running multiarch/qemu-user-static:register
does?
Or for that matter, could you provide some context as to what you are trying to do here? :)
from bitbox-base.
@hkjn just trying to run make
multiarch/qemu-user-static:register
install qemu on the docker host. It solved some issues I had in the past when trying to use ARM32 on docker x64.
from bitbox-base.
@hkjn just trying to run make
Oh, okay. Is your host environment x86_64
+ Windows 10?
I'm not sure what's going wrong here; if /bin/bash
wasn't present inside the container used for the Armbian build, I'd expect that things would fail a lot sooner..
I'm not sure how installing qemu would change anything, but I'm not at all familiar with Windows environments and how / if it enters the mix / is required there. I'd be happy to learn more / take a look but would need to get access to an environment where I could repro the issue to start with.
If you want to dig further yourself, https://base.shiftcrypto.ch/os/build-details.html has some info about the overall Armbian build process and how we make use of it. I'll also try to unpack some stuff below in case it's helpful:
- our build.sh script calls armbian's compile.sh with the
docker
argument compile.sh
eventually kicks off thedocker run
command which starts the container performing the build in config-docker.conf
Based on the screenshot you posted, it looks like the Armbian build process fails during the chroot
to the OS image being built, which I believe is fairly late in the build process.
from bitbox-base.
@hkjn environment is on an ubuntu.
from bitbox-base.
mmmh ok. Yeah I read a lot about how armbian works. But this problem happened right after the switch to docker so I thought maybe something wrong here.
from bitbox-base.
@hkjn environment is on an ubuntu.
Okay, that's even weirder then..
My base system is on Debian, which should be quite similar. What does docker --version
/ docker info
produce?
from bitbox-base.
Oh, also, what version of Ubuntu? (Via e.g cat /etc/os-release
.)
from bitbox-base.
This fixed it: (on the host)
sudo apt-get install qemu binfmt-support qemu-user-static
That was the host that was not properly configured for running qemu. It may be wise to mention in the doc somewhere.
from bitbox-base.
This fixed it: (on the host)
sudo apt-get install qemu binfmt-support qemu-user-static
Glad you figured it out!
That was the host that was not properly configured for running qemu. It may be wise to mention in the doc somewhere.
I'd love to include a note in the docs, but I don't really understand how qemu enters into it at all, as I was unware that we had any dependency on it (direct or indirect).. do you have any hint for why qemu is needed to do the build in your environment?
from bitbox-base.
mmh I am unsure either. Afaik, binfmt-support
is the module which allow interpreter to register on the host.
qemu-user-static
are the interpreter statically compiled.
qemu
might actually register.
from bitbox-base.
Related Issues (18)
- Bitbox latest firmware doesn't work with tokens on MyEtherWallet HOT 1
- tor hidden service HOT 1
- Question: LIB_TAG sunxi-4.20 HOT 6
- Implement Base Supervisor HOT 3
- Regtest setup for c-lightning, bitcoind, electrs and middleware HOT 2
- Armbian build fails when writing image to /loop0p1
- Mender's image won't boot from SD card HOT 8
- Confusing option BASE_LOGINPW HOT 4
- Don't bundle "random" keys in armbian/base/config/ssh/authorized_keys HOT 1
- Mender alternatives HOT 2
- Base keeps trying to reconnect with online peer w/o success HOT 2
- master branch of mender-convert no longer works HOT 1
- Switch to Docker for Armbian build HOT 6
- Add integration tests to CI HOT 3
- De-dupe configs and systemd units between docs and source code HOT 3
- Decide on main CI system HOT 8
- Allow compiling Go binaries outside of GOPATH without Docker HOT 2
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 bitbox-base.