🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.sprzet
Article #74574

Re: Driver karty graficznej do kompilacji

#74574
From: januszp366
Date: Wed, 03 Jun 2020 21:24
226 lines
14720 bytes
Date: Wed, 20 May 2020 19:28:13
From: janus...@gmail.com
Dziękuję za odpowiedź, piszę dopiero dziś bo to niespodzianka myślałem że mój post zostanie bez odpowiedzi.
[..]
> Jaki to model? Co pokazuje lscpu? Sądząc po karcie graficznej, to jakiś
> Core/Core 2 mobile.

To laptop Ergo Ensis 211 oparty na płycie Asus A3F, a polecenie lscpu zwraca:
Architektura:           x86_64
Tryb(y) pracy CPU:      32-bit, 64-bit
Kolejność bajtów:       Little Endian
CPU:                    2
Lista aktywnych CPU:    0,1
Wątków na rdzeń:        1
Rdzeni na gniazdo:      2
Gniazd:                 1
Węzłów NUMA:            1
ID producenta:          GenuineIntel
Rodzina CPU:            6
Model:                  15
Nazwa modelu:           Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz
Wersja:                 6
CPU MHz:                1660.000
CPU max MHz:            1660,0000
CPU min MHz:            996,0000
BogoMIPS:               3324.87
Cache L1d:              32K
Cache L1i:              32K
Cache L2:               2048K
Procesory węzła NUMA 0: 0,1
Flagi:                  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm
------------------------------------------------------------------------------
> i wobec wciąż przyrastającego w objętość kernela w Linux Mint 64 bit
> postanowiłem skompilować sobie kernel tak żeby "stracił na wadze".

> A właściwie po co?

Bo z mniejszym kernelem komputer pracuje szybciej. 

> A co pokazuje lspci -vnn?
Pokazuje dość dużo, aż boję się wklejać... ;)
-------------------------------------------------------------------------
00:00.0 Host bridge [0600]: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub [8086:27a0] (rev 03)
	Subsystem: ASUSTeK Computer Inc. Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub [1043:12c7]
	Flags: bus master, fast devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [8086:27a2] (rev 03) (prog-if 00 [VGA controller])
	Subsystem: ASUSTeK Computer Inc. Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller [1043:1252]
	Flags: bus master, fast devsel, latency 0, IRQ 16
	Memory at feb80000 (32-bit, non-prefetchable) [size=512K]
	I/O ports at ec00 [size=8]
	Memory at d0000000 (32-bit, prefetchable) [size=256M]
	Memory at feb40000 (32-bit, non-prefetchable) [size=256K]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915
	Kernel modules: i915, intelfb

00:02.1 Display controller [0380]: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller [8086:27a6] (rev 03)
	Subsystem: ASUSTeK Computer Inc. Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller [1043:1252]
	Flags: bus master, fast devsel, latency 0
	Memory at fea80000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: <access denied>

00:1b.0 Audio device [0403]: Intel Corporation NM10/ICH7 Family High Definition Audio Controller [8086:27d8] (rev 02)
	Subsystem: ASUSTeK Computer Inc. NM10/ICH7 Family High Definition Audio Controller [1043:12c3]
	Flags: bus master, fast devsel, latency 0, IRQ 26
	Memory at feb3c000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

00:1c.0 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 1 [8086:27d0] (rev 02) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 24
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 00001000-00001fff
	Memory behind bridge: 80000000-801fffff
	Prefetchable memory behind bridge: 0000000100000000-00000001001fffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1c.1 PCI bridge [0604]: Intel Corporation NM10/ICH7 Family PCI Express Port 2 [8086:27d2] (rev 02) (prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0, IRQ 25
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 00002000-00002fff
	Memory behind bridge: fdf00000-fdffffff
	Prefetchable memory behind bridge: 0000000100200000-00000001003fffff
	Capabilities: <access denied>
	Kernel driver in use: pcieport
	Kernel modules: shpchp

00:1d.0 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 [8086:27c8] (rev 02) (prog-if 00 [UHCI])
	Subsystem: ASUSTeK Computer Inc. NM10/ICH7 Family USB UHCI Controller [1043:12c7]
	Flags: bus master, medium devsel, latency 0, IRQ 23
	I/O ports at e880 [size=32]
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd

00:1d.1 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 [8086:27c9] (rev 02) (prog-if 00 [UHCI])
	Subsystem: ASUSTeK Computer Inc. NM10/ICH7 Family USB UHCI Controller [1043:12c7]
	Flags: bus master, medium devsel, latency 0, IRQ 19
	I/O ports at e800 [size=32]
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd

00:1d.2 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 [8086:27ca] (rev 02) (prog-if 00 [UHCI])
	Subsystem: ASUSTeK Computer Inc. NM10/ICH7 Family USB UHCI Controller [1043:12c7]
	Flags: bus master, medium devsel, latency 0, IRQ 18
	I/O ports at e480 [size=32]
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd

00:1d.3 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 [8086:27cb] (rev 02) (prog-if 00 [UHCI])
	Subsystem: ASUSTeK Computer Inc. NM10/ICH7 Family USB UHCI Controller [1043:12c7]
	Flags: bus master, medium devsel, latency 0, IRQ 22
	I/O ports at e400 [size=32]
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd

00:1d.7 USB controller [0c03]: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller [8086:27cc] (rev 02) (prog-if 20 [EHCI])
	Subsystem: ASUSTeK Computer Inc. NM10/ICH7 Family USB2 EHCI Controller [1043:12c7]
	Flags: bus master, medium devsel, latency 0, IRQ 23
	Memory at feb3bc00 (32-bit, non-prefetchable) [size=1K]
	Capabilities: <access denied>
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci

00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev e2) (prog-if 01 [Subtractive decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=03, subordinate=07, sec-latency=32
	I/O behind bridge: 0000c000-0000dfff
	Memory behind bridge: fe000000-fe8fffff
	Prefetchable memory behind bridge: 00000000bdf00000-00000000bfefffff
	Capabilities: <access denied>

00:1f.0 ISA bridge [0601]: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge [8086:27b9] (rev 02)
	Subsystem: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge [8086:27b9]
	Flags: bus master, medium devsel, latency 0
	Capabilities: <access denied>
	Kernel driver in use: lpc_ich
	Kernel modules: intel_rng, lpc_ich, leds_ss4200

00:1f.1 IDE interface [0101]: Intel Corporation 82801G (ICH7 Family) IDE Controller [8086:27df] (rev 02) (prog-if 8a [ISA Compatibility mode controller, supports both channels switched to PCI native mode, supports bus mastering])
	Subsystem: ASUSTeK Computer Inc. 82801G (ICH7 Family) IDE Controller [1043:12c7]
	Flags: bus master, medium devsel, latency 0, IRQ 18
	I/O ports at 01f0 [size=8]
	I/O ports at 03f4
	I/O ports at 0170 [size=8]
	I/O ports at 0374
	I/O ports at ffa0 [size=16]
	Kernel driver in use: ata_piix
	Kernel modules: pata_acpi

02:00.0 Network controller [0280]: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection [8086:4222] (rev 02)
	Subsystem: Intel Corporation WM3945ABG MOW2 [8086:1001]
	Flags: bus master, fast devsel, latency 0, IRQ 27
	Memory at fdfff000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: <access denied>
	Kernel driver in use: iwl3945
	Kernel modules: iwl3945

03:01.0 CardBus bridge [0607]: Ricoh Co Ltd RL5c476 II [1180:0476] (rev b3)
	Subsystem: ASUSTeK Computer Inc. RL5c476 II [1043:12c7]
	Flags: bus master, medium devsel, latency 168, IRQ 17
	Memory at 84000000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=03, secondary=04, subordinate=07, sec-latency=176
	Memory window 0: c0000000-c3ffffff (prefetchable)
	Memory window 1: 88000000-8bffffff
	I/O window 0: 0000c000-0000c0ff
	I/O window 1: 0000c400-0000c4ff
	16-bit legacy interface ports at 0001
	Capabilities: <access denied>
	Kernel driver in use: yenta_cardbus
	Kernel modules: yenta_socket

03:01.1 FireWire (IEEE 1394) [0c00]: Ricoh Co Ltd R5C552 IEEE 1394 Controller [1180:0552] (rev 08) (prog-if 10 [OHCI])
	Subsystem: ASUSTeK Computer Inc. R5C552 IEEE 1394 Controller [1043:12c7]
	Flags: bus master, medium devsel, latency 64, IRQ 18
	Memory at fe8ff800 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: firewire_ohci
	Kernel modules: firewire_ohci

03:01.2 SD Host controller [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1180:0822] (rev 17)
	Subsystem: ASUSTeK Computer Inc. R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter [1043:12c7]
	Flags: bus master, medium devsel, latency 64, IRQ 19
	Memory at fe8ff400 (32-bit, non-prefetchable) [size=256]
	Capabilities: <access denied>
	Kernel driver in use: sdhci-pci
	Kernel modules: sdhci_pci

03:01.3 System peripheral [0880]: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter [1180:0592] (rev 08)
	Subsystem: ASUSTeK Computer Inc. R5C592 Memory Stick Bus Host Adapter [1043:12c7]
	Flags: medium devsel, IRQ 5
	Memory at fe8ff000 (32-bit, non-prefetchable) [size=256]
	Capabilities: <access denied>

03:07.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL-8100/8101L/8139 PCI Fast Ethernet Adapter [10ec:8139] (rev 10)
	Subsystem: ASUSTeK Computer Inc. L8400B or L3C/S notebook [1043:1045]
	Flags: bus master, medium devsel, latency 64, IRQ 16
	I/O ports at d800 [size=256]
	Memory at fe8fec00 (32-bit, non-prefetchable) [size=256]
	Capabilities: <access denied>
	Kernel driver in use: 8139too
	Kernel modules: 8139cp, 8139too

-------------------------------------------------------------------------
> Skompilowałem źródła kerneli 2.6.38 i 3.0.1 - niestety żaden z nich
> nie ma w źródłach drivera do karty graficznej

> Linie 2.6 i 3.0 są już od dawna nie rozwijane. Jeśli bardzo chcesz
> użyć starej wersji, to polecam najstarszą longterm, czyli na dzień
> dzisiejszy to 3.16.84: https://www.kernel.org/
...
longterm:         3.16.84         2020-05-22         [tarball]         [pgp]         [patch]         [inc. patch]         [view diff]         [browse]         [changelog]

To że to jądro nie jest już wspierane to dla mnie żaden parametr - dla mnie najważniejsze jest przyspieszenie pracy np. to żeby otwieranie pliku textowego 659 bajtów trwało krótko bo teraz z kernelem  8.3 MB trwa 7-10 sekund co porównując go do Win XP na sąsiedniej partycji plasuje linux na pozycji żółwia. Kernel 2.6 udało mi się skompilować, ale grafika nie działa jak powinna dając tabliczkę że pracuje w trybie renderingu - chyba sprzętowego, nie pamiętam. Poza tym na obu tych kernelach problemem jest praca myszki o czym nie pisalem żeby nie zaciemniać rysunku sytuacji - gdy myszka przejeżdża nad ikoną puliptu to ikona normalnie reaguje "cienując" się, ale sama myszka ma przezroczysty wskaźnik/strzałkę co jest uciążliwe w pracy bo trzeba ją "mocno obserwować" żeby wiedzieć gdzie aktualnie jest. Kernel 2.6 wyszedł w rozmiarze 2.7MB, sieć na tym OK, muzyka też - problem to grafika i mysz.  Longterm to 3.16.84 - Ok akceptowalna sprawa bo bliźniaczy 3.16.1 skompilowałem na Linux Mint 17.3 64 bit i wyszedł mi 3.1 MB i w tym miejscu jest jeszcze jeden problem: debianowska kompilacja daje dwa pliki instalacyjne tybu .deb i o ile na LM 17.3 wyśmienicie ten kernel pracuje, a tyle
przeniesiony do wspólczesnego LM 19.2 64 bit nie uruchamia się prawie w ogóle dając text i stop od razu na początku : Wczytywanie początkowego dysku Ram (czy podobny text), przy "gorszych" kompilacjach to było tylko jedno słowo w nawiasach: (initramfs), a na 17.3 było OK. 
Próbowałem kompilować te kernele na LM 19.2 64 bit ale te dawały formulkę : 

            code model kernel does not support PIC mode

Dostałem poradę żeby w Makefile do : KBUILD_CFLAGS += $(KCFLAGS) dopisać:  -fno-pie -dopisałem, ale bez rezultatu, zrobiłem też wersję z osobną linią czyli: KBUILD_CFLAG += -fno-pie , próbowałem też kompilacji z niżsą wersją wersją gcc - użyłem gcc-4.8 (zmieniając oczywiście dowiązanie symboliczne do gcc) - sumując kompilacje tych starszych kerneli na współczesnych Linuxach Mint - kompilacje przebiegają prawidłowo, ale uruchomienie już nie - jak napisałem wyżej. "Żeby nie było" :) - używałem do tych prób oryginalnych plików config skopiowanych z katalogów /boot odpowiednich dystrybucji Linux Mint.
Technical Details
Message-ID: <218c6973-4d26-4b3f-ae20-c8b32baed033@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!news-2.dfn.de!news.dfn.de!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
References: <26a19b17-7d8f-423a-bd64-2033f64ae7ac@googlegroups.com> <rb2v7f$o8i$1$rathann@news.chmurka.net>

Show Full Headers
Complete Article Headers
X-Received: by 2002:ac8:6bc6:: with SMTP id b6mr1386356qtt.101.1591219468927;        Wed, 03 Jun 2020 14:24:28 -0700 (PDT)
X-Received: by 2002:a37:2d41:: with SMTP id t62mr1542739qkh.445.1591219468655; Wed, 03 Jun 2020 14:24:28 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!news-2.dfn.de!news.dfn.de!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: pl.comp.os.linux.sprzet
Date: Wed, 3 Jun 2020 14:24:28 -0700 (PDT)
In-Reply-To: <rb2v7f$o8i$1$rathann@news.chmurka.net>
Complaints-To: groups-abuse@google.com
Injection-Info: google-groups.googlegroups.com; posting-host=88.104.51.207; posting-account=bkyTrAoAAAAn4Ek2N41AFRqiwND_qY__
NNTP-Posting-Host: 88.104.51.207
References: <26a19b17-7d8f-423a-bd64-2033f64ae7ac@googlegroups.com> <rb2v7f$o8i$1$rathann@news.chmurka.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <218c6973-4d26-4b3f-ae20-c8b32baed033@googlegroups.com>
Subject: Re: Driver karty graficznej do kompilacji
From: januszp366@gmail.com
Injection-Date: Wed, 03 Jun 2020 21:24:28 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit