PeterLemon / RaspberryPi

Raspberry Pi Bare Metal Assembly Programming
449 stars 67 forks source link

Bare metal on the compute module #13

Open szoshi opened 7 years ago

szoshi commented 7 years ago

Hello Peter,

I have tried your demos on a Pi2 with great success and was now trying to do the same on a compute module. I assumed that once I format the emmc on the compute module then I can just copy the 4 files to it like I do with the Pi2 and power cycle once to load my kernel. Unfortunately, that does not seem to work. I am getting a rainbow screen meaning the kernel could not be found.

I am working with your basic hello world example. Is there something that I have to do differently for the compute module?

Best regards, Szoshi

szoshi commented 7 years ago

Hello Peter,

after spending some more time on the issue I was able to get the kernel to load after using older bootcode.bin and start.elf files from roughly a year ago. I haven't zeroed in on which file it exactly was. I did not mention it in my previous post that I am using a CM1 and not a CM3. I assume that the older module has some issues with the newer files.

I am planning to get a CM3 sometime in the future and I will update this post.

Best regards, Szoshi

PeterLemon commented 7 years ago

Hi szoshi, thanks for the update on this issue, I do not own a compute module unfortunately to test with myself, so I'd love to know if you manage to fix this problem. I test all my demos on R-Pi 1..3, with the latest firmware, so I have no idea what it could be! I hope you enjoy your new CM3 when you get it, happy hacking, & thanks for testing my stuff =D