Laptop with ATI Mobile 9200

Help with booting MiniMyth

Moderator: Pablo

Post Reply
wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Laptop with ATI Mobile 9200

Post by wroopy » Tue Oct 16, 2007 12:10 pm

I have a laptop with ATI Mobile 9200 graphic card.
I wanted to use it to test Minimyth, but I don't get it to work.
I guess that the reason is that ati isn't supported by Minimyth, is that correct?

I looked at the buildsystem and there I could activate ati as a chipset, but I cant't build Minimyth on my server (running Ubuntu Feisty 7.04). But that problem should go into the build-forum.

Is there a way to get Minimyth to work with ATI-graphic cards.

I also tested Minimyth in a VmWare-session, but it doesnt work there either.
I've tested 20.2-30 and 20.2-31b9.

/Andreas

wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Post by wroopy » Tue Oct 16, 2007 7:38 pm

Made a lspci -mn (see below), and the line "01:00.0 "0300" "1002" "4c66" -r01 "0e11" "0860"" is not present in the hardware map for pci2x.map.

Code: Select all

00:00.0 "0600" "8086" "3340" -r03 "0e11" "0860"
00:01.0 "0604" "8086" "3341" -r03 "" ""
00:1d.0 "0c03" "8086" "24c2" -r01 "0e11" "0860"
00:1d.1 "0c03" "8086" "24c4" -r01 "0e11" "0860"
00:1d.2 "0c03" "8086" "24c7" -r01 "0e11" "0860"
00:1d.7 "0c03" "8086" "24cd" -r01 -p20 "0e11" "0860"
00:1e.0 "0604" "8086" "2448" -r81 "" ""
00:1f.0 "0601" "8086" "24cc" -r01 "" ""
00:1f.1 "0101" "8086" "24ca" -r01 -p8a "0e11" "0860"
00:1f.3 "0c05" "8086" "24c3" -r01 "0e11" "0860"
00:1f.5 "0401" "8086" "24c5" -r01 "0e11" "0860"
00:1f.6 "0703" "8086" "24c6" -r01 "0e11" "0860"
01:00.0 "0300" "1002" "4c66" -r01 "0e11" "0860"
02:00.0 "0c00" "1106" "3044" -r80 -p10 "1106" "3044"
02:01.0 "0200" "10ec" "8139" -r20 "0e11" "0860"
02:02.0 "0280" "8086" "4220" -r05 "103c" "12f6"
02:04.0 "0607" "1524" "1410" -r01 "0e11" "0860"
[/code]

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo » Wed Oct 17, 2007 3:38 am

You are correct, the binary distribution does not include the ATI drivers. You would need to build MiniMyth to get the ATI drivers. You would need the radeon drivers: the radeon kernel drm module which is about 800k in size, the radeon_drv xorg driver which is about 300k in size, and the radeon_dri xorg dri driver which is about 2.4M.

If you post your build problems, I may be able to help with them (although my success rate has not been very good).
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Post by wroopy » Wed Oct 17, 2007 11:50 am

I'm building on Ubuntu Feisty 7.04.

I've tried to use the buildsystem for 0.20.2-30 and lates from SVN. Both wont work (see below). I don't know if the infromation below is valid or if it helps you.

In .minimyth/minimyth.conf.mk I added ati to mm_CHIPSETS and set the path to mm_HOME

For version 0.20.2-30, I get an error building xf86Debug.c

Code: Select all

Making all in common
make[13]: Entering directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg-server/work/build.d/xorg-server-1.2.0/hw/xfree86/common'
make  all-am
make[14]: Entering directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg-server/work/build.d/xorg-server-1.2.0/hw/xfree86/common'
/bin/bash ../../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../hw/xfree86 -I../../../hw/xfree86/include -I../../../hw/xfree86/common -I../../../hw/xfree86/os-support -I../../../hw/xfree86/os-support/bus -I../../../os -I./../ddc -I./../i2c -I./../loader -I./../rac -I./../parser -I./../scanpci -I./../vbe -I./../int10 -I./../vgahw -I./../dixmods/extmod   -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_ACPI -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I//home/anj/minimyth/gar-minimyth-0.20.2-30/images/build/usr/include -I//home/anj/minimyth/gar-minimyth-0.20.2-30/images/build/usr/include/freetype2   -I../../../include -I../../../include -I../../../Xext -I../../../composite -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi -I../../../miext/shadow  -I../../../miext/damage -I../../../render -I../../../randr -I../../../fb -pipe -march=i686 -m32 -O2 -MT xf86Debug.lo -MD -MP -MF .deps/xf86Debug.Tpo -c -o xf86Debug.lo xf86Debug.c
 gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../hw/xfree86 -I../../../hw/xfree86/include -I../../../hw/xfree86/common -I../../../hw/xfree86/os-support -I../../../hw/xfree86/os-support/bus -I../../../os -I./../ddc -I./../i2c -I./../loader -I./../rac -I./../parser -I./../scanpci -I./../vbe -I./../int10 -I./../vgahw -I./../dixmods/extmod -DHAVE_XORG_CONFIG_H -DXF86PM -DHAVE_ACPI -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I//home/anj/minimyth/gar-minimyth-0.20.2-30/images/build/usr/include -I//home/anj/minimyth/gar-minimyth-0.20.2-30/images/build/usr/include/freetype2 -I../../../include -I../../../include -I../../../Xext -I../../../composite -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi -I../../../miext/shadow -I../../../miext/damage -I../../../render -I../../../randr -I../../../fb -pipe -march=i686 -m32 -O2 -MT xf86Debug.lo -MD -MP -MF .deps/xf86Debug.Tpo -c xf86Debug.c  -fPIC -DPIC -o .libs/xf86Debug.o
xf86Debug.c:47: warning: no previous prototype for 'xf86Break1'
xf86Debug.c:51: warning: no previous prototype for 'xf86Break2'
xf86Debug.c:55: warning: no previous prototype for 'xf86Break3'
xf86Debug.c:128: warning: no previous prototype for 'xf86PeekFb8'
xf86Debug.c:129: warning: no previous prototype for 'xf86PeekFb16'
xf86Debug.c:130: warning: no previous prototype for 'xf86PeekFb32'
xf86Debug.c:131: warning: no previous prototype for 'xf86PokeFb8'
xf86Debug.c:132: warning: no previous prototype for 'xf86PokeFb16'
xf86Debug.c:133: warning: no previous prototype for 'xf86PokeFb32'
xf86Debug.c:136: warning: no previous prototype for 'xf86PeekMmio8'
xf86Debug.c:141: warning: no previous prototype for 'xf86PeekMmio16'
xf86Debug.c:146: warning: no previous prototype for 'xf86PeekMmio32'
xf86Debug.c:151: warning: no previous prototype for 'xf86PokeMmio8'
xf86Debug.c:156: warning: no previous prototype for 'xf86PokeMmio16'
xf86Debug.c:161: warning: no previous prototype for 'xf86PokeMmio32'
xf86Debug.c:167: error: expected ')' before '*' token
xf86Debug.c:178: error: expected ')' before '*' token
make[14]: *** [xf86Debug.lo] Error 1
make[14]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg-server/work/build.d/xorg-server-1.2.0/hw/xfree86/common'
make[13]: *** [all] Error 2
make[13]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg-server/work/build.d/xorg-server-1.2.0/hw/xfree86/common'
make[12]: *** [all-recursive] Error 1
make[12]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg-server/work/build.d/xorg-server-1.2.0/hw/xfree86'
make[11]: *** [all] Error 2
make[11]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg-server/work/build.d/xorg-server-1.2.0/hw/xfree86'
make[10]: *** [all-recursive] Error 1
make[10]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg-server/work/build.d/xorg-server-1.2.0/hw'
make[9]: *** [all-recursive] Error 1
make[9]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg-server/work/build.d/xorg-server-1.2.0'
make[8]: *** [build-work/build.d/xorg-server-1.2.0/Makefile] Error 2
make[8]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg-server'
make[7]: *** [../../xorg-7.2/xorg-server/cookies/build.d/install] Error 2
make[7]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xf86-input-evtouch'
make[6]: *** [imgdep-build] Error 2
make[6]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xf86-input-evtouch'
make[5]: *** [../../xorg-7.2/xf86-input-evtouch/cookies/build.d/install] Error 2
make[5]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg'
make[4]: *** [imgdep-build] Error 2
make[4]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg-7.2/xorg'
make[3]: *** [../../xorg-7.2/xorg/cookies/build.d/install] Error 2
make[3]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg/xorg'
make[2]: *** [imgdep-build] Error 2
make[2]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/xorg/xorg'
make[1]: *** [../../xorg/xorg/cookies/build.d/install] Error 2
make[1]: Leaving directory `/home/anj/minimyth/gar-minimyth-0.20.2-30/script/meta/minimyth'
make: *** [imgdep-build] Error 2
When building based on the lates from SVN, building fakeroot failes.

Code: Select all

make[1]: Entering directory `/home/anj/minimyth/gar-minimyth/script/meta/minimyth'
make[1]: `../../devel/build-system-bins/cookies/build.d/install' is up to date.
make[1]: `../../utils/coreutils/cookies/build.d/install' is up to date.
 ==> Building devel/fakeroot as a dependency
make[2]: Entering directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot'
[===== NOW BUILDING:    fakeroot-1.8.2  =====]
        [fetch] complete for fakeroot.
        [checksum] complete for fakeroot.
        [extract] complete for fakeroot.
        [patch] complete for fakeroot.
        [configure] complete for fakeroot.
 ==> Running make in work/build.d/fakeroot-1.8.2
make[3]: Entering directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2'
make  all-recursive
make[4]: Entering directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2'
Making all in scripts
make[5]: Entering directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2/scripts'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2/scripts'
Making all in test
make[5]: Entering directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2/test'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2/test'
make[5]: Entering directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2'
CONFIG_FILES= CONFIG_HEADERS= /bin/sh ./config.status
config.status: executing depfiles commands
config.status: executing libtool commands
/bin/sh ./libtool --tag=CC   --mode=link gcc  -pipe -march=i686 -O2 -m32    -o faked faked.o libcommunicate.la -ldl
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: compile_command+=: not found
eval: 1: finalize_command+=: not found
eval: 1: libtool_args+=: not found
eval: 1: libtool_args+=: not found
libtool: link: gcc  ./.libs/libcommunicate.a -ldl
//usr/lib/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
make[5]: *** [faked] Error 1
make[5]: Leaving directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2'
make[2]: *** [build-work/build.d/fakeroot-1.8.2/Makefile] Error 2
make[2]: Leaving directory `/home/anj/minimyth/gar-minimyth/script/devel/fakeroot'
make[1]: *** [../../devel/fakeroot/cookies/build.d/install] Error 2
make[1]: Leaving directory `/home/anj/minimyth/gar-minimyth/script/meta/minimyth'
make: *** [imgdep-build] Error 2
[/code]

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo » Wed Oct 17, 2007 2:48 pm

The first problem appears to be a bug in xorg-server. There are a few places where they are using the #define BUILDDEBUG rather than DEBUG. However, bug should only be encountered when xorg-server is compiled with --enable-debug. This should only happen when mm_DEBUG=yes in minimyth.conf.mk. However, there is little reason to have mm_DEBUG=yes. Could you post your $(HOME)/.minimyth/minimyth.conf.mk?

The second problem, it appears that something when very wrong in the generation of libtool during the configure step of fakeroot. If you could make /home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2/libtool available for download somewhere, then I can see how it differs from mine.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Post by wroopy » Wed Oct 17, 2007 8:49 pm

You can find the libtool file at http://www.dahlen.ws/libtool

wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Post by wroopy » Wed Oct 17, 2007 8:55 pm

Forgot my minimyth.conf.mk

Code: Select all

mm_SOFTWARE               ?= mythbrowser \
                             $(if $(filter $(mm_MYTH_VERSION),stable20 softpad20),mythdvd) \
                             mythgallery \
                             mythmusic \
                             mythnews \
                             mythstream \
                             mythvideo \
                             $(if $(filter $(mm_MYTH_VERSION),svn),mythzoneminder) \
                             mplayer \
                             xine \
                             $(if $(filter $(mm_DEBUG),yes),debug)
mm_DISTRIBUTION_RAM       = yes
mm_DISTRIBUTION_NFS       = no
mm_DISTRIBUTION_LOCAL     = yes
mm_DISTRIBUTION_SHARE     no
mm_INSTALL_RAM_BOOT       = yes
mm_INSTALL_NFS_BOOT       = no
mm_INSTALL_LATEST         = yes
mm_HOME                   = $(HOME)/minimyth/gar-minimyth-0.20.2-30
mm_TFTP_ROOT              = /tmp/minimyth

wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Post by wroopy » Thu Oct 18, 2007 8:44 pm

I tested to remove the whole gar-system and start over the building. Then I managed to build and install version 0.20.3-30.

Now I should try to build again, but this time with ati enabled as chipset.

Do I need to make clean first and rebuild everything or could I just build the ati-part?

My linux machine isn't that fast, a build takes about 20 h.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo » Fri Oct 19, 2007 12:10 am

There is no need to rebuild completely. Just do 'make clean' in 'meta/minimyth'.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Post by wroopy » Fri Oct 19, 2007 8:02 am

Pablo wrote: The second problem, it appears that something when very wrong in the generation of libtool during the configure step of fakeroot. If you could make /home/anj/minimyth/gar-minimyth/script/devel/fakeroot/work/build.d/fakeroot-1.8.2/libtool available for download somewhere, then I can see how it differs from mine.
Did you find any differences in your libtoll and my libtool (http://www.dahlen.ws/libtool)

wroopy
Contributor
Posts: 56
Joined: Fri Oct 12, 2007 11:21 pm

Post by wroopy » Sun Oct 21, 2007 10:17 pm

Finally I got MiniMyth running on my laptop. I opnly got it working with version 0.20.2-30, since any newer versions fails building fakeroot.

To get it to work I needed to add some lines to the files below (path are relative to script/meta/minimyth);

lists/chipsets/minimyth-lib-list.ati

Code: Select all

xorg/modules/drivers/ati_drv.so
dirs/etc/hardware.d/pci2x.map

Code: Select all

# ATI
  0300  , 00         , 1002   , 4c66   , radeon
dirs/etc/X11/xorg.conf

Code: Select all

Section "Device"
    Identifier  "Device_radeon"
    Driver      "radeon"
EndSection
Are these changes required or is there any other way of solve my problem with the ati-drivers? I guess that there could be some more optimizations of the Device.section in xorg.conf.
If my changes are valid I think that they should be applied to SVN.

Now the problem with building fakeroot is to be solved. Any ideas on what could be wrong?

BR //Andreas

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Post by Pablo » Thu Oct 25, 2007 6:06 pm

I will integrate these changes into the next build of MiniMyth.

However, I am not sure when that will be. Right now, releases are somewhat hard to make because my home Internet connection is very flaky and getting it fixed may take some time because of the fires that we have been having here.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

Post Reply