U-Boot build not creating u-boot.imx

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

U-Boot build not creating u-boot.imx

8,512 Views
michaelperreca
Contributor II

Hello all,

I'm attempting to create a U-Boot image from scratch for my iMX6UL EVK but every time i attempt to create it, it never creates a u-boot.imx.  Only a u-boot.bin.

Here are the commands I'm using:

git clone git://git.denx.de/u-boot-imx.git

cd u-boot-imx

export ARCH=arm
CROSS_COMPILE=arm-linux-gnueabihf-

make mrproper

make mx6ul_14x14_evk_defconfig

make

now it compiles properly but just doesn't make the u-boot.imx.

is there some sort of switch I'm not throwing?

Labels (1)
16 Replies

3,839 Views
fabio_estevam
NXP Employee
NXP Employee

Ok, good, so 2017.07 which will be released soon will be working properly.

0 Kudos

3,838 Views
danielbujak
Contributor III

Hi Michael, I'm trying to accomplish the same thing. Did you ever get things sorted?

0 Kudos

3,839 Views
sinanakman
Senior Contributor III

Hi Daniel

Try  make u-boot.imx

Regards

Sinan Akman

3,839 Views
danielbujak
Contributor III

When I build the u-boot.imx image this way I don't see anything output from the board when I try to boot. Is there some other configuration required?

0 Kudos

3,839 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Daniel,

Do you mean you are not seeing any output from the board console? How did you load u-boot.imx to your board?

Regards,

0 Kudos

3,839 Views
danielbujak
Contributor III

Yes that's correct. I'm using the below command to flash the image to the SD card. This same method works for the image built by buildroot using the imx repositories.

sudo dd if=u-boot.imx of=/dev/sdb bs=1k seek=1

Is this the correct way to write the uboot image?

0 Kudos

3,839 Views
danielbujak
Contributor III

I had to set IMX_CONFIG=board/freescale/mx6ul_14x14_evk/imximage.cfg and now I'm getting some output. Is there any instruction on what is required to build u-boot from scratch? I'm not sure what else I may be missing at this point.

0 Kudos

3,839 Views
fabio_estevam
NXP Employee
NXP Employee

Daniel,

You are using U-Boot from mainline for the mx6ul_14x14_evk board.

In this case, u-boot.imx will not be generated as this board supports SPL, so you will get: SPL and u-boot.img.

In order to flash the SD card:

$ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync

(Note - the SD card node may vary, so adjust this as needed).

- Flash the u-boot.img image into the SD card:

sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync

3,839 Views
danielbujak
Contributor III

Thanks for the suggestion Fabio. Using this method I get the following output before u-boot hangs:

U-Boot SPL 2017.05 (Jun 26 2017 - 10:58:21)
Trying to boot from MMC1


U-Boot 2017.05 (Jun 26 2017 - 10:58:21 -0400)

CPU:   Freescale i.MX6UL rev1.0 528 MHz (running at 396 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 34C
Reset cause: POR
Board: MX6UL 14x14 EVK
I2C:   ready
DRAM:  512 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

Video: 480x272x24

0 Kudos

3,839 Views
fabio_estevam
NXP Employee
NXP Employee

Works fine for me:

U-Boot SPL 2017.05 (Jun 26 2017 - 12:11:18)
Trying to boot from MMC1


U-Boot 2017.05 (Jun 26 2017 - 12:11:18 -0300)

CPU: Freescale i.MX6UL rev1.0 at 396MHz
CPU: Commercial temperature grade (0C to 95C)Reset cause: WDOG
Board: MX6UL 14x14 EVK
I2C: ready
DRAM: 512 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Video: MXSFB: 'videomode' variable not set!
In: serial
Out: serial
Err: serial
Net: FEC1
Hit any key to stop autoboot: 0
=>

Can you try to disable the video support?

diff --git a/configs/mx6ul_14x14_evk_defconfig b/configs/mx6ul_14x14_evk_defconfig
index 56e66ee..6f98d1e 100644
--- a/configs/mx6ul_14x14_evk_defconfig
+++ b/configs/mx6ul_14x14_evk_defconfig
@@ -8,7 +8,6 @@ CONFIG_SPL_MMC_SUPPORT=y
CONFIG_SPL_SERIAL_SUPPORT=y
CONFIG_SPL_LIBDISK_SUPPORT=y
CONFIG_SPL_WATCHDOG_SUPPORT=y
-CONFIG_VIDEO=y
CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=arch/arm/imx-common/spl_sd.cfg"
CONFIG_BOOTDELAY=3
# CONFIG_CONSOLE_MUX is not set

0 Kudos

3,839 Views
danielbujak
Contributor III

Disabling video on 2017.05 seems to have fixed the issue. Interestingly if I build from master branch it works with video enabled.

Between using make menuconfig, editing configs/mx6ul_14x14_evk_defconfig, and editing include/configs/mx6ul_14x14_evk.h which is the correct place to make changes in which instances?

If I enable features using make menuconfig it complains that things are being re-defined.

0 Kudos

3,839 Views
fabio_estevam
NXP Employee
NXP Employee

If you run:

=> env default -f -a

=> saveenv

Then rebuild with video enabled with U-Boot 2017.05 version (without any change) and it should work.

Looks like the issue was that you have had an old environment stored in the SD card.

0 Kudos

3,839 Views
danielbujak
Contributor III

I'm still getting the same result (u-boot hangs at video) even after resetting the environment to default.

0 Kudos

3,839 Views
fabio_estevam
NXP Employee
NXP Employee

Are you able to reproduce this error with the latest U-Boot master?

0 Kudos

3,839 Views
danielbujak
Contributor III

No, with the latest master source I don't have this issue.

0 Kudos

3,839 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Michael Perreca,

The u-boot source code per se does compiles to u-boot-bin. In order to get u-boot.imx the IVT header is added at the beginning.

The IVT and other headers are added after compiling by the mkimage tool which is located on the tools directory (at least on the NXP u-boot git). Look for the tools/imximage.c for more details.

I hope this information helps!

Regards,

0 Kudos