crochet rpi2 boot won't play nice for me...

Ross Alexander rwa at athabascau.ca
Fri Dec 29 06:13:03 UTC 2017


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.

regards,
Ross

----------------------------------------------------------------------------
Ross Alexander, (780) 675-6823 desk / (780) 689-0749 cell, rwa at athabascau.ca

        It is not of the essence of mathematics to be conversant with
        the ideas of number and quantity.
                        -- George Boole
--
This communication is intended for the use of the recipient to whom it is addressed, and may contain confidential, personal, and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communications received in error, or subsequent reply, should be deleted or destroyed.
---


More information about the freebsd-arm mailing list