On Tue, Oct 25, 2016 at 1:09 PM Robert Nelson <[email protected]>
wrote:

> On Tue, Oct 25, 2016 at 3:04 PM, Paul Plankton <[email protected]>
> wrote:
> > That's cool! I use an own, customised MLO file - is there a way to put it
> > into MBR too? It has a size of about 40 kBytes, so more than the 512
> bytes
> > of the MBR...
>
> sudo dd if=./MLO of=/dev/mmcblk0 count=1 seek=1 bs=128k
> sudo dd if=./u-boot.img of=/dev/mmcblk0 count=2 seek=1 bs=384k
>

To clarify, the 512 bytes is just for the first sector of the MBR that has
the partition table in it. We actually skip by that to an offset of 128k.
Based on Robert's instructions, 256 *k*bytes (384-128) is reserved for the
MLO. Of course, MLO needs to fit in the internal RAM of the processor since
this is the first place the DDR is configured, so your MLO would never get
to be that large.

This version allocates 768 kbytes (2 x 384) for u-boot.img. For some
reason, I thought this might have needed to be increased at some point.

Someone will let me know if I'm wrong about any of the above. :-)


>
> Regards,
>
> --
> Robert Nelson
> https://rcn-ee.com/
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/CAOCHtYivmeN%2BJWOJCQKYj6M1b1JTe96hyBww8_aEn6z_5MmG8Q%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CA%2BT6QPm9J5pxiHDTp6Ai7ayW4W8R6Y7a--Ky%2B-WG6Myt-QY%2BMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to