Will ANY GPUs work on the Raspberry Pi?
Вставка
- Опубліковано 16 тра 2024
- Last year I tried getting older AMD and Nvidia graphics cards working on the Raspberry Pi Compute Module 4. I was not successful.
Armed with three new video cards-newer-gen AMD and Nvidia cards, plus a teensy-tiny M.2 video card from ASRock Rack-can I get any of them to light up an external monitor?
Find out in this video, and follow along with progress on the Pi PCI Express database and the GitHub repository that goes with it: pipci.jeffgeerling.com
Products mentioned in the video (affiliate links):
- Sapphire Radeon RX 550: amzn.to/3tMwmRI
- EVGA Nvidia GeForce GTX 750 Ti: amzn.to/3ayicMb
- ASRock Rack M2_VGA: www.asrockrack.com/general/pr...
- Raspberry Pi Compute Module 4: amzn.to/2Qo4Qve
- Raspberry Pi Compute Module 4 IO Board: amzn.to/3nfSS2W
- 1x to 16x adapter cable: amzn.to/3xh9RX5
- 12V 5A Power supply: amzn.to/2RO696Y
- 700W PC ATX PSU: amzn.to/32Fh9py
- PCE164P-NO3 VER 006 PCIe Riser (the one that worked): www.newegg.com/p/N82E16812119...
- Adafruit USB-to-TTL Serial adapter: amzn.to/3vh5REj
Support me on Patreon: / geerlingguy
Sponsor me on GitHub: github.com/sponsors/geerlingguy
Links mentioned in the video:
- Raspberry Pi PCI Express Card Database: pipci.jeffgeerling.com
- Commit to set BAR space to 1GB+: github.com/raspberrypi/linux/...
- Increase BAR Space (Gist): gist.github.com/geerlingguy/9...
- Sapphire AMD Radeon RX 550 details: pipci.jeffgeerling.com/cards_...
- EVGA Nvidia GTX 750 Ti details: pipci.jeffgeerling.com/cards_...
- ASRock Rack M2_VGA SM750 details: pipci.jeffgeerling.com/cards_...
#RaspberryPi #ComputeModule4 #GPU
Contents:
00:00 - 5 different GPUs
00:57 - 3 new graphics cards
01:41 - Hurdles
03:30 - GeForce GTX 750 Ti
05:40 - AMD Radeon RX 550
07:56 - ASRock Rack M2_VGA
10:56 - A glimmer of hope
12:02 - A plea for help
12:31 - Outtakes - Наука та технологія
Coreforge just got a full screen of text (plus a few artifacts)! Hope springs eternal, and thanks again to AMD for making their drivers open source, so we can get this deep into debugging and tweaking them! github.com/geerlingguy/raspberry-pi-pcie-devices/issues/4#issuecomment-826009569
There's also some new hope for the GT 710-going to see how things go on a new test run with the nouveau driver.
Interesting, so there's a ray of hope. Maybe one day I will build a 2d game console/arcade cabinet with a pi.
I have some radeon passive gpu thak would be great to test it in your research. Let me search for it.
Try Anthony from Linus tech tips
meh - another 24hrs and that screen of text could have been in the video (as well as the reason why - tunrming off combined writes) - I read all 76 messages in that thread on the 23rd, and when I saw that last screen shot .. "Hot damn" (with cheesey grin) Quake3 here we come :)
backpacks which create a virtual world with glasses. normalize the orientation per user and you have 3d map of the world with enough nodes. a real virtual world you can live in. users add own features and dapps for real life services. just need the glasses, and some driver support :) lol
nice to see you shoutout smaller channels like LinusTechtips
Gotta support the little guys!
@@JeffGeerling lmao linus and his tiny 13 million subs
linus is bigger
lol
@@Ordlnary_Gamer what really? you sure
1:18 "this little unknown youtube channel linus tech tips" lmao u killed me
LMAO!
@Suthan Cn its a joke
Linus tech tips must be lucky to get this shout out from him
@Suthan Cn clearly a joke.
@@AdamBucky21 it's a joke bruh
There is a Polish proverb: If there is something that cannot be done, tell someone who does not know about it - he will take it and he will do it
Yeh I always seem to be that guy!
I always took "you can't do that it can't be done" as a change
Just because someone else can't do it doesn't mean I can't ,!!
I had two sided 80 track floppy's running on the old apple IIs way before someone said you can't do that. I rented a 400k mac drive do I could interface it to my apple IIs plus...
Just means: that's not going to be easy
Exactley. The thing that all great breakthroughs have in common is that the people making them happen dont know they shouldnt work.
jak to jest po polsku?
@@szpecunio Jeżeli jest coś czego nie da się zrobić, powiedz to komuś kto o tym nie wie - weźmie i to zrobi ;)
Great work Jeff. Just remember, failed tests aren't really failures. They're just revealing the dead ends that aren't worth pursuing further.
Definitely! That's why I decided to post this video now, instead of letting it linger without resolution for more weeks/months.
I'm hoping, one of these days, I can post a video with 'success' like I get to for many other cards!
@@JeffGeerling Thank you for your hard work. You have made progress and I believe one day you will have success.
@@JeffGeerling ua-cam.com/video/ci7u1fIRVXY/v-deo.html this guy has worked one.
@@volkankonur2454 Read the first comments on his video.
The joke about Linux is that you write your own drivers
I didn’t think that someone would actually do it
It's the reason why I use linux. If support doesn't exist, fix it.
The GPU drivers were written to work on a little-endian machine equipped with an X86 processor, the ARM are configurable to work in both little and big endian mode. The video drivers probably use some assembly code that is not compatible with the RPI processors, I don't know if they tried looking through assembly code blobs whether the drivers are using architecture specific functionality or not. Personally I think it is possible adapt the drivers to use a custom PCI controller that could resolve incompatible functionality and communication on the PCIe bus.
@@bloepje it's the reason why I use Windows. If it doesn't work, someone has already been there and documented it for you 🤷🏻♂️
@@jimbo1531 it’s the reason why I have windows and Linux on dual boot, whatever can’t be done with Linux can be done with windows and the other way around lol
@@bjarnestronstrup9122 all modern ARM machines are little-endian.
elfarto. now that is an amusing name to be saying haha
@@elFarto2 you made my day!!!
@@bunnysparklzbunnytime5117 he even said it with a straight face 😂
@@reasonsvoice8554 inorite!
Exactly what I was thinking.
I have a very great friend in Spain called elfarto
Working through these issues with you together is a great experience.
*ELFARTO HAS ENTERED THE CHAT*
Cool
Just remember Jeff, there is an alternative universe (or many) where you were successful. However, with 10^500 such alternatives, it might be a bit difficult to find that Jeff and ask him what he did.
I just need to find a way to communicate with alternate-universe-Jeff (maybe set up 5G on a Pi?)
@@JeffGeerling Go watch Frequency. LOL.
@@JeffGeerling speaking of adding cellular to the Pi, have you thought about that 👀
Tie-Dye Jeff!
more importantly, which color has his shirt?
Your perseverance is astonishing. I'm sure you or someone else will succeed eventually in getting a GPU to work with the Pi 4 and I'll be watching your channel to see how it was managed. Thank you for being a pillar of the Raspberry Pi community when it comes to PCI support :)
Bootlin should be able to help. They've done various open source Linux graphics & kernel development work before, including work on ARM-based SBCs. And I'm sure they'd love the publicity
Will try to reach out!
I was thinking similarly the open source soc gpu drivers might give a hint on the differences in desktop cpu dependencies vs arm. The Tegra should definitely help to get an nvidia based card working
@@daredevil8888 I recall the massive disappointment of nVidia pulling the Tegra 1 tools and documentation when I was still using and troubleshooting devices based on that chip. Didn't help that they started removing features from the PC driver for my office class GPU.
I've done work like this. I can't imagine how many hours you've spent testing all the combinations you've tried. Good work and thanks for sharing.
This stuff is beyond me but I seriously appreciate you and your content, the level of detail you put into what you do really shows that you love this stuff! I may not understand everything but I always watch your videos from beginning to end :)
I can't wait to make my Raspberry Pi start gaming!
Well, YOU can get a gpu.
what's stopping you from doing so already?
@@iHawke i dont have the compute module one. I just have the normal one. Lmao
I already Do game on mine, guess depends what kind of Games you want To play ? I bought one of those Nintendo cases and dropped my pi in that and play retro games . Would be awesome to play modern games but i wont hold my breath on that one being a thing anytime soon . Good luck for this young man trying and i wish him all the success ..but ya .
@@MarcoGPUtuber look up pi labs on youtube, he has done some wonderful things with the pi already
Jeff, I really appreciate the effort and articulation... not to mention the masterful editing. Been waiting for this one.
great work! i appreciate how you show the depths to which these issues can delve into and your process!
Sadly neither my knowledge or my network would be useful to help, but man, this is so exicitng! Keep going! If it is down to finances, I am sure there are a lot of us who wouldn't mind chipping in for the good cause.
I even considered finding some way to justify an RTX card purchase, but I just can't right now. Not with the way prices are.
Maybe I can somehow get LTT to loan me one of there dozens of cards from the warehouse :D
@@JeffGeerling They had like four rtx 3000 (maybe 3080 only, anyway very little) cards in the inventory in a recent video so I don't know if that's possible. The VAG program doesn't fit this situation either
I think the song "The Impossible Dream" was written with you in mind. Your dedication is exemplary.
Incidently, I recommend the, rather old, Andy Williams version of this song as the best.
Don't give up! Thank-you for documenting your progress
Cheers to you for taking on such a crazy task. Good luck with your experiments!
There are a lot of things in this video that went above my head. However, I must say, what wins my heart and (pretty sure of others too) is the time and effort you put into it, Jeff. I am really a fan of "not losing hope" attitude of yours. PS: I know you'll figure this out.
I always loved the Matrox G400. Scroll a page with a mouse wheel, and the text was crisp and clear. Great for a machine that wasn’t for 3D games.
Keep up the great work!!! I'm looking forward to the vid where you guys get it working!!!
Great work Jeff, even it failed during these test you for sure tested all possible ways to get it to work! Next time it will work better!
Deep respect for your tenacity, I stand in awe. How deep can you go figuring this graphics card snafu out? Awesomely deep, as you demonstrate.
7:52 yay for parenting! All the best wishes for the wee bundle of love!
Really interesting video, your raspberry pi divulgation efforts are so valuable for the entire community, from the persons who only use it as a cheap linux box as hobby to the ones who actually use it as work tool!
Impressive results 👍
Thanks for sharing your experience with all of us 👍😀
I am beginning to think it may be easier to develop a purpose-made video card for the compute 4 than try to marry up with the existing x86 based cards LOL
It makes IMHO more sense to use a Mali GPU with the Pie SOC.
I am excited for the future of M.2 GPUs.
Much respect to you working through it
hey so i know this is an older video but i find this very inspiring. absoutly nuts that you can do this. well done
And till the end of time, Jeff Geerling you shall be!
I really enjoy your vids.
I really enjoy your comments!
Thanks for all the work you are doing on these investigations! It will help the overall efforts move forward even if it’s not directly visible to the current end users :)
Just found this channel and subscribed.
+1 for editing style
+1 for showing driver code and hardware steps
+1 for diet Dr Pepper
+1 for bloopers at the end
I love when UA-camrs make references to each other 😂 like that one at 5:08 from eevblog.
Imagine training GAN Models on Raspberry Pi, in the near future.
I also want gpu support on the rpi for a cheep deep learning training plataform instead of building a complete pc setup.
You mean something like the google coral thingy that already works on the pi?
@@TV4ELP Nono google coral can only make inference but cannot train aa far as I now
@@TV4ELP You can´t use Coral EdgeTPU through PCIe on the CM4
@@chachocarajoz there is a usb version that works perfectly fine
Thank you for the great content, my maaan!!! I just got recomended this video and I am already in love!
And amazing bloopers, keep up the great work!!!
You inspire me to never give up on anything!
Which OS are you using for now, U might wanna use WOR! Direct windows drivers might work straight away! If you need any help in WOR you can ask me anytime.
Thanks and have a nice day :)
:D
Yea
Now...I'm not sure which is more harder : Getting A GPU or....getting one work with the Pi 😉
Good job man dont stop I'm counting on you
Thanks a lot for the video. Impressive how much work you put into getting this to work and debugging. Interesting. Hopefully it will work one day, with more minds focus on this. So we have the big gfx cards to Raspberry Pi.
By the way, a top of the line card totally has a place on a raspberry pi: as a mining system
I spit beer all over my keyboard when you said "elFarto" out loud. Thanks for that.
@@elFarto2 The man, the myth, the LEGEND. He is ,El Farto.
Thanks for the vid Jeff!
Commendable Efforts; Very Inspired!
I need that tiny gpu. Hear my out: I already have windows 10 on a vm with gpu passthrough. I have a radeon card I use for linux, a nvidia for windows. Wouldnt it be great to have that little m.2 drive for linux, and then have a separate hackintosh vm?!?!?
Drake 😣🤚 "Quake 3 @ 4K with CM4 & a graphics card".
Drake 😊👉 "Doing Doom 3 instead".
nah, lets run Quake II RTX
Thank you Jeff, keeping the hacking-spirit alive. I just love your enthusiasm trying to find a way forward!
Awesome work man! For science!
I am following this closely.
I mean with Nvidia acquiring ARM I don't see it being too long before some sort of support is out there. Do ARM based servers have GPUs in them currently?
Yes. But they’re very different ARM cpus. Eg. Annapurna
As Matt mentions, yes there are ARM servers with GPUs. And Nvidia even makes the Jetson already, but so far I've only seen a few ARM platforms where video cards actually work, and they're very expensive (at least for my tiny budget).
Can't wait until you find a solution and all the crypto miners wipe the stock of raspberries to mine 😅😂
Okay honestly, mad respect for pushing this far. I would have given up a looong time ago :P
Goodluck! Doing a pi thing this weekend. Love your videos.
Wendell from level 1 tech. Might be able to help, the man is a tech genius.
I was thinking the same thing, you beat me to it :)
If youtube recommended this video to me just to make me feel stupid, it succeeded. I probably picked up 2% of what was said this video. That said, it was interesting enough for me to finish watching the whole thing so that says something.
2% is better than nothing!
Your perseverance is humbling
I want to thank you for continuing this journey. I feel like since they all lock up, maybe there's a single problem causing this. I hope once you find it suddenly everything just starts working for all these cards.
Yes...yes....yess.......finally after waiting for eternity
Haha, I actually had the script mostly-complete a month or so ago... every time I put some words in, I felt compelled to test something a couple more ways to make sure I wasn't saying something that could be easily refuted!
@@JeffGeerling Yeah...but maybe this Pi aint destined to work with Graphic cards...maybe we should just wait for a while
Little known "Linus Tech Tips" Hahahahah. Nice dig.
I was shocked that he said little guys .
I was waiting for it, finally!!!
such a trooper, keep up the good work
I have a MiniPCIe video card. You wanna try it?
Which one is it?
@@JeffGeerling EMPV-1201. it's a 2D card so not technically a GPU. Pcie 1x. Not in use at the moment cause i am figuring out how to get Ubuntu on the board.
@@MarcoGPUtuber I mean, it can't hurt to at least connect it and see what happens. It looks like there's a driver (www.innodisk.com/en/support_and_service/download), and it lists "Linux Ubuntu 12.04-16.04(32/64bit)"... AND it looks like it might actually use the SM750 that the M2_VGA uses!
Going to have to see how their driver works with the M2_VGA too now...
@@JeffGeerling Right. Absolutely. And it's ARM compatible. I'm just a UBoot n00b tryin to get Ubuntu on this ARM board i got. Lmao
I hear the Broadcom VideoCore VI GPU works out the box on the Pi.
yeah but it's poorly documented and has no openCL support.
but VideoCore is not a GPU. It's a general-purpose CPU, but with more DSP features
And it can't do Quake III at 4K 😆
@@JeffGeerling Not with that attitude it can't!
@@izzieb Okay, okay... I should specify-at more than 10 seconds per frame :D
I learn a hell of a lot more from these failed attempt videos than anything else. thanks for the update!
I love how research can make awesome things maybe is not the results what you want but is a good start
"... I can't even debug it since I don't have the source." Wow, it's almost like having opensource code can actually let the community solve some of your problems for you. I guess Nvidia just doesn't want help
I really wish they saw the value in OSS. And that more people would use AMD's stuff, since they're so much better in the OSS ecosystem.
@@JeffGeerling Tell AMD to give us a better acceleration for ML and maybe they’ll adopt it. Until then, CUDA reigns and useful applications for end-users like RTX Voice are easily accelerated on nVidia cards. Don’t get me wrong, I want more AMD/OSS vs closed-source but at some point, one product has better performance for a specific goal.
Oh. This time you're Jeff Geerling "'til the end of time" instead of just "until next time", I'm glad you got your identity crisis worked out!
Great effort here. For what it's worth, it's encouraging, maybe even motivation, to see how other people struggle with technical stuff as well. Somehow we all find stuff to hit our heads against 😂. Anyhow, rooting for you... "Why put a graphics card on a pi", because it's freakin cool! 😁👍
Thanks for the update on GPUs Jeff! Even though it seems discouraging, please don't give up. :) With any luck, someone from NVidia or AMD will reach out. I wonder who will be the first company to get an external GPU working on the Raspberry Pi?? It would surely be a great honor!!!
7:08 Thats me while I was debugging a broken kernel module for my Chromebook ambient light sensor. Its the easiest and straight way to troubleshoot sh!t like that!
EDIT: At the end I decided to dump fixing the kernel module and fix the BIOS instead.
print-based-debugging is the simplest!
@@JeffGeerling I just discovered that editing a comment the heart goes away! Good to know! :)
(It makes sense BTW)
@@tuttocrafting Ha, true. I'll re-heart it though :D
@@JeffGeerling Thanks man, it was not necessary at all. It just was one funny thing to know. Not always happen to have to edit a "hearted" comment.
Is it true that your new daughter will be postponing her walking and talking training in order to focus on programming the raspberry pie?
keep the good work, thank you 🤜🤛
Man you always give me hope.
I was once trying to get a gpu farm running on x64 Ubuntu and it took a full day and I just gave up and reverted to windows.
Have you considered reaching out to Wendell from Level1Techs? This seems like it might be up his ally
*This little unknown youtube Channel Linus Tech Tips*.... Laughing my literal A$$ Off... *hahahahahah*
Damn buddy... Thanks for jumping down this rabbit hole so I don't have to. Been following, I don't think I can help but I'll ask around... As a fellow believer in the application, good luck.
Great work Jeff , your my inspiration to work with linux and HW , please do a video on kernel compiling
I would like to do this, might soon!
Love it! Keep up the great work! I'm just a mere mortal Java-crap and TypeScript-developer and while I may be able to debug something and compile a Linux kernel, that's the most I can do there.
But I am excitedly following this and would love to see any GPU on a Pi actually boot, possibly even more.
This is exceptional content!
It's fascinating watching you have to work through workarounds to things that we now take for granted. Keep up the good work.
What I will say is that the redragon PSU you used really isn't a good one. It lacks a bunch of pretty necessary protections, including OTP and OCP (both of which are recommended or required by the latest ATX specification.) No OTP means that it has no way of protecting itself from overheating, while no OCP means it has no way of shutting itself off if you overdraw any of the rails. Probably doesn't matter for a GPU this weak, but just thought I'd give some insight.
Best of luck in the future with your attempt.
I sadly have no coding skills but seeing the Pi 4 being able to do a lot on its own already, a graphics card might come in handy.
I'm rooting for your success or if you find someone who gets a graphics card working smoothly!
Amazing dedication to this. Just be careful it does not become an obsession!
the amount of dedication to get this working is impressive :)
I love what you are doing man
Actually a great video that didn't go over my head.
Great work! Keep up!!
Great video Jeff! I'm also super curious to see a raspberry pi run a GPU. I know you're pretty set on raspberry pis but have to looked into the rockpro64? it has an open ended 4 lane PCIE slot (no mods needed). I am going to try with an AMD R9 280
Love the outakes XD had to add my sub. I'm only just now getting into PCB etching and design, but I got my hands on a raspberry pi 4 today (well ordered anyway), I wish I had the knowledge to debug and help, I would in a heartbeat. Alas I do not speak the language.
Amazing job on debugging using printf👏👏. Been there...
Hey Grats on the baby! So....did you jump the ATX plug wrong? Yeah they make adapters for that :D
Hi! thanks for all the hard work that you are doing, please don't give up!. But, did you try with any "LOW PROFILE GPU" like any Quadro from Nvida or AMD? something that does not need power from a power cord.
Great video. I really enjoyed it
Keep the faith Jeff!
Use case:
I have a computer I use as a fan heater that does sums on the side. I use it with a number of BOINC projects. It has a pair of graphics cards used only for compute purposes (using the CPU's internal GPU to drive the monitor).
To implement a thermostat feature i have an air temperature sensor on a pi that sends start and stop scripts to the big box over ssh over ethernet.
Downside is that the big box still draws Watts when it is in idle waiting for the pi. On a day when the heat is not needed it has to be turned off manually, and then I freeze when the weather changes till I figure out that I turned off the whole thing at the wall.
It would be nice to have the pi doing it all (though not, of course, the current one that is a very early model)
To me the only worthwhile computing endeavour is the create a system with a very high processing to power ratio. But appreciate the work you are doing.
I cant wait for this to work for my mad scientist experiments, Best of luck to you!
thanks for all the content