From owner-freebsd-arm@freebsd.org Fri Dec 29 07:52:34 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 21F6FEB039D for ; Fri, 29 Dec 2017 07:52:34 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-111.reflexion.net [208.70.210.111]) (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 C6CA5809F3 for ; Fri, 29 Dec 2017 07:52:32 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 20845 invoked from network); 29 Dec 2017 07:45:46 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 29 Dec 2017 07:45:46 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Fri, 29 Dec 2017 02:45:46 -0500 (EST) Received: (qmail 6256 invoked from network); 29 Dec 2017 07:45:46 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 29 Dec 2017 07:45:46 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 8E822EC8171; Thu, 28 Dec 2017 23:45:45 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: crochet rpi2 boot won't play nice for me... From: Mark Millard In-Reply-To: Date: Thu, 28 Dec 2017 23:45:44 -0800 Cc: Freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Ross Alexander X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Dec 2017 07:52:34 -0000 On 2017-Dec-28, at 10:12 PM, Ross Alexander = wrote: > On Thu, 28 Dec 2017, Mark Millard wrote: >=20 > [chomp :rwa:] >=20 >> Comparing side-by-side: >>=20 >> /usr/local/share/u-boot/u-boot-rpi2/u-boot.bin >> /usr/local/share/u-boot/u-boot-rpi2/bootcode.bin >>=20 >> Someplace crochet is coming up with the name bootcode.bin >> instead of u-boot-bin . >>=20 >> You could look around with something like: >>=20 >> grep -r bootcode.bin /u0/crochet/ >=20 > Bingo. Jeez, I must have porridge for brains. >=20 > augur2:/u0/crochet # find [b-o]* -type f | xargs grep -w = bootcode.bin > [...] > board/RaspberryPi2/setup.sh: cp ${UBOOT_PATH}/bootcode.bin . >=20 > So a look shows that a raspberry_pi_populate_boot_partition() > is doing a long stick of unconditionalized copys from ${UBOOT_PATH} > into . , which must be the FAT boot partition (didn't bother to = check.) >=20 > I replaced the cp's with >=20 > # Copy RaspberryPi 2 boot files to FAT partition > # > for f in LICENCE.broadcom README bootcode.bin config.txt fixup.dat = fixup_cd.dat \ > fixup_x.dat start.elf start_cd.elf start_x.elf u-boot.bin = ; do > if [ -f ${UBOOT_PATH}/$f ] ; then > cp ${UBOOT_PATH}/$f . > echo :rwa: copied ${UBOOT_PATH}/$f > else > echo :rwa: no ${UBOOT_PATH}/$f > fi > done >=20 > I've kicked it off, film at 11. Hmm. There is a bootcode.bin but these days it is from sysutils/rpi-firmware instead of from=20 sysutils/u-boot-rpi2 : # ls /usr/local/share/rpi-firmware/ LICENCE.broadcom config.txt fixup_cd.dat = fixup_x.dat start_cd.elf start_x.elf bootcode.bin fixup.dat fixup_db.dat = start.elf start_db.elf # ls /usr/local/share/u-boot/u-boot-rpi2/ README u-boot.bin =3D=3D=3D Mark Millard markmi at dsl-only.net