-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Will this tutorial work on Raspberry Pi 4? #127
Comments
Short answer: No, we have to update the code to make it work on the RPi 4b. Long answer: |
@s-matyukevich thanks for replying. |
Pheww... Working now!! :) So here are all the modifications you would need for this: PBASE has to be modified to 0xFE000000 : #define PBASE 0xFE000000 Thanks to s-matyukevich and following thread https://www.raspberrypi.org/forums/viewtopic.php?t=244479&p=1491494 PS: I just bought RPI4 to follow this entire tutorial and overcome the hurdles faced on the way. Earlier I have explored the linux kernel books which emphasize more on the X86 architecture and was looking for some books on the Arm Linux since in coming days Arm is going to be a next Desktop platform and also since I work in embedded field where Linux on Arm rules :). Kudos to s-matyukevich to make this nice tutorial and this is the one stop Linux on Arm material I need. My hunt for a book has stoped :)) |
Hey, so you were able to get the UART working? I tried the same things with my pi 4 and no luck. Can you post the contents of your config.txt? Also did you have to download the 2711 dtb file and fixup4.dat and start4.elf? |
Hi rockytriton, Here is my forked version which works with rapsberry pi-4 : [email protected]:vikash876/raspberry-pi-os.git Steps to build:
Also I have your answers here:
Changes from s-matyukevich version
hope this helps. |
Thanks for all the details. I was pretty much doing the exact same things, except the 541 change. However I figured out what my issue really was... With the pi3 I would always use the serial cable's red cable to power the pi, so I didn't have to have its power source plugged in too. It seems that with the pi4 maybe that's not enough power to boot it. I put a usb cable into the pi4 to boot it and it's now working finally. |
Glad to hear. Yes I always tried with usb c powered. A 3amp power input is must I suppose. |
Thank you! Somehow I looked over this. I had just realized I was looking at the datasheet from the bcm2835 instead of the bcm2711. |
Hello, wo0>���p>0 is my output lol and an odd error from dmesg: |
I have done all the above. The “Hello World” is printed just as expected, but the the kernel_main gets into a loop where it reads from the uart and prints back whatever is read - but in my case it prints gibberish. Any ideas on how to fix that problem? |
You can fix this by adding It's also not clear why some people (such as myself) need the |
Hi All, From all the above comments it looks like I can purchase a RPi4 4GB memory board and this project is build able and can run on RPi4 ? -abram |
vikash876@b430423 was pretty much everything i needed to make it work. Thanks a lot! |
I've read the introduction of this tutorial and I really think this is what I want to start my journey of Linux kernel. Thank you for this material.
For now, the 4th gen of raspberry pi is out so I am not sure if this repo works on the new Pi (whose SoC is Broadcom BCM2711B0 quad-core A72 (ARMv8-A) 64-bit @ 1.5GHz).
If it won't work, I decide to buy the one mentioned in the Introduction.
The text was updated successfully, but these errors were encountered: