Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zeus branch raspberrypi cm3 u-boot no messages in console #643

Closed
nandra opened this issue May 5, 2020 · 22 comments
Closed

zeus branch raspberrypi cm3 u-boot no messages in console #643

nandra opened this issue May 5, 2020 · 22 comments

Comments

@nandra
Copy link
Contributor

nandra commented May 5, 2020

Using meta-raspberrypi branch zeus with raspberrypi cm3 module and enable u-boot in localconf. Build image doesn't show any info in console. I tried older u-boot 2018.01 and it works fine. Ideas?
Console is on PIN 14 and 15.
Thanks.

@agherzan
Copy link
Owner

agherzan commented Jun 9, 2020

Could it be related to raspberrypi/firmware#1391 ?

@nandra
Copy link
Contributor Author

nandra commented Jun 9, 2020

Issue was missgin u-boot patch: commit id: 29f7d05a347ab7a42577c67fdfb787ef91537302

@agherzan
Copy link
Owner

agherzan commented Jun 9, 2020

Do we have that in meta-raspberrypi?

@nandra
Copy link
Contributor Author

nandra commented Jun 9, 2020

Nope should be cherrypicke at least for have u-boot 2020.01 working on cm3.

@mike-scott
Copy link

@nandra Ah that makes sense. I ended up migrating to a newer u-boot and my boot issues on CM3 went away.

@agherzan
I notice that https://github.com/agherzan/meta-raspberrypi/blob/master/conf/machine/raspberrypi-cm3.conf doesn't set:
VC4DTBO ?= "vc4-fkms-v3d" like the other machine configurations.

I had to temporarily setup an append to get working fkms graphics.

Otherwise the default setting here is set (kms):
https://github.com/agherzan/meta-raspberrypi/blob/master/recipes-bsp/bootfiles/rpi-config_git.bb#L27

@mike-scott
Copy link

mike-scott commented Jun 9, 2020

To clarify: I know that this setting in config.txt shouldn't really affect u-boot / Linux. But I was getting a GPU hang during Linux boot until I made sure the config.txt had the right setting here. Who knows what the RaspberryPi firmware does prior to u-boot handoff.

@nandra
Copy link
Contributor Author

nandra commented Jun 20, 2020

Fix: #660

@amgedr
Copy link

amgedr commented Sep 22, 2020

U-Boot was not working in dunfell for the CM3+. It was fixed when I manually added the changes in #660. Why was the commit reverted in the dunfell branch?

@agherzan
Copy link
Owner

Can you point me to the revert PR?

@amgedr
Copy link

amgedr commented Sep 23, 2020

Sorry, just found the PR. It's #699 and as you mentioned it is just missing an append to FILESEXTRAPATHS. I thought there is a bug in the patch.

@nandra
Copy link
Contributor Author

nandra commented Sep 25, 2020

Also stock zeus build (without u-boot) doesn't boot on CM3. Anyone have some idea? CM3 is light version without eMMC. Thanks.

@nandra
Copy link
Contributor Author

nandra commented Sep 25, 2020

Nah I was wrong. It just took some time until it start and need to enable console :). Sorry for noise.

@agherzan
Copy link
Owner

agherzan commented Oct 5, 2020

@amgedr That PR was a hefty backport. Would be hard for me to spot the issue from it. We would need to do a bit of investigation.

@amgedr
Copy link

amgedr commented Oct 8, 2020

Hope this helps when you get a chance to review: #660's commit f20ccfa solved the CM3+ booting issue when u-boot is enabled. But as you commented in #699, it was reverted in 8258e73 because it was missing the following line:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

@agherzan
Copy link
Owner

That makes sense - and I remember now. Do you feel like pushing that? CC @nandra

@nandra
Copy link
Contributor Author

nandra commented Oct 14, 2020

Should I redo patch or @amgedr will you do it? Thanks.

@agherzan
Copy link
Owner

I didn't know you are up for it. If you want, it would probably be better if you could do it as you know better patch.

@nandra
Copy link
Contributor Author

nandra commented Oct 15, 2020

PR #747

@agherzan
Copy link
Owner

Thanks @nandra . @amgedr do you have a second to give the PR a spin?

@amgedr
Copy link

amgedr commented Oct 19, 2020

Sorry, didn't notice the notification email earlier. Works on CM3+.

@vkotarov
Copy link

vkotarov commented Jun 8, 2021

Not sure if this is the right place to comment but the patch somehow made it to gatesgarth. On the other hand, it's not needed there as u-boot version is 2020.07 and already has it applied. Eventually, the do_patch task breaks on gatesgarth (probably on hardknott, too)

@agherzan
Copy link
Owner

Looks fixed. Ping me otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants