> From: michaelkintz...@gmail.com
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] (Not Solved for me) anyone tried amdgpu (kernel 
> module)
> Date: Tue, 22 Dec 2015 23:02:12 +0000
> 
> On Tuesday 22 Dec 2015 21:30:48 Alexander Kapshuk wrote:
> > On Tue, Dec 22, 2015 at 9:39 PM, Mick <michaelkintz...@gmail.com> wrote:
> > > On Sunday 20 Dec 2015 20:29:28 Alexander Kapshuk wrote:
> > > > On Sun, Dec 20, 2015 at 9:04 PM, Mick <michaelkintz...@gmail.com> wrote:
> > > > > This is not working for me on a Kaveri system.
> > > > > 
> > > > > The wiki page suggests these firmware blobs:
> > > > > 
> > > > > radeon/kaveri_ce.bin radeon/kaveri_me.bin radeon/kaveri_mec2.bin
> > > > > radeon/kaveri_mec.bin radeon/kaveri_pfp.bin radeon/kaveri_rlc.bin
> > > > > radeon/kaveri_sdma1.bin radeon/kaveri_sdma.bin radeon/kaveri_uvd.bin
> > > > > radeon/kaveri_vce.bin
> > > > > 
> > > > > Unfortunately, radeon/kaveri_sdma1.bin does not seen to be available
> > > 
> > > when
> > > 
> > > > > I use sys-kernel/linux-firmware:
> > > > > 
> > > > > find /lib/firmware/radeon/ -iname KAVERI*sdma*
> > > > > /lib/firmware/radeon/kaveri_sdma.bin
> > > > > /lib/firmware/radeon/KAVERI_sdma.bin
> > > > > 
> > > > > 
> > > > > I installed sys-firmware/amdgpu-ucode, but KAVERI is not found there
> > > > > either:
> > > > > 
> > > > > find /lib/firmware/amdgpu/ -iname *sdma*
> > > > > /lib/firmware/amdgpu/carrizo_sdma.bin
> > > > > /lib/firmware/amdgpu/carrizo_sdma1.bin
> > > > > /lib/firmware/amdgpu/fiji_sdma.bin
> > > > > /lib/firmware/amdgpu/fiji_sdma1.bin
> > > > > /lib/firmware/amdgpu/tonga_sdma.bin
> > > > > /lib/firmware/amdgpu/tonga_sdma1.bin
> > > > > /lib/firmware/amdgpu/topaz_sdma.bin
> > > > > /lib/firmware/amdgpu/topaz_sdma1.bin
> > > > > 
> > > > > 
> > > > > Building the recommended blobs fails like so:
> > > > > 
> > > > > # make && make modules_install && make firmware_install
> > > > > 
> > > > >   CHK     include/config/kernel.release
> > > > >   CHK     include/generated/uapi/linux/version.h
> > > > >   CHK     include/generated/utsrelease.h
> > > > >   CHK     include/generated/bounds.h
> > > > >   CHK     include/generated/asm-offsets.h
> > > > >   CALL    scripts/checksyscalls.sh
> > > > >   CHK     include/generated/compile.h
> > > > > 
> > > > > kernel/Makefile:135: *** No X.509 certificates found ***
> > > > > make[1]: *** No rule to make target
> > > > > '/lib/firmware//radeon/kaveri_sdma1.bin',
> > > > > needed by 'firmware/radeon/kaveri_sdma1.bin.gen.o'.  Stop.
> > > > > Makefile:947: recipe for target 'firmware' failed
> > > > > make: *** [firmware] Error 2
> > > > 
> > > > That's interesting. 'kaveri_sdma1.bin' is found in the
> > > > 'sys-firmware/amdgpu-ucode' package. See below.
> > > > % pwd
> > > > radeon_ucode/kaveri
> > > 
> > > I don't seem to have such a directory, or the files therein.  Where am I
> > > supposed to look?
> > > 
> > > This is what emerge -uaDv sys-firmware/amdgpu-ucode installed on my PC:
> > > >>> Installing (1 of 1) sys-firmware/amdgpu-ucode-20150803::gentoo
> > >  
> > >  * checking 44 files for package collisions
> > >  
> > > >>> Merging sys-firmware/amdgpu-ucode-20150803 to /
> > > 
> > > --- /lib/
> > > --- /lib/firmware/
> > > --- /lib/firmware/amdgpu/
> > > 
> > > >>> /lib/firmware/amdgpu/carrizo_ce.bin
> > > >>> /lib/firmware/amdgpu/carrizo_me.bin
> > > >>> /lib/firmware/amdgpu/carrizo_mec.bin
> > > >>> /lib/firmware/amdgpu/carrizo_mec2.bin
> > > >>> /lib/firmware/amdgpu/carrizo_pfp.bin
> > > >>> /lib/firmware/amdgpu/carrizo_rlc.bin
> > > >>> /lib/firmware/amdgpu/carrizo_sdma.bin
> > > >>> /lib/firmware/amdgpu/carrizo_sdma1.bin
> > > >>> /lib/firmware/amdgpu/carrizo_uvd.bin
> > > >>> /lib/firmware/amdgpu/carrizo_vce.bin
> > > >>> /lib/firmware/amdgpu/fiji_ce.bin
> > > >>> /lib/firmware/amdgpu/fiji_mc.bin
> > > >>> /lib/firmware/amdgpu/fiji_me.bin
> > > >>> /lib/firmware/amdgpu/fiji_mec.bin
> > > >>> /lib/firmware/amdgpu/fiji_mec2.bin
> > > >>> /lib/firmware/amdgpu/fiji_pfp.bin
> > > >>> /lib/firmware/amdgpu/fiji_rlc.bin
> > > >>> /lib/firmware/amdgpu/fiji_sdma.bin
> > > >>> /lib/firmware/amdgpu/fiji_sdma1.bin
> > > >>> /lib/firmware/amdgpu/fiji_smc.bin
> > > >>> /lib/firmware/amdgpu/fiji_uvd.bin
> > > >>> /lib/firmware/amdgpu/fiji_vce.bin
> > > >>> /lib/firmware/amdgpu/tonga_ce.bin
> > > >>> /lib/firmware/amdgpu/tonga_mc.bin
> > > >>> /lib/firmware/amdgpu/tonga_me.bin
> > > >>> /lib/firmware/amdgpu/tonga_mec.bin
> > > >>> /lib/firmware/amdgpu/tonga_mec2.bin
> > > >>> /lib/firmware/amdgpu/tonga_pfp.bin
> > > >>> /lib/firmware/amdgpu/tonga_rlc.bin
> > > >>> /lib/firmware/amdgpu/tonga_sdma.bin
> > > >>> /lib/firmware/amdgpu/tonga_sdma1.bin
> > > >>> /lib/firmware/amdgpu/tonga_smc.bin
> > > >>> /lib/firmware/amdgpu/tonga_uvd.bin
> > > >>> /lib/firmware/amdgpu/tonga_vce.bin
> > > >>> /lib/firmware/amdgpu/topaz_ce.bin
> > > >>> /lib/firmware/amdgpu/topaz_mc.bin
> > > >>> /lib/firmware/amdgpu/topaz_me.bin
> > > >>> /lib/firmware/amdgpu/topaz_mec.bin
> > > >>> /lib/firmware/amdgpu/topaz_mec2.bin
> > > >>> /lib/firmware/amdgpu/topaz_pfp.bin
> > > >>> /lib/firmware/amdgpu/topaz_rlc.bin
> > > >>> /lib/firmware/amdgpu/topaz_sdma.bin
> > > >>> /lib/firmware/amdgpu/topaz_sdma1.bin
> > > >>> /lib/firmware/amdgpu/topaz_smc.bin
> > > 
> > > No /kaveri/ in there.
> > > 
> > > > Perhaps the path to the binary blobs specified in your kernel config
> > > > file is wrong? You want to double check that.
> > > 
> > > This is what I have:
> > > 
> > > grep /firmware .config
> > > CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware/"
> > > 
> > > Looking at it again the amdgpu wiki page does not list amdgpu firmwares
> > > for the KAVERI APU.  However, I am confused as to why I can't find
> > > radeon/kaveri_sdma1 in my installed firmwares (either from
> > > linux-firmware, or
> > > from amdgpu-ucode.
> > > 
> > > --
> > > Regards,
> > > Mick
> > 
> > What USE flags did you compile 'sys-firmware/amdgpu-ucode' with?
> > 
> > If I am reading the section of the ebuild shown below correctly, having
> > 'legacy' enabled is what installs the 'kaveri' binaries.
> > /usr/portage/sys-firmware/amdgpu-ucode/amdgpu-ucode-20150803.ebuild:23,33
> > AMDGPU_LEGACY_CIK="bonaire hawaii kabini kaveri mullins"
> > 
> > src_install() {
> >     local directory files legacyfiles
> >     if use legacy; then
> >         for directory in ${AMDGPU_LEGACY_CIK}; do
> >             legacyfiles+=( ${directory}/*.bin )
> >         done
> >         insinto /lib/firmware/radeon
> >         doins ${legacyfiles[@]}
> >     fi
> > 
> > 'legacy' seems to be disabled by default. See below.
> > # emerge -ap sys-firmware/amdgpu-ucode
> > 
> > These are the packages that would be merged, in order:
> > 
> > Calculating dependencies  ... done!
> > [ebuild  N    ~] sys-firmware/amdgpu-ucode-20150803  USE="-legacy"
> 
> Aha!  Good catch!
> 
> [-      ] legacy
>     sys-firmware/amdgpu-ucode: Install firmware for older chipsets which 
>     are optionally supported by AMDGPU
>         [-  ] 20150803 [gentoo]
> 
> 
> Can I have both amdgpu and linux-firmware?
> 
> The latter has some wireless firmware I think I need to retain.
> -- 
> Regards,
> Mick



yes you can, you have to install linux-firmware with the savedconfig use flag, 
after emerging it'll give the location of the config file in the output, open 
it up and remove the radeon firmware from being built so there are no 
collisions and you can remove anything else you are sure you won't need, then 
re-emerge linux-firmware and you should be good to goI needed network firmware 
also                                      

Reply via email to