randyrossi / bmc64

A bare metal Commodore 64 emulator for the Raspberry Pi with true 50hz/60hz smooth scrolling, low input latency and better audio/video sync.
GNU General Public License v3.0
482 stars 56 forks source link

Doesn't boot on Zero W 2 #196

Closed TheSos closed 2 years ago

TheSos commented 2 years ago

Hi! I just got myself a Raspberry Pi Zero W 2 specifically for a project involving this and, as I was quite expecting. It does not boot at all, showing blank screen. The green LED that normally lights up stays off as well. I am willing to help debugging or even fixing this, just not sure where I can find any debug info or logs, as it doesn't display anything. Let me know, would love to help! Cheers! Sos

sziti commented 2 years ago

Hello, today I received my Raspberry Pi Zero W 2 and exactly same here! If I can help, let me know! Peter

TheSos commented 2 years ago

As an update, I confirm that the same SD card boots fine on Zero, but on Zero W 2 it sets the video mode and stays blank.

randyrossi commented 2 years ago

Rene has a development branch on rsta2/circle. He added support for the Pi Zero W2 only a few days ago. I'm not sure if he's done yet but I can try making the same changes on my patched (older) circle to see if that works.

On Wed, Nov 3, 2021 at 7:33 AM Sos Sosowski @.***> wrote:

As an update, I confirm that the same SD card boots fine on Zero, but on Zero W 2 it sets the video mode and stays blank.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/196#issuecomment-958946296, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKEYF4MGWLAW3A647Y3UKEMZHANCNFSM5HIOFN4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Randy Rossi

TheSos commented 2 years ago

That would be awesome, would love to test it out or help in any way I can!

randyrossi commented 2 years ago

Try this master build here:

http://accentual.com/bmc64/downloads/master

According to Rene's change, it should be kernel8.img being loaded. So if it doesn't work, try adding this to the config.txt file

[pi02] kernel=kernel8.img

Or remove kernel.img and kernel7.img from the SD card altogether. I'm not sure if machine switching will work yet.

If you have a serial adapter, we can debug boot messages by turning on the serial debugging.

On Wed, Nov 3, 2021 at 8:44 AM Sos Sosowski @.***> wrote:

That would be awesome, would love to test it out or help in any way I can!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/196#issuecomment-958996994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKG7RZ3K3DFIDFAPFKTUKEVCVANCNFSM5HIOFN4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Randy Rossi

randyrossi commented 2 years ago

Also, I didn't include the latest start.elf, bootcode.bin and fixups.dat which you should get here and overwrite the ones from the img/zip:

https://github.com/raspberrypi/firmware/tree/master/boot

They may have been updated for W2. But I don't want to put them into a release unless I know they work for pi2/3/0.

On Wed, Nov 3, 2021 at 9:11 AM Randy Rossi @.***> wrote:

Try this master build here:

http://accentual.com/bmc64/downloads/master

According to Rene's change, it should be kernel8.img being loaded. So if it doesn't work, try adding this to the config.txt file

[pi02] kernel=kernel8.img

Or remove kernel.img and kernel7.img from the SD card altogether. I'm not sure if machine switching will work yet.

If you have a serial adapter, we can debug boot messages by turning on the serial debugging.

On Wed, Nov 3, 2021 at 8:44 AM Sos Sosowski @.***> wrote:

That would be awesome, would love to test it out or help in any way I can!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/196#issuecomment-958996994, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKG7RZ3K3DFIDFAPFKTUKEVCVANCNFSM5HIOFN4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Randy Rossi

  • "There are only two things that are hard about computer science; Naming things, Cache Invalidation, and Off-by-one errors."

-- Randy Rossi

TheSos commented 2 years ago

Ok it worked! I downloaded the build, unpacked the files and replaced the three firmware files and it booted on both Zero 1 and Zero W 2.

Note that it wouldn't boot on Zero W 2 unless I replaced the start.elf, bootcode.bin and fixups.dat.

PS. I dug out a Pi 2 B and a Pi 1 and the same SD booted on all of them, USB keyboard input working. I don't have a 3 to test, tho.

Thanks for that! Let me know if there's antyhing you'd like me to test! I misplaced my FTDI thingie, tho, so I won't be able to do debugging for now.

randyrossi commented 2 years ago

Cool. Does switching machines work?

On Wed, Nov 3, 2021 at 9:52 AM Sos Sosowski @.***> wrote:

Ok it worked! I downloaded the build, unpacked the files and replaced the three firmware files and it booted on both Zero 1 and Zero W 2.

Note that it wouldn't boot on Zero W 2 unless I replaced the start.elf, bootcode.bin and fixups.dat.

PS. I dug out a Pi 2 B and a Pi 1 and the same SD booted on all of them, USB keyboard input working. I don't have a 3 to test, tho.

Thanks for that! Let me know if there's antyhing you'd like me to test! I misplaced my FTDI thingie, tho, so I won't be able to do debugging for now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/196#issuecomment-959131633, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKBWD367V6NMRFMKT3DUKE5BXANCNFSM5HIOFN4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Randy Rossi

TheSos commented 2 years ago

Yes, it does! My screen complained about 50Hz, but still displayed and I was able to switch to NTSC machine.

rhester72 commented 2 years ago

Confirmed the updated firmware works well on the 3A+ as well, including switching to all machine types and regions. I think it's good for inclusion with 3.8.

Randy, sent you a private mail re: a good number of other fixes and improvements for consideration in 3.8...please take a look if you get a chance.

dantaipan commented 2 years ago

I tried this same approach and it is not working for me. I know my roms are good because they are working on a pi 2b. Is it possible something changed in the bmc64 master or the pi firmware referenced above since posted that might have broken this?

dantaipan commented 2 years ago

I got it working by copying all fixup*.dat and "kernel8.img" from the pi master. Not sure which of those actually did the trick but happy to have it working.