crochet rpi2 boot won't play nice for me...
Mark Millard
markmi at dsl-only.net
Fri Dec 29 07:52:34 UTC 2017
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
More information about the freebsd-arm
mailing list