From owner-freebsd-arm@FreeBSD.ORG Sun Jun 14 21:19:19 2015 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4AC4AEFF for ; Sun, 14 Jun 2015 21:19:19 +0000 (UTC) (envelope-from e.moe@rcn.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0F1E0E7A for ; Sun, 14 Jun 2015 21:19:18 +0000 (UTC) (envelope-from e.moe@rcn.com) X_CMAE_Category: , , X-CNFS-Analysis: v=2.0 cv=A+nuztqG c=1 sm=1 a=kLIaxcRmAfIWWG5Fo3VFTQ==:17 a=OA2lqS22AAAA:8 a=UGRoMzq9r7NvIUNPFeAA:9 a=CjuIK1q_8ugA:10 a=7a1WO2Z2o_wA:10 a=PSnS_euJ6Z8A:10 a=YL7B1VoFGGcA:10 a=itfYZ8Axc7FzxYG07U0A:9 a=gWCTb-xSAAAA:8 a=6I5d2MoRAAAA:8 a=Nz9UnKJW9NKzyXgy_NAA:9 a=QEXdDO2ut3YA:10 a=kLIaxcRmAfIWWG5Fo3VFTQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: ZS5tb2VAcmNuLmNvbQ== Authentication-Results: smtp01.rcn.cmh.synacor.com header.from=e.moe@rcn.com; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.mail=e.moe@rcn.com; spf=neutral; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.user=e.moe; auth=pass (PLAIN) Received-SPF: neutral (smtp01.rcn.cmh.synacor.com: 24.148.20.83 is neither permitted nor denied by domain of rcn.com) Received: from [24.148.20.83] ([24.148.20.83:39523] helo=[192.168.1.175]) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.2.43620 r(Platform:3.6.2.0)) with ESMTPSA (cipher=AES256-SHA) id 08/ED-33934-5DFED755; Sun, 14 Jun 2015 17:19:17 -0400 Content-Type: multipart/mixed; boundary="Apple-Mail=_1AF9646C-0B9D-4718-8E31-18FE430C9FFD" Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: Broken U-Boot packages? From: Erik Moe In-Reply-To: <89E506F5-7F26-4409-84E1-68304564D011@kientzle.com> Date: Sun, 14 Jun 2015 16:19:17 -0500 Cc: freebsd-arm Message-Id: <1226DD2D-A455-42BF-8EC6-F871FC7F997C@rcn.com> References: <89E506F5-7F26-4409-84E1-68304564D011@kientzle.com> To: Tim Kientzle X-Mailer: Apple Mail (2.2098) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jun 2015 21:19:19 -0000 --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 wrote: >=20 >=20 >> On Jun 14, 2015, at 1:42 PM, Erik Moe 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 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--