chromebook-linux-audio icon indicating copy to clipboard operation
chromebook-linux-audio copied to clipboard

404 Error during installation

Open j3n0v4 opened this issue 1 year ago • 6 comments

Hello,

The script is running into a 404 error. The script is trying to download https://github.com/thesofproject/avs-topology-xml/releases/download/v2024.02/avs-topology_2024.02.tar.gz which does not exist anymore. Therefore the script fails.

j3n0v4 avatar Aug 14 '24 14:08 j3n0v4

Same problem here. They either deleted the files or moved them.

glotim avatar Aug 17 '24 19:08 glotim

Installing topology Traceback (most recent call last): File "/home/apo/chromebook-linux-audio/./setup-audio", line 319, in match_platform(board) File "/home/apo/chromebook-linux-audio/./setup-audio", line 95, in match_platform avs_audio() File "/home/apo/chromebook-linux-audio/./setup-audio", line 151, in avs_audio urlretrieve(url=avs_tplg_url, filename="/tmp/avs_tplg/avs-tplg.tar.gz") File "/usr/lib/python3.11/urllib/request.py", line 241, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 216, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 563, in error return self._call_chain(*args) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 496, in _call_chain result = func(*args) ^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

Apok01 avatar Aug 17 '24 21:08 Apok01

I have the same issue as above, on Fedora 40.

therealkuking avatar Aug 17 '24 21:08 therealkuking

Hopefully the original "built" avs-topology_2024.02.tar.gz gets re-uploaded, but I got mine working the hard way...

you need to build avstplg to build avs-topology, and avstplg is from avsdk

download avsdk: git clone https://github.com/thesofproject/avsdk.git cd avstplg make if you have problems building it, you likely need to install dotnet sdk sudo apt install dotnet-sdk-6.0 dotnet-host dotnet-hostfxt-6.0

build avs-topology (tag: v2024.02) using avstplg: git clone --branch v2024.02 https://github.com/thesofproject/avs-topology-xml.git run make pointing to where avstplg binary is PATH=$PATH:$HOME/avsdk/avstplg/build/bin/Debug/net6.0/publish make to create the lib and final release tar.gz make dist

install avs-topology.tar.gz to dir for setup-audio script: sudo mkdir -p /tmp/avs_tplg sudo tar -xvf avs-topology.tar.gz -C /tmp/avs_tplg/

modify setup-audio to avoid downloading/installing missing file: vi setup-audio comment out lines 152 and 153 (urlretrieve and tar xv) run setup-audio sudo ./setup-audio

mhungerford avatar Aug 17 '24 23:08 mhungerford

As a workaround* (not involving building the topology files from source) you can try manually installing topology files from linux-firmware repository, as the binaries were recently moved there: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/intel/avs

* you would still need to comment out this part of the script: https://github.com/WeirdTreeThing/chromebook-linux-audio/blob/main/setup-audio#L151-L154

koluckirafal avatar Aug 17 '24 23:08 koluckirafal

Hopefully the original "built" avs-topology_2024.02.tar.gz gets re-uploaded, but I got mine working the hard way...

you need to build avstplg to build avs-topology, and avstplg is from avsdk

download avsdk: git clone https://github.com/thesofproject/avsdk.git cd avstplg make if you have problems building it, you likely need to install dotnet sdk sudo apt install dotnet-sdk-6.0 dotnet-host dotnet-hostfxt-6.0

build avs-topology (tag: v2024.02) using avstplg: git clone --branch v2024.02 https://github.com/thesofproject/avs-topology-xml.git run make pointing to where avstplg binary is PATH=$PATH:$HOME/avsdk/avstplg/build/bin/Debug/net6.0/publish make to create the lib and final release tar.gz make dist

install avs-topology.tar.gz to dir for setup-audio script: sudo mkdir -p /tmp/avs_tplg sudo tar -xvf avs-topology.tar.gz -C /tmp/avs_tplg/

modify setup-audio to avoid downloading/installing missing file: vi setup-audio comment out lines 152 and 153 (urlretrieve and tar xv) run setup-audio sudo ./setup-audio

Many thanks for this explanation. I got my audio working.

j3n0v4 avatar Aug 18 '24 10:08 j3n0v4

Same issue for me on Fedora 40.

jimibananas avatar Aug 22 '24 13:08 jimibananas

The AVS firmware is now shipping with Fedora 40. Update your system to get the latest kernel (sudo dnf update). Then comment out lines 151 through 154 in the audio script, and then run the script. It should install without issues.

therealkuking avatar Aug 22 '24 17:08 therealkuking

Same for me on OpenSUSE tumbleweed (after system update): I only had to comment lines 151-154 and the AVS firmware was already available.

lukeallister avatar Aug 23 '24 04:08 lukeallister

The AVS firmware is now shipping with Fedora 40. Update your system to get the latest kernel (sudo dnf update). Then comment out lines 151 through 154 in the audio script, and then run the script. It should install without issues.

Thank you > therealkuking -Worked perfectly on Fedora 40.

jimibananas avatar Aug 23 '24 12:08 jimibananas

The AVS firmware is now shipping with Fedora 40. Update your system to get the latest kernel (sudo dnf update). Then comment out lines 151 through 154 in the audio script, and then run the script. It should install without issues.

Doesn't seem to work with Fedora on kernel 6.10.7

thethirdmurph avatar Sep 08 '24 18:09 thethirdmurph

Doesn't seem to work with Fedora on kernel 6.10.7

My device is Pixelbook Go.I found out with Fedora on kernel 6.10.7 the tplg file is somehow missing, maybe the kernel update deleting them. You can find the missing tplg error in demsg.

Just downlod the tplg files from this repo conf/avs/tplg and put them in the /lib/firmware/intel/avs (see: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/intel/avs).

livexia avatar Sep 08 '24 18:09 livexia

Doesn't seem to work with Fedora on kernel 6.10.7

My device is Pixelbook Go.I found out with Fedora on kernel 6.10.7 the tplg file is somehow missing, maybe the kernel update deleting them. You can find the missing tplg error in demsg.

Just downlod the tplg files from this repo conf/avs/tplg and put them in the /lib/firmware/intel/avs (see: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/intel/avs).

My Case Chromebook Pro, Files from this URL did not help. But the files from 6.10.6 under /lib/firmware/intel/avs work fine for me.

monkeyotg avatar Sep 09 '24 17:09 monkeyotg

Doesn't seem to work with Fedora on kernel 6.10.7

My device is Pixelbook Go.I found out with Fedora on kernel 6.10.7 the tplg file is somehow missing, maybe the kernel update deleting them. You can find the missing tplg error in demsg. Just downlod the tplg files from this repo conf/avs/tplg and put them in the /lib/firmware/intel/avs (see: https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/intel/avs).

My Case Chromebook Pro, Files from this URL did not help. But the files from 6.10.6 under /lib/firmware/intel/avs work fine for me.

I also had this experience. in fedora 6.10.6 files ended tplg.bin.xz: however these files worked fine for me in debian where the files end in tplg.bin

thethirdmurph avatar Sep 09 '24 17:09 thethirdmurph

I am just using files inside this folder.

livexia avatar Sep 09 '24 17:09 livexia