WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Update ALSA to the last version  (Read 1650 times)

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Update ALSA to the last version
« 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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Update ALSA to the last version
« Reply #1 on: June 29, 2023, 06:33:28 AM »
You would need to compile it yourself on 13.1.

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Re: Update ALSA to the last version
« Reply #2 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?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Update ALSA to the last version
« Reply #3 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.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1239
Re: Update ALSA to the last version
« Reply #4 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.

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Re: Update ALSA to the last version
« Reply #5 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.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1239
Re: Update ALSA to the last version
« Reply #6 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.

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Re: Update ALSA to the last version
« Reply #7 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

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1239
Re: Update ALSA to the last version
« Reply #8 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.

Offline cosminbro

  • Jr. Member
  • **
  • Posts: 68
Re: Update ALSA to the last version
« Reply #9 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!