libera/#devuan-arm/ Saturday, 2021-08-07

adam_free2airi'm having a rpi-img-builder issue with PART_UUID being incorrect(??) building devuan beowulf/testing under latest Ubuntu Focus, the PART_UUID in part-uuid.txt does not correspond to the value of the partition returned by  ROOT_PARTUUID=$(blkid -o export -- "/dev/mmcblk0p2" | sed -ne 's/^PARTUUID=//p') run after blowing  the SD card.16:29
adam_free2airresulting in builds not finding their root partitions.16:30
adam_free2airthe UUID code seems pretty well the same for all target OSes, anyone come across this?16:33
adam_free2aircurrently building from commit 2b338973618fe75f9ead0950e553b8ffcaa67db4 Devuan: added rev 1 to disable pi-bluetooth in firstboot script16:36
adam_free2airlog is here https://ci.free2air.net/job/Images/job/rpi-img-builder/job/rpi-4-devuan-chimaera-5.10.y-arm64/42/consoleFull16:37
adam_free2airthe log includes *** cat ./userdata.txt config.16:39
c0rneliushow many ls /dev/loop* do you have?16:40
adam_free2airyes, i noticed the loop devices sometimes remain open. when i looked when it was built, i think about 18 ...16:41
Tenkawaor just run sudo losetup16:41
Tenkawayou have to ckean those up first16:41
adam_free2airi saw that at rebooted the box, although i'm not sure i've rebuilt since.16:41
Tenkawaer clean16:41
c0rneliusSomeone else mentioned this a few days and then closed the issue as they resolved it them selves. They did a full reinstall, but normally a `make cleanup` fixes it. But if it doesn't rebooting should do the trick.16:41
Tenkawalsof/fuser/umount stay by my side when that happens16:42
Tenkawalol16:42
adam_free2airi'll get jenkins to rebuild and check again.16:42
adam_free2airs/at/and/16:43
c0rnelius18 loops? Thats probs why it's getting confused. It is suppose to close the loops after the build but sometimes it doesn't. Not sure why that?16:44
adam_free2airc0rnelius: using jenkins to checkout & build so super clean build env each time.16:44
adam_free2airseems there are 2 issues with jenkins approach and current config. 1 if builds (currently for all rpi's devuan beowulf & testing) fail, it can fill disks and burp in unexpected ways. 2 losetup cleanup may affect builds through cumulative disconnect issues.16:48
adam_free2airalso, with jenkins, still experiencing a state where i have to rerun the docker hack - this *may* be down to disk or losetup issues? not sure.16:49
c0rneliusWhat is Jenkins exactly?16:50
adam_free2aironce build, i'll check image and try booting on target rpi416:50
adam_free2airc0rnelius: https://www.jenkins.io/ a build automator of sorts.16:52
c0rneliusRemember if you every have an image or rootfs fail, always run `make cleanup`.16:52
c0rneliusever*16:52
c0rneliusI usually run it twice for good measure.16:52
adam_free2airc0rnelius: each build under jenkins operates entirely from a clean slate, from git clone onwards in my rpi-img-builder config16:53
c0rneliusit in theory "clears the loops" and removes all the old partition directories and misc files that are created during stage1 and stage2.16:53
adam_free2airok.16:53
adam_free2airwith jenkins building 6 images every evening, this might need a cronjob to check and clear.16:55
adam_free2airor an external post-build jenkins cleanup script, i guess.16:55
adam_free2airactually, or i invoke a make cleanbuild *before* each build - thanks!16:57
c0rneliusThats what I would do.16:57
adam_free2airyup. doh!16:57
c0rneliusmake run `make cleanup` twice and then start the next build.16:57
c0rneliusit run*16:58
adam_free2airtwice just to make sure? %^\16:58
c0rneliusDoesn't hurt :)16:58
c0rneliuslosetup is kinda dumb sometimes16:58
adam_free2airyeah. i've come across some of its dumbness before ...16:59
c0rneliusthis is all the script does - https://raw.githubusercontent.com/pyavitz/rpi-img-builder/master/scripts/clean17:00
c0rneliuswhich is what the stage1 script is suppose to do at the end of the build. But sometimes its tarded.17:00
adam_free2airOK. First rebuild attempt after losetup screw up and build failed. It failed in the way I recognise the docker hack fixes. Re-run docker hack and rebuilding.17:30
adam_free2airfyi:17:31
adam_free2air17:16:20 ls: cannot access './*.img': No such file or directory17:31
c0rneliusstrange you need to keep doing that?17:31
adam_free2air17:16:20 RAWIMG=17:31
adam_free2air17:16:20 ZIPIMG=17:31
adam_free2air17:16:20 sudo zip17:31
adam_free2air17:16:20   adding: -PK-17:31
adam_free2air17:16:20 �S��������- (deflated 0%)17:31
adam_free2air17:16:20 PKPK-17:31
adam_free2air17:16:20 �S�-PK/MArchiving artifacts17:31
adam_free2air17:16:20 ‘rpi*.zip’ doesn’t match anything17:31
adam_free2air17:16:23 ERROR: Step ‘Archive the artifacts’ failed: No artifacts found that match the file pattern "rpi*.zip,rpi*.img". Configuration error?17:31
adam_free2air17:16:23 Sending e-mails to: adam@dyne.org17:31
adam_free2air17:16:23 Finished: FAILURE17:31
c0rneliusdo you have all the depends installed?17:31
c0rneliusis this cross?17:32
adam_free2airc0rnelius: can't explain it yet, but it seems to clear the issue.17:32
adam_free2airyes. amd64 running fully updated Ubuntu Focus17:32
c0rneliusrun `make ccompile`17:33
c0rneliusmake sure all the depends are there.17:33
adam_free2airyes. they're there. normally builds are successful.17:33
adam_free2airunless build dependencies for focus were added in the last few commits.17:33
c0rneliusI get errors building devuan testing sometimes, but it is normally because of the mirrors.17:34
adam_free2air:) yeah, i know those errors too :/17:34
adam_free2airbuilding 6-8 builds nightly, i stumble across most things.17:34
adam_free2airjust reran make ccompile - yeah, it's all there.17:38
c0rneliusI don't know, it's been working fine for me? But in all honesty I don't cross all that much and I don't use automation.18:00
c0rneliusMy x86 buildbox is almost done building a kernel for my laptop, I'll run a build and see what happens when it finishes.18:01
adam_free2aircross? you mean you don't build on amd64 for rpi targets?18:01
c0rneliusNot all that often no.18:01
adam_free2airok18:01
adam_free2airwhat's your defualt build env then?18:02
c0rneliusSometimes I'll build kernels, but native is just way faster. I have an RK3399 and Odroid N2+ I use for making most of my images.18:02
adam_free2airok.18:02
c0rneliusI then have a custom made armel img for the Pi4 which I use for those builds18:03
adam_free2airas you may remember, i tried starting to build all these images on a devuan rpi4 but it failed too much of the time. so i thought the canonical build env was ubuntu focus on amd64, so i switched to that.18:04
c0rneliusWe also added clang recently as well which is pretty handy as the kernels don't care about gcc and the headers seem to stay clean across releases.18:05
adam_free2airi saw that.18:05
c0rneliusalright, running a quick test cross - `make 2711 && make rootfs && make image`18:10
c0rneliuslets see if I get that stupid multiarch error18:10
adam_free2airmy re-run after previous burps is still running ... https://ci.free2air.net/job/Images/job/rpi-img-builder/job/rpi-4-devuan-chimaera-5.10.y-arm64/44/console18:11
c0rneliuslooks like it made past the normal error point on that script18:12
c0rneliusHmmm. I got that dumb multiarch error.18:12
c0rneliusThere has to be a better way to fix this problem than using docker18:13
adam_free2airwell, at the moment, at least it fixes it.18:15
* adam_free2air hates and despises docker,btw.18:16
c0rneliusnot a big fan myself18:16
c0rneliusI used it for a while when making imgs, but its to much of a pain the ass.18:16
adam_free2airit's for lazy people who do not care for provenance.18:17
c0rneliusI started using Hirsute on my arm64 buildbox's, but haven't tried it yet on the x86_64. I wonder if the same shit happens with qemu?18:19
c0rneliusKnow what..? I got spare drives I'm gonna install it and see.18:21
adam_free2airOK!18:32
adam_free2airi thought it's on the github repo readme that amd64 ubuntu focus was the standard build env.18:36
c0rneliusIt is as its the LTS and in the past it worked fine.18:36
c0rneliusThis bug just kinda started out of no where in the last few months.18:36
adam_free2airok18:37
c0rneliusI really hate the ubuntu server install :)18:39
adam_free2airnot an ubuntu fan myself18:39
adam_free2airex-gentoo ricer, avoided arch, and somehow landed in fedora land for now ...18:41
c0rneliusI hate Ubuntu its bloated trash mostly, but its supports more compilers. Which is why I reluctantly started using it for the builders.18:42
adam_free2airok. new build looks good. now to test ...18:42
c0rneliusAlthough the custom imgs I made for my two arm64 boxes run really quick on it. But they are super minimal.18:43
adam_free2airi make my builds listening to radio isla negra, one of the oldest internet radio stations still online http://66.228.60.216:8002/stream18:45
c0rneliusI do like it's cmd line installer interface though. I'd use it instead of Dialog if I knew what it was.18:45
c0rneliusKool, I'll have to add it to my list on my Pi Musicbox18:47
c0rneliusnormally it just plays random channels I have in Pandora, but I have a few streams I play with mpv on it.18:48
c0rneliusadded18:51
c0rneliusisla(){# isla negra18:51
c0rneliusssh musicbox 'mplayer -nocache -prefer-ipv4 http://66.228.60.216:8002/stream'18:51
c0rnelius}18:51
c0rneliusICY Info: StreamTitle='Billie Holiday - Strange Fruit'; :D18:52
adam_free2airICY info: Stream Title="Karen O;Michael Kiwanuka - YO MY SAINT"19:18
c0rneliusthat was a pretty good song19:24
c0rneliusreminded me of Dengue Fever19:24
c0rneliusadam_free2air: Looks like a fresh install of Hirsute passed the qemu error test on x86_6419:27
c0rneliusThe fella that posted an issue about Focal made the same comment. That a fresh install fixed his problems on Focal.19:28
c0rneliusNot sure what the Ubuntu boys did to mess that up so badly. :\19:29
c0rneliusIts just sitting through the nightmare of installing and setting up Ubuntu server.19:31
c0rneliusSeems like once you have a working install, just never do a `sudo apt update && sudo apt upgrade -y` :)19:32
adam_free2air"Seems like once you have a working install" - what's that then? :-/19:33
Tenkawamost of the time a upgrade/dist-upgrade -y is never recommended anyway because -y will arbitrarily do things without your consent. the same as -n will19:34
Tenkawait will forcibly remove/add things19:35
Tenkawa(for -y and ignore for -n)19:36
c0rneliusFor sure seems to be an x86 prob. My aarch64 installs never have issues.19:36
Tenkawafortunately there doesn't actually appear to be an ignore actually... so its just the installing you have to worry about.19:39
Tenkawabut yeah I've gotten into trouble using -y before19:40
Tenkawaadded like a couple hundred extra packages19:40
c0rneliusI need a faser x86 box... Sucker is to slow.19:44
c0rneliusI should go check the college/university trash/recycle bins. You would be shocked at what the idiots throw in there.19:45
Tenkawawhat speed is it?19:46
c0rneliusIts a shit i3.19:47
Tenkawaahh19:47
c0rneliusI bet I could find a i7 in a bin with a broken screen that some dumb college kid threw away.19:47
Tenkawaits not like you need the screen19:47
c0rneliusNah. My i3 is just sitting on a table.19:48
c0rneliusbroke gutted laptop19:48
c0rneliuswell, under the table really.19:49
c0rneliusbut whatever19:49
c0rneliusMy main PC i got from MICA college in Baltimore as the IT department was trashing them and I was dating a chick that worked there.19:50
c0rneliusSo she grabbed me one19:50
Tenkawaheh19:51
c0rneliusI use to work for Anne Arundel Community College in Maryland and they would do the same shit, just toss everything in the garbage. They actually got written up in the paper for it. Essentially, why aren't you people donating this stuff?19:53
c0rneliusSo wasteful19:53
Tenkawaindeed19:53
c0rneliuswell looks about right - rpi-4-devuan-testing-5.10.52-v8-ext4-2021-08-07.img.xz20:36
Tenkawastill trucking20:42
Tenkawadu -sh gcc-1120:42
Tenkawa12G     gcc-1120:42
c0rneliussudo apt install gcc-1120:47
c0rneliusReading package lists... Done20:47
c0rneliusBuilding dependency tree... Done20:47
c0rneliusReading state information... Done20:47
c0rneliusThe following additional packages will be installed:20:47
c0rnelius  cpp-11 libgcc-11-dev20:47
c0rneliusSuggested packages:20:47
c0rnelius  gcc-11-locales gcc-11-multilib gcc-11-doc20:47
c0rneliusThe following NEW packages will be installed:20:47
c0rnelius  cpp-11 gcc-11 libgcc-11-dev20:47
c0rneliusThe easy way :)20:47
c0rneliusI don't know why you make like so hard for ur self.20:48
c0rneliuslife*20:48
Tenkawac0rnelius: wont work for what needs to be done20:48
c0rneliusmhmm20:48
Tenkawathat wont fix the arm64 compiling armel problen20:48
Tenkawaer problem20:48
Tenkawathose pkgs dont have it built in20:48
TenkawaI'm building it special20:49
c0rneliusI think a file needs to be hit with sed20:49
c0rneliusand remove stuff20:49
Tenkawano... the armel multiarch needs to be "added"20:49
Tenkawaso it doesn't try to pickup arm64 automaticly20:50
c0rneliusthe headers shift patch was created for x86 builds, not for arm64 to armel. I think something like minded needs to be done. But I'm just guessing.20:50
c0rneliusIts something inside the scripts dir.20:51
Tenkawathat probably needs to be done as well.. but theres no armel build capability at all right now20:51
Tenkawa(without using a whole seperate chroot)20:52
Tenkawawould be interesting to try just switching the shift patch and see what happens20:53
c0rneliusStrange that the kernels install just fine on an actual board though.20:53
c0rneliusYou would think the error would be the same?20:53
Tenkawayeah kernels are agnostic.... just building them are't20:54
Tenkawaer aren't20:54
c0rneliusMake me wonder if we installed say qemu on the img its self right before the kernel install inside the chroot, would it compile the headers?20:54
TenkawaI tried20:55
Tenkawasame error20:55
c0rneliushmm20:55
c0rneliusWell I don't need to try that then :)20:55
Tenkawaarm64 doesnt have those headers which makes me agree that the shift patch is needed too20:55
Tenkawaor the one that its bombing on20:56
Tenkawa(at least in our pkg)20:56
Tenkawait exists in the default20:56
Tenkawait seems to be connected to uapi too which is a pain20:57
c0rneliusWell I thinks I deserve a nap today. Be back laters.20:58
Tenkawacheers20:58

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