Skip to contentSkip to conversation

Confusion about U-Boot setup

meta-raspberrypi Greg Wilson-Lindberg 4 participants 8 messages Sep 3, 2019 – Sep 5, 2019

lore
Share & tools
lore
#0 lore raw

I've configured a sumo build, by way of QT's boot2qt to use u-boot and I am seeing a u-boot prompt for keypress to drop out of automatic booting on startup, but I don't see any configuration scripts for u-boot (uEnv.txt or a script) on the image or in the build tmp/ dir.

For the raspberry pi, how is u-boot configured on startup?

Regards,
Greg Wilson-Lindberg

#1 lore raw

Hi,

Quoted 4 lines · Greg Wilson-Lindberg

I've configured a sumo build, by way of QT's boot2qt to use u-boot and I am seeing a u-boot prompt for keypress to drop out of automatic booting on startup, but I don't see any configuration scripts for u-boot (uEnv.txt or a script) on the image or in the build tmp/ dir.

For the raspberry pi, how is u-boot configured on startup?

there is u-boot variable called bootdelay which can be set to e.g. 2 to wait until autoboot for 2 secs. I think this is the case. Thanks.

Quoted 9 lines

Regards,
Greg Wilson-Lindberg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

#2 lore raw
Quoted 12 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Wednesday, September 04, 2019 12:26 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] [meta-raspberrypi] Confusion about U-Boot setup

Hi,

Quoted 1 line · Greg Wilson-Lindberg
Quoted 8 lines
Quoted 1 line

I've configured a sumo build, by way of QT's boot2qt to use u-boot and I am

seeing a u-boot prompt for keypress to drop out of automatic booting on startup, but I don't see any configuration scripts for u-boot (uEnv.txt or a script) on the image or in the build tmp/ dir.

Quoted 2 lines

For the raspberry pi, how is u-boot configured on startup?

there is u-boot variable called bootdelay which can be set to e.g. 2 to wait until autoboot for 2 secs. I think this is the case. Thanks.

There is a variable "BOOT_DELAY", that is used to tell the Raspberry Pi boot loader to delay after setting up the graphics and before loading the kernel. This has nothing to do with u-boot. There should be some way to change the u-boot delay that waits for user input, among other things, I just haven't been able to find it yet and was wondering if someone could point me to where it can be found.

BR,
Greg

Quoted 13 lines
Quoted 9 lines

Regards,
Greg Wilson-Lindberg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

#3 lore raw

Hi,

Quoted 18 lines · Greg Wilson-Lindberg
Quoted 18 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Wednesday, September 04, 2019 12:26 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] [meta-raspberrypi] Confusion about U-Boot setup

Hi,

Quoted 2 lines · Greg Wilson-Lindberg

I've configured a sumo build, by way of QT's boot2qt to use u-boot and I am

seeing a u-boot prompt for keypress to drop out of automatic booting on startup, but I don't see any configuration scripts for u-boot (uEnv.txt or a script) on the image or in the build tmp/ dir.

Quoted 1 line
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

For the raspberry pi, how is u-boot configured on startup?

there is u-boot variable called bootdelay which can be set to e.g. 2 to wait until autoboot for 2 secs. I think this is the case. Thanks.

There is a variable "BOOT_DELAY", that is used to tell the Raspberry Pi boot loader to delay after setting up the graphics and before loading the kernel. This has nothing to do with u-boot. There should be some way to change the u-boot delay that waits for user input, among other things, I just haven't been able to find it yet and was wondering if someone could point me to where it can be found.

I think you need to look at u-boot source. Such thing is not available in yocto IIRC.

Quoted 17 lines

BR,
Greg

Quoted 13 lines
Quoted 9 lines

Regards,
Greg Wilson-Lindberg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

BR,

marek

#4 lore raw
Quoted 3 lines

From: Belisko Marek

BR,

A two-letter answer is too cryptic. He's not just asking what the variable name is, he's asking where the file is that contains the variable.

Signature · 2 lines
Ciao,               Paul D. DeRocco
Paul                mailto:[email protected]
#5 lore raw
In reply to Greg Wilson-Lindberg
Quoted 4 lines

There should be some way to change the u-boot delay that waits for user input, among other things, I just haven't been able to find it yet and was wondering if someone could point me to where it can be found.

Jesus Christ's, Greg?!

This is what you should look for (exact string):
#define CONFIG_BOOTDELAY (whatever {0,1,2,3...})

In your $(UBOOT_ROOT)/include/configs/<config_file.h>

Zoran
_______

Quoted 45 lines · Greg Wilson-Lindberg
Quoted 13 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Wednesday, September 04, 2019 12:26 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] [meta-raspberrypi] Confusion about U-Boot setup

Hi,

Quoted 1 line · Greg Wilson-Lindberg
Quoted 8 lines
Quoted 1 line

I've configured a sumo build, by way of QT's boot2qt to use u-boot and I am

seeing a u-boot prompt for keypress to drop out of automatic booting on startup, but I don't see any configuration scripts for u-boot (uEnv.txt or a script) on the image or in the build tmp/ dir.

Quoted 2 lines

For the raspberry pi, how is u-boot configured on startup?

there is u-boot variable called bootdelay which can be set to e.g. 2 to wait until autoboot for 2 secs. I think this is the case. Thanks.

There is a variable "BOOT_DELAY", that is used to tell the Raspberry Pi boot loader to delay after setting up the graphics and before loading the kernel. This has nothing to do with u-boot. There should be some way to change the u-boot delay that waits for user input, among other things, I just haven't been able to find it yet and was wondering if someone could point me to where it can be found.

BR,
Greg

Quoted 10 lines
Quoted 9 lines

Regards,
Greg Wilson-Lindberg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Quoted 3 lines

BR,

marek

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#6 lore raw
Quoted 13 lines

-----Original Message-----
From: Zoran Stojsavljevic [mailto:[email protected]]
Sent: Wednesday, September 04, 2019 12:44 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Belisko Marek <[email protected]>; Yocto list discussion <[email protected]>
Subject: Re: [yocto] [meta-raspberrypi] Confusion about U-Boot setup

Quoted 4 lines

There should be some way to change the u-boot delay that waits for user input, among other things, I just haven't been able to find it yet and was wondering if someone could point me to where it can be found.

Quoted 6 lines

Jesus Christ's, Greg?!

This is what you should look for (exact string):
#define CONFIG_BOOTDELAY (whatever {0,1,2,3...})

In your $(UBOOT_ROOT)/include/configs/<config_file.h>

I wasn't originally looking for the boot delay, that is what marek mentioned. I was looking for general configuration info and where the uEnv.txt got setup. I thought somehow I had missed some docs on u-boot configuration as there are so many configuration options that can be set by yocto variables. I guess they don't exist for u-boot and I will look in the u-boot config_file.h Thanks,
Greg

Quoted 58 lines

Zoran
_______

Quoted 20 lines · Greg Wilson-Lindberg
Quoted 20 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Wednesday, September 04, 2019 12:26 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] [meta-raspberrypi] Confusion about U-Boot setup

Hi,

Quoted 3 lines · Greg Wilson-Lindberg

I've configured a sumo build, by way of QT's boot2qt to use u-boot and I am

seeing a u-boot prompt for keypress to drop out of automatic booting on startup, but I don't see any configuration scripts for u-boot (uEnv.txt or a script) on the image or in the build tmp/ dir.

Quoted 1 line
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

For the raspberry pi, how is u-boot configured on startup?

there is u-boot variable called bootdelay which can be set to e.g. 2 to wait until autoboot for 2 secs. I think this is the case. Thanks.

There is a variable "BOOT_DELAY", that is used to tell the Raspberry Pi boot

loader to delay after setting up the graphics and before loading the kernel. This has nothing to do with u-boot. There should be some way to change the u-boot delay that waits for user input, among other things, I just haven't been able to find it yet and was wondering if someone could point me to where it can be found.

Quoted 22 lines

BR,
Greg

Quoted 10 lines
Quoted 9 lines

Regards,
Greg Wilson-Lindberg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Quoted 3 lines

BR,

marek

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#7 lore raw

@Off Topic, regarding managing U-Boot out of YOCTO tree

Just to clear some things here... At least from my side.

Anyway, whatever you, guys, do with YOCTO (and YOCTO indeed gives and delivers the complete BSP + rootfs), I usually use ONLY one YOCTO
component: rootfs. All other components I manage out of YOCTO tree. In other words, I do my own u-boot and my own kernel as separate components. Easier for me. All three components will go to different separate SDcard or mmc partitions.

If it comes to manage .config, it is somehow supported. But when it comes to do separate set of drivers, people use overlays (new layers over old ones). Imagine someone needs to change DTS topology?!

I guess, I used to this philosophy. Buildroot is another alternative (much easier manageable for rootfs-es in terms of adding separate components), but I like YOCTO integrated rootfs vision, and user space layering. ;-)

My two cent worth thinking (at least from R&D perspective), Zoran
_______

Quoted 83 lines · Greg Wilson-Lindberg
Quoted 14 lines

-----Original Message-----
From: Zoran Stojsavljevic [mailto:[email protected]]
Sent: Wednesday, September 04, 2019 12:44 PM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Belisko Marek <[email protected]>; Yocto list discussion <[email protected]>
Subject: Re: [yocto] [meta-raspberrypi] Confusion about U-Boot setup

Quoted 4 lines

There should be some way to change the u-boot delay that waits for user input, among other things, I just haven't been able to find it yet and was wondering if someone could point me to where it can be found.

Quoted 6 lines

Jesus Christ's, Greg?!

This is what you should look for (exact string):
#define CONFIG_BOOTDELAY (whatever {0,1,2,3...})

In your $(UBOOT_ROOT)/include/configs/<config_file.h>

I wasn't originally looking for the boot delay, that is what marek mentioned. I was looking for general configuration info and where the uEnv.txt got setup. I thought somehow I had missed some docs on u-boot configuration as there are so many configuration options that can be set by yocto variables. I guess they don't exist for u-boot and I will look in the u-boot config_file.h Thanks,
Greg

Quoted 58 lines

Zoran
_______

Quoted 20 lines · Greg Wilson-Lindberg
Quoted 20 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Wednesday, September 04, 2019 12:26 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] [meta-raspberrypi] Confusion about U-Boot setup

Hi,

Quoted 3 lines · Greg Wilson-Lindberg

I've configured a sumo build, by way of QT's boot2qt to use u-boot and I am

seeing a u-boot prompt for keypress to drop out of automatic booting on startup, but I don't see any configuration scripts for u-boot (uEnv.txt or a script) on the image or in the build tmp/ dir.

Quoted 1 line
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

For the raspberry pi, how is u-boot configured on startup?

there is u-boot variable called bootdelay which can be set to e.g. 2 to wait until autoboot for 2 secs. I think this is the case. Thanks.

There is a variable "BOOT_DELAY", that is used to tell the Raspberry Pi boot

loader to delay after setting up the graphics and before loading the kernel. This has nothing to do with u-boot. There should be some way to change the u-boot delay that waits for user input, among other things, I just haven't been able to find it yet and was wondering if someone could point me to where it can be found.

Quoted 22 lines

BR,
Greg

Quoted 10 lines
Quoted 9 lines

Regards,
Greg Wilson-Lindberg

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Quoted 3 lines

BR,

marek

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto