Skip to contentSkip to conversation

current version of u-boot doesn't seem to load kernel for beaglebone black

U-Boot Robert P. J. Day 1 participant 2 messages Sep 4, 2013

lore
Share & tools
lore
#0 lore raw

just checked out and built u-boot for beaglebone black:

$ make am335x_boneblack_config

built, copied only MLO and u-boot.img to SD card so i could run u-boot off of SD card but boot the rest out of the eMMC, and got:

U-Boot# run bootcmd
mmc1(part 0) is current device
mmc_send_cmd : timeout: No status update
SD/MMC found on device 1
reading uEnv.txt
26 bytes read in 3 ms (7.8 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
24808 bytes read in 43 ms (562.5 KiB/s)
Wrong Image Format for bootm command
ERROR: can't get kernel image!
mmc1(part 0) is current device
mmc_send_cmd : timeout: No status update
SD/MMC found on device 1
reading uEnv.txt
26 bytes read in 3 ms (7.8 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
24808 bytes read in 43 ms (562.5 KiB/s)
Wrong Image Format for bootm command
ERROR: can't get kernel image!
## Error: "nandboot" not defined

which seems to be because the uImage file isn't being loaded into memory at ${loadaddr}, so that the subsequent command:

  bootm ${loadaddr} - ${fdtaddr}

will naturally fail as there's no valid kernel image at that address. i'm looking at the new environment, and i don't see where the kernel image is loaded into memory. thoughts?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 31 lines · Robert P. J. Day

just checked out and built u-boot for beaglebone black:

$ make am335x_boneblack_config

built, copied only MLO and u-boot.img to SD card so i could run u-boot off of SD card but boot the rest out of the eMMC, and got:

U-Boot# run bootcmd
mmc1(part 0) is current device
mmc_send_cmd : timeout: No status update
SD/MMC found on device 1
reading uEnv.txt
26 bytes read in 3 ms (7.8 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
24808 bytes read in 43 ms (562.5 KiB/s)
Wrong Image Format for bootm command
ERROR: can't get kernel image!
mmc1(part 0) is current device
mmc_send_cmd : timeout: No status update
SD/MMC found on device 1
reading uEnv.txt
26 bytes read in 3 ms (7.8 KiB/s)
Loaded environment from uEnv.txt
Importing environment from mmc ...
24808 bytes read in 43 ms (562.5 KiB/s)
Wrong Image Format for bootm command
ERROR: can't get kernel image!
## Error: "nandboot" not defined

Quoted 8 lines

which seems to be because the uImage file isn't being loaded into memory at ${loadaddr}, so that the subsequent command:

  bootm ${loadaddr} - ${fdtaddr}

will naturally fail as there's no valid kernel image at that address. i'm looking at the new environment, and i don't see where the kernel image is loaded into memory. thoughts?

following up on my own post, it would *seem* that what one needs is
the following patch:

include/configs/am335x_evm.h +3 -1
index e0a87f8..7969e07 100644
@@ -132,7 +132,9 @@
                                "echo Running uenvcmd ...;" \
                                "run uenvcmd;" \
                        "fi;" \
-                       "run mmcloados;" \
+                       "if run loaduimage; then " \
+                               "run mmcloados;" \
+                       "fi;" \
                "fi;\0" \
        "spiboot=echo Booting from spi ...; " \
                "run spiargs; " \

otherwise, i just don't see where the kernel image is going to be loaded for a BBB config and build, and it's *always* going to fail getting a proper kernel image. thoughts?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================