libera/#devuan-arm/ Friday, 2021-07-09

adam_free2airtried again with make cleanup, then make menu -->all gives chroot: failed to run command ‘/debootstrap/debootstrap’: Exec format error https://pastebin.com/swNAqGr2 with userdata.txt https://pastebin.com/QH011n7900:46
rrqmultiarch?00:48
adam_free2airrrq: ? sorry, don't understand the comment?00:52
rrqit looked like the "host" and the "chroot" are of different architectures, so the "host" wuold need multiarch setup00:52
adam_free2airok, so i may need to try e.g. dpkg --add-architecture arm64 && apt update on the build host ...01:00
Tenkawathats not needed01:00
parazydadam_free2air: You need qemu-user, run debootstrap with --foreign, and chroot into /debootstrap/debootstrap --second-stage01:00
Tenkawaexactly01:01
parazydhttps://gitea.devuan.dev/devuan-sdk/libdevuansdk/src/branch/master/zlibs/bootstrap#L6001:01
Tenkawayou dont need arm on the native side01:01
Tenkawadpkg -l | grep croaa ; dpkg -l | grep multi01:01
Tenkawaoops01:01
adam_free2airohai parazyd thanks!01:01
parazydyw01:02
rrqyeah .. good advice; same thing -- different wrapping01:02
Tenkawarrq: no.. completely different actually01:02
parazydYeah01:03
rrqdifferent how?01:03
parazydYou just need qemu-user-static and binfmt on the host01:03
parazydIt has nothing to do with apt or debian01:03
Tenkawaadding an arch to dpkg introduces a whole new level of system dependencies for your running machine01:03
rrqyes, that's the wrapping01:04
Tenkawano.. soon as you add it to sources.list on the root host… it cascades01:05
Tenkawayou are going to have to deal with library and binary changes non stop01:05
rrqok, fine. you like the qemu-user other way better :)01:05
adam_free2airok. added qemu-user. will start clean run now & check in the morning.01:07
Tenkawaparazyd: I found a machine I'm tempted by…. even though I'd be building/fixing most of it all with no support01:08
Tenkawahttps://pine64.com/product/quartz64-model-a-8gb-single-board-computer/01:08
parazydI'm only interested in things already somewhat supported in mainline01:08
parazydZero time to do any significant kernel work unfortunately01:09
Tenkawathen again… with me and my odroids.. and nanopi.. standard operation01:09
Tenkawaparazyd: most of my time now is dedicated to the kernel01:10
TenkawaI need to see if there's anywhere they need volunteers for "the kernel"01:11
parazydThat's nice01:11
Tenkawasince it has to be volunteer for me01:11
parazydYeah pine64 is very open to mainlining01:11
Tenkawaseems like a nice board to start on my retirement projects with lol01:12
TenkawaI'm also injured atm recooperating from that for about 6 more weeks heh01:13
Tenkawaso I got time lol01:13
parazydheh01:13
parazydTenkawa: What does the riscv cpu do on this board?01:19
TenkawaI was wondering that too01:19
parazydIs it also supposed to run Linux?01:19
TenkawaI assume so… I plan on doing more research on that part tomorrow01:20
parazydCool01:20
TenkawaI know people are working on FreeBSD on the Arm side.. but have heard no details at all about the risc-v yet01:21
parazydWeird though, because other riscv I've seen are 64bit01:21
parazydDebian has ports for both though01:21
Tenkawaindeed01:21
parazydAnyway01:21
parazydLooks interesting :D01:21
TenkawaI'll take either01:21
c0rneliusadam_free2air: That looks like a qemu error - https://github.com/pyavitz/rpi-img-builder/commit/2ee0968e1ff72a129ea81801960ab2496fa6694103:27
c0rneliusAlthough I mostly only see it using docker, some people have had the problem building cross.03:28
c0rneliusEither way, installing docker and running the following corrects it - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes03:38
tuxd3vadam_free2air, what is the output of this command: 'update-binfmts --display|grep -EA 7 "aarch64.*enabled" --color'04:17
tuxd3vyou should be good with 'binfmt-support' and 'qemu-user-static'04:18
tuxd3vbut for what I understand you are crossdebootstrap( Runing a host on ex amd64, and guest applications in aarch64 ).04:20
tuxd3vthe bootstraping is made in 2 steps, the first stage, and the second stage..04:21
tuxd3vparazyd is right about the second stage..04:21
c0rneliustuxd3v: There was a qemu update a whiles ago that broke qemu, at least that when I noticed it. It could have been fixed since then but it seemed to have been across Debian based distros. Maybe a simple apt update && and apt upgrade -y could resolve this as I haven't seen this problem since I made that commit.04:22
c0rneliuswhich was a whiles ago.04:22
tuxd3vit could be04:22
c0rneliusBut I did notice it on Debian and Ubuntu for a whiles.04:23
tuxd3vone thing that would be nice to know, is what command is adam_free2air running at the beguining of everything..04:23
c0rneliusWell it appeared he was using the rpi builder, so all that foreign business is already accounted for in debootstrap process. Hence why I suspect its the qemu bug at this point.04:25
tuxd3vho.. yeah it could be indeed, or he doesn't installed the packages: binfmt-support and qemu-user-static :)04:26
c0rneliusIn my case and a few other peps who had the problem I just ran that docker command on my x86 host machine and it cleared the problem up. But I'm pretty sure there has been an update for it since then?04:27
c0rneliusTrue :) But that is a part of the depends of the builder. Now there is the possibility if he made a custom kernel and didn't build in support this could also create problems. But I'm just assuming he is running Vanilla.04:29
tuxd3vyeah, we don't know what base host he has :)04:50
adam_free2airc0rnelius: i am running completely fresh install, vanilla Ubuntu 20.04.2 LTS focal. added git, make and packages from README and from make ccompile07:25
adam_free2airfresh == up todate07:26
adam_free2airwith no docker installed.07:26
c0rneliusadam_free2air: Its not docker related really, its a qemu update that doesn't work.07:28
c0rneliusTry this - sudo apt install docker docker-compose && sudo usermod -aG docker $USER07:28
c0rneliusthen - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes07:28
c0rneliusshould correct the problem.07:29
c0rneliusyou can purge docker after the fact07:29
c0rneliusI'm gonna crash, its late here.07:33
c0rneliusMight be good to do a reboot ;)07:34
adam_free2airc0rnelius: re-reboot sure. i have to do that on the jenkins debian host that previously built the devuan beowulf images.07:57
rrqadam_free2air: as I remember with the qemu-user-static method /usr/bin/qemu-user-static needs to be available within the chroot08:01
rrq(was a while ago) run chroot $DIR /usr/bin/qemu-static /bin/bash08:03
rrqthen you can run: /debootstrap/debootstrap --second-stage08:04
rrq(no reboot required :))08:06
rrqadam_free2air: https://linux-sunxi.org/Debootstrap tells how; almost what I remembered :)08:26
rrqsee "Second Stage" section08:28

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!