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

Kernel: Zero out .bss contents on aarch64 #10276

Merged
merged 2 commits into from Sep 30, 2021
Merged

Kernel: Zero out .bss contents on aarch64 #10276

merged 2 commits into from Sep 30, 2021

Conversation

nico
Copy link
Collaborator

@nico nico commented Sep 30, 2021

After building and running

 objcopy -O binary Build/aarch64/Kernel/Prekernel/Prekernel \
                   /media/sdcard/kernel8.img

things start booting on an actual RPi4 :^)

(Assuming the sdcard contains RPi firmware, an empty config.txt,
and no other kernel*.img files).

After building and running

     objcopy -O binary Build/aarch64/Kernel/Prekernel/Prekernel \
                       /media/sdcard/kernel8.img

things start booting on an actual RPi4 :^)

(Assuming the sdcard contains RPi firmware, an empty config.txt,
and no other kernel*.img files).
@nico
Copy link
Collaborator Author

nico commented Sep 30, 2021

This is now at RPi4-bare-metal "Hello world" level. It's something.

Hangs either querying firmware revision or printing it, but having any output at all means printf* debugging is yes.

(*: No actual printf yet.)

PXL_20210930_132804767

@nico
Copy link
Collaborator Author

nico commented Sep 30, 2021

Now it prints Firmware version: 0. That's not right either, but at least it's more clear it doesn't hang. (It printed the \r\n before, so if you looked closely it was clear before too.)

@linusg linusg merged commit 94d0562 into SerenityOS:master Sep 30, 2021
@nico nico deleted the bss branch September 30, 2021 14:40
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

Successfully merging this pull request may close these issues.

None yet

2 participants