cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sitting
Voyager
Voyager
636 Views
Registered: ‎05-04-2014

petalinux 2021.1 can not boot to u-boot

Jump to solution

Hi,

I have upgraded my project from 2020.2 to 2021.1, and I ran the system with my custom board. However, the system doesn't load u-boot after fsbl is up. 

petalinux 2021.1petalinux 2021.1

 

There is no problem with petalinux 2020.2 as below snapshot

petalinux 2020.2petalinux 2020.2

How can I do for petalinux 2021.1?

 

Thanks

Sitting

0 Kudos
1 Solution

Accepted Solutions
sitting
Voyager
Voyager
367 Views
Registered: ‎05-04-2014

Hi,

The problem is fixed and it is caused by spi flash env configuration as below. Actually, there is no env setting in spi flash. I remove the configuration and system can boot to u-boot.

# CONFIG_ENV_IS_NOWHERE is not set
CONFIG_ENV_OFFSET=0x1E00000
CONFIG_ENV_SECT_SIZE=0x40000
# CONFIG_ENV_IS_IN_FAT is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
# CONFIG_USE_ENV_SPI_BUS is not set
# CONFIG_USE_ENV_SPI_CS is not set
# CONFIG_USE_ENV_SPI_MAX_HZ is not set
# CONFIG_USE_ENV_SPI_MODE is not set
# CONFIG_SYS_REDUNDAND_ENVIRONMENT is not set
CONFIG_ENV_ADDR=0x0

Thanks

Sitting

View solution in original post

0 Kudos
8 Replies
rambati
Xilinx Employee
Xilinx Employee
614 Views
Registered: ‎06-10-2021

HI @sitting 

Seems to be You have not upgraded correctly.

I would request you to before upgrade project execute this command petalinux-build -x mrproper

Then upgrade it.

I would request you to follow upgrading steps in following link page no:91 https://www.xilinx.com/support/documentation/sw_manuals/xilinx2021_1/ug1144-petalinux-tools-reference-guide.pdf

 

Thanks and Regards

Raviteja

-----------------------------------------------------------------------------

Don't forget to Reply, Give Kudos and Accept as Solution

-----------------------------------------------------------------------------

0 Kudos
sitting
Voyager
Voyager
586 Views
Registered: ‎05-04-2014

Hi @rambati ,

The upgrade option seems only for minor release. However, it seems there are big difference between 2020.2 and 2021.1. Is it possible to use upgrading method to upgrade petalinux to 2021.1? 

Thanks

Sitting

0 Kudos
sitting
Voyager
Voyager
515 Views
Registered: ‎05-04-2014

Hi @rambati ,

I found the boot problem was caused by u-boot. The size of 2021.1 u-boot is bigger than 2020.2 u-boot as below

Selection_127.png

If I replace 2021.1 uboot to 2020.2 u-boot only , and the board can be boot to u-boot. Is there any special configuration for 2021.1 u-boot?

 

Thanks

Sitting 

0 Kudos
watari
Professor
Professor
464 Views
Registered: ‎06-16-2013

Hi @sitting 

 

Do you use same version among FSBL, kernel, u-boot, pmufw and ATF ?

If they are different, you are facing like this issue.

Would you make sure it ?

 

Best regards,

0 Kudos
sitting
Voyager
Voyager
444 Views
Registered: ‎05-04-2014

Hi @watari ,

FSBL, kernel, u-boot, pmufw and ATF  are the same. For short term solution, I have git u-boot 2020.1 from xilinx github and set ext_source for it in the petalinux 2021.1 and It works now. Meanwhile, I still try to find out the problem for u-boot 2021.1.

 

Thanks

Sitting

 

0 Kudos
sitting
Voyager
Voyager
368 Views
Registered: ‎05-04-2014

Hi,

The problem is fixed and it is caused by spi flash env configuration as below. Actually, there is no env setting in spi flash. I remove the configuration and system can boot to u-boot.

# CONFIG_ENV_IS_NOWHERE is not set
CONFIG_ENV_OFFSET=0x1E00000
CONFIG_ENV_SECT_SIZE=0x40000
# CONFIG_ENV_IS_IN_FAT is not set
CONFIG_ENV_IS_IN_SPI_FLASH=y
# CONFIG_USE_ENV_SPI_BUS is not set
# CONFIG_USE_ENV_SPI_CS is not set
# CONFIG_USE_ENV_SPI_MAX_HZ is not set
# CONFIG_USE_ENV_SPI_MODE is not set
# CONFIG_SYS_REDUNDAND_ENVIRONMENT is not set
CONFIG_ENV_ADDR=0x0

Thanks

Sitting

View solution in original post

0 Kudos
dakota111
Participant
Participant
138 Views
Registered: ‎10-05-2018

Hi sitting,

I am having the exact same issue. Can you expand on what you removed? Did you remove all CONFIGs listed or just the CONFIG_ENV_IS_IN_SPI_FLASH?

Thank you,

Dakota

0 Kudos
sitting
Voyager
Voyager
115 Views
Registered: ‎05-04-2014

Hi @dakota111,

I removed all CONFIGS I listed at previous post. 

 

Thanks

Sitting

0 Kudos