Hi,

On Mon, Mar 19, 2018 at 6:35 PM, Michał Wołowik <[email protected]> wrote:
> Hello,
>
> I bought a few days ago BananaPi M2M Magic. Board works somehow with
> original images downloaded from manufacturer webpage. In the network, I
> found mainline kernel (https://github.com/BPI-SINOVOIP/BPI-Mainline-kernel)
> and mainline u-boot (https://github.com/BPI-SINOVOIP/BPI-Mainline-uboot).
> Everything compiled well. Unfortunately, I'm not able to execute new u-boot
> on this board.
>
> Many files generated during compilation but without significant one
> boot0.bin.
>
> After reading Testing chapter from http://linux-sunxi.org/FEL/USBBoot I was
> able to extract mentioned boot0.bin which works when I write it to SD card.
> I wrote this boot0.bin using sudo dd if=boot0.bin /dev/sdX bs=1024 seek=8.
>
> My question is which u-boot file (spl or not spl, uboot.img, uboot-spl.img)
> I should use to start a kernel with fdt. I try to write on SD card many
> uboot from mainline using sudo dd if=uboot.img /dev/sdX bs=1024 seek=40 but
> I don't see anything on debug uart (UART 0).
>
> Only what work is 100Mb uboot img taken from official legacy BSP uboot.

If you are using mainline U-boot (and possibly by extension, BPI's mainline
U-boot repo), you are supposed to use the u-boot-sunxi-with-spl.bin file.
This is a concatenated file composed of the SPL (U-boot's boot0.bin if you
will), U-boot proper, and some padding. Write that one to where you would
write boot0.bin.

This is all documented here: http://linux-sunxi.org/Mainline_U-Boot

ChenYu

>
> I try to make Yocto meta-layer but without working boot section it is
> impossible.
>
> Thanks for any hints.
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to