On Tue, Oct 25, 2016 at 3:04 PM, Paul Plankton <paul.pl...@gmail.com> 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
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 beagleboard...@googlegroups.com.
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.
On Tue, Oct 25, 2016 at 1:09 PM Robert Nelson <robert...@gmail.com> wrote:On Tue, Oct 25, 2016 at 3:04 PM, Paul Plankton <paul.pl...@gmail.com> 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=384kTo 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 kbytes (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. :-)
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 kbytes (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.
Hm, still not working. I have a MLO-file which works smoothly out of a FatFS partition but when I try to write it to the MMC directly withsudo dd if=./MLO of=/dev/mmcblk1 count=1 seek=1 bs=128k
and/orsudo dd if=./MLO of=/dev/mmcblk1 count=1 bs=128k
the board does not boot afterwards, console only prints "CCCC". What else could be missing?
Am Dienstag, 8. November 2016 19:29:15 UTC+1 schrieb RobertCNelson:On Tue, Nov 8, 2016 at 12:24 PM, Paul Plankton <paul.pl...@gmail.com> wrote:
> Hi,
>
> I again played yround a bit with this. My first try was an operation
>
> sudo cp /dev/random /dev/mmcblk1
>
> From my understanding this should erase the onboard MMC completely together
> with all boot data. Nevertheless when I try to boot from a board erased in
> this way, there is still a u-boot coming up with a bunch of messages.
> Finally it of course fails because it can not find an operating system - but
> where does this boot sequence come from? It can't be on the on-board MMC and
> a SD-card is not inserted!
Or just:
sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=10
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 beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/5135ad29-c918-4fad-b65f-36ddd545c0a5%40googlegroups.com.