UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
802 Views
Registered: ‎06-19-2018

When unable to read file uImage, what should I modify in the uboot?

Jump to solution

Hi, everybody. when I made boot files for my customized  zynq board, the uart output something like this:

-1.jpg

I think it maybe that I set the wrong parameters when I made the uboot.elf, so the booting cannot get into uImage.But I don't konw which files should i modify in the "u-boot-xlnx", I just modify zynq-common.h and make zynq_zed_defconfig, because my board like zed, but it's not zed, so what else files should i modify?

Thanks for reply!

0 Kudos
1 Solution

Accepted Solutions
Contributor
Contributor
647 Views
Registered: ‎06-19-2018

Re: When unable to read file uImage, what should I modify in the uboot?

Jump to solution
I modified the UIMAGE_LOADADDR when I compiled the xilinx-linux-kernel.Ensure the ADDR is the same as which in uboot/include/configs/zynq_common.h
0 Kudos
7 Replies
Explorer
Explorer
757 Views
Registered: ‎09-14-2016

Re: When unable to read file uImage, what should I modify in the uboot?

Jump to solution

Hi 1028271706@qq.com,

 

Several questions:

 

- Is it a custom board based on Zynq ?

- Ext 4 file system is enable in your u-boot configuration ?

- File system is setup on the eMMC ?

 

Cheers,

Trigger

0 Kudos
Contributor
Contributor
735 Views
Registered: ‎06-19-2018

Re: When unable to read file uImage, what should I modify in the uboot?

Jump to solution
Hi trigger,
Firstly, thanks for your reply.
I'm sure that my board is based on zynq, and i set the sdboot in zynq_common.h below:
"sdboot=if mmcinfo; then " \
"run uenvboot; " \
"echo Copying Linux from SD to RAM...RFS in ext4 && " \
"load mmc 0 ${kernel_load_address} ${kernel_image} && " \
"load mmc 0 ${devicetree_load_address} ${devicetree_image} && " \
"bootm ${kernel_load_address} - ${devicetree_load_address}; " \
As for " File system is setup on the eMMC", I burnned my file system in the Partition-2 of my sd card which is the type of ext4.
0 Kudos
Explorer
Explorer
729 Views
Registered: ‎09-14-2016

Re: When unable to read file uImage, what should I modify in the uboot?

Jump to solution

Hi 1028271706@qq.com,

 

Maybe you can try to use this command to set the correct partition:

 

 

U-Boot# mmc part
U-Boot # mmc dev 0 U-Boot # mmc rescan U-Boot # mmc dev 1

Cheers,

Trigger

 

0 Kudos
Contributor
Contributor
711 Views
Registered: ‎06-19-2018

Re: When unable to read file uImage, what should I modify in the uboot?

Jump to solution
When I burned the pynq linux system to the TF card, it make a patitioning automatically, Partition-1:Type: fat32、partition-2:Type: ext4.
0 Kudos
Contributor
Contributor
694 Views
Registered: ‎09-28-2018

Re: When unable to read file uImage, what should I modify in the uboot?

Jump to solution

Looks like it is looking at the wrong place for the boot files or it won't see the device. 

 

look at <u-boot>/arch/arm/dts/xxxx.dts  for your zynq_zed device tree file. 

and check for these entries:

 

     aliases {
                ...
                ...
                ...
                mmc0 = &sdhci0;
        };

 

&sdhci0 {
    u-boot,dm-pre-reloc;
    status = "okay";
};
&sdhci1 {
u-boot,dm-pre-reloc;
status = "okay";
};

 

inside your u-boot config file there should be a link to this dts file

in the u-boot root folder do: 

nano .config

..and check for macro: CONFIG_DEFAULT_DEVICE_TREE="YourBoardhere"  ( without the .dts extension )

 

0 Kudos
Contributor
Contributor
651 Views
Registered: ‎06-19-2018

Re: When unable to read file uImage, what should I modify in the uboot?

Jump to solution
thanks deville, I worked out it.
0 Kudos
Contributor
Contributor
648 Views
Registered: ‎06-19-2018

Re: When unable to read file uImage, what should I modify in the uboot?

Jump to solution
I modified the UIMAGE_LOADADDR when I compiled the xilinx-linux-kernel.Ensure the ADDR is the same as which in uboot/include/configs/zynq_common.h
0 Kudos