jncronin / rpi-boot

A second stage bootloader for the Raspberry Pi
GNU General Public License v2.0
140 stars 48 forks source link

mbox hanging #28

Closed manncr closed 2 years ago

manncr commented 2 years ago

First off I apologize if this is the wrong place to ask this. Also I'm still new to the bare metal sphere.

I'm trying to utilize the emmc, fat, and ext2 code to create a file system that will eventually have a raw partition, fat32 partition, and ext2 partition. When trying to run sd_card_init() , my program ends up stuck in the while loop for mbox_read() when trying to power cycle near the beginning of sd_card_init(). For the life of me I can't figure out why this is. The few changes I've made to your code have mostly just move definitions from the heap to the stack (for various reasons) and shouldn't be affecting this section of code.

All your addresses and offsets are correct, which seem to be the only significant variables here, so I'm at a complete loss what is going on. Would you be able to offer any assistance as to why I might be running into this issue? Am I missing a simple config or initialization that I should be doing before calling sd_card_init()?

Thanks for your time, manncr

manncr commented 2 years ago

Waste of an issue, my apologies. Just had to set SDHCI Implementation to 0 and I was able to get over this issue.