libera/#devuan-arm/ Thursday, 2022-08-25

AnimaInvictaI'm trying to install Devuan on a BeagleBone Black. The installer-armhf image runs the setup, but then fails to recognise the ethernet port. Has anyone else here had this problem?21:22
gnarfacenot sure but probably a known issue yes21:24
gnarfacei seem to recall there were like 3 revisions of the BBB and the build donated to us only works for one of them21:24
AnimaInvictaThat would explain it.21:25
gnarfacei think the person who donated it disappeared too, which is why we only have a build for an old release21:25
gnarfacesince you have one, you could in theory build it yourself and then donate the new build...21:25
AnimaInvictaI'll probably try to build a complete working system image on a card, since all the piece seem to be available on pkgmaster.21:26
gnarfacei'm not sure if there are any roadblocks, but if there are i'd like to know what they are21:27
AnimaInvictaMy main roadblock would be not knowing enough about u-boot :^)21:27
gnarfacehmm, well i've built it for pinebook before21:28
gnarfacei might be able to answer some questions but not all21:28
AnimaInvictaDo you know of any sites with u-boot tutorials? I've only been able to find denx.de and board-specific manufacturer's guides.21:30
gnarfaceuh, no sorry my information i begged off people in the pine64 irc21:31
AnimaInvictaAs good a starting point as any, thanks!21:32
gnarfaceif there's a defconfig file for the bbb already in the source though i can probably get you most of the build instructions21:33
gnarfaceCROSS_COMPILE="aarch64-linux-gnu-" make PLAT=sun50iw1p1 bl3121:37
gnarfacehere's the cross-build command i have for the ATF, you'd need to find the right value for PLAT for a BBB21:38
AnimaInvictaaarch64? For a BBB?21:38
gnarfaceoh, i guess if it's 32-bit you'd need a different value for CROSS_COMPILE too21:38
gnarfacehmm21:38
gnarfacenoting that, this may still be informative:21:38
gnarfacecp ../arm-trusted-firmware/build/sun50iw1p1/release/bl31.bin .21:38
gnarfaceARCH="arm64" CROSS_COMPILE="aarch64-linux-gnu-" make pinebook_defconfig21:39
gnarfaceARCH="arm64" CROSS_COMPILE="aarch64-linux-gnu-" make menuconfig21:39
gnarfaceARCH="arm64" CROSS_COMPILE="aarch64-linux-gnu-" make -j421:39
gnarfaceso basically you build the ATF then copy a binary from there into the u-boot source21:39
gnarfacethen the u-boot source just builds like a kernel21:39
AnimaInvictaSorry, idiot question: is this the u-boot source?21:40
gnarfacei think the only difference would be you need different values for ARCH and CROSS_COMPILE, and a different defconfig21:40
gnarfaceyes, sorry i omitted the git clone commands21:40
gnarfacehere i'll just paste my whole notes block from this, apologies for it being out of date21:40
AnimaInvicta...because that seems to already be available at https://pkgmaster.devuan.org/devuan/dists/chimaera/main/installer-armhf/current/images/u-boot/BeagleBoneBlack/21:41
gnarfaceoh someone already checked it in....21:41
gnarfacei didn't know that, i'm not actually a devuan developer21:41
gnarfaceit occurs to me now that most the work may already be done for you, and you just need to rebuild it on your hardware21:41
gnarfacemy notes are for building from upstream githubs21:42
AnimaInvictaThanks anyway, gnar. I'll just have to dig in and see where I come out again :^D21:43
gnarfacehere, don't get bogged down by this if it gets too confusing, but maybe the details can help fill in the blanks from elsewhere: https://paste.debian.net/1251691/21:44
gnarfaceit's out-of-date by a ways, you can tell by the version numbers on stuff how old it is, it predates any official builds anywhere21:44
AnimaInvictaEvery little bit helps. Thanks again.21:44
gnarfacenotably where you see me say "TODO: test updated mainline:...", i've already actually done that and know it works, i just didn't update the notes about it yet21:45
gnarfacebut for the BBB ymmv21:45
gnarfacethe memory address where you write to with dd is i think also hardware specific, so you might have to find the right values for the BBB unless devuan's build scripts build a whole image for you21:47
gnarfacei guess there's several things you'd have to interpret differently for the BBB... for example, i'm pretty sure the actual file "u-boot-sunxi-with-spl.bin" is the wrong one, it'd be named differently for the BBB21:49
gnarfaceand i'm using boot.scr stuff in this example while i'm pretty sure you'd want to use extlinux instead unless there's a bug with it like there was when i made these notes21:50
gnarfaceand obviously everything set to arm instead of arm6421:50
gnarfaceor armel or armhf or whatever is appropriate for the context21:50
gnarfacei'm not too familiar with the BBB21:50
gnarfacesome of this stuff is more complicated because i was cross-building, which you might not need to do21:51
gnarfaceanyway, hopefully you don't need revision-specific patches to make u-boot work, then this shouldn't be too hard21:52
AnimaInvictaI'm hoping not to need to build at all - just stick the pieces from pkgmaster on a boot partition, some configuring, then debootstrap the system partition (knock on wood...)21:53
gnarfacei have a feeling you'll need to rebuild it but i'm not actually sure anyone knows exactly what's wrong with the existing image other than that it has something to do with differences in board revisions21:54
gnarfacei think there was a revision 1, 1.1, and 1.2? the image we have only works for one of them and i'm not even sure which one21:55
gnarfacebut that it doesn't work for other revisions has been confirmed several times21:55
AnimaInvicta...knock on a LOT of wood, then :^D21:55

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