Start U-boot from mmc

528 views
Skip to first unread message

inis...@gmail.com

unread,
Jan 10, 2018, 10:24:43 AM1/10/18
to BeagleBoard
Hello.

I am trying to use custom u-boot that will be run from mmc/sdcard.
For this did next step:
1. clone it:
git clone git://git.denx.de/u-boot.git u-boot/
2. checkout to new version:
git checkout v2017.11
2. configure it:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_boneblack_defconfig
3. build it:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
4. than copy MLO and u-boot.img to mmc:
cp MLO u-boot.img /media/inisider/boot/
5. insert microsd to beagleboneblack slot than press ButtonSwitch (S2) and poweron BBB:
U-Boot 2017.09-00002-g0f3f1c7907 (Oct 09 2017 - 15:30:22 -0500), Build: jenkins-github_Bootloader-Builder-607

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Power-on reset has occurred.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
cpsw
Press SPACE to abort autoboot in 2 seconds

Information about my microsdcard:
sudo fdisk /dev/sdc

Command (m for help): p

Disk /dev/sdc: 7744 MB, 7744782336 bytes
239 heads, 62 sectors/track, 1020 cylinders, total 15126528 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00053946

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048      206847      102400    b  W95 FAT32
/dev/sdc2          206848     2254847     1024000   83  Linux


This is not compiled by me U-boot.
What can be a problem?

Robert Nelson

unread,
Jan 10, 2018, 11:01:03 AM1/10/18
to Beagle Board, inis...@gmail.com
On Wed, Jan 10, 2018 at 5:36 AM, inisider <inis...@gmail.com> wrote:
> Hello.
>
> I am trying to use custom u-boot that will be run from mmc/sdcard.
> For this did next step:
> 1. clone it:
>>
>> git clone git://git.denx.de/u-boot.git u-boot/
>
> 2. checkout to new version:
>>
>> git checkout v2017.11
>
> 2. configure it:
>>
>> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
>> am335x_boneblack_defconfig
>
> 3. build it:
>>
>> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
>
> 4. than copy MLO and u-boot.img to mmc:
>>
>> cp MLO u-boot.img /media/inisider/boot/
>
> 5. insert microsd to beagleboneblack slot than press ButtonSwitch (S2) and
> poweron BBB:
>>
>> U-Boot 2017.09-00002-g0f3f1c7907 (Oct 09 2017 - 15:30:22 -0500), Build:
>> jenkins-github_Bootloader-Builder-607

Actually you didn't follow your Step number 5:

It's still booting the version on the eMMC.. (look at the version number)

So retry, this time actually use your finger nail to hold down the
button, and don't let up till you see 4 led's..

ps follow:

https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Bootloader:U-Boot

Regards,

--
Robert Nelson
https://rcn-ee.com/

Oleksii Kurochko

unread,
Jan 11, 2018, 5:47:42 AM1/11/18
to Robert Nelson, Beagle Board
Thanks for reply and link!

If setup sdcard in way from your link than all is OK.
If using gparted ( like here https://embedjournal.com/kernel-compilation-beaglebone-black/#root-file-system-rfs ) than it does not boot.

Regards,
 inisider

ср, 10 янв. 2018 г. в 18:00, Robert Nelson <robert...@gmail.com>:

Robert Nelson

unread,
Jan 11, 2018, 12:15:31 PM1/11/18
to Oleksii Kurochko, Beagle Board
On Thu, Jan 11, 2018 at 4:47 AM, Oleksii Kurochko <inis...@gmail.com> wrote:
> Thanks for reply and link!
>
> If setup sdcard in way from your link than all is OK.
> If using gparted ( like here
> https://embedjournal.com/kernel-compilation-beaglebone-black/#root-file-system-rfs
> ) than it does not boot.
>

Yeah, i'd expect that. The bootrom is very picky about the partition
size and format of the fat partition.

Here's what you'd need to do to have a fat boot partition..

http://eewiki.net/display/linuxonarm/BeagleBoard#BeagleBoard-SetupmicroSDcard

Regards
Reply all
Reply to author
Forward
0 new messages