On 2/16/2018 8:24 PM, Ken Moffat wrote:
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
I rebuilt my kernel and rebooted and I think I am all good. It booted
and gave me 1200x800 screen with logo. I used the default config for
the kernel and changed the above. I made a patch file so I can do make
defconfig and then patch the .config. I was hoping I could use the
defconfig kernel, but it looks like that is not possible. Since I am
building 8.1 with rpm package manager tool chain and all of the base LFS
I wanted to get xorg and kde running quickly, then go back and tune it.
I will build 8.2 when it becomes available. I would build it sooner but
I did not have enough time as I have not finished 8.1 to desktop yet. I
only have AMD systems so I am not concerned with Meltdown and specter.
I know there is some vulerablilty but my exposure is not too great so I
will fix that when I get to 8.2.
Will be waiting see if the kernel I now have will work with vlc and blue
ray movies.
Thanks
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page