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
474 stars 56 forks source link

Blank screen on BMC64 on new revision of PI 3 Model A+ (2022), Works on 2018 revision. #245

Closed nickgoodmanuk closed 9 months ago

nickgoodmanuk commented 9 months ago

Hi. I have two machines running BMC on Rasp PI 3A+ (Says 2018 on the board). Both work perfectly running latest 3.9 BMC

I've just purchased 3 new 3A+s from the Pi Hut, and have tried the TF card from my 2018 model and I just get a blank screen, on all 3 of the new ones. Bizarre ! The red light comes on and the green light keeps flashing suggesting its reading the card but I never get an HDMI signal.

However my TF card with Rasp PI OS works on all the new boards.

I have tried forcing HDMI mode in the config.

I can't understand what is different between the 2018 and 2022 models (both PI 3A+). Possibly some kind of hidden firmware change?

Any suggestions welcome. All 3 of these new PI's are destined to become BMC 64s !

nickgoodmanuk commented 9 months ago

Done a bit of research, not sure if this is the reason but apparently the new batch has slightly different firmware and a new power management IC

Below pasted from attached pdf: Change Description:

Old PCB revision: R1 Old software model number: 1.0 New PCB revision: R2 New software model number: 1.1

Raspberry Pi Ltd have extensively tested and qualified alternatives which closely match the original parts in terms of specification and performance:

Mechanical (Form, Fit, Function) Changes • New DA9090 PMIC. • No other significant changes

Electrical • New DA9090 PMIC.

image

PCN-Raspberry-Pi-3A-Revision-2-PCB.pdf

rhester72 commented 9 months ago

Ugh - JUST received an A+ and was going to quickly test, but it turned out to be a 2018 rev.

randyrossi commented 9 months ago

Try downloading the latest bootcode.bin, fixup.dat and start.elf from the raspberry pi github repo.

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

The ones I included in the distribution might be too old for your new model.

On Thu, Oct 5, 2023 at 9:00 AM Nick Goodman @.***> wrote:

Done a bit of research, not sure if this is the reason but apparently the new batch has slightly different firmware and a neww power management IC

Below pasted from attached pdf: Change Description:

Old PCB revision: R1 Old software model number: 1.0 New PCB revision: R2 New software model number: 1.1

Raspberry Pi Ltd have extensively tested and qualified alternatives which closely match the original parts in terms of specification and performance:

Mechanical (Form, Fit, Function) Changes • New DA9090 PMIC. • No other significant changes

Electrical • New DA9090 PMIC.

[image: image] https://user-images.githubusercontent.com/79846351/272910011-5c7570a0-cdd1-4e28-bd52-5069adce0635.png

PCN-Raspberry-Pi-3A-Revision-2-PCB.pdf https://github.com/randyrossi/bmc64/files/12818629/PCN-Raspberry-Pi-3A-Revision-2-PCB.pdf

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/245#issuecomment-1748853161, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKEBFOYK2CWKPAWCG3LX52VQDAVCNFSM6AAAAAA5T5J2LKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYHA2TGMJWGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Randy Rossi

nickgoodmanuk commented 9 months ago

Try downloading the latest bootcode.bin, fixup.dat and start.elf from the raspberry pi github repo. https://github.com/raspberrypi/firmware/tree/master/boot The ones I included in the distribution might be too old for your new model. On Thu, Oct 5, 2023 at 9:00 AM Nick Goodman @.> wrote: Done a bit of research, not sure if this is the reason but apparently the new batch has slightly different firmware and a neww power management IC Below pasted from attached pdf: Change Description: Old PCB revision: R1 Old software model number: 1.0 New PCB revision: R2 New software model number: 1.1 Raspberry Pi Ltd have extensively tested and qualified alternatives which closely match the original parts in terms of specification and performance: Mechanical (Form, Fit, Function) Changes • New DA9090 PMIC. • No other significant changes Electrical • New DA9090 PMIC. [image: image] https://user-images.githubusercontent.com/79846351/272910011-5c7570a0-cdd1-4e28-bd52-5069adce0635.png PCN-Raspberry-Pi-3A-Revision-2-PCB.pdf https://github.com/randyrossi/bmc64/files/12818629/PCN-Raspberry-Pi-3A-Revision-2-PCB.pdf — Reply to this email directly, view it on GitHub <#245 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKEBFOYK2CWKPAWCG3LX52VQDAVCNFSM6AAAAAA5T5J2LKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYHA2TGMJWGE . You are receiving this because you are subscribed to this thread.Message ID: @.> -- Randy Rossi - "There are only two things that are hard about computer science; Naming things, Cache Invalidation, and Off-by-one errors."

Hi, just tried replacing those 3 files on the root of sd card (via windows), unfortunately it didnt work, I get no disk activity light at all.

2018 PI - Red light, and flashing green light for about 4 seconds until its booted (works) 2022 PI - Red light, and continous flashing green activity light, never boots. 2022 PI with patches bootcode.bin, fixup.dat and start.elf - Red power light - no green activity light at all.

This is on version 4.0 master dist.

Happy to try any other ideas :)

randyrossi commented 9 months ago

Do you happen to have a UART to USB cable? You can wire up the serial pins and turn on debugging and it might tell us what it doesn't like at boot. Another thing to try is to compile one of the circle samples and see if it runs at all on that Rpi.

On Thu, Oct 5, 2023 at 10:43 PM Nick Goodman @.***> wrote:

Try downloading the latest bootcode.bin, fixup.dat and start.elf from the raspberry pi github repo. https://github.com/raspberrypi/firmware/tree/master/boot The ones I included in the distribution might be too old for your new model. … <#m-1768083093452133848> On Thu, Oct 5, 2023 at 9:00 AM Nick Goodman @.> wrote: Done a bit of research, not sure if this is the reason but apparently the new batch has slightly different firmware and a neww power management IC Below pasted from attached pdf: Change Description: Old PCB revision: R1 Old software model number: 1.0 New PCB revision: R2 New software model number: 1.1 Raspberry Pi Ltd have extensively tested and qualified alternatives which closely match the original parts in terms of specification and performance: Mechanical (Form, Fit, Function) Changes • New DA9090 PMIC. • No other significant changes Electrical • New DA9090 PMIC. [image: image] https://user-images.githubusercontent.com/79846351/272910011-5c7570a0-cdd1-4e28-bd52-5069adce0635.png https://user-images.githubusercontent.com/79846351/272910011-5c7570a0-cdd1-4e28-bd52-5069adce0635.png PCN-Raspberry-Pi-3A-Revision-2-PCB.pdf https://github.com/randyrossi/bmc64/files/12818629/PCN-Raspberry-Pi-3A-Revision-2-PCB.pdf https://github.com/randyrossi/bmc64/files/12818629/PCN-Raspberry-Pi-3A-Revision-2-PCB.pdf — Reply to this email directly, view it on GitHub <#245 (comment) https://github.com/randyrossi/bmc64/issues/245#issuecomment-1748853161>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKEBFOYK2CWKPAWCG3LX52VQDAVCNFSM6AAAAAA5T5J2LKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYHA2TGMJWGE https://github.com/notifications/unsubscribe-auth/AAI3HKEBFOYK2CWKPAWCG3LX52VQDAVCNFSM6AAAAAA5T5J2LKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYHA2TGMJWGE . You are receiving this because you are subscribed to this thread.Message ID: @.> -- Randy Rossi - "There are only two things that are hard about computer science; Naming things, Cache Invalidation, and Off-by-one errors."

Hi, just tried replacing those 3 files on the root of sd card (via windows), unfortunately it didnt work, I get no disk activity light at all.

2018 PI - Red light, and flashing green light for about 4 seconds until its booted (works) 2022 PI - Red light, and continous flashing green activity light, never boots. 2022 PI with patches bootcode.bin, fixup.dat and start.elf - Red power light - no green activity light at all.

This is on version 4.0 master dist.

Happy to try any other ideas :)

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/245#issuecomment-1749908500, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKCDDNTGKLON27JKCQLX55V43AVCNFSM6AAAAAA5T5J2LKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZHEYDQNJQGA . You are receiving this because you commented.Message ID: @.***>

-- Randy Rossi

nickgoodmanuk commented 9 months ago

I will get a cable and try the circle samples. Give me a few days, will let you know the outcome

nickgoodmanuk commented 9 months ago

my UART to USB cable has arrived. Didn't work at first as the TX / RX pins appear to be back to front to the documentation, but I now get a console login on Raspbian using Putty.

However I get nothing on the BMC card.

I have added this to the config.txt at the bottom.

enable_uart=1

And cmdline has console=serial0 added

console=serial0,115200 fast=true machine_timing=pal-hdmi scaling_params=384,240,1152,720

Do I need anything else for debugging ?

Raspbian GNU/Linux 11 raspberrypi ttyS0

raspberrypi login: nick Password: Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l

randyrossi commented 9 months ago

You need to add enable_serial=1 to the cmdline options for serial to be enabled. I think the baud rate is 115200 but if that doesn't work try 9600 I don't think you need that console settings but you can try with/without.

On Wed, Oct 11, 2023 at 12:38 PM Nick Goodman @.***> wrote:

my UART to USB cable has arrived. Didn't work at first as the TX / RX pins appear to be back to front to the documentation, but I now get a console login on Raspbian using Putty.

However I get nothing on the BMC card.

I have added this to the config.txt at the bottom.

enable_uart=1

And cmdline has console=serial0 added

console=serial0,115200 fast=true machine_timing=pal-hdmi scaling_params=384,240,1152,720

Do I need anything else for debugging ?

Raspbian GNU/Linux 11 raspberrypi ttyS0

raspberrypi login: nick Password: Linux raspberrypi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/245#issuecomment-1758082728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKDNP5SDBWLAOGRB64DX63DQ3ANCNFSM6AAAAAA5T5J2LI . You are receiving this because you commented.Message ID: @.***>

-- Randy Rossi

nickgoodmanuk commented 9 months ago

tried that, no joy, this is my cmdline.txt now. I assume I can ignore the comment about putting in machines.txt for now ?

enable_serial=1 console=serial0,115200 fast=true machine_timing=pal-hdmi scaling_params=384,240,1152,720

DO NOT EDIT - This file is no longer edited by hand. Use the

machines.txt to set both config.txt and cmdline.txt params for

each machine. Refer to README.md for options.

nickgoodmanuk commented 9 months ago

I've been a complete idiot!!! when you told me to download bootcode.bin, fixup.dat and start.elf I right clicked and saved link rather than saving the raw files. I now get an HDMI output, I've forgot to put the 64 ROMs since I reimaged SD card but that probably was it !!

Success !

nickgoodmanuk commented 9 months ago

64 Roms loaded, now get console information via UART and boots to 64 successfully.

Well i've learnt a few things anyway :)

Thanks for all your help. Hopefully this will help for anyone else that gets a PI from the new batch.

nickgoodmanuk commented 9 months ago

Closing as resolved. New 2022 Rpi's need latest bootcode.bin, fixup.dat and start.elf from the raspberry pi github repo.

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