Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 418059 - sys-kernel/? 3.4.0 - make[1]: *** No rule to make target `/lib/firmware/TAHITI_mc.bin', needed by `firmware/TAHITI_mc.bin.gen.o'. Stop.
Summary: sys-kernel/? 3.4.0 - make[1]: *** No rule to make target `/lib/firmware/TAHIT...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-28 21:56 UTC by MarcusX
Modified: 2012-05-29 00:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MarcusX 2012-05-28 21:56:34 UTC
Hello,

I am trying to make my Radeon HD 7950 work with Gentoo, but I have some issues compiling the kernel. After doing some research, I found out Radeon HD 7950 is using TAHITI microcode (but I might be wrong, I couldn't find any documentation yet).
So I installed latest "x11-drivers/radeon-ucode" (20120320) and I set the following in the kernel config:

CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="TAHITI_mc.bin TAHITI_me.bin TAHITI_ce.bin TAHITI_pfp.bin TAHITI_rlc.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"


When I try to compile the kernel, I am getting the following error message and compile stops:

  MK_FW   firmware/TAHITI_mc.bin.gen.S
make[1]: *** No rule to make target `/lib/firmware/TAHITI_mc.bin', needed by `firmware/TAHITI_mc.bin.gen.o'.  Stop.
make: *** [firmware] Error 2


Is there a fix for this, or at least a temporary workaround?

thank you,

Reproducible: Always

Steps to Reproduce:
1. emerge x11-drivers/radeon-ucode-20120320
2. set the following in the kernel config:
   CONFIG_FIRMWARE_IN_KERNEL=y
   CONFIG_EXTRA_FIRMWARE="TAHITI_mc.bin TAHITI_me.bin TAHITI_ce.bin TAHITI_pfp.bin TAHITI_rlc.bin"
   CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
3. compile kernel (make && make modules_install)
Actual Results:  
When I try to compile the kernel, I am getting the following error message and compile stops:

  MK_FW   firmware/TAHITI_mc.bin.gen.S
make[1]: *** No rule to make target `/lib/firmware/TAHITI_mc.bin', needed by `firmware/TAHITI_mc.bin.gen.o'.  Stop.
make: *** [firmware] Error 2


Expected Results:  
Compile should finish successfully.
Comment 1 MarcusX 2012-05-28 21:58:32 UTC
emerge --info

Portage 2.1.10.63 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r3, 3.4.0-gentoo x86_64)
=================================================================
System uname: Linux-3.4.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3820_CPU_@_3.60GHz-with-gentoo-2.1
Timestamp of tree: Mon, 28 May 2012 19:00:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://10.10.10.30/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 apm bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus declarative device-mapper dri dts dv dvb dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gd gdbm gif git gpm gstreamer gtk iconv java javascript jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kipi lame lcms ldap libnotify mad matroska midi mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib mysql ncurses networkmanager nfs nls nptl ogg openal opengl openmp pam pango pcre pdf perl phonon php plasma png policykit ppds pppd pulseaudio python python3 qt3support qt4 quicktime raw rdesktop readline rtc samba sdl semantic-desktop session smp spell sql sqlite sqlite3 sse sse2 sse3 sse4 sse4a sse5 ssl ssse3 startup-notification svg symlink tcpd theora tiff truetype udev udisks unicode upower usb v4l v4l2 vnc vorbis wmf wxwidgets x264 xcb xcomposite xine xinerama xml xorg xrandr xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-05-29 00:36:38 UTC
You are missing radeon/ prefix in CONFIG_EXTRA_FIRMWARE. See http://www.gentoo.org/doc/en/xorg-config.xml for examples.

Also make sure that you did not change the CONFIG_PREVENT_FIRMWARE_BUILD from its default. If it still fails, reopen this bug and attach kernel .config .