andreiw / RaspberryPiPkg

DEPRECATED - DO NOT USE | Go here instead ->
https://github.com/tianocore/edk2-platforms/tree/master/Platform/RaspberryPi/RPi3
744 stars 143 forks source link

Question: is the Raspberry Pi 2 rev. 1.2 (BCM2837) supported/working? #70

Closed mk2soldier closed 4 years ago

mk2soldier commented 5 years ago

Great project! I was wondering if this UEFI port is compatible with the rev 1.2 of the Raspberry Pi 2 which is based upon the BCM28367 SoC albeit with a lower default clock speed (900 MHz) and no WiFi nor Bluetooth

Thank you!

andreiw commented 5 years ago

You mean the 64-bit Pi 3 variant? It could, yes, but is not today - the firmware (both atf and uefi) need to be able to use either pl011 or the microuart serial ports, and today only the microuart is supported.

A

20 сент. 2018 г., в 8:13, mk2soldier notifications@github.com написал(а):

Great project! I was wondering if this UEFI port is compatible with the rev 1.2 of the Raspberry Pi 2 (which is based upon the BCM28367 SoC albeit with a lower default clock speed: 900 MHz)

Thank you!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

mk2soldier commented 5 years ago

I mean the one that the RPi foundation marketed as Raspberry Pi 2 but essentially is a Raspberry Pi 3 (shares the same SoC) but with a slower clocked CPU and without wireless connectivity:

Raspberry Pi 2 V1.1 (BCM2836 ARMv7) raspberry_pi_2_model_b_v1 1_top_new_ bg_cut_out

Raspberry Pi 2 V1.2 (BCM2837 ARMv8) pi2b-1 2_1500

mk2soldier commented 5 years ago

AFAIK apart from the CPU speed and the absence of wireless connectivity the Pi2 V1.2 and Pi3 should be virtually identical right?

andreiw commented 5 years ago

Sorry, I mistyped, I meant the updated Pi 2 so we are talking about the same thing. The updated Pi 2 is basically a Pi 3 without BT/WLAN.

It should work, but I don’t have one to test (yet) and I don’t know if it requires use of PL011 UART or if it can continue to work with the miniUART.

A

20 сент. 2018 г., в 18:29, mk2soldier notifications@github.com написал(а):

AFAIK apart from the CPU speed and the absence of wireless connectivity the Pi2 V1.2 and Pi3 should be virtually identical right?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

mk2soldier commented 5 years ago

Thank you for your reply, if you want I can do some testing: I have a rev. 1.2 RPi2 that I can use

andreiw commented 5 years ago

Sure, thanks. Just try the latest release, just so I validate by expectations.

I expect that a) nothing will appear on screen b) serial output will not work.

(a) would be induced by a crash caused by (b), so the first thing to work on would be to see messages from ATF.

A

7 окт. 2018 г., в 6:36, mk2soldier notifications@github.com написал(а):

Thank you for your reply, if you want I can do some testing: I have a rev. 1.2 RPi2 that I can use

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

andreiw commented 5 years ago

Ok, I ordered one.

mk2soldier commented 5 years ago

I've downloaded the latest binary release, I've formatted the uSD (SanDisk 8GB) with MBR partition table and FAT32 filesystem, I've copied the content of 2018Oct1-GCC5/RELEASE/ (and also 2018Oct1-GCC5/DEBUG/ after the first try) to the root of the partition of the uSD card. When I boot the RPi all I can see is the colored rainbow screen, it remains there indefinitely.

Am I missing something there or is this the expected outcome?

IIRC the RPi 1.2 has the PL011 UART breaked out to pins 14/15 and the miniUART is confined in the SoC (not mapped to any external pins outside of the BCM2837 BGA package) or is it the other way around?

I've yet to try the serial console, I'll report back my findings

andreiw commented 5 years ago

That’s the expected outcome. Most likely it crashes on the first microUART accesses, because the AUX block is not enabled by VC firmware at the time of the handover.

I bought one. Should arrive soon.

A

10 окт. 2018 г., в 9:11, mk2soldier notifications@github.com написал(а):

I've downloaded the latest binary release, I've formatted the uSD (SanDisk 8GB) with MBR partition table and FAT32 filesystem, I've copied the content of 2018Oct1-GCC5/RELEASE/ (and also 2018Oct1-GCC5/DEBUG/ after the first try) to the root of the partition of the uSD card. When I boot the RPi all I can see is the colored rainbow screen, it remains there indefinitely.

Am I missing something there or is this the expected outcome?

IIRC the RPi 1.2 has the PL011 UART breaked out to pins 14/15 and the miniUART is confined in the SoC (not mapped to any external pins outside of the BCM2837 BGA package) or is it the other way around?

I've yet to try the serial console, I'll report back my findings

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

stefan2225 commented 5 years ago

@andreiw You can also set bluetooth to use the miniUART, instead of PL011 UART with "dtoverlay=pi3-miniuart-bt" in the config.txt, after that PL011 will be restored to pins 14/15. This will probably act like the Pi 2 v1.2 he has

andreiw commented 5 years ago

The dtoverlay is processed by OS, not VC firmware.

A

12 окт. 2018 г., в 14:19, stefan2225 notifications@github.com написал(а):

@andreiw You can also set bluetooth to use the miniUART, instead of PL011 UART with "dtoverlay=pi3-miniuart-bt" in the config.txt, after that PL011 will be restored to pins 14/15 like on the pi 2 v1.2

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

andreiw commented 5 years ago

I have a Pi 2 1.2 now. No ETA :)

mk2soldier commented 5 years ago

I'm definitely looking forward to it :)

PSzczepanski1996 commented 5 years ago

Hi, is there something I can test? I own rPi 2 so I could spend free time on it :)

PSzczepanski1996 commented 4 years ago

He-llo?

andreiw commented 4 years ago

If there will be, it will be with the upstream RPi3 code at https://github.com/tianocore/edk2-platforms/tree/master/Platform/RaspberryPi/RPi3