Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building releng/13.3 for BeagleBone Black #297

Open
ppaeps opened this issue May 20, 2024 · 3 comments
Open

Building releng/13.3 for BeagleBone Black #297

ppaeps opened this issue May 20, 2024 · 3 comments

Comments

@ppaeps
Copy link
Member

ppaeps commented May 20, 2024

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? :)

@christopher-bowman
Copy link

christopher-bowman commented May 21, 2024 via email

@ppaeps
Copy link
Member Author

ppaeps commented May 21, 2024

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!

@RupeshPilania
Copy link

RupeshPilania commented Oct 7, 2024

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.

  1. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants