So it ended up being ridiculously easy- thank you for all your work, Robert!

I just switched the two if statements in the CONFIG_BOOTCOMMAND definition 
in am335x_evm.h (u-boot/include/configs) so that mmc dev 1 was attempted 
first. Now I have this u-boot.img on my eMMC and the original on the SD 
card. Now I can leave the SD card in there and only boot from it when I 
hold down S2 :)

Best,
Louis

On Sunday, March 23, 2014 10:24:01 AM UTC-4, Louis Thiery wrote:
>
> Ah finally got my toolchain to work with these instructions: 
> http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Bootloader:U-Boot
>
> The u-boot.img I compiled out of there works just fine - so now let's see 
> what happens when I hack it :D
>
> On Saturday, March 22, 2014 12:46:51 PM UTC-4, Louis Thiery wrote:
>>
>> Jumping in a little late perhaps but my concern is slightly relevant to 
>> the discussion here.
>>
>> Nelson desribes the boot order:
>>
>> bootrom loads MLO from eMMC (if that fails it moves to microSD) 
>> MLO loads u-boot.img from eMMC 
>> u-boot.img first looks at microSD for uEnv.txt, reads that file in. 
>>
>> I'd like to reverse that last step and make it to default to uEnv.txt 
>> from the eMMC. 
>>
>> But I have no idea how to modify u-boot.img. What should I be reading? 
>>
>> Or is there a u-boot.img that exists already that will allow me to boot 
>> off of the eMMC even if the flasher uSD is present (which I understand is 
>> the HW default)?
>>
>> Thanks,
>> Louis
>>
>> On Friday, March 7, 2014 11:12:13 PM UTC-5, Loren Amelang wrote:
>>>
>>> My long but successful "learning experience" is reported in:
>>> https://groups.google.com/forum/#!topic/beagleboard/zNtdwtPf2Q8
>>>
>>> Definitely not simple, but possible...  Without making any changes to 
>>> the eMMC installation! 
>>>
>>> On Monday, February 17, 2014 10:17:22 PM UTC-8, Loren Amelang wrote:
>>>>
>>>> Robert,
>>>>
>>>> My BBB absolutely must default to booting from the uSD. I know I 
>>>> could short the boot switch, or move pull-up/down resistors, or create a 
>>>> hardware switch gated from reset, but I don't want to lose hardware 
>>>> compatibility with other BBB boards, or give up the option of manually 
>>>> booting from eMMC occasionally. The code you suggest here sounds perfect - 
>>>> but I'm not positive what to do with it. From the formatting of the text, 
>>>> I 
>>>> suspect it is intended to be compiled into a new u-boot.img and MLO image, 
>>>> but I'm not sure how to do that. 
>>>>
>>>> Before I spend hours learning how, is there a chance I could just 
>>>> insert the basic ideas into my uEnv.txt as "mmcboot=mmc dev 0; if mmc 
>>>> rescan ; then ..."? It does look like uEnv.txt is read before the mmcboot 
>>>> command runs...  
>>>>
>>>  
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to