-
Notifications
You must be signed in to change notification settings - Fork 5.2k
U-boot: cannot boot rpi kernels #2123
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
Comments
Hooking up a serial port to GPIOs 14 & 15 would probably help to diagnose the problem. |
Ok. I use mainline u-boot setenv bootargs "earlyprintk dwc_otg.lpm_enable=0 root=/dev/mmcblk0p3 rootfstype=ext4 rootflags=commit=100,data=writeback elevator=deadline rootwait console=tty1 cma=256M@512M console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 net.ifnames=1" So basicaly i use u-boot to laod device tree file Layout of boot directory is rpi /boot # LANG=C ls -l |
I've just tested it today and can confirm, that U-Boot isn't able to boot a RPi linux kernel. The kernel image will be loaded and started but no kernel output appears on the UART console:
Tested with kernel 4.9.39 built in 64bit for RPi. I thought we had resolved this issues in February when @Electron752 introduced a fix for it, seen in this issue #1788. |
Reading your u-boot config again I see that you are loading bcm2709-rpi-2-b.dtb. Shouldn't that be bcm2837-rpi-3-b.dtb built from the arch/arm64 tree? |
I've tested both versions of the .dtb with the same result. |
Have you tried 32-bit kernels? |
No, I'm right now only interested in building a 64bit OS for the RPi. And I know we did resolved this issue back in January, see this comment #1788 (comment). But maybe the fix from @Electron752 wasn't completely merged into upstream (I'm just guessing). |
I'm afraid I can't offer you any support - we don't use U-boot and we don't support it (or the 64-bit kernel) beyond answering questions about the kernel and firmware and cooperating when a problem is found. You have much more chance of getting help in a U-boot forum. |
Silly question, but I assume you've built the 64 bit version of u-boot. rpi_3 vs rpi_3_32b. |
@6by9 yes, u-boot is built in 64bit using |
On Tue, 2017-07-25 at 16:36 +0000, Dieter Reuter wrote:
@6by9 yes, u-boot is built in 64bit using rpi_3_defconfig. The Pi
bootloader boots the CPU in 64bit mode and loads the u-boot. Then
you're able to load and boot a 64bit Linux kernel via u-boot. And
yes, you can't switch the CPU from 32 to 64bit mode, this has to be
done by the Pi bootloader.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
Hi,
Just to let everyone know I don't have any plans to contribute much
more to the Pi.
64 bit has always been experimental, and I've been spending more time
on other things in my life ATM. Part of the issue is that it's just
too time consuming for me to deal with the process part of things such
as getting changes merged.
Perhaps someone else may be willing to pick up where I left off and
continue onward.
Thanks.
…
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c5
5493e4bb","name":"GitHub"},"entity":{"external_key":"github/raspberry
pi/linux","title":"raspberrypi/linux","subtitle":"GitHub
repository","main_image_url":"https://cloud.githubusercontent.com/ass
ets/143418/17495839/a5054eac-5d88-11e6-95fc-
7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent
.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-
b52498112777.png","action":{"name":"Open in
GitHub","url":"https://github.com/raspberrypi/linux"}},"updates":{"sn
***@***.*** in #2123: @6by9
yes, u-boot is built in 64bit using `rpi_3_defconfig`. The Pi
bootloader boots the CPU in 64bit mode and loads the u-boot. Then
you're able to load and boot a 64bit Linux kernel via u-boot. And
yes, you can't switch the CPU from 32 to 64bit mode, this has to be
done by the Pi bootloader."}],"action":{"name":"View
Issue","url":"#2123 (comment)
omment-317794352"}}}
|
Welcome to the world of trying to get new code in the Linux kernel....not an easy or pleasant experience. Small bug fixes? Usually OK. Big code changes? A nightmare of Brobdingnagian proportions. |
Hi, I have a Raspberry Pi 3 configured to work with 64-bit and made the following:
This is my config.txt
Now it works and I'm able to load rootfs through NFS |
HI, I just also wanted to let others know since I keep getting pinged about the PI from time to time. I'm focusing my attention on a different platform for now. It's the BeagleBone from TI. Even though for raw computing the PI blows the BeagleBone out of the water, the BeagleBone appears to be more suited for my interests at this time. The focus of the PI appears to be more about a low cost desktop or set top box replacement with some ability to do hardware tinkering. The BeagleBone appears to be a bit more for the DIY hardware types. As far as I can tell, the only part of the BeagleBone that isn't documented is the 3D acceleration, which is completely optional. You can get video through HDMI without it. Everything else is 100% documented in the over 100 page board level manual and the 4,000 page soc manual. I'm really digging the PRU units which as 100% deterministic and have alot of the feel of traditional 8 bit MCUs, but are integrated on the chip and run at 200MHz. Quite awesome for controlling external devices with bit banging... |
Closing, as this thread is not supposed to be an advert for the BB |
Hi @JamesH65 Cheers |
We don't support 64 bit OS's (we don't supply one) so the amount of support we can give on it is limited. Others may be able to help, so have reopened the issue. What is it though, that you actually need a fix for? You last post seems to say things are working OK. |
Closing due to lack of activity. Please request to be reopened if you feel this issue is still relevant. |
In my case, the FDT file provided in the firmware package was incorrect and caused the kernel to hang. When booting, the firmware passes an internal version of the FDT to u-boot, and this one worked. So, instead of loading the FDT from a file, I had to pass the version provided by the firmware. The address of the provided FDT is in the variable
If one prefers to load the FDT from a file, for example to apply overlays, u-boot can save the FDT from the memory to a USB stick. Saving to the SD card did not work for me, it received an error condition and got stuck. |
Hi!
I seems have problems booting rpi kernels with u-boot (mainline kernels boots fine) while rpi ones seems freezes right after u-boot loads them
HW is rpi2 rpi3(64bit mode)
The text was updated successfully, but these errors were encountered: