Skip to contentSkip to conversation

U-boot enable not working for Raspberry Pi3

DISCUSSION Greg Wilson-Lindberg 3 participants 7 messages Aug 6, 2019 – Aug 7, 2019

lore
Share & tools
lore
#0 lore raw

I'm working with a Yocto Sumo build provided with Qt's boot2qt system. I'm trying to enable using Das U-boot to load Linux as a first step in trying to enable OSTree updates.

In the meta-raspberrypi documentation is says to set:

RPI_USE_U_BOOT = "1"

to enable u-boot for the raspberrypi. I have set that variable in the top level local.conf file but I don't seem to be getting any changes in the build. Nothing in the cooker log shows building u-boot, and the start up screen doesn't show any u-boot messages.

It appears that I'm missing necessary to turn u-boot on, can anybody shed some light on what is going on?

Regards,

Greg Wilson-Lindberg
www.sakuraus.com

#1 lore raw
Quoted 5 lines · Greg Wilson-Lindberg

I'm working with a Yocto Sumo build provided with Qt's boot2qt system. I'm trying to enable using Das U-boot to load Linux as a first step in trying to enable OSTree updates.

In the meta-raspberrypi documentation is says to set:

RPI_USE_U_BOOT = "1"

Hi. I'm working with the U-Boot and RPI3 at the moment as well. I'm using warrior revision and not using the Qt at all though. In my case setting the above variable was enough to build the U-Boot and include it in the final image.

In my case the platform boots into the Linux. I'm having issues with weird artifacts and resolution on the HDMI display, though. I believe this may be related to the U-Boot patching DTB to add the
simplefb: https://github.com/u-boot/u-boot/blob/master/board/raspberrypi/rpi/rpi.c#L490
while I want to keep using  the brcm fb with userland etc. (proprietary stuff).

Quoted 9 lines

to enable u-boot for the raspberrypi. I have set that variable in the top level local.conf file but I don't seem to be getting any changes in the build. Nothing in the cooker log shows building u-boot, and the start up screen doesn't show any u-boot messages.

It appears that I'm missing necessary to turn u-boot on, can anybody shed some light on what is going on?

Regards,

Greg Wilson-Lindberg
www.sakuraus.com

Signature · 3 lines
Maciej Pijanowski
Embedded Systems Engineer
https://3mdeb.com | @3mdeb_com
#2 lore raw
In reply to Greg Wilson-Lindberg

Hi Greg,

Quoted 6 lines · Greg Wilson-Lindberg

I'm working with a Yocto Sumo build provided with Qt's boot2qt system. I'm trying to enable using Das U-boot to load Linux as a first step in trying to enable OSTree updates.

In the meta-raspberrypi documentation is says to set:

RPI_USE_U_BOOT = "1"

Could be tha tboot2qt somehow drop your config. Please try tin run bitbake -e <IMAGE_NAME> | grep ^RPI_USE_U_BOOT to be sure that variable exists. I used it many times and it works perfectly fine.

Quoted 7 lines

to enable u-boot for the raspberrypi. I have set that variable in the top level local.conf file but I don't seem to be getting any changes in the build. Nothing in the cooker log shows building u-boot, and the start up screen doesn't show any u-boot messages.

It appears that I'm missing necessary to turn u-boot on, can anybody shed some light on what is going on?

Regards,

Quoted 7 lines

Greg Wilson-Lindberg
www.sakuraus.com
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

Signature · 10 lines
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
#3 lore raw

Hi Marek,

Thanks for the suggestion, that seems to be the case. What image are you building so I can try that to see what I get?

BR,
Greg

Quoted 56 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Tuesday, August 06, 2019 11:12 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] U-boot enable not working for Raspberry Pi3

Hi Greg,

Quoted 2 lines · Greg Wilson-Lindberg

I'm working with a Yocto Sumo build provided with Qt's boot2qt system. I'm trying

to enable using Das U-boot to load Linux as a first step in trying to enable OSTree updates.

Quoted 4 lines

In the meta-raspberrypi documentation is says to set:

RPI_USE_U_BOOT = "1"

Could be tha tboot2qt somehow drop your config. Please try tin run bitbake -e <IMAGE_NAME> | grep ^RPI_USE_U_BOOT to be sure that variable exists. I used it many times and it works perfectly fine.

Quoted 2 lines

to enable u-boot for the raspberrypi. I have set that variable in the top level

local.conf file but I don't seem to be getting any changes in the build. Nothing in the cooker log shows building u-boot, and the start up screen doesn't show any u-boot messages.

Quoted 2 lines

It appears that I'm missing necessary to turn u-boot on, can anybody shed some

light on what is going on?

Quoted 10 lines

Regards,

Greg Wilson-Lindberg
www.sakuraus.com
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

#4 lore raw

Hi Greg,

Quoted 4 lines · Greg Wilson-Lindberg

Hi Marek,

Thanks for the suggestion, that seems to be the case. What image are you building so I can try that to see what I get?

Please don't top post ;). I'm building basic image. I worked few months ago with bootqt and sometimes it was bit tricky ;). Are you sure you have this variable set in local.conf?

Quoted 60 lines

BR,
Greg

Quoted 56 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Tuesday, August 06, 2019 11:12 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] U-boot enable not working for Raspberry Pi3

Hi Greg,

Quoted 2 lines · Greg Wilson-Lindberg

I'm working with a Yocto Sumo build provided with Qt's boot2qt system. I'm trying

to enable using Das U-boot to load Linux as a first step in trying to enable OSTree updates.

Quoted 4 lines

In the meta-raspberrypi documentation is says to set:

RPI_USE_U_BOOT = "1"

Could be tha tboot2qt somehow drop your config. Please try tin run bitbake -e <IMAGE_NAME> | grep ^RPI_USE_U_BOOT to be sure that variable exists. I used it many times and it works perfectly fine.

Quoted 2 lines

to enable u-boot for the raspberrypi. I have set that variable in the top level

local.conf file but I don't seem to be getting any changes in the build. Nothing in the cooker log shows building u-boot, and the start up screen doesn't show any u-boot messages.

Quoted 2 lines

It appears that I'm missing necessary to turn u-boot on, can anybody shed some

light on what is going on?

Quoted 10 lines

Regards,

Greg Wilson-Lindberg
www.sakuraus.com
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

BR,

marek

#5 lore raw

Hi Marek,

Quoted 12 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Tuesday, August 06, 2019 11:40 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] U-boot enable not working for Raspberry Pi3

Hi Greg,

Quoted 1 line · Greg Wilson-Lindberg
Quoted 7 lines
Quoted 3 lines

Hi Marek,

Thanks for the suggestion, that seems to be the case. What image are you

building so I can try that to see what I get?
Please don't top post ;). I'm building basic image. I worked few months ago with bootqt and sometimes it was bit tricky ;). Are you sure you have this variable set in local.conf?

Here is an excerpt from my local.conf file:

# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to

# track the version of this file when it was generated. This can safely be ignored if
# this doesn't mean anything to you.
CONF_VERSION = "1"

#
# Custom additions
#

# Additional dtbo's
KERNEL_DEVICETREE_remove = " overlays/mcp2515-can0.dtbo overlays/mcp2515-can1.dtbo"

# Fixes for inclusion of mysql
PACKAGECONFIG_append_pn-qtbase += " sql-mysql" QT_CONFIG_FLAGS_append_pn-qtbase += " -I /usr/include/mysql" QT_CONFIG_FLAGS_append_pn-qtbase += " -I ${STAGING_DIR_TARGET}/usr/include/mysql"

RPI_USE_U_BOOT = "1"

# End Custom additions
#

#INHERIT += "rm_work"
INHERIT += "image-buildinfo"
INHERIT += "internal-build"

I copied the line from the meta-raspberrypi documentation so I think it should be formatted correctly. I know the mysql stuff is working correctly.

I tried bitbake -e core-image-minmal and I don't get it being set then either.

Quoted 65 lines
Quoted 64 lines

BR,
Greg

Quoted 60 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Tuesday, August 06, 2019 11:12 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] U-boot enable not working for Raspberry Pi3

Hi Greg,

Quoted 3 lines · Greg Wilson-Lindberg

I'm working with a Yocto Sumo build provided with Qt's boot2qt system. I'm trying

to enable using Das U-boot to load Linux as a first step in trying to enable OSTree updates.

Quoted 4 lines

In the meta-raspberrypi documentation is says to set:

RPI_USE_U_BOOT = "1"

Could be tha tboot2qt somehow drop your config. Please try tin run bitbake -e <IMAGE_NAME> | grep ^RPI_USE_U_BOOT to be sure that variable exists. I used it many times and it works perfectly fine.

Quoted 3 lines

to enable u-boot for the raspberrypi. I have set that variable in the top level

local.conf file but I don't seem to be getting any changes in the build. Nothing in the cooker log shows building u-boot, and the start up screen doesn't show any u-boot messages.

Quoted 3 lines

It appears that I'm missing necessary to turn u-boot on, can anybody shed some

light on what is going on?

Quoted 10 lines

Regards,

Greg Wilson-Lindberg
www.sakuraus.com
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

Quoted 3 lines

BR,

marek

BR,
Greg

#6 lore raw

Hi Marek,

I'm going to top post so you don't have to scroll to the meat of the matter.

I had rebuilt my system because of a failing main hard disk and had lost settings on a number of the programs that I had to re-install and didn't notice. One that has obviously caused me problems is that the editor that I use I keep set to automatically save any changes on loss of focus. I had changed the local.conf file, but I didn't realize that it hadn't written out the changes.

I realized yesterday that the editor wasn't working as I expected and fixed the setting and went on. This morning I rebuilt my yocto system and it rebuilt more than I expected and when I installed it and booted, much to my surprise I realized that u-boot was being executed.

So sorry for the false concern, and thank you for the help and maybe someone will learn something from either my mistake or from your helpful responses.

Best Regards,

Greg Wilson-Lindberg

Quoted 138 lines

-----Original Message-----
From: Greg Wilson-Lindberg
Sent: Tuesday, August 06, 2019 12:03 PM
To: Belisko Marek <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: RE: [yocto] U-boot enable not working for Raspberry Pi3

Hi Marek,

Quoted 13 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Tuesday, August 06, 2019 11:40 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] U-boot enable not working for Raspberry Pi3

Hi Greg,

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

Hi Marek,

Thanks for the suggestion, that seems to be the case. What image are you

building so I can try that to see what I get?
Please don't top post ;). I'm building basic image. I worked few months ago with bootqt and sometimes it was bit tricky ;). Are you sure you have this variable set in local.conf?

Here is an excerpt from my local.conf file:

# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to # track the version of this file when it was generated. This can safely be ignored if # this doesn't mean anything to you.
CONF_VERSION = "1"

#
# Custom additions
#

# Additional dtbo's
KERNEL_DEVICETREE_remove = " overlays/mcp2515-can0.dtbo overlays/mcp2515-can1.dtbo"

# Fixes for inclusion of mysql PACKAGECONFIG_append_pn-qtbase += " sql-mysql" QT_CONFIG_FLAGS_append_pn-qtbase += " -I /usr/include/mysql" QT_CONFIG_FLAGS_append_pn-qtbase += " -I ${STAGING_DIR_TARGET}/usr/include/mysql"

RPI_USE_U_BOOT = "1"

# End Custom additions
#

#INHERIT += "rm_work"
INHERIT += "image-buildinfo"
INHERIT += "internal-build"

I copied the line from the meta-raspberrypi documentation so I think it should be formatted correctly. I know the mysql stuff is working correctly.

I tried bitbake -e core-image-minmal and I don't get it being set then either.

Quoted 65 lines
Quoted 64 lines

BR,
Greg

Quoted 60 lines

-----Original Message-----
From: Belisko Marek [mailto:[email protected]]
Sent: Tuesday, August 06, 2019 11:12 AM
To: Greg Wilson-Lindberg <[email protected]>
Cc: Yocto list discussion <[email protected]>
Subject: Re: [yocto] U-boot enable not working for Raspberry Pi3

Hi Greg,

Quoted 3 lines · Greg Wilson-Lindberg

I'm working with a Yocto Sumo build provided with Qt's boot2qt system. I'm trying

to enable using Das U-boot to load Linux as a first step in trying to enable OSTree updates.

Quoted 4 lines

In the meta-raspberrypi documentation is says to set:

RPI_USE_U_BOOT = "1"

Could be tha tboot2qt somehow drop your config. Please try tin run bitbake -e <IMAGE_NAME> | grep ^RPI_USE_U_BOOT to be sure that variable exists. I used it many times and it works perfectly fine.

Quoted 3 lines

to enable u-boot for the raspberrypi. I have set that variable in the top level

local.conf file but I don't seem to be getting any changes in the build. Nothing in the cooker log shows building u-boot, and the start up screen doesn't show any u-boot messages.

Quoted 3 lines

It appears that I'm missing necessary to turn u-boot on, can anybody shed some

light on what is going on?

Quoted 10 lines

Regards,

Greg Wilson-Lindberg
www.sakuraus.com
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

BR,

marek

--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com

Quoted 3 lines

BR,

marek

BR,
Greg