Giter VIP home page Giter VIP logo

Comments (5)

babbleberry avatar babbleberry commented on August 13, 2024 2

Have fun and best wishes for it! :) I actually started with an x86 minimal OS before I bought the Pi. So much more enjoyable on AArch64 though, I must say...

from rpi4-osdev.

babbleberry avatar babbleberry commented on August 13, 2024

Thanks for the feedback. I must confess that I never looked to minimise the set of files on the SD card (but I am intrigued now, so will look into it). I simply stuck with what the Raspberry Pi Imager put on there and just replaced kernel8.img with my own. I expect you'll need to at least add fixup4.dat to your list.

As for config.txt, mine looks like this and the UART runs just fine:

hdmi_group=1
hdmi_mode=16
core_freq_min=500

You shouldn't need a gpu_mem line at all. Are you running on a standard Raspberry Pi 4 Model B?

from rpi4-osdev.

no-go avatar no-go commented on August 13, 2024

Hi, thanks for your answer. It is a "normal" Pi4 B with 4GB ram. Maybe there are early Hardware versions and I use a different/newer EEPROM (recovery.img), start4.elf, fixup4.elf and DTB file.

The miniuart example really works without fixup4.elf on my pi and I really need exact this gpu_mem line. It is ugly, that these elf files coming from Broadcom are closed source. I want to understand the whole boot process and that is quiet hard.

from rpi4-osdev.

babbleberry avatar babbleberry commented on August 13, 2024

Yes - it's annoying that we can't strip right back... It stems from the fact that when the Raspberry Pi powers on, the ARM CPU is off and the GPU is on.

The GPU runs the first bootloader, which is held in ROM on the SoC (System on Chip). This is similar to the BIOS in conventional PCs.

This bootloader reads the SD card and loads the second bootloader from bootcode.bin.

The second bootloader then reads the GPU firmware, also from the SD card, named start.elf.

Finally, start.elf reads kernel.img and allows the ARM CPU to execute it.

from rpi4-osdev.

no-go avatar no-go commented on August 13, 2024

The hardware is open enough to explain some base OS techniques to students. That's why I try to migrate a minimalistic BIOS x86 32bit based OS (c++ and some asm) to aarch64 (primary the Pi4). I think the PL0/1 and paging instead of Ring1/0 and "sections and GDT" will be the next big trouble in my tasklist ;-D

from rpi4-osdev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.