AnimaInvicta | I'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 |
---|---|---|
gnarface | not sure but probably a known issue yes | 21:24 |
gnarface | i seem to recall there were like 3 revisions of the BBB and the build donated to us only works for one of them | 21:24 |
AnimaInvicta | That would explain it. | 21:25 |
gnarface | i think the person who donated it disappeared too, which is why we only have a build for an old release | 21:25 |
gnarface | since you have one, you could in theory build it yourself and then donate the new build... | 21:25 |
AnimaInvicta | I'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 |
gnarface | i'm not sure if there are any roadblocks, but if there are i'd like to know what they are | 21:27 |
AnimaInvicta | My main roadblock would be not knowing enough about u-boot :^) | 21:27 |
gnarface | hmm, well i've built it for pinebook before | 21:28 |
gnarface | i might be able to answer some questions but not all | 21:28 |
AnimaInvicta | Do 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 |
gnarface | uh, no sorry my information i begged off people in the pine64 irc | 21:31 |
AnimaInvicta | As good a starting point as any, thanks! | 21:32 |
gnarface | if there's a defconfig file for the bbb already in the source though i can probably get you most of the build instructions | 21:33 |
gnarface | CROSS_COMPILE="aarch64-linux-gnu-" make PLAT=sun50iw1p1 bl31 | 21:37 |
gnarface | here's the cross-build command i have for the ATF, you'd need to find the right value for PLAT for a BBB | 21:38 |
AnimaInvicta | aarch64? For a BBB? | 21:38 |
gnarface | oh, i guess if it's 32-bit you'd need a different value for CROSS_COMPILE too | 21:38 |
gnarface | hmm | 21:38 |
gnarface | noting that, this may still be informative: | 21:38 |
gnarface | cp ../arm-trusted-firmware/build/sun50iw1p1/release/bl31.bin . | 21:38 |
gnarface | ARCH="arm64" CROSS_COMPILE="aarch64-linux-gnu-" make pinebook_defconfig | 21:39 |
gnarface | ARCH="arm64" CROSS_COMPILE="aarch64-linux-gnu-" make menuconfig | 21:39 |
gnarface | ARCH="arm64" CROSS_COMPILE="aarch64-linux-gnu-" make -j4 | 21:39 |
gnarface | so basically you build the ATF then copy a binary from there into the u-boot source | 21:39 |
gnarface | then the u-boot source just builds like a kernel | 21:39 |
AnimaInvicta | Sorry, idiot question: is this the u-boot source? | 21:40 |
gnarface | i think the only difference would be you need different values for ARCH and CROSS_COMPILE, and a different defconfig | 21:40 |
gnarface | yes, sorry i omitted the git clone commands | 21:40 |
gnarface | here i'll just paste my whole notes block from this, apologies for it being out of date | 21: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 |
gnarface | oh someone already checked it in.... | 21:41 |
gnarface | i didn't know that, i'm not actually a devuan developer | 21:41 |
gnarface | it occurs to me now that most the work may already be done for you, and you just need to rebuild it on your hardware | 21:41 |
gnarface | my notes are for building from upstream githubs | 21:42 |
AnimaInvicta | Thanks anyway, gnar. I'll just have to dig in and see where I come out again :^D | 21:43 |
gnarface | here, 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 |
gnarface | it'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 anywhere | 21:44 |
AnimaInvicta | Every little bit helps. Thanks again. | 21:44 |
gnarface | notably 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 yet | 21:45 |
gnarface | but for the BBB ymmv | 21:45 |
gnarface | the 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 you | 21:47 |
gnarface | i 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 BBB | 21:49 |
gnarface | and 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 notes | 21:50 |
gnarface | and obviously everything set to arm instead of arm64 | 21:50 |
gnarface | or armel or armhf or whatever is appropriate for the context | 21:50 |
gnarface | i'm not too familiar with the BBB | 21:50 |
gnarface | some of this stuff is more complicated because i was cross-building, which you might not need to do | 21:51 |
gnarface | anyway, hopefully you don't need revision-specific patches to make u-boot work, then this shouldn't be too hard | 21:52 |
AnimaInvicta | I'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 |
gnarface | i 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 revisions | 21:54 |
gnarface | i 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 one | 21:55 |
gnarface | but that it doesn't work for other revisions has been confirmed several times | 21:55 |
AnimaInvicta | ...knock on a LOT of wood, then :^D | 21:55 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!