help needed with crosscompiling
Hi * Can anybody be so kind and help me resolving issue with crosscompiling of radeonhd ? Environment is: -Host is ubuntu 8.04 on x86 -target is also x86 (minimyth distro) -radeonhd is git head Launching make build gives me following error (see below). I suspect that for crosscompiling I have to switch-off for files existence. If so - how can I do that ? really appreciate any help br make[1]: `../../xorg-7.3/xorg-server/cookies/main.d/install' is up to date. make[1]: `../../xorg-7.3/xproto/cookies/main.d/install' is up to date. make[1]: Leaving directory `/home/piotro/Desktop/minimyth-dev/script/xorg-7.3/xf86-video-radeonhd' autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force autoreconf: running: /home/piotro/Desktop/minimyth-dev/images/build/usr/bin/autoconf --force autoreconf: running: /home/piotro/Desktop/minimyth-dev/images/build/usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:13: installing `./install-sh' configure.ac:13: installing `./missing' src/Makefile.am: installing `./depcomp' autoreconf: Leaving directory `.' ==> Running configure in work/main.d/xf86-video-radeonhd-githead_23082008 checking for a BSD-compatible install... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i586-minimyth-linux-gnu-strip... i586-minimyth-linux-gnu-strip checking whether to enable maintainer-specific portions of Makefiles... yes checking for i586-minimyth-linux-gnu-gcc... i586-minimyth-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... yes checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i586-minimyth-linux-gnu-gcc accepts -g... yes checking for i586-minimyth-linux-gnu-gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of i586-minimyth-linux-gnu-gcc... gcc3 checking for a sed that does not truncate output... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/sed checking build system type... i486-pc-linux-gnu checking host system type... i586-minimyth-linux-gnu checking for a sed that does not truncate output... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/sed checking for grep that handles long lines and -e... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/grep checking for egrep... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/grep -E checking for ld used by i586-minimyth-linux-gnu-gcc... i586-minimyth-linux-gnu-ld checking if the linker (i586-minimyth-linux-gnu-ld) is GNU ld... yes checking for i586-minimyth-linux-gnu-ld option to reload object files... -r checking for BSD-compatible nm... i586-minimyth-linux-gnu-nm checking whether ln -s works... yes checking how to recognize dependent libraries... pass_all checking how to run the C preprocessor... i586-minimyth-linux-gnu-cpp checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... no checking whether no accepts -g... no checking dependency style of no... none checking for i586-minimyth-linux-gnu-g77... no checking whether we are using the GNU Fortran 77 compiler... no checking whether no accepts -g... no checking the maximum length of command line arguments... 98304 checking command to parse i586-minimyth-linux-gnu-nm output from i586-minimyth-linux-gnu-gcc object... ok checking for objdir... .libs checking for i586-minimyth-linux-gnu-ar... i586-minimyth-linux-gnu-ar checking for i586-minimyth-linux-gnu-ranlib... i586-minimyth-linux-gnu-ranlib checking for i586-minimyth-linux-gnu-strip... (cached) i586-minimyth-linux-gnu-strip checking if i586-minimyth-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for i586-minimyth-linux-gnu-gcc option to produce PIC... -fPIC checking if i586-minimyth-linux-gnu-gcc PIC flag -fPIC works... yes checking if i586-minimyth-linux-gnu-gcc static flag -static works... yes checking if i586-minimyth-linux-gnu-gcc supports -c -o file.o... yes checking whether the i586-minimyth-linux-gnu-gcc linker (i586-minimyth-linux-gnu-ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool appending configuration tag "F77" to libtool checking for i586-minimyth-linux-gnu-pkg-config... no checking for pkg-config... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/pkg-config configure: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org. checking pkg-config is at least version 0.9.0... yes checking if RANDR is defined... yes checking if RENDER is defined... yes checking if XV is defined... yes checking if DPMSExtension is defined... yes checking if XSERVER_LIBPCIACCESS is defined... no checking for XORG... yes checking for ANSI C header files... (cached) yes checking for PCIUTILS... no configure: WARNING: libpci not registered in pkgconfig, will guess instead checking pci/pci.h usability... no checking pci/pci.h presence... no checking for pci/pci.h... no configure: WARNING: Caution: Will not compile rhd_conntest without pciutils headers. checking whether to enable EXA support... yes checking exa.h usability... yes checking exa.h presence... yes checking for exa.h... yes checking whether EXA version is at least 2.0.0... yes checking whether XF86DRI is declared... yes checking for DRI... yes checking whether to enable DRI support... yes checking for /usr/include/xorg/damage.h... configure: error: cannot check for file existence when cross compiling make: *** [configure-work/main.d/xf86-video-radeonhd-githead_23082008/configure] Error 1 piotro@MiniMyth-Dev:~/Desktop/minimyth-dev/script/xorg-7.3/xf86-video-radeonhd$ piotro@MiniMyth-Dev:~/Desktop/minimyth-dev/script/xorg-7.3/xf86-video-radeonhd$
Warpme wrote:
Can anybody be so kind and help me resolving issue with crosscompiling of radeonhd ? Environment is: -Host is ubuntu 8.04 on x86 -target is also x86 (minimyth distro) -radeonhd is git head
Launching make build gives me following error (see below). I suspect that for crosscompiling I have to switch-off for files existence. If so - how can I do that ?
I guess our configure script fails here.
checking for i586-minimyth-linux-gnu-pkg-config... no checking for pkg-config... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/pkg-config configure: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org. checking pkg-config is at least version 0.9.0... yes [...] checking for /usr/include/xorg/damage.h... configure: error: cannot check for file existence when cross compiling make: *** [configure-work/main.d/xf86-video-radeonhd-githead_23082008/configure] Error 1
Our configure.ac (and some xorg-macros m4 macros) are calling "pkg-config" instead of $PKG_CONFIG - which is not a good idea, as we can see here. I guess we are executing the system's normal pkg-config, which then has a PKG_CONFIG_PATH without your cross-system *.pc files, which is wrong. As a workaround, I'd try the following: $ MYROOT=/home/piotro/Desktop/minimyth-dev/images/build/usr $ export PATH=$MYROOT/bin:$PATH $ 'autogen.sh/configure' --host=... --prefix=... etc. If this does not set sdkdir in configure to the proper dir, try setting $ export PKG_CONFIG_PATH=$MYROOT/lib/pkgconfig:$MYROOT/share/pkgconfig as well before running 'autogen.sh/configure'. We can easily change our calls to pkg-config to use $PKG_CONFIG, but even if the xserver's xorg-server.m4 follows suit, the issue will remain with all older xserver versions. Therefore I hope above PATH based workaround helps. -- Hans Ulrich Niedermann
Hans, Thx for help. For seeing how far I can go, in configure.ac I disable all AC_CHECK_FILE. Driver successfully compiles but unfortunately I receivibg following error (see xorg.log below). Do You believe errors in xorg.log are result of disabling AC_CHECK_FILE hack or rather my hw is unsupported ? "II) RADEONHD(0): Unknown card detected: 0x9610:0x1043:0x82F1." - this entry is intriguing me little... My mobo is ASUS M3A78 PRO (AMD780 based). Here is lspci: -------------------------------------------- root@FE-Test1:~ # lspci -nn 00:00.0 Host bridge [0600]: Advanced Micro Devices [AMD] RS780 Host Bridge [1022:9600] 00:01.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (int gfx) [1022:9602] 00:06.0 PCI bridge [0604]: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 2) [1022:9606] 00:11.0 SATA controller [0106]: ATI Technologies Inc SB700/SB800 SATA Controller [IDE mode] [1002:4390] 00:12.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397] 00:12.1 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI1 Controller [1002:4398] 00:12.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396] 00:13.0 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI0 Controller [1002:4397] 00:13.1 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI1 Controller [1002:4398] 00:13.2 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB EHCI Controller [1002:4396] 00:14.0 SMBus [0c05]: ATI Technologies Inc SBx00 SMBus Controller [1002:4385] (rev 3a) 00:14.1 IDE interface [0101]: ATI Technologies Inc SB700/SB800 IDE Controller [1002:439c] 00:14.2 Audio device [0403]: ATI Technologies Inc SBx00 Azalia [1002:4383] 00:14.3 ISA bridge [0601]: ATI Technologies Inc SB700/SB800 LPC host controller [1002:439d] 00:14.4 PCI bridge [0604]: ATI Technologies Inc SBx00 PCI to PCI Bridge [1002:4384] 00:14.5 USB Controller [0c03]: ATI Technologies Inc SB700/SB800 USB OHCI2 Controller [1002:4399] 00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100] 00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101] 00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102] 00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103] 01:05.0 VGA compatible controller [0300]: ATI Technologies Inc Radeon HD 3200 Graphics [1002:9610] 01:05.1 Audio device [0403]: ATI Technologies Inc RS780 Azalia controller [1002:960f] 02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 02) root@FE-Test1:~ # -------------------------------------------- xorg.0.0.log: -------------------------------------------------------------------- This is a pre-release version of the X server from The X.Org Foundation. It is not supported in any way. Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/. Select the "xorg" product for bugs you find in this release. Before reporting bugs in pre-release versions please check the latest version in the X.Org Foundation git repository. See http://wiki.x.org/wiki/GitPage for git access instructions. X.Org X Server 1.4.0.90 Release Date: 5 September 2007 X Protocol Version 11, Revision 0 Build Operating System: Linux 2.6.24-16-generic i686 Current Operating System: Linux FE-Test1 2.6.25.16 #1 SMP Fri Aug 22 20:36:44 CEST 2008 i686 Build Date: 22 August 2008 09:03:34PM Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Module Loader present Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.0.log", Time: Sat Aug 23 21:17:22 2008 (==) Using config file: "/etc/X11/xorg.conf" (==) No Layout section. Using the first Screen section. (**) |-->Screen "MyScreen" (0) (**) | |-->Monitor "<default monitor>" (**) | |-->Device "MyCard" (==) No monitor specified for screen "MyScreen". Using a default monitor configuration. (==) |-->Input Device "<default pointer>" (==) |-->Input Device "<default keyboard>" (==) The core pointer device wasn't specified explicitly in the layout. Using the default mouse configuration. (==) The core keyboard device wasn't specified explicitly in the layout. Using the default keyboard configuration. (==) Automatically adding devices (==) Automatically enabling devices (==) No FontPath specified. Using compiled-in default. (==) FontPath set to: /usr/lib/X11/fonts/TTF, /usr/lib/X11/fonts/misc (==) RgbPath set to "/usr/share/X11/rgb" (==) ModulePath set to "/usr/lib/xorg/modules" (II) Open ACPI successful (/var/run/acpid.socket) (II) Loader magic: 0x818018c (II) Module ABI versions: X.Org ANSI C Emulation: 0.3 X.Org Video Driver: 2.0 X.Org XInput driver : 2.0 X.Org Server Extension : 0.3 X.Org Font Renderer : 0.5 (II) Loader running on linux (II) LoadModule: "pcidata" (II) Loading /usr/lib/xorg/modules//libpcidata.so (II) Module pcidata: vendor="X.Org Foundation" compiled for 1.4.0.90, module version = 1.0.0 ABI class: X.Org Video Driver, version 2.0 (++) using VT number 2 (II) PCI: PCI scan (all values are in hex) (II) PCI: 00:00:0: chip 1022,9600 card 1002,7910 rev 00 class 06,00,00 hdr 00 (II) PCI: 00:01:0: chip 1022,9602 card 0000,0000 rev 00 class 06,04,00 hdr 01 (II) PCI: 00:06:0: chip 1022,9606 card 0000,0000 rev 00 class 06,04,00 hdr 01 (II) PCI: 00:11:0: chip 1002,4390 card 1002,4390 rev 00 class 01,06,01 hdr 00 (II) PCI: 00:12:0: chip 1002,4397 card 1002,4397 rev 00 class 0c,03,10 hdr 80 (II) PCI: 00:12:1: chip 1002,4398 card 1002,4398 rev 00 class 0c,03,10 hdr 00 (II) PCI: 00:12:2: chip 1002,4396 card 1002,4397 rev 00 class 0c,03,20 hdr 00 (II) PCI: 00:13:0: chip 1002,4397 card 1002,4398 rev 00 class 0c,03,10 hdr 80 (II) PCI: 00:13:1: chip 1002,4398 card 1002,4399 rev 00 class 0c,03,10 hdr 00 (II) PCI: 00:13:2: chip 1002,4396 card 1002,4396 rev 00 class 0c,03,20 hdr 00 (II) PCI: 00:14:0: chip 1002,4385 card 1002,4385 rev 3a class 0c,05,00 hdr 80 (II) PCI: 00:14:1: chip 1002,439c card 1002,439c rev 00 class 01,01,8a hdr 00 (II) PCI: 00:14:2: chip 1002,4383 card 1043,82fe rev 00 class 04,03,00 hdr 00 (II) PCI: 00:14:3: chip 1002,439d card 1002,4383 rev 00 class 06,01,00 hdr 80 (II) PCI: 00:14:4: chip 1002,4384 card 0000,0000 rev 00 class 06,04,01 hdr 81 (II) PCI: 00:14:5: chip 1002,4399 card 1002,4396 rev 00 class 0c,03,10 hdr 00 (II) PCI: 00:18:0: chip 1022,1100 card 0000,0000 rev 00 class 06,00,00 hdr 80 (II) PCI: 00:18:1: chip 1022,1101 card 0000,0000 rev 00 class 06,00,00 hdr 80 (II) PCI: 00:18:2: chip 1022,1102 card 0000,0000 rev 00 class 06,00,00 hdr 80 (II) PCI: 00:18:3: chip 1022,1103 card 0000,0000 rev 00 class 06,00,00 hdr 80 (II) PCI: 01:05:0: chip 1002,9610 card 1043,82f1 rev 00 class 03,00,00 hdr 80 (II) PCI: 01:05:1: chip 1002,960f card 1002,960f rev 00 class 04,03,00 hdr 80 (II) PCI: 02:00:0: chip 10ec,8168 card 1043,82c6 rev 02 class 02,00,00 hdr 00 (II) PCI: End of PCI scan (II) Host-to-PCI bridge: (II) Bus 0: bridge is at (0:0:0), (0,0,3), BCTRL: 0x0008 (VGA_EN is set) (II) Bus 0 I/O range: [0] -1 0 0x00000000 - 0x0000ffff (0x10000) IX[B] (II) Bus 0 non-prefetchable memory range: [0] -1 0 0x00000000 - 0xffffffff (0x0) MX[B] (II) Bus 0 prefetchable memory range: [0] -1 0 0x00000000 - 0xffffffff (0x0) MX[B] (II) PCI-to-PCI bridge: (II) Bus 1: bridge is at (0:1:0), (0,1,1), BCTRL: 0x001a (VGA_EN is set) (II) Bus 1 I/O range: [0] -1 0 0x0000d000 - 0x0000dfff (0x1000) IX[B] (II) Bus 1 non-prefetchable memory range: [0] -1 0 0xfe900000 - 0xfeafffff (0x200000) MX[B] (II) Bus 1 prefetchable memory range: [0] -1 0 0xf8000000 - 0xfbffffff (0x4000000) MX[B] (II) PCI-to-PCI bridge: (II) Bus 2: bridge is at (0:6:0), (0,2,2), BCTRL: 0x0003 (VGA_EN is cleared) (II) Bus 2 I/O range: [0] -1 0 0x0000e000 - 0x0000efff (0x1000) IX[B] (II) Bus 2 non-prefetchable memory range: [0] -1 0 0xfeb00000 - 0xfebfffff (0x100000) MX[B] (II) Bus 2 prefetchable memory range: [0] -1 0 0xfdf00000 - 0xfdffffff (0x100000) MX[B] (II) PCI-to-ISA bridge: (II) Bus -1: bridge is at (0:20:3), (0,-1,-1), BCTRL: 0x0008 (VGA_EN is set) (II) Subtractive PCI-to-PCI bridge: (II) Bus 3: bridge is at (0:20:4), (0,3,3), BCTRL: 0x0003 (VGA_EN is cleared) (--) PCI:*(1:5:0) ATI Technologies Inc unknown chipset (0x9610) rev 0, Mem @ 0xf8000000/26, 0xfeaf0000/16, 0xfe900000/20, I/O @ 0xd000/8 (II) Addressable bus resource ranges are [0] -1 0 0x00000000 - 0xffffffff (0x0) MX[B] [1] -1 0 0x00000000 - 0x0000ffff (0x10000) IX[B] (II) OS-reported resource ranges: [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B) [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B] [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B] [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B] [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B] [5] -1 0 0x00000000 - 0x000000ff (0x100) IX[B] (II) Active PCI resource ranges: [0] -1 0 0xfdff0000 - 0xfdffffff (0x10000) MX[B] [1] -1 0 0xfebff000 - 0xfebfffff (0x1000) MX[B] [2] -1 0 0xfeae8000 - 0xfeaebfff (0x4000) MX[B] [3] -1 0 0xfe8f9000 - 0xfe8f9fff (0x1000) MX[B] [4] -1 0 0xfe8f4000 - 0xfe8f7fff (0x4000) MX[B] [5] -1 0 0xfe8fa800 - 0xfe8fa8ff (0x100) MX[B] [6] -1 0 0xfe8fb000 - 0xfe8fbfff (0x1000) MX[B] [7] -1 0 0xfe8fc000 - 0xfe8fcfff (0x1000) MX[B] [8] -1 0 0xfe8ff000 - 0xfe8ff0ff (0x100) MX[B] [9] -1 0 0xfe8fd000 - 0xfe8fdfff (0x1000) MX[B] [10] -1 0 0xfe8fe000 - 0xfe8fefff (0x1000) MX[B] [11] -1 0 0xfe8ff800 - 0xfe8ffbff (0x400) MX[B] [12] -1 0 0xfe900000 - 0xfe9fffff (0x100000) MX[B](B) [13] -1 0 0xfeaf0000 - 0xfeafffff (0x10000) MX[B](B) [14] -1 0 0xf8000000 - 0xfbffffff (0x4000000) MX[B](B) [15] -1 0 0x0000e800 - 0x0000e8ff (0x100) IX[B] [16] -1 0 0x0000ff00 - 0x0000ff0f (0x10) IX[B] [17] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [18] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [19] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [20] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [21] -1 0 0x00008000 - 0x0000800f (0x10) IX[B] [22] -1 0 0x00009000 - 0x00009003 (0x4) IX[B] [23] -1 0 0x0000a000 - 0x0000a007 (0x8) IX[B] [24] -1 0 0x0000b000 - 0x0000b003 (0x4) IX[B] [25] -1 0 0x0000c000 - 0x0000c007 (0x8) IX[B] [26] -1 0 0x0000d000 - 0x0000d0ff (0x100) IX[B](B) (II) Active PCI resource ranges after removing overlaps: [0] -1 0 0xfdff0000 - 0xfdffffff (0x10000) MX[B] [1] -1 0 0xfebff000 - 0xfebfffff (0x1000) MX[B] [2] -1 0 0xfeae8000 - 0xfeaebfff (0x4000) MX[B] [3] -1 0 0xfe8f9000 - 0xfe8f9fff (0x1000) MX[B] [4] -1 0 0xfe8f4000 - 0xfe8f7fff (0x4000) MX[B] [5] -1 0 0xfe8fa800 - 0xfe8fa8ff (0x100) MX[B] [6] -1 0 0xfe8fb000 - 0xfe8fbfff (0x1000) MX[B] [7] -1 0 0xfe8fc000 - 0xfe8fcfff (0x1000) MX[B] [8] -1 0 0xfe8ff000 - 0xfe8ff0ff (0x100) MX[B] [9] -1 0 0xfe8fd000 - 0xfe8fdfff (0x1000) MX[B] [10] -1 0 0xfe8fe000 - 0xfe8fefff (0x1000) MX[B] [11] -1 0 0xfe8ff800 - 0xfe8ffbff (0x400) MX[B] [12] -1 0 0xfe900000 - 0xfe9fffff (0x100000) MX[B](B) [13] -1 0 0xfeaf0000 - 0xfeafffff (0x10000) MX[B](B) [14] -1 0 0xf8000000 - 0xfbffffff (0x4000000) MX[B](B) [15] -1 0 0x0000e800 - 0x0000e8ff (0x100) IX[B] [16] -1 0 0x0000ff00 - 0x0000ff0f (0x10) IX[B] [17] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [18] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [19] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [20] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [21] -1 0 0x00008000 - 0x0000800f (0x10) IX[B] [22] -1 0 0x00009000 - 0x00009003 (0x4) IX[B] [23] -1 0 0x0000a000 - 0x0000a007 (0x8) IX[B] [24] -1 0 0x0000b000 - 0x0000b003 (0x4) IX[B] [25] -1 0 0x0000c000 - 0x0000c007 (0x8) IX[B] [26] -1 0 0x0000d000 - 0x0000d0ff (0x100) IX[B](B) (II) OS-reported resource ranges after removing overlaps with PCI: [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B) [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B] [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B] [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B] [4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B] [5] -1 0 0x00000000 - 0x000000ff (0x100) IX[B] (II) All system resource ranges: [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B) [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B] [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B] [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B] [4] -1 0 0xfdff0000 - 0xfdffffff (0x10000) MX[B] [5] -1 0 0xfebff000 - 0xfebfffff (0x1000) MX[B] [6] -1 0 0xfeae8000 - 0xfeaebfff (0x4000) MX[B] [7] -1 0 0xfe8f9000 - 0xfe8f9fff (0x1000) MX[B] [8] -1 0 0xfe8f4000 - 0xfe8f7fff (0x4000) MX[B] [9] -1 0 0xfe8fa800 - 0xfe8fa8ff (0x100) MX[B] [10] -1 0 0xfe8fb000 - 0xfe8fbfff (0x1000) MX[B] [11] -1 0 0xfe8fc000 - 0xfe8fcfff (0x1000) MX[B] [12] -1 0 0xfe8ff000 - 0xfe8ff0ff (0x100) MX[B] [13] -1 0 0xfe8fd000 - 0xfe8fdfff (0x1000) MX[B] [14] -1 0 0xfe8fe000 - 0xfe8fefff (0x1000) MX[B] [15] -1 0 0xfe8ff800 - 0xfe8ffbff (0x400) MX[B] [16] -1 0 0xfe900000 - 0xfe9fffff (0x100000) MX[B](B) [17] -1 0 0xfeaf0000 - 0xfeafffff (0x10000) MX[B](B) [18] -1 0 0xf8000000 - 0xfbffffff (0x4000000) MX[B](B) [19] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B] [20] -1 0 0x00000000 - 0x000000ff (0x100) IX[B] [21] -1 0 0x0000e800 - 0x0000e8ff (0x100) IX[B] [22] -1 0 0x0000ff00 - 0x0000ff0f (0x10) IX[B] [23] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [24] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [25] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [26] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [27] -1 0 0x00008000 - 0x0000800f (0x10) IX[B] [28] -1 0 0x00009000 - 0x00009003 (0x4) IX[B] [29] -1 0 0x0000a000 - 0x0000a007 (0x8) IX[B] [30] -1 0 0x0000b000 - 0x0000b003 (0x4) IX[B] [31] -1 0 0x0000c000 - 0x0000c007 (0x8) IX[B] [32] -1 0 0x0000d000 - 0x0000d0ff (0x100) IX[B](B) (II) LoadModule: "radeonhd" (II) Loading /usr/lib/xorg/modules/drivers//radeonhd_drv.so (II) Module radeonhd: vendor="AMD GPG" compiled for 1.4.0.90, module version = 1.2.1 Module class: X.Org Video Driver ABI class: X.Org Video Driver, version 2.0 (II) LoadModule: "mouse" (II) Loading /usr/lib/xorg/modules/input//mouse_drv.so (II) Module mouse: vendor="X.Org Foundation" compiled for 1.4.0.90, module version = 1.3.0 Module class: X.Org XInput Driver ABI class: X.Org XInput driver, version 2.0 (II) LoadModule: "kbd" (II) Loading /usr/lib/xorg/modules/input//kbd_drv.so (II) Module kbd: vendor="X.Org Foundation" compiled for 1.4.0.90, module version = 1.3.1 Module class: X.Org XInput Driver ABI class: X.Org XInput driver, version 2.0 (II) RADEONHD: X driver for the following AMD GPG (ATI) graphics devices: RV505 : Radeon X1550, X1550 64bit. RV515 : Radeon X1300, X1550, X1600; FireGL V3300, V3350. RV516 : Radeon X1300, X1550, X1550 64-bit, X1600; FireMV 2250. R520 : Radeon X1800; FireGL V5300, V7200, V7300, V7350. RV530 : Radeon X1300 XT, X1600, X1600 Pro, X1650; FireGL V3400, V5200. RV535 : Radeon X1300, X1650. RV550 : Radeon X2300 HD. RV560 : Radeon X1650. RV570 : Radeon X1950, X1950 GT; FireGL V7400. R580 : Radeon X1900, X1950; AMD Stream Processor. R600 : Radeon HD 2900 GT/Pro/XT; FireGL V7600/V8600/V8650. RV610 : Radeon HD 2350, HD 2400 Pro/XT, HD 2400 Pro AGP; FireGL V4000. RV620 : Radeon HD 3450, HD 3470. RV630 : Radeon HD 2600 LE/Pro/XT, HD 2600 Pro/XT AGP; Gemini RV630; FireGL V3600/V5600. RV635 : Radeon HD 3650, HD 3670. RV670 : Radeon HD 3690, 3850, HD 3870, FireGL V7700, FireStream 9170. R680 : Radeon HD 3870 X2. M52 : Mobility Radeon X1300. M54 : Mobility Radeon X1400; M54-GL. M56 : Mobility Radeon X1600; Mobility FireGL V5200. M58 : Mobility Radeon X1800, X1800 XT; Mobility FireGL V7100, V7200. M62 : Mobility Radeon X1350. M64 : Mobility Radeon X1450, X2300. M66 : Mobility Radeon X1700, X1700 XT; FireGL V5250. M68 : Mobility Radeon X1900. M71 : Mobility Radeon HD 2300. M72 : Mobility Radeon HD 2400; Radeon E2400. M74 : Mobility Radeon HD 2400 XT. M76 : Mobility Radeon HD 2600; (Gemini ATI) Mobility Radeon HD 2600 XT. M82 : Mobility Radeon HD 3400. M86 : Mobility Radeon HD 3650, HD 3670, Mobility FireGL V5700. M88 : Mobility Radeon HD 3850, HD 3850 X2, HD 3870, HD3870 X2. RS600 : Radeon Xpress 1200, Xpress 1250. RS690 : Radeon X1200, X1250, X1270. RS740 : RS740, RS740M. RS780 : Radeon HD 3100/3200/3300 Series. RV770 : Radeon HD 4800 Series; Everest, K2, Denali ATI FirePro. (II) RADEONHD: version 1.2.1, built from git branch master, commit d0cf5df8 + changes (II) Primary Device is: PCI 01:05:0 (--) Assigning device section with no busID to primary device (--) Chipset RS780 found (II) resource ranges after xf86ClaimFixedResources() call: [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B) [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B] [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B] [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B] [4] -1 0 0xfdff0000 - 0xfdffffff (0x10000) MX[B] [5] -1 0 0xfebff000 - 0xfebfffff (0x1000) MX[B] [6] -1 0 0xfeae8000 - 0xfeaebfff (0x4000) MX[B] [7] -1 0 0xfe8f9000 - 0xfe8f9fff (0x1000) MX[B] [8] -1 0 0xfe8f4000 - 0xfe8f7fff (0x4000) MX[B] [9] -1 0 0xfe8fa800 - 0xfe8fa8ff (0x100) MX[B] [10] -1 0 0xfe8fb000 - 0xfe8fbfff (0x1000) MX[B] [11] -1 0 0xfe8fc000 - 0xfe8fcfff (0x1000) MX[B] [12] -1 0 0xfe8ff000 - 0xfe8ff0ff (0x100) MX[B] [13] -1 0 0xfe8fd000 - 0xfe8fdfff (0x1000) MX[B] [14] -1 0 0xfe8fe000 - 0xfe8fefff (0x1000) MX[B] [15] -1 0 0xfe8ff800 - 0xfe8ffbff (0x400) MX[B] [16] -1 0 0xfe900000 - 0xfe9fffff (0x100000) MX[B](B) [17] -1 0 0xfeaf0000 - 0xfeafffff (0x10000) MX[B](B) [18] -1 0 0xf8000000 - 0xfbffffff (0x4000000) MX[B](B) [19] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B] [20] -1 0 0x00000000 - 0x000000ff (0x100) IX[B] [21] -1 0 0x0000e800 - 0x0000e8ff (0x100) IX[B] [22] -1 0 0x0000ff00 - 0x0000ff0f (0x10) IX[B] [23] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [24] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [25] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [26] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [27] -1 0 0x00008000 - 0x0000800f (0x10) IX[B] [28] -1 0 0x00009000 - 0x00009003 (0x4) IX[B] [29] -1 0 0x0000a000 - 0x0000a007 (0x8) IX[B] [30] -1 0 0x0000b000 - 0x0000b003 (0x4) IX[B] [31] -1 0 0x0000c000 - 0x0000c007 (0x8) IX[B] [32] -1 0 0x0000d000 - 0x0000d0ff (0x100) IX[B](B) (II) resource ranges after probing: [0] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B) [1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B] [2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B] [3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B] [4] -1 0 0xfdff0000 - 0xfdffffff (0x10000) MX[B] [5] -1 0 0xfebff000 - 0xfebfffff (0x1000) MX[B] [6] -1 0 0xfeae8000 - 0xfeaebfff (0x4000) MX[B] [7] -1 0 0xfe8f9000 - 0xfe8f9fff (0x1000) MX[B] [8] -1 0 0xfe8f4000 - 0xfe8f7fff (0x4000) MX[B] [9] -1 0 0xfe8fa800 - 0xfe8fa8ff (0x100) MX[B] [10] -1 0 0xfe8fb000 - 0xfe8fbfff (0x1000) MX[B] [11] -1 0 0xfe8fc000 - 0xfe8fcfff (0x1000) MX[B] [12] -1 0 0xfe8ff000 - 0xfe8ff0ff (0x100) MX[B] [13] -1 0 0xfe8fd000 - 0xfe8fdfff (0x1000) MX[B] [14] -1 0 0xfe8fe000 - 0xfe8fefff (0x1000) MX[B] [15] -1 0 0xfe8ff800 - 0xfe8ffbff (0x400) MX[B] [16] -1 0 0xfe900000 - 0xfe9fffff (0x100000) MX[B](B) [17] -1 0 0xfeaf0000 - 0xfeafffff (0x10000) MX[B](B) [18] -1 0 0xf8000000 - 0xfbffffff (0x4000000) MX[B](B) [19] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B] [20] -1 0 0x00000000 - 0x000000ff (0x100) IX[B] [21] -1 0 0x0000e800 - 0x0000e8ff (0x100) IX[B] [22] -1 0 0x0000ff00 - 0x0000ff0f (0x10) IX[B] [23] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [24] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [25] -1 0 0x000001f0 - 0x000001f0 (0x1) IX[B] [26] -1 0 0x000001f0 - 0x000001f7 (0x8) IX[B] [27] -1 0 0x00008000 - 0x0000800f (0x10) IX[B] [28] -1 0 0x00009000 - 0x00009003 (0x4) IX[B] [29] -1 0 0x0000a000 - 0x0000a007 (0x8) IX[B] [30] -1 0 0x0000b000 - 0x0000b003 (0x4) IX[B] [31] -1 0 0x0000c000 - 0x0000c007 (0x8) IX[B] [32] -1 0 0x0000d000 - 0x0000d0ff (0x100) IX[B](B) (II) Loading sub module "int10" (II) LoadModule: "int10" (II) Loading /usr/lib/xorg/modules//libint10.so (II) Module int10: vendor="X.Org Foundation" compiled for 1.4.0.90, module version = 1.0.0 ABI class: X.Org Video Driver, version 2.0 (II) RADEONHD(0): Initializing INT10 (II) RADEONHD(0): Primary V_BIOS segment is: 0xc000 (**) RADEONHD(0): Depth 24, (--) framebuffer bpp 32 (**) RADEONHD(0): Option "RROutputOrder" "PANEL" (**) RADEONHD(0): Selected ShadowFB. (II) RADEONHD(0): Unknown card detected: 0x9610:0x1043:0x82F1. Your card might not work or might not work optimally. To rectify this, please contact radeonhd@opensuse.org. Include your X log, the full name of the device and the rhd_conntest (found in utils/conntest) output. (--) RADEONHD(0): Detected an RS780 on an unidentified card (II) RADEONHD(0): Mapped IO @ 0xfeaf0000 to 0xb7cf0000 (size 0x00010000) (WW) RADEONHD(0): ************************************************** (WW) RADEONHD(0): ** Code has been built without AtomBIOS support ** (WW) RADEONHD(0): ** this may seriously affect the functionality *** (WW) RADEONHD(0): ** of this driver *** (WW) RADEONHD(0): ************************************************** (--) RADEONHD(0): VideoRAM: 65536 kByte (II) RADEONHD(0): Direct rendering turned off by default. Use Option "DRI" to enable. (II) Loading sub module "i2c" (II) LoadModule: "i2c"(II) Module "i2c" already built-in (II) RADEONHD(0): I2C clock prescale value: 10e (II) RADEONHD(0): I2C bus "RHD I2C line 0" initialized. (II) RADEONHD(0): I2C clock prescale value: 10e (II) RADEONHD(0): I2C bus "RHD I2C line 1" initialized. (II) RADEONHD(0): I2C clock prescale value: 10e (II) RADEONHD(0): I2C bus "RHD I2C line 2" initialized. (II) RADEONHD(0): I2C clock prescale value: 10e (II) RADEONHD(0): I2C bus "RHD I2C line 3" initialized. (II) RADEONHD(0): I2C clock prescale value: 10e (II) RADEONHD(0): I2C bus "RHD I2C line 4" initialized. (II) Loading sub module "ddc" (II) LoadModule: "ddc"(II) Module "ddc" already built-in (II) RADEONHD(0): Detected VGA mode. (II) RADEONHD(0): FB: Allocated Cursor Image at offset 0x00000000 (size = 0x00004000) (II) RADEONHD(0): FB: Allocated Cursor Image at offset 0x00004000 (size = 0x00004000) (EE) RADEONHD(0): RHDConnectorsInit: Failed to retrieve Connector information. (EE) RADEONHD(0): Card information has invalid connector information (II) RADEONHD(0): I2C bus "RHD I2C line 0" removed. (II) RADEONHD(0): I2C bus "RHD I2C line 1" removed. (II) RADEONHD(0): I2C bus "RHD I2C line 2" removed. (II) RADEONHD(0): I2C bus "RHD I2C line 3" removed. (II) RADEONHD(0): I2C bus "RHD I2C line 4" removed. (II) UnloadModule: "radeonhd" (II) UnloadModule: "int10" (II) Unloading /usr/lib/xorg/modules//libint10.so (EE) Screen(s) found, but none have a usable configuration. Fatal server error: no screens found ----------------------------------------------- Hans Ulrich Niedermann wrote:
Warpme wrote:
Can anybody be so kind and help me resolving issue with crosscompiling of radeonhd ? Environment is: -Host is ubuntu 8.04 on x86 -target is also x86 (minimyth distro) -radeonhd is git head
Launching make build gives me following error (see below). I suspect that for crosscompiling I have to switch-off for files existence. If so - how can I do that ?
I guess our configure script fails here.
checking for i586-minimyth-linux-gnu-pkg-config... no checking for pkg-config... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/pkg-config configure: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org. checking pkg-config is at least version 0.9.0... yes [...] checking for /usr/include/xorg/damage.h... configure: error: cannot check for file existence when cross compiling make: *** [configure-work/main.d/xf86-video-radeonhd-githead_23082008/configure] Error 1
Our configure.ac (and some xorg-macros m4 macros) are calling "pkg-config" instead of $PKG_CONFIG - which is not a good idea, as we can see here.
I guess we are executing the system's normal pkg-config, which then has a PKG_CONFIG_PATH without your cross-system *.pc files, which is wrong.
As a workaround, I'd try the following:
$ MYROOT=/home/piotro/Desktop/minimyth-dev/images/build/usr $ export PATH=$MYROOT/bin:$PATH $ 'autogen.sh/configure' --host=... --prefix=... etc.
If this does not set sdkdir in configure to the proper dir, try setting
$ export PKG_CONFIG_PATH=$MYROOT/lib/pkgconfig:$MYROOT/share/pkgconfig
as well before running 'autogen.sh/configure'.
We can easily change our calls to pkg-config to use $PKG_CONFIG, but even if the xserver's xorg-server.m4 follows suit, the issue will remain with all older xserver versions. Therefore I hope above PATH based workaround helps.
Hans, I was trying add: $ MYROOT=/home/piotro/Desktop/minimyth-dev/images/build/usr $ export PATH=$MYROOT/bin:$PATH Error is still exactly the same. Next I try: $ export PKG_CONFIG_PATH=$MYROOT/lib/pkgconfig:$MYROOT/share/pkgconfig Unfortunately still nogo.. br Hans Ulrich Niedermann wrote:
Warpme wrote:
Can anybody be so kind and help me resolving issue with crosscompiling of radeonhd ? Environment is: -Host is ubuntu 8.04 on x86 -target is also x86 (minimyth distro) -radeonhd is git head
Launching make build gives me following error (see below). I suspect that for crosscompiling I have to switch-off for files existence. If so - how can I do that ?
I guess our configure script fails here.
checking for i586-minimyth-linux-gnu-pkg-config... no checking for pkg-config... //home/piotro/Desktop/minimyth-dev/images/build/usr/bin/pkg-config configure: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org. checking pkg-config is at least version 0.9.0... yes [...] checking for /usr/include/xorg/damage.h... configure: error: cannot check for file existence when cross compiling make: *** [configure-work/main.d/xf86-video-radeonhd-githead_23082008/configure] Error 1
Our configure.ac (and some xorg-macros m4 macros) are calling "pkg-config" instead of $PKG_CONFIG - which is not a good idea, as we can see here.
I guess we are executing the system's normal pkg-config, which then has a PKG_CONFIG_PATH without your cross-system *.pc files, which is wrong.
As a workaround, I'd try the following:
$ MYROOT=/home/piotro/Desktop/minimyth-dev/images/build/usr $ export PATH=$MYROOT/bin:$PATH $ 'autogen.sh/configure' --host=... --prefix=... etc.
If this does not set sdkdir in configure to the proper dir, try setting
$ export PKG_CONFIG_PATH=$MYROOT/lib/pkgconfig:$MYROOT/share/pkgconfig
as well before running 'autogen.sh/configure'.
We can easily change our calls to pkg-config to use $PKG_CONFIG, but even if the xserver's xorg-server.m4 follows suit, the issue will remain with all older xserver versions. Therefore I hope above PATH based workaround helps.
participants (2)
-
Hans Ulrich Niedermann
-
Warpme