Chadderz121 / bakingpi-www

Website for Baking Pi: Operating Systems Development tutorial (Raspberry Pi)
Other
404 stars 114 forks source link

OK01 odd behavior #40

Closed EssentialUtinsil closed 2 years ago

EssentialUtinsil commented 2 years ago

Love the lessons so far, I built OK1 successfully, copied the kernel.img to my sd card and loaded it on an Rpi zero (uses the same BCM2835). The ACT LED turns on for about half a second, then turns off. It then turns on again very briefly and back off. Then it begins flashing 7 times regularly followed by a longer pause, and continues to do this.

Any idea where I should start looking? I'm very new to this.

Thanks!

EssentialUtinsil commented 2 years ago

Update: for some reason when I copied the kernel.img file to the sd card, it was not actually copying. I guess blinking 7 times is a code that no kernel.img was found. But it still does not work, even when i build the kernel from the main.s downloaded from the solutions. Now the LED turns on immediately when the Pi is powered, turns off, turns on very briefly then turns off and stays off.

EssentialUtinsil commented 2 years ago

Further Update: I managed to find an old Raspberry Pi 1 board and the code works properly on it. The LED turns on and stays on. I'm just curious what is going on to cause it to behave differently on the Pi Zero, even though it is the same chipset. Again, I'm new to this so maybe it's something obvious.

EssentialUtinsil commented 2 years ago

I'm an idiot and didn't realize the LED is on a different GPIO pin on the pi zero. Problem solved.