i need to extract an recreate the SYSTEM squashfs file. how do i go about doing this
what i do not need to know:
about anything in the /storage/.config unless i can use it to delete something in /etc/x11/ before xorg starts
anything about the autorun.sh script unless i can use it to delete something in /etc/x11/ before xorg starts
what i do need to know:
what compression method the system squashfs file uses
if it is even indeed squashfs
linux - What was the SquashFS compression method? - Super User ive tried this and it says 6, which is not on thelist and linux mints unsquashfs cant detect the compression method
there is a xorg conflict i need to resolve in the genericx86_64 image, specifically i need to delete xorg-nvidia-legacy.conf if i remember correctly. as it causes xorg not to load and im using an amd card.
xorg issue x86_64
-
Ae3NerdGod -
October 20, 2018 at 6:45 AM -
Thread is Unresolved
-
-
- Official Post
There is no need to unsquash/squash. Just create /storage/.config/xorg.conf with whatever content you require for your GPU and it will be used in preference to the any of the embedded conf files on next boot.
-
Quote
what i do not need to know:
about anything in the /storage/.config unless i can use it to delete something in /etc/x11/ before xorg startsThe problem is I need to REMOVE content. The file /etc/x11/xorg-nvidia-legacy.conf attempts to load even though there is a pcie graphics card installed (it tries to load that conf as well, one fails and Kodi doesn't show up)
-
Same thing happens in official, remix reborn and Escalade.
-
so i uploaded my logs here https://drive.google.com/drive/folders/1pxprex6vz4tuo2yaujdkyslnsacka6bv?usp=sharing
in them youll see how xorg tries to load /var/lib/nvidia.ko (which isnt there), and youll see how ive also taken everyones advice so far and made a xorg conf. now the first one, i just coppied from /etc/X11/xorg-radeon.conf and renamed. the second one i made myself following a guide both of them make the "a dependency failed for xserver" messege, xorg seems to start however the mouse pointer just flickers a few times. reading those logs indicate kodi crashing due to display 0.0 not supporting glx (or something) which is bs because after it flickers for a bit it reboots and goes into liberelec safe mode immediately upon next reboot.
is xorg-nvidia-legacy.conf even supposed to be the system anymore? if so why is the driver file it loads not there? i cant figure out why its even triggered -
- Official Post
It's not clear which device you do want to use, but assuming it's the AMD card the following will blacklist the nVidia driver module and prevent it from being loaded at boot time; at which time only the AMD card should be usable and xorg.conf(s) shouldn't come into play.
-
tried that first buddy. no change. besides, the module doesnt even load because IT ISNT THERE and A XORG CONF FILE REFERENCES IT ANYWAYS. its very frustrating
Quotealso yea sorry i guess i didnt think to mention the card because it worked in another libreelec machine i upgraded, which is why im frustrted now that it wasnt as plug and play as lastime. i cannot figure out why xorg-nvidia-legacy.conf is even loading becaue the graphics card isnt even in lspci on linux mint or the hardware log of kodi
for reference
here is a very detailed lspci from linux mint. its really hard to get a console on libreelec for some reason with this specific xorg problem.
card is an ati branded HD757000:00.0 RAM memory [0500]: NVIDIA Corporation C51 Host Bridge [10de:02f1] (rev a2)
Flags: bus master, 66MHz, fast devsel, latency 0, NUMA node 0
Capabilities: [44] HyperTransport: Slave or Primary Interface
Capabilities: [e0] HyperTransport: MSI Mapping Enable+ Fixed-
00:00.1 RAM memory [0500]: NVIDIA Corporation C51 Memory Controller 0 [10de:02fa] (rev a2)
Subsystem: Foxconn International, Inc. C51 Memory Controller 0 [105b:0ca8]
Flags: 66MHz, fast devsel, NUMA node 0
00:00.2 RAM memory [0500]: NVIDIA Corporation C51 Memory Controller 1 [10de:02fe] (rev a2)
Subsystem: Foxconn International, Inc. C51 Memory Controller 1 [105b:0ca8]
Flags: 66MHz, fast devsel, NUMA node 0
00:00.3 RAM memory [0500]: NVIDIA Corporation C51 Memory Controller 5 [10de:02f8] (rev a2)
Subsystem: Foxconn International, Inc. C51 Memory Controller 5 [105b:0ca8]
Flags: 66MHz, fast devsel, NUMA node 0
00:00.4 RAM memory [0500]: NVIDIA Corporation C51 Memory Controller 4 [10de:02f9] (rev a2)
Subsystem: Foxconn International, Inc. C51 Memory Controller 4 [105b:0ca8]
Flags: bus master, 66MHz, fast devsel, latency 0, NUMA node 0
00:00.5 RAM memory [0500]: NVIDIA Corporation C51 Host Bridge [10de:02ff] (rev a2)
Subsystem: Foxconn International, Inc. C51 Host Bridge [105b:0ca8]
Flags: bus master, 66MHz, fast devsel, latency 0, NUMA node 0
Capabilities: [44] #00 [00fe]
Capabilities: [fc] #00 [0000]
00:00.6 RAM memory [0500]: NVIDIA Corporation C51 Memory Controller 3 [10de:027f] (rev a2)
Subsystem: Foxconn International, Inc. C51 Memory Controller 3 [105b:0ca8]
Flags: 66MHz, fast devsel, NUMA node 0
00:00.7 RAM memory [0500]: NVIDIA Corporation C51 Memory Controller 2 [10de:027e] (rev a2)
Subsystem: Foxconn International, Inc. C51 Memory Controller 2 [105b:0ca8]
Flags: 66MHz, fast devsel, NUMA node 0
00:02.0 PCI bridge [0604]: NVIDIA Corporation C51 PCI Express Bridge [10de:02fc] (rev a1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, NUMA node 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000a000-0000afff
Memory behind bridge: fe400000-fe4fffff
Prefetchable memory behind bridge: 00000000fea00000-00000000feafffff
Capabilities: [40] Subsystem: NVIDIA Corporation C51 PCI Express Bridge [10de:0000]
Capabilities: [48] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/2 Maskable- 64bit+
Capabilities: [60] HyperTransport: MSI Mapping Enable- Fixed-
Capabilities: [80] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel
Kernel driver in use: pcieport
Kernel modules: shpchp
00:03.0 PCI bridge [0604]: NVIDIA Corporation C51 PCI Express Bridge [10de:02fd] (rev a1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, NUMA node 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: 00009000-00009fff
Memory behind bridge: fe900000-fe9fffff
Prefetchable memory behind bridge: 00000000fe800000-00000000fe8fffff
Capabilities: [40] Subsystem: NVIDIA Corporation C51 PCI Express Bridge [10de:0000]
Capabilities: [48] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/2 Maskable- 64bit+
Capabilities: [60] HyperTransport: MSI Mapping Enable- Fixed-
Capabilities: [80] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel
Kernel driver in use: pcieport
Kernel modules: shpchp
00:04.0 PCI bridge [0604]: NVIDIA Corporation C51 PCI Express Bridge [10de:02fb] (rev a1) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, NUMA node 0
Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
I/O behind bridge: 0000b000-0000bfff
Memory behind bridge: fe500000-fe5fffff
Prefetchable memory behind bridge: 00000000d0000000-00000000dfffffff
Capabilities: [40] Subsystem: NVIDIA Corporation C51 PCI Express Bridge [10de:0000]
Capabilities: [48] Power Management version 2
Capabilities: [50] MSI: Enable- Count=1/2 Maskable- 64bit+
Capabilities: [60] HyperTransport: MSI Mapping Enable- Fixed-
Capabilities: [80] Express Root Port (Slot+), MSI 00
Capabilities: [100] Virtual Channel
Kernel driver in use: pcieport
Kernel modules: shpchp
00:09.0 RAM memory [0500]: NVIDIA Corporation MCP51 Host Bridge [10de:0270] (rev a2)
Subsystem: Foxconn International, Inc. MCP51 Host Bridge [105b:0ca8]
Flags: bus master, 66MHz, fast devsel, latency 0, NUMA node 0
Capabilities: [44] HyperTransport: Slave or Primary Interface
Capabilities: [e0] HyperTransport: MSI Mapping Enable- Fixed-
00:0a.0 ISA bridge [0601]: NVIDIA Corporation MCP51 LPC Bridge [10de:0261] (rev a2)
Subsystem: NVIDIA Corporation MCP51 LPC Bridge [10de:cb84]
Flags: bus master, 66MHz, fast devsel, latency 0, NUMA node 0
00:0a.1 SMBus [0c05]: NVIDIA Corporation MCP51 SMBus [10de:0264] (rev a2)
Subsystem: Foxconn International, Inc. MCP51 SMBus [105b:0ca8]
Flags: 66MHz, fast devsel, IRQ 11, NUMA node 0
I/O ports at fc00 [size=64]
I/O ports at f800 [size=64]
Capabilities: [44] Power Management version 2
Kernel driver in use: nForce2_smbus
Kernel modules: i2c_nforce2, nv_tco
00:0a.2 RAM memory [0500]: NVIDIA Corporation MCP51 Memory Controller 0 [10de:0272] (rev a2)
Subsystem: Foxconn International, Inc. MCP51 Memory Controller 0 [105b:0ca8]
Flags: 66MHz, fast devsel, NUMA node 0
00:0b.0 USB controller [0c03]: NVIDIA Corporation MCP51 USB Controller [10de:026d] (rev a2) (prog-if 10 [OHCI])
Subsystem: NVIDIA Corporation MCP51 USB Controller [10de:cb84]
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23, NUMA node 0
Memory at febff000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2
Kernel driver in use: ohci-pci
00:0b.1 USB controller [0c03]: NVIDIA Corporation MCP51 USB Controller [10de:026e] (rev a2) (prog-if 20 [EHCI])
Subsystem: NVIDIA Corporation MCP51 USB Controller [10de:cb84]
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 22, NUMA node 0
Memory at febfe000 (32-bit, non-prefetchable) [size=256]
Capabilities: [44] Debug port: BAR=1 offset=0098
Capabilities: [80] Power Management version 2
Kernel driver in use: ehci-pci
00:0d.0 IDE interface [0101]: NVIDIA Corporation MCP51 IDE [10de:0265] (rev a1) (prog-if 8a [Master SecP PriP])
Subsystem: NVIDIA Corporation MCP51 IDE [10de:cb84]
Flags: bus master, 66MHz, fast devsel, latency 0, NUMA node 0
[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 000003f0 (type 3, non-prefetchable)
[virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
[virtual] Memory at 00000370 (type 3, non-prefetchable)
I/O ports at f400 [size=16]
Capabilities: [44] Power Management version 2
Kernel driver in use: pata_amd
Kernel modules: pata_amd, pata_acpi
00:0e.0 IDE interface [0101]: NVIDIA Corporation MCP51 Serial ATA Controller [10de:0266] (rev a1) (prog-if 85 [Master SecO PriO])
Subsystem: Foxconn International, Inc. MCP51 Serial ATA Controller [105b:0ca8]
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 21, NUMA node 0
I/O ports at 09f0 [size=8]
I/O ports at 0bf0 [size=4]
I/O ports at 0970 [size=8]
I/O ports at 0b70 [size=4]
I/O ports at e000 [size=16]
Memory at febfd000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2
Capabilities: [b0] MSI: Enable- Count=1/4 Maskable- 64bit+
Capabilities: [cc] HyperTransport: MSI Mapping Enable+ Fixed+
Kernel driver in use: sata_nv
Kernel modules: sata_nv, pata_acpi
00:10.0 PCI bridge [0604]: NVIDIA Corporation MCP51 PCI Bridge [10de:026f] (rev a2) (prog-if 01 [Subtractive decode])
Flags: bus master, 66MHz, fast devsel, latency 0, NUMA node 0
Bus: primary=00, secondary=04, subordinate=04, sec-latency=32
I/O behind bridge: 0000c000-0000cfff
Memory behind bridge: fe700000-fe7fffff
Prefetchable memory behind bridge: fe600000-fe6fffff
Capabilities: [b8] Subsystem: Device [0000:0000]
Capabilities: [8c] HyperTransport: MSI Mapping Enable+ Fixed-
00:10.2 Multimedia audio controller [0401]: NVIDIA Corporation MCP51 AC97 Audio Controller [10de:026b] (rev a2)
Subsystem: Foxconn International, Inc. MCP51 AC97 Audio Controller [105b:0ca8]
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 23, NUMA node 0
I/O ports at dc00 [size=256]
I/O ports at d800 [size=256]
Memory at febfc000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [44] Power Management version 2
Kernel driver in use: snd_intel8x0
Kernel modules: snd_intel8x0
00:14.0 Bridge [0680]: NVIDIA Corporation MCP51 Ethernet Controller [10de:0269] (rev a1)
Subsystem: Foxconn International, Inc. MCP51 Ethernet Controller [105b:0ca8]
Flags: bus master, 66MHz, fast devsel, latency 0, IRQ 20, NUMA node 0
Memory at febfb000 (32-bit, non-prefetchable) [size=4K]
I/O ports at d400 [size=8]
Capabilities: [44] Power Management version 2
Kernel driver in use: forcedeth
Kernel modules: forcedeth
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration [1022:1100]
Flags: fast devsel, NUMA node 0
Capabilities: [80] HyperTransport: Host or Secondary Interface
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map [1022:1101]
Flags: fast devsel, NUMA node 0
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller [1022:1102]
Flags: fast devsel, NUMA node 0
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control [1022:1103]
Flags: fast devsel, NUMA node 0
Kernel driver in use: k8temp
Kernel modules: k8temp
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Redwood PRO [Radeon HD 5550/5570/5630/6510/6610/7570] [1002:68d9] (prog-if 00 [VGA controller])
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Redwood PRO [Radeon HD 5550/5570/5630/6510/6610/7570] [1002:e142]
Flags: bus master, fast devsel, latency 0, IRQ 24, NUMA node 0
Memory at d0000000 (64-bit, prefetchable) [size=256M]
Memory at fe5c0000 (64-bit, non-prefetchable) [size=128K]
I/O ports at bc00 [size=256]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Kernel driver in use: radeon
Kernel modules: radeon
03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Redwood HDMI Audio [Radeon HD 5000 Series] [1002:aa60]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Redwood HDMI Audio [Radeon HD 5000 Series] [1002:aa60]
Flags: bus master, fast devsel, latency 0, IRQ 25, NUMA node 0
Memory at fe5fc000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, MSI 00
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
04:06.0 FireWire (IEEE 1394) [0c00]: Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) [104c:8024] (prog-if 10 [OHCI])
Subsystem: Foxconn International, Inc. TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) [105b:0ca8]
Flags: bus master, medium devsel, latency 32, IRQ 19, NUMA node 0
Memory at fe7ff000 (32-bit, non-prefetchable) [size=2K]
Memory at fe7f8000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [44] Power Management version 2
Kernel driver in use: firewire_ohci
Kernel modules: firewire_ohci
04:07.0 Ethernet controller [0200]: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 [1317:0985] (rev 11)
Subsystem: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 [1317:0574]
Flags: bus master, medium devsel, latency 32, IRQ 16, NUMA node 0
I/O ports at cc00 [size=256]
Memory at fe7fe000 (32-bit, non-prefetchable) [size=1K]
[virtual] Expansion ROM at fe600000 [disabled] [size=128K]
Capabilities: [c0] Power Management version 2
Kernel driver in use: tulip
Kernel modules: tulip
-
- Official Post
SO .. basics. What card are you trying to use? .. and what GPU's models are physically present in the box?
-
trying to use a Radeon HD 7570 man. id like to be able to get this working without having to recompile for every update. i cant figure out why xorg/-nvidia-legacy.conf is even triggering, as you can see theres no nvidia card in my lspci
-
- Official Post
Code
Display MoreOct 22 01:36:32 kernel: ACPI: RSDP 0x00000000000F7C10 000014 (v00 Nvidia) Oct 22 01:36:32 kernel: ACPI: RSDT 0x00000000BFEF3040 000038 (v01 Nvidia AWRDACPI 42302E31 AWRD 00000000) Oct 22 01:36:32 kernel: ACPI: FACP 0x00000000BFEF30C0 000074 (v01 Nvidia AWRDACPI 42302E31 AWRD 00000000) Oct 22 01:36:32 kernel: ACPI: DSDT 0x00000000BFEF3180 0061A6 (v01 NVIDIA AWRDACPI 00001000 MSFT 0100000E) Oct 22 01:36:32 kernel: ACPI: MCFG 0x00000000BFEF9740 00003C (v01 Nvidia AWRDACPI 42302E31 AWRD 00000000) Oct 22 01:36:32 kernel: ACPI: APIC 0x00000000BFEF9380 000072 (v01 Nvidia AWRDACPI 42302E31 AWRD 00000000) Oct 22 01:36:32 kernel: Nvidia board detected. Ignoring ACPI timer override. Oct 22 01:36:33 systemd[1]: Starting configure Xorg Server for nvidia-legacy... Oct 22 01:36:34 Xorg[325]: creating needed directories and symlinks for driver: nvidia-legacy Oct 22 01:36:34 kernel: nvidia: loading out-of-tree module taints kernel. Oct 22 01:36:34 kernel: nvidia: module license 'NVIDIA' taints kernel. Oct 22 01:36:34 kernel: NVRM: No NVIDIA graphics adapter found! Oct 22 01:36:34 xorg-configure[315]: insmod: ERROR: could not insert module /var/lib/nvidia.ko: No such device Oct 22 01:36:34 systemd[1]: Started configure Xorg Server for nvidia-legacy.
^ the systemd journal clearly shows that udev detects an nVidia card so xorg-configure for nvidia-legacy is invoked according to:
So create /storage/.config/udev.d/96-nvidia.rules with the content below and then reboot and the updated rule file (which if present overrules the embedded one) should prevent the nvidia card from triggering the xorg-configure process:
CodeACTION!="add|change", GOTO="end_video" SUBSYSTEM=="pci", ATTR{class}=="0x030000", ATTRS{vendor}=="0x10de", GOTO="subsystem_pci" GOTO="end_video" LABEL="subsystem_pci" GOTO="end_video" LABEL="end_video"
The next rule to be evaluated is 97-xorg.rules which should now match against the AMD card:
LibreELEC.tv/97-xorg.rules at amlogic · chewitt/LibreELEC.tv · GitHub
In theory..
-
That seems like it might work, I shall try it soon.
However, I did actually read that but it didn't tell me why it was being detected. The card in question (,onboard geforce 6150 I think) shows up NOWHERE. Not in lspci, not in /dev that I've found. Now that you've showed me those udev rules it seems like it just loads nvidia-legacy if it doesn't find a matching Id in that list but at the same time it gets called if there's nvidia pci devices present in general. Am i understanding that right? Because it definitely has nvidia ethernet and smbus and so-on
-
- Official Post
I've no idea what triggers udev to match on nvidia-legacy rules (and why nvidia rules are evaluated separately and before other GPU rules is lost in the history of the project somewhere), but clearly it does match, so overriding the file should work and avoids anyone needing to learn new things about udev. It's either an exceptionally rare kernel/udev bug or there's something odd about your specific hardware. I'd guess the latter. It's not a scenario I recall seeing before and I've been hanging around various incarnations of the project since ~2011.
-
so far so good, ive rebooted 3 times with no errors or crashes. thanks man, udev is weird.
-
- Official Post
nadhim You post is (was) completely irrelevant to this thread. It has been deleted.