Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: cosminbro on June 29, 2023, 06:08:49 AM

Title: Update ALSA to the last version
Post by: cosminbro on June 29, 2023, 06:08:49 AM
I'm on piCore 64 13.1.0. How can I update ALSA to the last available version, without upgrade to 14 picore?
Title: Re: Update ALSA to the last version
Post by: Juanito on June 29, 2023, 06:33:28 AM
You would need to compile it yourself on 13.1.
Title: Re: Update ALSA to the last version
Post by: cosminbro on June 29, 2023, 06:39:41 AM
I understand, but this means that I must manually install the compiled version instead of 13.1 tcz, correct?
Title: Re: Update ALSA to the last version
Post by: Juanito on June 29, 2023, 06:44:09 AM
If you create your own versions of alsa, libasound and libasound-dev, you can create tce/optional/upgrade and copy them to there - the existing versions will then be replaced on reboot.
Title: Re: Update ALSA to the last version
Post by: Paul_123 on June 29, 2023, 01:10:09 PM
If you are just trying to test old kernel on the new alsa, etc.  And you are not comfortable compiling. 

It would be easy to copy the 13.1 kernel onto the new image.

1) Boot your 13.1 image.
2) Mount a new SD card with the 14.0 image.
3) Copy the kernels and module initrds from the 13.1 boot partition to the 14.0 boot partition
4) Copy any kernel module extensions from the 13.1 /mnt/mmcblk0p2/tce/optional directory to the 14.0 image in the same location.
5) edit config.txt on the 14.0 image to reference the old kernel files.
Title: Re: Update ALSA to the last version
Post by: cosminbro on June 29, 2023, 04:10:34 PM
Must copy the files modules-5.10.77-piCore-v8.gz and rootfs-piCore64-13.1.gz, also?

If you are just trying to test old kernel on the new alsa, etc.  And you are not comfortable compiling. 

It would be easy to copy the 13.1 kernel onto the new image.

1) Boot your 13.1 image.
2) Mount a new SD card with the 14.0 image.
3) Copy the kernels and module initrds from the 13.1 boot partition to the 14.0 boot partition
4) Copy any kernel module extensions from the 13.1 /mnt/mmcblk0p2/tce/optional directory to the 14.0 image in the same location.
5) edit config.txt on the 14.0 image to reference the old kernel files.
Title: Re: Update ALSA to the last version
Post by: Paul_123 on June 29, 2023, 05:03:00 PM
Yes to modules-5.10.77-piCore-v8.ga
No to rootfs-xxxxxx, or you will just endup converting your 14.x into a 13.1 image.
Title: Re: Update ALSA to the last version
Post by: cosminbro on June 29, 2023, 05:19:46 PM
Ok, but if I copy the files from 13.1 /mnt/mmcblk0p2/tce/optional directory to the 14.0 image in the same location like you said, it means I'll have the old modules like alsa in the new 14 installation
Title: Re: Update ALSA to the last version
Post by: Paul_123 on June 29, 2023, 08:54:30 PM
I never said to copy the entire optional directory.  Just the extensions with the 5.10.77 kernel modules.
Title: Re: Update ALSA to the last version
Post by: cosminbro on June 30, 2023, 03:08:59 AM
I never said to copy the entire optional directory.  Just the extensions with the 5.10.77 kernel modules.

Thanks, it works!