Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rainbow Screen on RPi Zero #32

Open
nogleo opened this issue Jul 31, 2020 · 10 comments
Open

Rainbow Screen on RPi Zero #32

nogleo opened this issue Jul 31, 2020 · 10 comments

Comments

@nogleo
Copy link

nogleo commented Jul 31, 2020

I'm trying to make it work but no success... Follow the instructions and just rainbow... help please

@boochow
Copy link
Owner

boochow commented Aug 2, 2020

Hi @nogleo, if you got the binary from v1.0.0, the main.py need to be edited to enable the frame buffer console.
If you already edited the main.py as described in the README.txt and still couldn't get the frame buffer enabled, try to replace main.py with this single-file alternative.

@nogleo
Copy link
Author

nogleo commented Aug 4, 2020

Screenshot from 2020-08-05 10-57-07
sadly I've tried both cases and got nothing...

maybe I'm just noobing on something

@nogleo
Copy link
Author

nogleo commented Aug 5, 2020

is it really all I have to put into de SD to make it work?

@boochow
Copy link
Owner

boochow commented Aug 5, 2020

Your files seem OK.
To test whether the boot process is succeeded or not, try this:

The attached file is a simple bare-metal program that blinks Pi's LED eternally. (source code is here.)
Extract blink_led.img from zip and copy it to your SD card.
Edit config.txt and replace the line kernel=firmware.img to kernel=blink_led.img then save the file.
If your Pi's LED blinks, then your bootcode.bin and start.elf have no problem.

I know there are some compatibility issues between some SD cards and the SD card driver in micropython. Using other SD cards may solve the problem.

blink_led.zip

@nogleo
Copy link
Author

nogleo commented Aug 5, 2020

Tested it with 2 different SDcards ando no hope, not even the rainbow was appearing anymore

@boochow
Copy link
Owner

boochow commented Aug 6, 2020

I made the disk image of my SD card that runs correctly.
Try writing this image to your SD card with Raspberry Pi Imager.
The disk size will become 128MB regardless of the actual size of your SD card, but don't mind. It is because I set the size of the first partition to 128MB.

upyrpi_usb.zip

@nogleo
Copy link
Author

nogleo commented Aug 6, 2020

IT'S ALIIIIIIVE!!!

Thank you very much!!! I'm still not sure what is the thing that made it work hahahahaha.
Maybe working on linux has something to do with that?
Actually the usb host is not working and gives me erros

Just one question now, can it work through repl?

@boochow
Copy link
Owner

boochow commented Aug 6, 2020

Congratulations!
Some USB keyboards works, others not. If you could find one that works, it would work with REPL.
I have tested several USB keyboards, but have not yet found the conditions that determine whether a keyboard works or not.
I'm using this keyboard for testing. => https://www.amazon.com/dp/B00W7WSIKS/

@nogleo
Copy link
Author

nogleo commented Aug 6, 2020

when I ask about repl I mean run the repl in the PC like with a ESP32. Is it possible?

@boochow
Copy link
Owner

boochow commented Aug 6, 2020

Yeah, it is possible, but you need a USB-UART adapter. Most of the ESP32 development boards have a USB-serial converter chip on board, but RPi doesn't. An external USB-serial module should be connected to your PC and Pi like the attached image.
rpi-zero-serial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants