Building releng/13.3 for BeagleBone Black
I have a crusty old BeagleBone Black with a very old 12-CURRENT crochet build on it. I realise eventually this board will need to die (TI support is gone in stable/14), but I'd like to get a final releng/13.3 on it, to squeeze a couple more years of life out of it.
board_setup BeagleBone
option ImageSize 3900mb
option User philip
FREEBSD_SRC=${TOPDIR}/../releng-133
Building with sudo ./crochet.sh -c bbb.sh falls over with:
Starting at Tue May 21 07:51:21 HKT 2024
Loading configuration from bbb.sh
Board: BeagleBone
Option: ImageSize 3900mb
Option: User philip
Source version is: unknown
Building FreeBSD version: 13.3
Image name is:
/home/philip/freebsd/crochet/work/FreeBSD-armv6-13-GENERIC-BeagleBone.img
Building FreeBSD version: 13.3
Object files are at: /home/philip/freebsd/obj/home/philip/freebsd/releng-133
Found suitable FreeBSD source tree in:
/home/philip/freebsd/crochet/../releng-133
Found U-Boot port in:
/usr/local/share/u-boot/u-boot-beaglebone
Using FreeBSD armv6 world from previous build
Using FreeBSD armv6-GENERIC kernel from previous build
Building FreeBSD armv6-GENERIC ubldr at Tue May 21 07:51:22 HKT 2024
(Logging to /home/philip/freebsd/crochet/work/ubldr-armv6-GENERIC/_.ubldr.armv6-GENERIC.build.log)
cd: arm/uboot: No such file or directory
I tried doing a clean build. Also falls over here.
I guess arm/uboot moved somewhere between the last time someone loved crochet and releng/13.3.
Anyone have a clue to save me some time grepping please? :)
There are a whole bunch of U-boot ports, some of which were even created, and then depreciated. I myself maintain an out of tree, you u-boot port. Most ports, I think, rely on a master port. Mine is just a few patches on top of that. You might check out the last u-boot port for your board and use that or try using the latest u-boot with the existing master port framework. I’m not quite sure how you would patch this into crochet, however.I did use crochet for a while, but then I switched over to using the native make targets with cross compiling. It’s really not that hard and I can help you if you like.ChristopherOn May 20, 2024, at 4:56 PM, Philip Paeps @.***> wrote: I have a crusty old BeagleBone Black with a very old 12-CURRENT crochet build on it. I realise eventually this board will need to die (TI support is gone in stable/14), but I'd like to get a final releng/13.3 on it, to squeeze a couple more years of life out of it. board_setup BeagleBone option ImageSize 3900mb option User philip FREEBSD_SRC=${TOPDIR}/../releng-133
Building with sudo ./crochet.sh -c bbb.sh falls over with: Starting at Tue May 21 07:51:21 HKT 2024 Loading configuration from bbb.sh Board: BeagleBone Option: ImageSize 3900mb Option: User philip Source version is: unknown Building FreeBSD version: 13.3 Image name is: /home/philip/freebsd/crochet/work/FreeBSD-armv6-13-GENERIC-BeagleBone.img Building FreeBSD version: 13.3 Object files are at: /home/philip/freebsd/obj/home/philip/freebsd/releng-133 Found suitable FreeBSD source tree in: /home/philip/freebsd/crochet/../releng-133 Found U-Boot port in: /usr/local/share/u-boot/u-boot-beaglebone Using FreeBSD armv6 world from previous build Using FreeBSD armv6-GENERIC kernel from previous build Building FreeBSD armv6-GENERIC ubldr at Tue May 21 07:51:22 HKT 2024 (Logging to /home/philip/freebsd/crochet/work/ubldr-armv6-GENERIC/_.ubldr.armv6-GENERIC.build.log) cd: arm/uboot: No such file or directory
I tried doing a clean build. Also falls over here. I guess arm/uboot moved somewhere between the last time someone loved crochet and releng/13.3. Anyone have a clue to save me some time grepping please? :)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>
I'm not married to crochet. :)
If you have another way of building an image I can dd to my /dev/mmcsd1, I'm all ears.
Many thanks!
13-4-Generic-Boot-Partition-Arm.zip I was also working on same. Will check on uboot later if vtime permits. I was able to boot up 13.3 on Beagele Bone Black with these changes, not sure if it can help you.
- https://medium.com/@rupeshpilania/getting-started-freebsd-15-0-current-on-beaglebone-black-2f3b4b9158ec, you might need some more changes as this is outdated.
diff --git a/board/BeagleBone/setup.sh b/board/BeagleBone/setup.sh index a2d7147..ce6efc3 100644 --- a/board/BeagleBone/setup.sh +++ b/board/BeagleBone/setup.sh @@ -33,8 +33,8 @@ beaglebone_uboot_install ( ) { strategy_add $PHASE_BOOT_INSTALL beaglebone_uboot_install
Build and install a suitable ubldr
-strategy_add $PHASE_BUILD_OTHER freebsd_ubldr_build UBLDR_LOADADDR=0x88000000 -strategy_add $PHASE_BOOT_INSTALL freebsd_ubldr_copy_ubldr . +#strategy_add $PHASE_BUILD_OTHER freebsd_ubldr_build UBLDR_LOADADDR=0x88000000 +#strategy_add $PHASE_BOOT_INSTALL freebsd_ubldr_copy_ubldr . Step-2: root@:/data/crochet/freebsd-src # git branch
- (HEAD detached at origin/releng/13.3)
main
Step-3:
root@:/data/crochet/freebsd-src # uname -a
FreeBSD 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
root@:/data/crochet/freebsd-src #
Step-4: root@:/data/crochet # cat beagleblack.sh TOPDIR=/data/crochet board_setup BeagleBone option ImageSize 16000mb option UsrSrc option UsrPorts FREEBSD_SRC=${TOPDIR}/freebsd-src Step-5: sudo ./crochet.sh -c beagleblack.sh Step-6: Locate image root@:/data/crochet # find . -name "FreeBSD-armv6" ./work/FreeBSD-armv6-13.3-GENERIC-c31be7380af7-BeagleBone.img Step-7: dd to SD card sudo dd if=FreeBSD-armv6-13.3-GENERIC-c31be7380af7-BeagleBone.img of=/dev/sdb bs=4M status=progress Step-8: Insert SD card to PC and replace all boot partition content with FreeBSD-13.4-RELEASE-arm-armv7-GENERICSD.img(this is readily available and boots on BBB https://download.freebsd.org/releases/ISO-IMAGES/13.4/FreeBSD-13.4-RELEASE-arm-armv7-GENERICSD.img.xz). I just mounted and took the boot partion from this. I have attached boot partition content for your reference, you can delete all content from boot partition of newly created image and copy from zip file I attached.
I will bring crochet up atleast with 13.3 /13.4 if time permits.