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()?
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 formbox_read()
when trying to power cycle near the beginning ofsd_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