Tiny Core Linux

Tiny Core Base => Raspberry Pi => piCore Test Releases => Topic started by: bmarkus on May 24, 2016, 03:34:55 AM

Title: piCore-8.0beta1
Post by: bmarkus on May 24, 2016, 03:34:55 AM
Team Tiny Core is proud to announce immediate availability of the first beta release of the piCore-8.0 edition. Nearly all components updated in the base to latest upstream:

- kernel 4.4.11
- glibc 2.23
- BusyBox 1.24.2
- util-linux 2.28
- e2fsprogs 1.43
- MicroPython 1.8
- Perl 5.24
- GCC 6.1

TC scripts also updated to latest common base. Except ncurses which doesn't build properly all packages in the repo updated and rebuilt using the new toolchain, not just copied over from 6.x/7.x repos. Dependencies revised, may be different to previous versions. It means limited number of packages in the repo, e.g. Xorg and graphical stuff are missing.

Only one SD card image available, it works on all RPi boards. Download location:

http://tinycorelinux.net/8.x/armv6/test_releases/

Please try it and share your experience, bugs found, etc.
Title: Re: piCore-8.0beta1
Post by: gavinmc42 on May 24, 2016, 11:09:42 PM
Thanks Bela,

Been waiting for it :P
Now in front of Raspbian - 4.4.11 yippee 8)

Arrow keys command memory fixed

Something I never noticed before was TC's default gpu_mem size = 64MB?
If only using console mode can free up some memory by adding gpu_mem=16 to config.txt
But if using camera then gpu_mem=128
X11 = 64MB?

Might help if there was a GPU memory comment in the config.txt

Videocore Camera library updated? got some 8Mp V2 I want to test.
Title: Re: piCore-8.0beta1
Post by: bmarkus on May 24, 2016, 11:37:16 PM
GPU mem: while it is a good point, not sure it must be changed. Saving 48MB doesn't help too much when you are out of memory and with 16MB it is one more thing to change in config (if any) which will be forgotten by users, like increasing partition size.

VC libs are not packed, but you can download from GitHub and play with it:

https://github.com/raspberrypi/firmware
Title: Re: piCore-8.0beta1
Post by: gavinmc42 on May 26, 2016, 08:55:50 PM
or just copy the Raspbian Raspistill binary?
Think I tested that before.

Title: Re: piCore-8.0beta1
Post by: mikedev on June 01, 2016, 01:53:28 PM
... limited number of packages in the repo, e.g. Xorg and graphical stuff are missing.


It works on my pi Zero, may I know where I can download the source of Xorg, Xvesa, etc. so that I can test compile them myself and test out the GUI capabilities of my pi zero?

Thanks!
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 02, 2016, 12:02:45 AM
Check source code of extensions in the 6.x or other previous version

http://tinycorelinux.net/6.x/armv6/tcz/src/

TC GUI tools in the TC GIT:

http://git.tinycorelinux.net/index.cgi

Or just make it from upstream source.
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 02, 2016, 02:31:50 AM

It works on my pi Zero, may I know where I can download the source of Xorg, Xvesa, etc. so that I can test compile them myself and test out the GUI capabilities of my pi zero?


There are no Xvesa for RPi, only Xorg.
Title: Re: piCore-8.0beta1
Post by: mikedev on June 03, 2016, 07:57:49 AM
Thank you!

(pi zero)
Bug report: "Illegal instruction" on wget/curl with HTTPS download
There is something wrong with gmp.tcz and nettle.tcz in the repository.  The issue can be repeatedly duplicated.

The issue applies to wget.tcz and curl.tcz since they both use the mentioned tcz:

Quote
$ tce-load -il wget
libtasn1.tcz: OK
p11-kit.tcz: OK
gmp.tcz: OK
nettle.tcz: OK
libidn.tcz: OK
gnutls.tcz: OK
wget.tcz: OK

$ /usr/local/bin/wget https://gmplib.org/download/gmp/gmp-6.1.0.tar.xz
--2016-06-03 14:26:47--  https://gmplib.org/download/gmp/gmp-6.1.0.tar.xz
Resolving gmplib.org (gmplib.org)... 37.252.124.96
Connecting to gmplib.org (gmplib.org)|37.252.124.96|:443... connected.
Illegal instruction

$ curl https://gmplib.org/download/gmp/gmp-6.1.0.tar.xz
Illegal instruction

I have rebuild the gmp.tcz and nettle.tcz natively on my pi zero according the to commands in gmp.build and nettle.build, with the only difference of downloading the source from upstream:
https://gmplib.org/download/gmp/gmp-6.1.0.tar.xz
ftp://ftp.gnu.org/gnu/nettle/nettle-3.2.tar.gz

Then, I load my rebuild gmp.tcz and nettle.tcz first, and then load wget/curl from the repository so that the rest of the dependencies will be loaded from the repository as well.

Then both wget and curl no longer experience "Illegal instruction" error.

Quote
$ /usr/local/bin/wget https://gmplib.org/download/gmp/gmp-6.1.0.tar.xz
--2016-06-03 14:42:29--  https://gmplib.org/download/gmp/gmp-6.1.0.tar.xz
Resolving gmplib.org (gmplib.org)... 37.252.124.96
Connecting to gmplib.org (gmplib.org)|37.252.124.96|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1950316 (1.9M) [application/octet-stream]
Saving to: 'gmp-6.1.0.tar.xz.2'

gmp-6.1.0.tar.xz.2               100%[========================================================>]   1.86M   122KB/s    in 15s

2016-06-03 14:42:46 (127 KB/s) - 'gmp-6.1.0.tar.xz.2' saved [1950316/1950316]


Thanks,
Title: Re: piCore-8.0beta1
Post by: mikedev on June 03, 2016, 09:06:19 AM
The "Illegal instruction" issue exists on HTTPS download with wget/curl, but not HTTP.

HTTP download by wget/curl is fine with the repository's gmp and nettle packages.
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 03, 2016, 10:04:52 AM
Thanks for reporting. I can reproduce it on RPi-B board. WIll investigate.
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 03, 2016, 01:40:27 PM
nettle used armv7 neon instructions. Rebuilt for armv6 and updated in repo. Tested, both wget and curl works now,

gmp.tcz is ok, no need to rebuild.
Title: Re: piCore-8.0beta1
Post by: akram on June 04, 2016, 07:00:19 AM
I tried to install using dd command and Win disk imager both on Pi 3 Model B but did not boot. I tried this commands -

sudo dd bs=4m if=piCore-8.0beta1.img of=/dev/disk2

disk names I found using

ls /dev > devices2.txt
diff devices.txt devices2.txt

disk2s1
disk2s2

Files get copied to the card (please see the .jpg attachment) successfully but still does not boot. Please help.


[attachment deleted by admin]
Title: Re: piCore-8.0beta1
Post by: Gerrelt on June 05, 2016, 01:52:00 AM
Hi Béla,

 I am trying to install squeezelite on this 8.0beta1, but it seems that alsa-config.tcz is not available in the repository:

Code: [Select]
tc@box:~$ tce-load -wi alsa-config.tcz
Downloading: alsa-config.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: alsa-config.tcz.md5.txt: No such file or directory
Error on alsa-config.tcz
tc@box:~$

I also don't see "alsaequal.tcz" when I do a tce search on "alsa".

Greetings,
    Gerrelt.
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 05, 2016, 03:57:41 AM
Hi Béla,

 I am trying to install squeezelite on this 8.0beta1, but it seems that alsa-config.tcz is not available in the repository:

Code: [Select]
tc@box:~$ tce-load -wi alsa-config.tcz
Downloading: alsa-config.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: server returned error: HTTP/1.1 404 Not Found
md5sum: alsa-config.tcz.md5.txt: No such file or directory
Error on alsa-config.tcz
tc@box:~$

I also don't see "alsaequal.tcz" when I do a tce search on "alsa".

Greetings,
    Gerrelt.

alsaequal is not yet in repo.

Same with alsa-config where I'm not sure it is need at all, will see. Sound works fine in 8.0 as it is now.
Title: Re: piCore-8.0beta1
Post by: Paul_123 on June 05, 2016, 10:24:09 AM
Onboard audio and USB audio works fine.
Title: Re: piCore-8.0beta1
Post by: Gerrelt on June 05, 2016, 01:32:16 PM
OK, I've been messing about with it now, and I made some progress.

Instead of installing "alsa-config.tcz", I've installed "alsa-utils.tcz".
Now I can use the "sudo alsactl store" command, but it throws this error:

tc@box:~$ sudo alsactl store
alsactl: save_state:1626: Cannot open /var/lib/alsa/asound.state for writing: No such file or directory

After checking this, it appears the Alsa directory is not present at default (it's normally created by alsa-config.tcz, maybe?) .
So, I've create the directory, and then the store command works, and it creates a asound.state:

tc@box:~$ sudo mkdir -p /var/lib/alsa
tc@box:~$ sudo echo "var/lib/alsa" >> /opt/.filetool.lst
tc@box:~$ sudo alsactl store
tc@box:~$

Now the alsamixer settings are stored, but they are not restored on boot. I've added this command to the end of /opt/bootlocal.sh, but it didn't work:

Code: [Select]
alsactl restore
Starting this command manually after boot, does work, but not on boot.
So, I've redirectred the error output to a logfile, and this is the error that's produced during startup.

alsactl: load_state:1735: No soundcards found...

It seems like the soundcard is not present yet when the restore command is executed during boot.
Did something change in the boot-order? This used to work fine on 7.1 .
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 05, 2016, 02:40:05 PM
It seems like the soundcard is not present yet when the restore command is executed during boot.
Did something change in the boot-order? This used to work fine on 7.1 .

No, 7.1 and 8.0 is using the same scripts.
Title: Re: piCore-8.0beta1
Post by: Paul_123 on June 05, 2016, 07:41:18 PM
are you sure that you have

dtparam=audio=on

in your boot config.
Title: Re: piCore-8.0beta1
Post by: Gerrelt on June 06, 2016, 04:07:53 AM
No, I am using a USB souncard.

I've discovered that if I add a "sleep 1" before the restore command in the bootlocal.sh script, it works OK.

So I think the USB soundcard is not ready yet when the restore command is executed during boot.
I will have to think of way to check and wait until the USB soundcard is available.
Title: Re: piCore-8.0beta1
Post by: Paul_123 on June 06, 2016, 06:39:15 AM
No, I am using a USB souncard.

I've discovered that if I add a "sleep 1" before the restore command in the bootlocal.sh script, it works OK.

So I think the USB soundcard is not ready yet when the restore command is executed during boot.
I will have to think of way to check and wait until the USB soundcard is available.

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.


Title: Re: piCore-8.0beta1
Post by: bmarkus on June 06, 2016, 07:27:45 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.

You can read /proc/asound/cards file also to see available cards.
Title: Re: piCore-8.0beta1
Post by: Gerrelt on June 06, 2016, 01:14:51 PM
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: [Select]
for i in $(seq 1 15); do alsactl restore && break || sleep 0.1; done
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: [Select]
for i in $(seq 1 15); do alsactl restore && break || sleep 0.1; echo "alsactl restore, #tries: $i" >> /tmp/log.txt; done
I think I've rebooted my raspberry pi for about a trillion times this evening while creating this...  ;) ;D

Greetings,
   Gerrelt.
Title: Re: piCore-8.0beta1
Post by: gavinmc42 on June 06, 2016, 06:25:58 PM
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
Title: Re: piCore-8.0beta1
Post by: Rich on June 06, 2016, 07:23:44 PM
Hi gavinmc42
Quote
I usually have to stick sleep times loops in bootsync.sh for the network to find ip address, date etc
A loop like this will wait until the network is up:
Code: [Select]
SEC=60
while [ $SEC -gt 0 ] ; do
   ifconfig | grep -q "Bcast" && break || sleep 1
   echo -ne "Waiting for IP $((SEC--))  \r"     
done                                       
echo
Title: Re: piCore-8.0beta1
Post by: akram on June 06, 2016, 09:32:38 PM
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
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 06, 2016, 10:25:04 PM
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

Hi

piCore-7 supports pi3.

In piCore-8 you can try packages from 7.x most likely they work.
Title: Re: piCore-8.0beta1
Post by: Gerrelt on June 08, 2016, 10:53:41 AM
Hi Béla,


I've installed squeezelite using my tutorial, and I got it working now. I only had to change the Alsa installation, as mentioned above.
However, I did get these error messages whil installing bash:

tc@box:~$ tce-load -wi bash.tcz
bash.tcz.dep OK
Downloading: bash.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
bash.tcz             100% |*******************************************************************************************|   412k  0:00:00 ETA
bash.tcz: OK
cp: can't stat '/usr/local/share/bash/.bashrc': No such file or directory
cp: can't stat '/usr/local/share/bash/.bashrc': No such file or directory
cp: can't stat '/usr/local/share/bash/bashrc': No such file or directory
cp: can't stat '/usr/local/share/bash/.bashrc': No such file or directory
chown: /home/tc/.bashrc: No such file or directory
tc@box:~$

But bash seems to work fine, my squeezelite (bash sing) script works without problems.

Greetings,
  Gerrelt.
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 08, 2016, 11:13:18 PM
Thanks will check
Title: Re: piCore-8.0beta1
Post by: Gerrelt on June 10, 2016, 01:30:37 PM
So I ended up with this command, which seems to work pretty good:

Code: [Select]
for i in $(seq 1 15); do alsactl restore && break || sleep 0.1; done
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 tested a different Pi with a different USB soundcard. This soundcard took longer to become available, so I had to chang the 15 to 30, like this:

Code: [Select]
for i in $(seq 1 30); do alsactl restore && break || sleep 0.1; done
This means it tries for a maximum of 3 seconds before giving up. This soundcard took araound 20 tries, so 2 seconds.

Title: Re: piCore-8.0beta1
Post by: mbivol10 on June 14, 2016, 01:08:59 PM
Still no support for the 64 bit version? I get no video out with this os on the 3b. Can I help anyhow to make the 64 bit available too ? I really want it on my pi!
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 14, 2016, 02:25:24 PM
Still no support for the 64 bit version? I get no video out with this os on the 3b. Can I help anyhow to make the 64 bit available too ? I really want it on my pi!

There are no 64-bit kernel available yet. What benefits do you expect of running 64-bit?
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 14, 2016, 10:33:37 PM
Re 64-bit, read this article:

http://raspberrypi.stackexchange.com/questions/43921/raspbian-moving-to-64-bit-mode
Title: Re: piCore-8.0beta1
Post by: bmarkus on June 14, 2016, 10:35:54 PM
I get no video out with this os on the 3b.

Analog or HDMI output? Did you check config.txt and configured to match your setup?

Anyone else got video output issues on RPi3 with piCore-8 beta?
Title: Re: piCore-8.0beta1
Post by: mbivol10 on June 15, 2016, 09:05:30 AM
I get no video out with this os on the 3b.

Analog or HDMI output? Did you check config.txt and configured to match your setup?


HDMI of course ITS pi 3b , what exactly should I change in config.txt ?

Nice article, I agree with the answers, just that the hardware I have is 64bit not that I will use it or anything. I just want to see this working on my pi that's all.
Title: Re: piCore-8.0beta1
Post by: mbivol10 on June 15, 2016, 10:22:22 AM
Thanks it actually booted thanks to you, I went to config and changed hdmi options there.  The reason I wanted to get it to work was because of excitement on running it entirely on ram. My idea is to have it running on ram with google chrome installed, so that history deletes itself for every boot up like in a school situation with students. Here is 2 things I need to understand now. How do I install chrome on SD card and keep changes to get it installed of course, and then let it boot in ram once I have the browser installed. Thanks.
Title: piCore-8.0beta1
Post by: bmarkus on June 15, 2016, 11:09:25 AM
Chrome is not available.
Title: Re: piCore-8.0beta1
Post by: mbivol10 on June 15, 2016, 03:42:17 PM
Is there a way to get graphical user interface ? I'm stuck on terminal and when I try tce-load -wi TK it's not available in any mirrors, I can get other program's installed but nothing graphical
Title: Re: piCore-8.0beta1
Post by: mbivol10 on June 15, 2016, 04:39:56 PM
I would appreciate if there was a graphical built for the 8.x, thank you!
Title: Re: piCore-8.0beta1
Post by: tatemono on June 16, 2016, 08:02:57 AM
Is there a way to get graphical user interface ? I'm stuck on terminal and when I try tce-load -wi TK it's not available in any mirrors, I can get other program's installed but nothing graphical

@mbivol10

Please use "tce-load -wi TC.tcz" instead of "tce-load -wi TK" to install GUI extensions.