Tiny Core Base > piCore Test Releases
piCore-8.0beta1
bmarkus:
--- Quote from: Paul_123 on June 06, 2016, 09:39:15 AM ---Yes, USB gets detected rather late in the boot process. It's really been evident on rpi2 and rpi3 and the later piCore releases, they boot very fast. Should be able to process aplay -l through grep to see when a sound card is present.
--- End quote ---
You can read /proc/asound/cards file also to see available cards.
Gerrelt:
Thanks for the tips guys!
I've tried to use /proc/asound/cards, but it allready contained the soundcard during boot allthough it wasn't available.
The aplay-l trick worked! I've made statement that checked if the command was successfull.
But then I realized that I could do the same trick with "alsactl restore". :)
So I ended up with this command, which seems to work pretty good:
--- Code: ---for i in $(seq 1 15); do alsactl restore && break || sleep 0.1; done
--- End code ---
It tries to execute the command for 15 times, and sleeps 0.1 second in between tries.
Normally it succeeds after 2 or 3 tries.
I've also got a version that adds some logging to a logfile:
--- Code: ---for i in $(seq 1 15); do alsactl restore && break || sleep 0.1; echo "alsactl restore, #tries: $i" >> /tmp/log.txt; done
--- End code ---
I think I've rebooted my raspberry pi for about a trillion times this evening while creating this... ;) ;D
Greetings,
Gerrelt.
gavinmc42:
USB sound card?
add waitusb=5 to cmdline.txt
I need to wait for usb drives to get ready, maybe it's the same with usb sound cards?
I usually have to stick sleep times loops in bootsync.sh for the network to find ip address, date etc
Rich:
Hi gavinmc42
--- Quote ---I usually have to stick sleep times loops in bootsync.sh for the network to find ip address, date etc
--- End quote ---
A loop like this will wait until the network is up:
--- Code: ---SEC=60
while [ $SEC -gt 0 ] ; do
ifconfig | grep -q "Bcast" && break || sleep 1
echo -ne "Waiting for IP $((SEC--)) \r"
done
echo
--- End code ---
akram:
Hi Béla,
I have managed to boot, is there any way to get to GUI? I tried to download TC but server does not respond, getting an error.
I have pi3 model B, does any other version of picore with GUI support this model?
Kind regards
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version