Date: Sun, 14 Jun 2015 16:19:17 -0500 From: Erik Moe <e.moe@rcn.com> To: Tim Kientzle <tim@kientzle.com> Cc: freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: Broken U-Boot packages? Message-ID: <1226DD2D-A455-42BF-8EC6-F871FC7F997C@rcn.com> In-Reply-To: <89E506F5-7F26-4409-84E1-68304564D011@kientzle.com> References: <D56CD04F-DB0F-4B68-B1C0-096B9673393A@kientzle.com> <DDCA5886-14F9-4CA3-9F77-F92C9D1BAF50@rcn.com> <89E506F5-7F26-4409-84E1-68304564D011@kientzle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_1AF9646C-0B9D-4718-8E31-18FE430C9FFD Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sure, take them with a grain of salt, --Apple-Mail=_1AF9646C-0B9D-4718-8E31-18FE430C9FFD Content-Disposition: attachment; filename=setup.sh Content-Type: application/octet-stream; name="setup.sh" Content-Transfer-Encoding: 7bit KERNCONF=BEAGLEBONE BEAGLEBONE_UBOOT="u-boot-beaglebone" BEAGLEBONE_UBOOT_BIN="u-boot.img" IMAGE_SIZE=$((1000 * 1000 * 1000)) TARGET_ARCH=armv6 UBOOT_PATH="/usr/local/share/u-boot/${BEAGLEBONE_UBOOT}" beaglebone_check_uboot ( ) { uboot_port_test ${BEAGLEBONE_UBOOT} ${BEAGLEBONE_UBOOT_BIN} } strategy_add $PHASE_CHECK beaglebone_check_uboot # # BeagleBone requires a FAT partition to hold the boot loader bits. # beaglebone_partition_image ( ) { disk_partition_mbr disk_fat_create 2m disk_ufs_create } strategy_add $PHASE_PARTITION_LWW beaglebone_partition_image beaglebone_uboot_install ( ) { echo "Installing U-Boot from : ${BEAGLEBONE_UBOOT}" cp ${UBOOT_PATH}/MLO . cp ${UBOOT_PATH}/u-boot.img . cp ${BOARDDIR}/files/uEnv.txt . freebsd_install_fdt beaglebone.dts bbone.dts freebsd_install_fdt beaglebone.dts bbone.dtb freebsd_install_fdt beaglebone-black.dts bboneblk.dts freebsd_install_fdt beaglebone-black.dts bboneblk.dtb } strategy_add $PHASE_BOOT_INSTALL beaglebone_uboot_install # TODO: Try changing ubldr to a PIC binary instead of ELF, so we don't # have to compile it separately for every different load address. # strategy_add $PHASE_BUILD_OTHER freebsd_ubldr_build UBLDR_LOADADDR=0x88000000 strategy_add $PHASE_BOOT_INSTALL freebsd_ubldr_copy_ubldr ubldr # BeagleBone puts the kernel on the FreeBSD UFS partition. strategy_add $PHASE_FREEBSD_BOARD_INSTALL board_default_installkernel . # overlay/etc/fstab mounts the FAT partition at /boot/msdos strategy_add $PHASE_FREEBSD_BOARD_INSTALL mkdir -p boot/msdos # ubldr help and config files go on the UFS partition (after boot dir exists) strategy_add $PHASE_FREEBSD_BOARD_INSTALL freebsd_ubldr_copy boot --Apple-Mail=_1AF9646C-0B9D-4718-8E31-18FE430C9FFD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Erik > On Jun 14, 2015, at 4:09 PM, Tim Kientzle <tim@kientzle.com> wrote: >=20 >=20 >> On Jun 14, 2015, at 1:42 PM, Erik Moe <e.moe@rcn.com> wrote: >>=20 >> I'm booting off a Beaglebone Black SD image that I built two days ago = using a slightly modified version of crochet that uses the u-boot from = package. This is what my boot image looks like: >>=20 >> root@beaglebone:~ # ls /boot/msdos/ >> bbone.dtb bboneblk.dtb mlo ubldr >> bbone.dts bboneblk.dts u-boot.img uenv.txt >=20 > Thanks. That gives me another data point to play with. >=20 > Tim >=20 > P.S. Care to share your patches? >=20 >>=20 >> Erik >>=20 >>=20 >>> On Jun 14, 2015, at 1:20 PM, Tim Kientzle <tim@kientzle.com> wrote: >>>=20 >>> Has anyone else had success building images with the U-Boot = *packages*? >>>=20 >>> I=E2=80=99m updating Crochet to use U-Boot from ports/packages for = RPI and Beaglebone, but I get non-bootable images (generally with U-boot = failing to identify the disk partitioning) when I use the package. = Here=E2=80=99s what I=E2=80=99ve tried so far: >>>=20 >>> * RPi built with U-Boot from package - non-bootable >>> * RPi built with U-Boot port compiled locally - works >>> * Beaglebone Black with U-Boot from package - non-bootable >>>=20 >>> Today I hope to try booting an old white Beaglebone and building the = u-boot-beaglebone port locally to see if that follows the pattern. >>>=20 >>> For the record, my ports tree is up-to-date and I=E2=80=99m = installing the packages onto a recent FreeBSD-CURRENT amd64 VM via: >>>=20 >>> $ pkg install sysutils/u-boot-rpi >>>=20 >>> Cheers, >>>=20 >>> Tim >>>=20 >>> _______________________________________________ >>> freebsd-arm@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >>> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >>=20 >=20 --Apple-Mail=_1AF9646C-0B9D-4718-8E31-18FE430C9FFD--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1226DD2D-A455-42BF-8EC6-F871FC7F997C>