On Fri, Feb 16, 2018 at 06:37:05PM -0500, Baho Utot wrote:
> I am building the ATI radeon driver and I have used defconfig to configure
> the kernel ( in LFS ) and I need to add/config the following to allow me to
> use the firmware for my graphics card according to the BLFS book.
>
> Is this now necessary ( to have the blobs installed into the kernel )?
>
> I the the old days (LFS-7.5) all that was needed was to put the firmware
> into the /lib/firmware directory and it would be loaded when xorg was
> started. Has that been changed now?
>
They get loaded when KMS is started, before logging in to a tty on a
framebuffer console. For an old radeon, you can probably still see
the penguins (if enabled : CONFIG_LOGO) for a little while before
they scroll off, for my Kaveri the whole screen blanks for a second
or two and they have gone before the text returns.
> Or will it still work that way?
> As I would like to skip adding the firmware and rebuilding the kernel if I
> can.
>
> Device Drivers --->
> Graphics support --->
> <*> Direct Rendering Manager (XFree86 ... support) ---> [CONFIG_DRM]
> <*> ATI Radeon [CONFIG_DRM_RADEON]
>
> Device Drivers --->
> Generic Driver Options --->
> Include in-kernel firmware blobs in kernel binary
> Firmware blobs root directory
>
> Set like this:
>
> CONFIG_EXTRA_FIRMWARE="radeon/BTC_rlc.bin radeon/CAICOS_mc.bin
> radeon/CAICOS_me.bin radeon/CAICOS_pfp.bin radeon/CAICOS_smc.bin
> radeon/JUNIPER_me.bin radeon/JUNIPER_pfp.bin radeon/JUNIPER_rlc.bin
> radeon/JUNIPER_smc.bin "
>
> CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
>
> Thanks
For my older desktop radeon, the saved config I'm looking at
(4.14.0, I must remember to update the off-machine version when I
next boot it) has
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
# CONFIG_FIRMWARE_IN_KERNEL is not set
CONFIG_EXTRA_FIRMWARE="radeon/R600_rlc.bin radeon/RS780_pfp.bin
radeon/RS780_me.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set
and for the similarly old saved config for my Southern Islands (or
was it Sea Islands - I forget) I have
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
# CONFIG_FIRMWARE_IN_KERNEL is not set
CONFIG_EXTRA_FIRMWARE="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_sdma.bin radeon/BONAIRE_uvd.bin
radeon/BONAIRE_vce.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
So I think you can still do what you wish to do. The older machine
is definitely running some sort of 4.15 kernel on one install /
recent 4.14 on another, I think the newer machine is too, and I think
only adding new mitigation defaults and objtool [ +elfutils ] beyond
4.14.0. Hint - if you don't build a current kernel with gcc-7.3
you won't get full spectre v2 mitigation.
For KMS (if you were not already using that), on the KAVERI I seem
to have
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
and of course
CONFIG_DRM_RADEON=y
(I also enable CONFIG_DRM_RADEON_USERPTR, not sure if that is
required)
and for framebuffers
CONFIG_FB=y
CONFIG_FIRMWARE_EDID=y
CONFIG_FB_CMDLINE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
CONFIG_FB_SYS_FOPS=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_MODE_HELPERS=y
and
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
ĸen
--
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
- Unseen Academicals
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page