Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: atomant on February 12, 2025, 12:18:22 PM
-
Hello good people of TCL community!
My setup: Raspberry Pi Zero W2 running piCore 15.0.0 (downloaded it today from the official download link)
Here's the deal: I have the same exact system burned onto a MicroSD card and also onto an SSD drive. I set up the rPi to be able to boot from USB (program_usb_boot_mode=1 into config.txt and then booted from SD card).
When booting from SD card I get video output on the HDMI port, albeit a bit unstable as it flashes/disappears/blinks randomly but constantly for short times but I suppose that could be remedied by playing around with the corresponding "fields" in config.txt like config_hdmi_boost, hdmi_safe, etc...
My problem is that if i boot from the USB SSD drive I get no video output at all, screen stays blank. I'm quite sure it actually boots based on the rPi's and USB drive's LEDs and If i connect a keyboard and blindly type in "sudo poweroff now" it turns off (LEDs turn off) suggesting that it managed to boot to a prompt and was accepting input.
What I tried so far and observed no change in behavior:
-using a powered USB hub to connect the drive
-connecting the drive directly (so no USB hub)
-trying 3 different HDMI cables
-trying another HDMI/mini HDMI adapter
-trying 3 different power sources (all should have been more than enough to supply enough power)
-trying 3 different monitors
-trying to play around with the HDMI related settings in config.txt (safe mode, no safe mode, overscan, no overscan, trying hdmi_group and hdmi_mode, hdmi_force_hotplug...)
-trying "dtoverlay=vc4-kms-v3d" and "dtoverlay=vc4-fmsf-v3d" (i changed these everywhere I found them in the file)
-adding boot_delay=5 (was suggested somewhere online to give more time for hardware components to get up to speed or whatnot)
I have no idea what else to try, I don't get why there's video with SD card but no video with USB drive.
Any suggestions, ideas?
-
Correction, "dtoverlay=vc4-fkms-v3d" not "dtoverlay=vc4-fmsf-v3d" above...
-
Hi atomant
Maybe you need to add something like:
waitusb=5
to your cmdline.txt file?
-
There should be nothing needed for a HDMI signal showing the console. Plain HDMI cable/monitor works for me.
If you want graphics (i.e. vc4 overlays) Then you need to load the graphics kernel modules (graphics-KERNEL.tcz)
-
Hello good people of TCL community!
My setup: Raspberry Pi Zero W2
...
When booting from SD card I get video output on the HDMI port, albeit a bit unstable as it flashes/disappears/blinks randomly but constantly for short times but I suppose that could be remedied by playing around with the corresponding "fields" in config.txt like config_hdmi_boost, hdmi_safe, etc...
what spec PSU?
things to try
- power supply with *more* amps !!
- different usb (could be faulty?)
- "official" raspberry OS image (sd & usb) , if you sill have
"randomly - unstable : flashes/disappears/blinks " hdmi
... it will no doubt be of interest to hw manufactures / might be firmware/hw fault?
( if more amps/PSU/ ect fails to resolve issues )
*imho!
-
There should be nothing needed for a HDMI signal showing the console. Plain HDMI cable/monitor works for me.
If you want graphics (i.e. vc4 overlays) Then you need to load the graphics kernel modules (graphics-KERNEL.tcz)
Console is fine, i don't need a graphics environment.
-
Hi atomant
Maybe you need to add something like:
waitusb=5
to your cmdline.txt file?
Hi Rich :)
Good suggestion, I tried it but no effect. :(
-
what spec PSU?
All are 5V (obviously), one is 2.4A max, the second is 4A max, the third is 3.1A max (tho this latter one i suspect is on paper as it's some no name Chinese cheapo charger).
things to try
- power supply with *more* amps !!
I tried one with max 6A output, no change. This also gave me the opportunity to measure currents and with the USB hub connected without external power it never went above 0.6A, with the HUB powered it never went above 0.3A, so I'd say it's not the power that's the problem here.
- different usb (could be faulty?)
You mean the hub? As i said, tried without the hub, no change, and i tested the hub on my computer, connected things, worked flawlesly, doesn't seem to be the culprit.
- "official" raspberry OS image (sd & usb) , if you sill have
"randomly - unstable : flashes/disappears/blinks " hdmi
... it will no doubt be of interest to hw manufactures / might be firmware/hw fault?
( if more amps/PSU/ ect fails to resolve issues )
I'll try this later.
Thank you for your thoughts.
-
You mean the hub? As i said,
...
Thank you for your thoughts.
tbh i just scanned you post for any mention of *PSU amps
and after not spotting anything obvious
just threw my *generic* faulty-pi advice out there
(mostly gleaned on reading the pi forum's since ( i guess pre)2011 )
there where some interesting historical threads on implementing usb
.. most interesting bits where (imho) in relation to working around
hw that dose not follow the spec
if you ruled out power , my (non "pro") guess would be fw/hw issue
especially if you allready tried alternative hw (monitor/psu) ect
-
Many people have problems trying to power RPi with phone chargers, they don't supply a constant voltage, buy an official PSU....
-
Many people have problems trying to power RPi with phone chargers, they don't supply a constant voltage, buy an official PSU....
Currently it's running off an... um... powerbrick? Not sure what these are called, definitely not a phone charger.
-
Here's some new information, I remembered I have an old rPi lying around (from the original series, so not a 2) and I gave it a try and it's the exact same thing, i get video from SD card and no video from USB drive. But seems to boot otherwise, can blindly do the poweroff and it will react. This must either be a configuration problem or a hardware problem with the SSD or the USB dongle thing I have it in. The dongle and SSD seem to work if i connect them to my computer, sadly I don't have any other SSDs/dongles lying around to test if they make a difference. But I sorta lean towards this being a configuration problem, maybe I'm not setting something I should. Or setting something I shouldn't.
-
I tried writing a system onto a pendrive and boot from that with and without the USB hub, again, same result. I'm puzzled...it must be some-sort of configuration issue.
Isn't there anything I need to change in config.txt or cmdline.txt to boot from an USB drive?
-
I'm puzzled...it must be some-sort of configuration issue.
try *their* default
- "official" raspberry OS image
( if more amps/PSU/ ect fails to resolve issues )
I'll try this later.
... ::)
(AFAIK) if you want "official" support using their os+config is the only easiest way to get it
perhaps your hw setup + config it to esoteric
to have got'en much testing
-
Hi atomant
It's a bit of a long shot, but if you have a keyboard plugged
in while booting from your USB device, does that change
anything?
-
Hi atomant
It's a bit of a long shot, but if you have a keyboard plugged
in while booting from your USB device, does that change
anything?
I have a wireless keyboard at hand and I had booted with and without it's receiver plugged into the hub, makes no difference.
-
Hi atomant
But was the keyboard turned on at the time?
-
try *their* default
I've just now tried Raspberry Pi OS Lite (https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2024-11-19/2024-11-19-raspios-bookworm-arm64-lite.img.xz) and low and behold, it just boots fine from USB and i get video.
I must be doing something wrong with Tiny Core.
All i did was this (at the beginning of all of this misery):
-Downloaded this: http://tinycorelinux.net/15.x/armhf/releases/RPi/piCore-15.0.0.zip
-Used a software called Rufus (version 4.6) to write the image onto the USB drive and also onto an SD card (success, no errors)
-On the SD card I added the following line at the very end of config.txt: program_usb_boot_mode=1
-Booted from the SD card, this worked fine, i got a prompt
-Powered off, removed SD card (i also removed the "program_usb_boot_mode=1" line from config.txt since as far as i know it's a one-time thing)
-Tried booting from USB drive and here we are, the rest you already know
Am I missing something? Should there be some setting I need to change or add?
-
Hi atomant
But was the keyboard turned on at the time?
Yep.
-
-I downloaded 14.1.0 from here: http://tinycorelinux.net/14.x/armv6/releases/RPi/piCore-14.1.0.zip
-Burned to USB drive
-Booted it up and got video output.
-Burned 15.0.0 again, booted it, no video output (same as originally)
-Just to make sure, burned 14.1.0 again
-Booted it up, got video again
Hmm... i mean, I can live with 14.1.0, it's just...weird...
-
A Raspberry pi device older than a pi4 will not boot from USB by default. A pi Zero cannot boot from USB, but the Zero2W can if you have followed this procedure
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#usb-mass-storage-boot
But I interpreted his post that he wasn't getting video if he also had an USB drive plugged in, but he was still booting off of the USB card. In this case it is almost always a power supply issue. USB ports on devices like the Zero2W cannot supply much power.
-
A Raspberry pi device older than a pi4 will not boot from USB by default. A pi Zero cannot boot from USB, but the Zero2W can if you have followed this procedure
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#usb-mass-storage-boot
-The rPi Zero can boot from USB if you place nothing but bootcode.bin on an SD card and the rest of the system on an USB drive.
-The rPi Zero 2(W) will indeed boot from USB if you do what is described at your link and i did do it
-It will boot and give video with 14.1.0 (see my earlier post) but will not give video (but still boot as it seems) with 15.0.0
But I interpreted his post that he wasn't getting video if he also had an USB drive plugged in, but he was still booting off of the USB card. In this case it is almost always a power supply issue. USB ports on devices like the Zero2W cannot supply much power.
Correct, 15.0.0 boots from SD card and has video, boots from USB but doesn't have video. I have a powered HUB.
I'm now comparing the config file in 14.1.0 with the one in 15.0.0
-
All right, I give up, I will just stick to 14.1.0.
Thank you all for your time and effort.
-
mostly for future thread visitors, please be aware of "known problems"(and probably some _unknown_as_of_yet_ ones as well):
https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#known-problems
for example:Raspberry Pi boot string
The "Raspberry Pi Boot" string in the DHCP reply requires the extra three spaces due to an error calculating the string length.
Fixed in Raspberry Pi 3 Model B+.
reminds of Lynyrd Skynyrd's Gimme Three Spaces Steps:
https://www.youtube.com/watch?v=hhnBgoAL0xw
and no reference to Skynyrd is complete without Simple Man:
https://www.youtube.com/watch?v=l-5aPNxv-pU
(comments at Simple Man are definitely thought-provoking to one and all)
enjoy!