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

Vallback03:03
Vallc0rnelius: thanks for the link (and your effort)03:04
Valldownloading it right away03:04
VallTenkawa: heh there's a Chilean everywhere ;-)03:06
VallValparaiso is a nice city as cities go -- but to come to Chile and stay in cities is like going to Rome just to see the Pope ;-)03:07
TenkawaI'm talking about the Valparaiso here in the states though03:07
Tenkawathe university03:07
VallTenkawa: heh didn't even know there was a Valparaiso in the US03:08
TenkawaIndiana03:08
Vallin Chile, it's a city (a large one) and there's a very good university there, hence the confusion03:08
TenkawaValparaiso, Indiana03:08
VallHeh03:08
VallWill look it up03:08
Vallbrb03:08
Tenkawaheh cool03:08
Vallc0rnelius: finally tested your image here, it seems to have booted OK and completed DHCP. But I can't connect, it seems not to be running sshd ("connection refused" on port 22).20:04
VallI was under the impression sshd would come up automatically -- do I have to create boot/ssh before first boot, as in RaspberryPiOS?20:05
VallHey Tenkawa20:05
Tenkawathere we go20:10
Tenkawawas having connectivity issues20:11
Vallc0rnelius: u there?21:05
c0rneliusIt enabled by default21:21
VallRename file to credentials.txt and input your wifi information.21:29
VallSSID=" "# Service set identifier21:29
VallPASSKEY=" "# Wifi password21:29
VallCOUNTRYCODE=" "# Your country code21:29
Vall# set static ip21:29
VallMANUAL=n# Set to y to enable a static ip21:29
VallIPADDR=" "# Static ip address21:29
VallNETMASK=" "# Your Netmask21:29
VallGATEWAY=" "# Your Gateway21:29
VallNAMESERVERS=" "# Your preferred dns21:29
VallCHANGE=y# Set to n to disable21:29
VallHOSTNAME="raspberrypi"# Set the system's host name21:29
VallBRANDING="Raspberry Pi"# Set ASCII text banner21:30
VallFor headless use: ssh user@ipaddress21:30
VallNote:21:30
VallYou can also mount the ROOTFS partition and edit the following21:30
Vallfiles, whilst leaving rename_to_credentials.txt untouched.21:30
Vall/etc/opt/interfaces.manual21:30
Vall/etc/opt/wpa_supplicant.manual21:30
Valloops21:30
Vall1 sec21:30
Vallnmap -sT -p 0-65535 192.168.43.18521:30
VallStarting Nmap 7.60 ( https://nmap.org ) at 2021-08-21 15:20 -0421:30
VallNmap scan report for bcm2711 (192.168.43.185)21:30
VallHost is up (0.0073s latency).21:30
VallAll 65536 scanned ports on bcm2711 (192.168.43.185) are closed21:30
VallMAC Address: DC:A6:32:EF:0C:7D (Unknown)21:30
VallNmap done: 1 IP address (1 host up) scanned in 9.78 seconds21:30
Vallthat's what I meant21:30
Valldoesn't look enabled to me21:30
VallAnd this IP is the one for the RPi, I checked the MAC address21:30
Vall---21:33
VallWhen I remove the card from the RPi and mount it to my notebook to check ROOTFS, it looks like the /etc/init.d/sshd file is correctly linked: https://zerobin.net/?501268bac6d46d84#4FrGBf5ez/IlCnfAgC2p0lvf+knDB1f0JC/fA3W+RuM=21:35
c0rneliusVall: I'm writing the img right now. Give me a sec.21:35
Vallno hurry, and thank you c0rnelius21:37
VallIn case it helps, I checked var/log/* for ssh messages and here's what grep -ri has found: https://zerobin.net/?6cd585ce2a1c19bc#spg+n8o+dlq7Sq1n5E47LKjqd+18thrkWIr3nY7Z/aM=21:42
VallThe weird thing is, *nothing* mentioning ssh in var/log/daemon.log21:42
VallIt's like it just isn't being run, or if it is, it's abending without leaving anything in the logs21:43
c0rneliusVall: Came up fine for me. It takes like half a minute to connect to webs upon first boot. As my service network init, loads the original networking init in the background instead of sitting and waiting.21:45
c0rneliuspatrick@devuan:~$ cat /etc/os-release21:45
c0rneliusPRETTY_NAME="Devuan GNU/Linux 4 (chimaera)"21:45
c0rneliusNAME="Devuan GNU/Linux"21:45
c0rneliusVERSION_ID="4"21:45
c0rneliusVERSION="4 (chimaera)"21:45
c0rneliusID=devuan21:45
c0rneliusID_LIKE=debian21:45
c0rneliusHOME_URL="https://www.devuan.org/"21:45
c0rneliusSUPPORT_URL="https://devuan.org/os/community"21:45
c0rneliusBUG_REPORT_URL="https://bugs.devuan.org/"21:46
Vallc0rnelius: weird21:47
Vallhere it comes up, in the sense of getting IP, but no sshd21:47
c0rneliusWell I'm currently connected via ssh21:47
Vallyou are using the same image you sent me the link yesterday?21:47
c0rneliusare you using a static ip?21:47
c0rneliusyeap same exact img21:48
Vallnope, dynamic IP over DHCP21:48
c0rneliusMe too. I connected using the hostname.21:48
c0rneliusssh devuan.local21:48
c0rneliusIf you didn't change it during first boot it would be raspberrypi.local21:49
VallHere, I check my DHCP server log and/or run nmap to determine the assigned IP21:49
VallHeh21:49
c0rneliusI'm lazy21:49
VallHere it's coming up as bcm2711 (the hostname)21:50
VallI see it on the reverse-DNS for the DHCP-assigned IP (see nmap output above) and in ROOTFS/var/log/*21:50
c0rneliushmm. That would be the original one. Its suppose to get rest during first boot.21:50
Vallisn't that weird?21:50
VallPerhaps the first boot did not complete? Want me to try to rewrite the SD card and try again?21:51
c0rneliusYeah. Use a better SD card if you got one :)21:51
c0rneliusmy network: 10.0.0.161devuanDC:A6:32:52:16:5844-44dbm433Mbps21:51
VallOk21:51
c0rneliusSo on mine it reset the hostname21:52
VallThis is a Sandisk Extreme 64GB card21:52
VallI also have a Sandisk "normal" 8GB card, can try with it too21:52
c0rneliusI used a sandisk extreme pro.21:52
c0rneliusnot that it matter, both should work.21:52
c0rneliusmatters*21:52
Vallc0rnelius: just double-checking, this should be the image, right? https://github.com/pyavitz/binary/releases/download/060420/rpi-4-devuan-testing-5.10.59-v8-ext4-2021-08-20.img.xz21:54
c0rneliusyeah thats what I used21:54
VallCan you please confirm the MD5SUM?    23618947f64a748a5d6a6898576c6b12  rpi-4-devuan-testing-5.10.59-v8-ext4-2021-08-20.img.xz21:54
c0rneliuss -ls /media/patrick/Storage1/rpi-4-devuan-testing-5.10.59-v8-ext4-2021-08-20.img.xz21:55
c0rnelius369972 -rw------- 1 patrick patrick 378849832 Aug 20 14:23 /media/patrick/Storage1/rpi-4-devuan-testing-5.10.59-v8-ext4-2021-08-20.img.xz21:55
c0rneliussame img21:55
Vallthe size is the same here (378849832 bytes)21:55
VallOK, dd'ing it to the other SD card21:56
c0rneliusyou are decompressing it right?21:56
c0rneliusdd doesn't support writing it straight from xz I thought.21:57
sadsnorkI might be a little late to the party here but I think22:00
sadsnorkxzcat file.img.xz | [sudo] dd of=/dev/xxx bs=4M22:00
sadsnorkmight do what you are looking for?22:00
c0rneliuslooks about right.22:01
sadsnorkIf it is correct, you may also find that on slower CPUs it can be painfully slow (this IS #devuan-arm after all). :-)22:02
Vallc0rnelius: yep, here's my command line: xzcat rpi-4-devuan-testing-5.10.59-v8-ext4-2021-08-20.img.xz | sudo dd of=/dev/sdc bs=16384b22:04
Valljust finished22:06
Valldo I need to configure anythifor it to request DHCP on the ethernet (wired) connection and accept SSH?22:07
Valls/anythifor/anything for/22:08
c0rneliusNo. Should just connect.22:10
c0rneliusThat service script is for wifi. If you don't touch it, it will still move everything into place and start the networking init.22:12
Tenkawaback…22:12
c0rneliusleaving you with the bcm2711 hostname.22:12
Tenkawawow I haven't got enough sleep the last 2 days lol22:12
c0rneliusYou can also just manually edit the files in /etc/opt/*.manual22:13
Tenkawawhats breaking?22:14
Vall c0rnelius: "manually edit the files in /etc/opt/*.manual" you mean mounting the SD card on my PC, or on the RPi itself after first boot?22:15
c0rneliusNo. I mean before first boot using the PC or whatever you are using.22:17
c0rneliushttps://github.com/pyavitz/rpi-img-builder/issues/1822:17
c0rneliusThats an early Devuan issue, before I re-wrote the service script.22:17
c0rneliusTenkawa: The credentials service apparently22:17
c0rneliusWorked for me, but that doesn't mean anything.22:18
Vallc0rnelius: thanks for the tip, reviewing the link and then editing the files22:18
Tenkawayou can also just use the sysvinit activate method to enable it through chroot too I believe22:19
VallTenkawa: I reviewed the /etc/rc?.d and all the links are there, see above22:20
Tenkawaits not just that22:20
VallTenkawa: no? What else?22:22
Tenkawathere is also a control I believe .. I don't have my box up at the moment to look but let me mount one of the base filesystems22:22
Vallc0rnelius: checking etc/opt/*.manual, I see 2 files: interfaces.manual and wpa_supplicant.manual. Is this correct?22:22
VallTenkawa: I'm pretty sure that, for sysvinit, it's just the links. Plus of course the init.d file they link to, plus the daemon specific files (in this case, etc/ssh/*, /etc/default/ssh)22:23
VallOK, modified just wpa_supplicant.manual to add my SSID and WPA password, interfaces.manual looks OK.22:25
Tenkawaif it didn't have the links setup at creation time thats probably the problem though..22:25
VallEjected the card, inserted it into the RPi4, powering it up22:26
Tenkawabecause the files get populated once22:26
Tenkawaand only tried once22:26
c0rneliusVall: If you mod those files don't rename the file in boot. Just leave it alone.22:26
Vallslow blonking the green led at first22:26
Vallfast constant blinking now22:27
c0rneliusI think I'm just gonna redo the credentials service. Its not working right on some of the other boards and now this again on the Pis.22:28
VallOK, got DHCP, and this time SSHD is running (albeit it's still identifying itself to reverse-DNS as bcm2711)22:29
Valllogging in22:29
c0rneliusThats fine. That is the default hostname.22:29
c0rneliusIt only changes if you use the cred service.22:30
TenkawaVall: reverse dns will not go away until you clear the router's internal table22:30
Tenkawaeven if he changes it its just going to create a second entry for that mac address22:31
Tenkawaits rarp'ed both names at that point22:32
VallOK, so default username/password (devuan/devuan) is being rejected. Does this image use something different?22:32
TenkawaI have like 30+ names for one single machine in mine22:32
c0rneliuspi:board22:32
VallOK22:32
c0rneliusunless you changed it in the /boot/username.txt file22:32
Vall1 min22:32
c0rneliusmy imgs are slightly than Devuan ones.22:33
c0rneliusslightly diff*22:33
VallYay! https://zerobin.net/?ccff248c70b418f7#E0MLEXv+J52j/ogcfWYJRQ5c10jKALaM4KSCwMe+FRU=22:34
VallThank you c0rnelius! Finally I have Devuan goodness in my RPi4 ;-)22:34
c0rneliusThere it is, good job :)22:35
c0rneliusand ur welcome22:36
c0rneliusand now ur ahead of the curb on Chimaera22:37
Vallrunning `apt-get update`, installing minimal stuff, customizing hostname, users, etc and getting everything ready22:37
Tenkawac0rnelius:22:38
TenkawaLinux nanopi 5.13.12-nanopi #4 SMP Sat Aug 21 14:34:50 EDT 2021 aarch64 GNU/Linux22:38
Tenkawaworking good now22:38
Tenkawabeen tuning more on it22:38
c0rneliusI don't think there is an update, but for upgrading eeprom run: `deb-eeprom -h` and every now and again I push new kernels, you can find those using `fetch -h`.22:38
Tenkawastill no bt yet though22:38
c0rneliusTenkawa: We are missing some stupid blob I know this.22:39
TenkawaI would like to find a dts patch to increase cpu freq22:39
c0rneliusand then a service that puts it all in moition.22:39
TenkawaI know that we should be able to get more out of it22:40
c0rneliuswhats ur freq at?22:40
Tenkawa115200022:40
c0rneliussame as mine, which is higher than my other H5.22:40
c0rneliusNot sure how high we can even make it to be honest.22:41
Tenkawaits running very cool too at that freq and stable as it can be22:41
TenkawaI just haven't even seen any tree's in the dts to adjust22:41
Valluname -a here shows 5.10.59-v8, `fetch -h` tells me 5.10.59 | 5.13.922:41
VallI presume 5.10.59 is the LTS and 5.13.9 is the Stable, right?22:42
c0rneliusVall: yeap22:42
Vallwhich would be best to try and run qemu-kvm to host a raspi3b VM?22:42
c0rneliusI haven't pushed the new ones yet. I just built all the 5.13.12's and am waiting till tomorrow to cook 5.10.60.22:43
c0rneliusHonestly don't know. 5.13.y is obviously more cutting edge.22:43
Vallyeah -- it's the 'cutting' part that worries me ;-)22:44
c0rneliusexactly22:44
Tenkawahey hey.. foundation finally updated to https://github.com/raspberrypi/linux/commit/f428e49b8cb1fbd9b4b4b29ea31b6991d2ff7de1 and 5.10.6022:44
c0rneliusTenkawa: Yeah this morning22:44
c0rneliusThats why I'm waiting till tomorrow.22:44
Vallwell, gonna try the LTS first22:44
Tenkawaabout time22:44
Tenkawathey took forever22:44
Tenkawa(not surprised mind you)22:45
VallFoundation can go and F themselves... after what they did with MS, they lost all credibility IMO -- if it wasn't for Devuan I wouldn't have bought a RPi22:45
c0rneliusThey waited almost a full month to push 5.10.5922:45
c0rneliusVall: You referring to adding MS garbage to the source list in sys-mods?22:46
c0rneliusI purge all that during the sys-mods install, although I'm pretty sure they disable it by default anyway.22:49
c0rneliusyah: https://github.com/pyavitz/rpi-img-builder/blob/master/scripts/devuan-stage2#L16922:50
Vallc0rnelius: I refer to this: https://en.wikipedia.org/wiki/Raspberry_Pi_OS#Microsoft_Repository_Controversy23:00
Vallso yeah, sys-mods... but much worse than just 'adding MS garbage' IMHO -- more like adding a MS backdoor into every machine running the foundation's OS, and they trying to hide it (by delaying publishing of the source code, etc)23:02
VallAnd sure it's purgeable and perhaps even comes disabled by default now, but it does not matter: the episode above showed such a lack of honesty that, at least for me, their reputation is stained forever23:05
sadsnorkVall, you mean that the rpi repo thing linked above is the thing that relieved you of your trust in Microsoft?23:09
Vallsadsnork: nope, I never trusted MS23:11
Vallsadsnork: it's the Raspberry Foundation that lost all credibility with the above23:11
sadsnorkAh!  I was going to say that there should have been numerous previous examples of reasons not to trust Microsoft. :-)23:13
sadsnorkFrankly the idea that they own Github seems creepy enough on its own.23:13
Vallsadsnork: yep, fortunately I don't use github for much -- but the fact that almost everyone does, and actually *depends* on it, is really worrying23:17
sadsnorkVery true... including many projects that are supposed to be specifically security/privacy related.23:18
VallTo say I never trusted MS is a bit too far. But I stopped trusting them when they launched "MS-DOS" (previously known as Quick-and-Dirty DOS from Seattle Computers)23:18
VallInstead of supporting the them-defacto-standard CP/M-1623:19
VallAnd then a few years later, they scrapped Xenix so as to avoid any competition for MS-OS/2, then ditto OS/2 for Win3, and so on23:21
VallUp until the time they made their money by selling BASICA, BASCOM, M80 etc, they were alright by me -- it's when they started effing everyone around and turning themselves into a monopoly that they lost my trust23:22
Vallc0rnelius: what is the root password? Not 'toor' it seems23:33
c0rneliusVall: `sudo passwd root`23:37
c0rneliusmake ur own23:37
c0rneliusThese imgs don't play the toor game. Its left to the user to decide if they wanna create the risk.23:38
c0rneliusVall: Yeah there was a big shit to do about the MS thing, so much so that it was disabled by default.23:40
VallOk23:41
c0rneliushttps://github.com/RPi-Distro/raspberrypi-sys-mods/issues/5423:41
c0rneliusThe sys-mods package is actually kinda pointless on Devuan anyway, as it has a lot of systemd services and I haven't bothered patching it or forking the repo yet. I'm not sure what approach I wanna take. Might not be needed at all to be honest.23:45
Vallc0rnelius: what does raspberrypi-sys-mods adds that really necessary or at least useful, anyway?23:49
c0rneliusmostly udev rules and such23:50
c0rneliusstuff I could just add my self.23:50
c0rneliuspi-bluetooth package depends on it as well, but I have sinse forked that and remove the depends for it.23:51
c0rneliussince*23:51
Vallgreat job23:52
Vallbluetooth is something I will really need here, to read data from remote sensors. How well is it working?23:53
c0rneliusWorks fine for me.23:53
Vallnice!23:53
c0rneliusBluetooth on Pis like other SBCs is hit and miss though. Depends on the use case or in some cases whom is using it :)23:54
VallI'm seeing something weird here. Used memory (as reported by `free`): on Devuan is ~70MB, on RaspiOS is ~48MB23:55
VallWhat gives?23:55
c0rneliusI set the gpu mem to 12823:55
c0rneliusmight be it?23:55
c0rneliuscat /boot/config.txt23:56
VallIt could be23:56
c0rneliusI use a lot of pis as cams and its needed for that, so I just set it by default.23:56
Vallwhat is the minimum? (my RPi4 is headless)23:56
c0rnelius# camera23:57
c0rnelius#start_x=123:57
c0rnelius#gpu_mem=12823:57
c0rneliusdo that in the /boot/config.txt23:57
c0rneliusreboot23:57
Vallsure23:57
c0rneliussee if it decreases the mem usage23:57
Vallthe default is the minimum, I presuem?23:57
Vall*presume23:57
c0rneliusyeah23:58
Vallnice!23:58
Valldoing it now23:58

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