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

Raspberry PI 3/4 support #7

Open
circutrider21 opened this issue Aug 21, 2021 · 19 comments
Open

Raspberry PI 3/4 support #7

circutrider21 opened this issue Aug 21, 2021 · 19 comments

Comments

@circutrider21
Copy link

I am currently working on a kernel of mine that uses sabaton and was wondering if there will be support raspberry pi 3/4.

@N00byEdge
Copy link
Member

N00byEdge commented Aug 21, 2021

#6 is rpi3 support, rpi4 is planned to start once rpi3 support is finished.

@circutrider21
Copy link
Author

Ok!

@circutrider21
Copy link
Author

circutrider21 commented Aug 21, 2021

Although since the pull request seems a bit stale, I was wondering if I could continue from where @StaticSaga stopped?

@N00byEdge
Copy link
Member

N00byEdge commented Aug 22, 2021

I merged the pi3 code into master, works in a VM now (zig build pi3). I do have a pi3, and I would like to test it on there, but feel free to take on a pi4 port, or to improve the existing pi3 code.

@N00byEdge
Copy link
Member

  • Test on Pi3 HW
  • Pi4 support

@circutrider21
Copy link
Author

I too personally own a rpi3 but I also don't have a rpi4. I only asked out of curiosity. As for the testing, I'll start on it tonight.

@N00byEdge
Copy link
Member

With this at the bottom of the config:

enable_uart=1
initramfs flork.elf 0x200000

Only getting a rainbow screen and a single uart null byte, so no dice yet

@circutrider21
Copy link
Author

I got the same result with the rainbow screen, but I didn't see anything on the uart. Might be my diy adapter.

@N00byEdge
Copy link
Member

N00byEdge commented Aug 22, 2021

Yeah, something is going wrong. Not working, even with all the EL2 code, relocation etc commented out, and halting on non-bsps, it's still not working. Feels like we're doing something wrong somewhere that only the HW cares about in regards to the uart init.

@circutrider21
Copy link
Author

Have you tried commenting out the code that inits the uart.

@N00byEdge
Copy link
Member

No, I have not. May be worth a try to see if that lets it continue on to the display.

@circutrider21
Copy link
Author

Well, I tried that and it didn't do anything. Still getting the same old results...

@N00byEdge
Copy link
Member

Yeah, I don't know what the next step to proceed would be, as I can't get any uart output and I don't have the ability to hook up jtag, so I'm kind of stuck at the moment. I'll take a look at using some existing code and comparing what works and not.

@circutrider21
Copy link
Author

Sounds good!

@circutrider21
Copy link
Author

Okay, the uart seems to work now that I have a new adapter, but the bootloader only prints 2 lines
Allocating kernel memory
Bytes allocated for kernel: 000000000003A000

@StaticSaga
Copy link
Contributor

Sabaton in release modes doesn't print a lot of debugging information, switch build.zig to building with .Debug. You will get some more information about where it is failing.
I think that it is hanging somewhere in the mailbox code (responsible for setting the framebuffer and querying the memory available).
If you have Discord, I would join the FlorenceOS server. https://discord.gg/HpGsGjFG5S

@circutrider21
Copy link
Author

I have discord, my username is SirNT (or devlooper) so I'll join the discord. As for building in debug mode, how would I do that (I am not familiar with zig)

@StaticSaga
Copy link
Contributor

Replace the .ReleaseSmall in build.zig with .Debug

@ghost
Copy link

ghost commented Jul 24, 2024

I am currently working on a kernel of mine that uses sabaton and was wondering if there will be support raspberry pi 3/4.

Why so you can copy/paste the code? 😂👎

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

3 participants