mirror of
https://github.com/roles-ansible/ansible_role_amdgpu_firmware.git
synced 2024-08-16 14:59:49 +02:00
now download amdgpu
This commit is contained in:
parent
399195f2e8
commit
432b539edd
5 changed files with 43 additions and 34 deletions
|
@ -11,7 +11,7 @@ This role is only running at:
|
||||||
when:
|
when:
|
||||||
```
|
```
|
||||||
|
|
||||||
+ It will download the defined Firmware Files from the ``rtl_nic__firmware`` variable.
|
+ It will download the defined Firmware Files from the ``amdgpu__firmware`` variable.
|
||||||
+ Then we run ``update-initramfs -k all -u``.
|
+ Then we run ``update-initramfs -k all -u``.
|
||||||
|
|
||||||
You can change the downloaded firmware file names by modifying the default variables.
|
You can change the downloaded firmware file names by modifying the default variables.
|
||||||
|
|
|
@ -1,31 +1,40 @@
|
||||||
---
|
---
|
||||||
# define download url prefix
|
# define download url prefix
|
||||||
rtl_nic__download_prefix: 'https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain'
|
amdgpu__download_prefix: 'https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain'
|
||||||
|
|
||||||
# define firmware list
|
# define firmware list
|
||||||
rtl_nic__firmware:
|
amdgpu__firmware:
|
||||||
- 'rtl_nic/rtl8107e-2.fw'
|
- 'amdgpu/vangogh_gpu_info.bin'
|
||||||
- 'rtl_nic/rtl8107e-1.fw'
|
- 'amdgpu/vangogh_toc.bin'
|
||||||
- 'rtl_nic/rtl8168h-2.fw'
|
- 'amdgpu/vangogh_asd.bin'
|
||||||
- 'rtl_nic/rtl8168h-1.fw'
|
- 'amdgpu/navy_flounder_ta.bin'
|
||||||
- 'rtl_nic/rtl8168g-3.fw'
|
- 'amdgpu/navy_flounder_sos.bin'
|
||||||
- 'rtl_nic/rtl8168g-2.fw'
|
- 'amdgpu/vangogh_rlc.bin'
|
||||||
- 'rtl_nic/rtl8106e-2.fw'
|
- 'amdgpu/vangogh_mec2.bin'
|
||||||
- 'rtl_nic/rtl8106e-1.fw'
|
- 'amdgpu/vangogh_mec.bin'
|
||||||
- 'rtl_nic/rtl8411-2.fw'
|
- 'amdgpu/vangogh_me.bin'
|
||||||
- 'rtl_nic/rtl8411-1.fw'
|
- 'amdgpu/vangogh_pfp.bin'
|
||||||
- 'rtl_nic/rtl8402-1.fw'
|
- 'amdgpu/vangogh_ce.bin'
|
||||||
- 'rtl_nic/rtl8168f-2.fw'
|
- 'amdgpu/navy_flounder_rlc.bin'
|
||||||
- 'rtl_nic/rtl8168f-1.fw'
|
- 'amdgpu/navy_flounder_mec2.bin'
|
||||||
- 'rtl_nic/rtl8105e-1.fw'
|
- 'amdgpu/navy_flounder_mec.bin'
|
||||||
- 'rtl_nic/rtl8168e-3.fw'
|
- 'amdgpu/navy_flounder_me.bin'
|
||||||
- 'rtl_nic/rtl8168e-2.fw'
|
- 'amdgpu/navy_flounder_pfp.bin'
|
||||||
- 'rtl_nic/rtl8168e-1.fw'
|
- 'amdgpu/navy_flounder_ce.bin'
|
||||||
- 'rtl_nic/rtl8168d-2.fw'
|
- 'amdgpu/vangogh_sdma.bin'
|
||||||
- 'rtl_nic/rtl8168d-1.fw'
|
- 'amdgpu/navy_flounder_sdma.bin'
|
||||||
|
- 'amdgpu/sienna_cichlid_mes.bin'
|
||||||
|
- 'amdgpu/navi10_mes.bin'
|
||||||
|
- 'amdgpu/vangogh_vcn.bin'
|
||||||
|
- 'amdgpu/navy_flounder_vcn.bin'
|
||||||
|
- 'amdgpu/arcturus_vcn.bin'
|
||||||
|
- 'amdgpu/navy_flounder_smc.bin'
|
||||||
|
- 'amdgpu/arcturus_smc.bin'
|
||||||
|
- 'amdgpu/vangogh_dmcub.bin'
|
||||||
|
- 'amdgpu/navy_flounder_dmcub.bin'
|
||||||
|
|
||||||
rtl_nic__path_prefix: '/lib/firmware'
|
amdgpu__path_prefix: '/lib/firmware'
|
||||||
rtl_nic__path_suffix: 'rtl_nic'
|
amdgpu__path_suffix: 'amdgpu'
|
||||||
|
|
||||||
# should we do a version check? (recomended)
|
# should we do a version check? (recomended)
|
||||||
submodules_versioncheck: false
|
submodules_versioncheck: false
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
---
|
---
|
||||||
galaxy_info:
|
galaxy_info:
|
||||||
role_name: rtl_nic_firmware
|
role_name: amdgpu_firmware
|
||||||
author: do1jlr
|
author: do1jlr
|
||||||
description: Ansible role to install some missing rtl_nic Firmware for APU
|
description: Ansible role to install some missing amdgpu Firmware for my AMD Thinkpad
|
||||||
license: "MIT"
|
license: "MIT"
|
||||||
min_ansible_version: 2.11
|
min_ansible_version: 2.11
|
||||||
github_branch: main
|
github_branch: main
|
||||||
|
|
|
@ -1,21 +1,21 @@
|
||||||
---
|
---
|
||||||
- name: "create {{ rtl_nic__path_prefix }}/{{ rtl_nic__path_suffix }}"
|
- name: "create {{ amdgpu__path_prefix }}/{{ amdgpu__path_suffix }}"
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ rtl_nic__path_prefix }}/{{ item }}"
|
path: "{{ amdgpu__path_prefix }}/{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: 0755
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
with_items: "{{ rtl_nic__path_suffix }}"
|
with_items: "{{ amdgpu__path_suffix }}"
|
||||||
|
|
||||||
- name: download rtl_nic firmware
|
- name: download amdgpu firmware
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ rtl_nic__download_prefix }}/{{ item }}"
|
url: "{{ amdgpu__download_prefix }}/{{ item }}"
|
||||||
dest: "{{ rtl_nic__path_prefix }}/{{ item }}"
|
dest: "{{ amdgpu__path_prefix }}/{{ item }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
with_items: "{{ rtl_nic__firmware }}"
|
with_items: "{{ amdgpu__firmware }}"
|
||||||
notify: update initrd
|
notify: update initrd
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 5
|
playbook_version_number: 5
|
||||||
playbook_version_path: 'do1jlr.rtl_nic_firmware.version'
|
playbook_version_path: 'do1jlr.amdgpu_firmware.version'
|
||||||
|
|
Loading…
Reference in a new issue