Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Dec 2017 23:12:57 -0700
From:      Ross Alexander <rwa@athabascau.ca>
To:        Mark Millard <markmi@dsl-only.net>
Cc:        Freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: crochet rpi2 boot won't play nice for me...
Message-ID:  <alpine.BSF.2.21.1712282258210.82890@autopsy.pc.athabascau.ca>
In-Reply-To: <D8C429DF-B6FB-4A80-BA63-9027FCBB5ABF@dsl-only.net>
References:  <D8C429DF-B6FB-4A80-BA63-9027FCBB5ABF@dsl-only.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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 fix=
up_cd.dat \
              fixup_x.dat start.elf start_cd.elf start_x.elf u-boot.bin ; d=
o
         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@athabascau.c=
a

        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 a=
ddressed, and may contain confidential, personal, and or privileged informa=
tion. Please contact us immediately if you are not the intended recipient o=
f this communication, and do not copy, distribute, or take action relying o=
n it. Any communications received in error, or subsequent reply, should be =
deleted or destroyed.
---



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.21.1712282258210.82890>