Date: Thu, 28 Dec 2017 23:45:44 -0800 From: Mark Millard <markmi@dsl-only.net> To: Ross Alexander <rwa@athabascau.ca> Cc: Freebsd-arm <freebsd-arm@freebsd.org> Subject: Re: crochet rpi2 boot won't play nice for me... Message-ID: <ECCA683A-6F51-44C9-A102-82DD13548920@dsl-only.net> In-Reply-To: <alpine.BSF.2.21.1712282258210.82890@autopsy.pc.athabascau.ca> References: <D8C429DF-B6FB-4A80-BA63-9027FCBB5ABF@dsl-only.net> <alpine.BSF.2.21.1712282258210.82890@autopsy.pc.athabascau.ca>
index | next in thread | previous in thread | raw e-mail
On 2017-Dec-28, at 10:12 PM, Ross Alexander <rwa at athabascau.ca> wrote:
> On Thu, 28 Dec 2017, Mark Millard wrote:
>
> [chomp :rwa:]
>
>> Comparing side-by-side:
>>
>> /usr/local/share/u-boot/u-boot-rpi2/u-boot.bin
>> /usr/local/share/u-boot/u-boot-rpi2/bootcode.bin
>>
>> Someplace crochet is coming up with the name bootcode.bin
>> instead of u-boot-bin .
>>
>> You could look around with something like:
>>
>> grep -r bootcode.bin /u0/crochet/
>
> Bingo. Jeez, I must have porridge for brains.
>
> augur2:/u0/crochet # find [b-o]* -type f | xargs grep -w bootcode.bin
> [...]
> board/RaspberryPi2/setup.sh: cp ${UBOOT_PATH}/bootcode.bin .
>
> 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.)
>
> I replaced the cp's with
>
> # 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
>
> 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
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
===
Mark Millard
markmi at dsl-only.net
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ECCA683A-6F51-44C9-A102-82DD13548920>
