diff --git a/README.md b/README.md index 71b4d93..559dcaa 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This role is only running at: 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``. You can change the downloaded firmware file names by modifying the default variables. diff --git a/defaults/main.yml b/defaults/main.yml index 66a8f44..6bfa316 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,31 +1,40 @@ --- # 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 -rtl_nic__firmware: - - 'rtl_nic/rtl8107e-2.fw' - - 'rtl_nic/rtl8107e-1.fw' - - 'rtl_nic/rtl8168h-2.fw' - - 'rtl_nic/rtl8168h-1.fw' - - 'rtl_nic/rtl8168g-3.fw' - - 'rtl_nic/rtl8168g-2.fw' - - 'rtl_nic/rtl8106e-2.fw' - - 'rtl_nic/rtl8106e-1.fw' - - 'rtl_nic/rtl8411-2.fw' - - 'rtl_nic/rtl8411-1.fw' - - 'rtl_nic/rtl8402-1.fw' - - 'rtl_nic/rtl8168f-2.fw' - - 'rtl_nic/rtl8168f-1.fw' - - 'rtl_nic/rtl8105e-1.fw' - - 'rtl_nic/rtl8168e-3.fw' - - 'rtl_nic/rtl8168e-2.fw' - - 'rtl_nic/rtl8168e-1.fw' - - 'rtl_nic/rtl8168d-2.fw' - - 'rtl_nic/rtl8168d-1.fw' +amdgpu__firmware: + - 'amdgpu/vangogh_gpu_info.bin' + - 'amdgpu/vangogh_toc.bin' + - 'amdgpu/vangogh_asd.bin' + - 'amdgpu/navy_flounder_ta.bin' + - 'amdgpu/navy_flounder_sos.bin' + - 'amdgpu/vangogh_rlc.bin' + - 'amdgpu/vangogh_mec2.bin' + - 'amdgpu/vangogh_mec.bin' + - 'amdgpu/vangogh_me.bin' + - 'amdgpu/vangogh_pfp.bin' + - 'amdgpu/vangogh_ce.bin' + - 'amdgpu/navy_flounder_rlc.bin' + - 'amdgpu/navy_flounder_mec2.bin' + - 'amdgpu/navy_flounder_mec.bin' + - 'amdgpu/navy_flounder_me.bin' + - 'amdgpu/navy_flounder_pfp.bin' + - 'amdgpu/navy_flounder_ce.bin' + - 'amdgpu/vangogh_sdma.bin' + - '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' -rtl_nic__path_suffix: 'rtl_nic' +amdgpu__path_prefix: '/lib/firmware' +amdgpu__path_suffix: 'amdgpu' # should we do a version check? (recomended) submodules_versioncheck: false diff --git a/meta/main.yml b/meta/main.yml index 8143083..efdbcf0 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,8 +1,8 @@ --- galaxy_info: - role_name: rtl_nic_firmware + role_name: amdgpu_firmware 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" min_ansible_version: 2.11 github_branch: main diff --git a/tasks/kernel_firmware_download.yml b/tasks/kernel_firmware_download.yml index 83730f2..0422bbe 100644 --- a/tasks/kernel_firmware_download.yml +++ b/tasks/kernel_firmware_download.yml @@ -1,21 +1,21 @@ --- -- name: "create {{ rtl_nic__path_prefix }}/{{ rtl_nic__path_suffix }}" +- name: "create {{ amdgpu__path_prefix }}/{{ amdgpu__path_suffix }}" become: true ansible.builtin.file: - path: "{{ rtl_nic__path_prefix }}/{{ item }}" + path: "{{ amdgpu__path_prefix }}/{{ item }}" state: directory mode: 0755 owner: 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 ansible.builtin.get_url: - url: "{{ rtl_nic__download_prefix }}/{{ item }}" - dest: "{{ rtl_nic__path_prefix }}/{{ item }}" + url: "{{ amdgpu__download_prefix }}/{{ item }}" + dest: "{{ amdgpu__path_prefix }}/{{ item }}" owner: root group: root mode: 0644 - with_items: "{{ rtl_nic__firmware }}" + with_items: "{{ amdgpu__firmware }}" notify: update initrd diff --git a/vars/main.yml b/vars/main.yml index 9bdce72..39f9803 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,4 +1,4 @@ --- # versionscheck playbook_version_number: 5 -playbook_version_path: 'do1jlr.rtl_nic_firmware.version' +playbook_version_path: 'do1jlr.amdgpu_firmware.version'