Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2017-Dec-28, at 10:12 PM, Ross Alexander <rwa at athabascau.ca> =
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ECCA683A-6F51-44C9-A102-82DD13548920>