Difference between revisions of "ECS LIVA: Gentoo-based MythTV Backend & Frontend Setup Guide"
m (Formatting cleanup and additional content.) |
(→Hardware Information: Added output of lspci -v) |
||
Line 94: | Line 94: | ||
= Reference Information = | = Reference Information = | ||
== Hardware Information == | == Hardware Information == | ||
+ | lspci -v | ||
+ | 00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e) | ||
+ | Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Flags: bus master, fast devsel, latency 0 | ||
+ | Kernel driver in use: iosf_mbi_pci | ||
+ | Kernel modules: iosf_mbi | ||
+ | |||
+ | 00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e) (prog-if 00 [VGA controller]) | ||
+ | Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Flags: bus master, fast devsel, latency 0, IRQ 261 | ||
+ | Memory at d0000000 (32-bit, non-prefetchable) [size=4M] | ||
+ | Memory at c0000000 (32-bit, prefetchable) [size=256M] | ||
+ | I/O ports at f020 [size=8] | ||
+ | Expansion ROM at <unassigned> [disabled] | ||
+ | Capabilities: [d0] Power Management version 2 | ||
+ | Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit- | ||
+ | Capabilities: [b0] Vendor Specific Information: Len=07 <?> | ||
+ | Kernel driver in use: i915 | ||
+ | |||
+ | 00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB xHCI (rev 0e) (prog-if 30 [XHCI]) | ||
+ | Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Flags: bus master, medium devsel, latency 0, IRQ 263 | ||
+ | Memory at d0700000 (64-bit, non-prefetchable) [size=64K] | ||
+ | Capabilities: [70] Power Management version 2 | ||
+ | Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+ | ||
+ | Kernel driver in use: xhci_hcd | ||
+ | |||
+ | 00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e) | ||
+ | Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Flags: bus master, fast devsel, latency 0, IRQ 255 | ||
+ | Memory at d0500000 (32-bit, non-prefetchable) [size=1M] | ||
+ | Memory at d0400000 (32-bit, non-prefetchable) [size=1M] | ||
+ | Capabilities: [80] Power Management version 3 | ||
+ | Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit- | ||
+ | |||
+ | 00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0e) | ||
+ | Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Flags: bus master, fast devsel, latency 0, IRQ 264 | ||
+ | Memory at d0714000 (64-bit, non-prefetchable) [size=16K] | ||
+ | Capabilities: [50] Power Management version 2 | ||
+ | Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ | ||
+ | Kernel driver in use: snd_hda_intel | ||
+ | |||
+ | 00:1c.0 PCI bridge: Intel Corporation Device 0f48 (rev 0e) (prog-if 00 [Normal decode]) | ||
+ | Flags: bus master, fast devsel, latency 0 | ||
+ | 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: 0000000080200000-00000000803fffff | ||
+ | Capabilities: [40] Express Root Port (Slot+), MSI 00 | ||
+ | Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- | ||
+ | Capabilities: [90] Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Capabilities: [a0] Power Management version 3 | ||
+ | Kernel driver in use: pcieport | ||
+ | |||
+ | 00:1c.1 PCI bridge: Intel Corporation Device 0f4a (rev 0e) (prog-if 00 [Normal decode]) | ||
+ | Flags: bus master, fast devsel, latency 0 | ||
+ | Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 | ||
+ | I/O behind bridge: 00002000-00002fff | ||
+ | Memory behind bridge: 80400000-805fffff | ||
+ | Prefetchable memory behind bridge: 0000000080600000-00000000807fffff | ||
+ | Capabilities: [40] Express Root Port (Slot+), MSI 00 | ||
+ | Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- | ||
+ | Capabilities: [90] Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Capabilities: [a0] Power Management version 3 | ||
+ | Kernel driver in use: pcieport | ||
+ | |||
+ | 00:1c.2 PCI bridge: Intel Corporation Device 0f4c (rev 0e) (prog-if 00 [Normal decode]) | ||
+ | Flags: bus master, fast devsel, latency 0 | ||
+ | Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 | ||
+ | I/O behind bridge: 0000e000-0000efff | ||
+ | Memory behind bridge: d0600000-d06fffff | ||
+ | Prefetchable memory behind bridge: 0000000080800000-00000000809fffff | ||
+ | Capabilities: [40] Express Root Port (Slot+), MSI 00 | ||
+ | Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- | ||
+ | Capabilities: [90] Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Capabilities: [a0] Power Management version 3 | ||
+ | Kernel driver in use: pcieport | ||
+ | |||
+ | 00:1c.3 PCI bridge: Intel Corporation Device 0f4e (rev 0e) (prog-if 00 [Normal decode]) | ||
+ | Flags: bus master, fast devsel, latency 0 | ||
+ | Bus: primary=00, secondary=04, subordinate=04, sec-latency=0 | ||
+ | I/O behind bridge: 00003000-00003fff | ||
+ | Memory behind bridge: 80a00000-80bfffff | ||
+ | Prefetchable memory behind bridge: 0000000080c00000-0000000080dfffff | ||
+ | Capabilities: [40] Express Root Port (Slot+), MSI 00 | ||
+ | Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- | ||
+ | Capabilities: [90] Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Capabilities: [a0] Power Management version 3 | ||
+ | Kernel driver in use: pcieport | ||
+ | |||
+ | 00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0e) | ||
+ | Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Flags: bus master, medium devsel, latency 0 | ||
+ | Capabilities: [e0] Vendor Specific Information: Len=0c <?> | ||
+ | |||
+ | 00:1f.3 SMBus: Intel Corporation Device 0f12 (rev 0e) | ||
+ | Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Flags: medium devsel, IRQ 18 | ||
+ | Memory at d071c000 (32-bit, non-prefetchable) [size=32] | ||
+ | I/O ports at f000 [size=32] | ||
+ | Capabilities: [50] Power Management version 3 | ||
+ | |||
+ | 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c) | ||
+ | Subsystem: Elitegroup Computer Systems Device 99ad | ||
+ | Flags: bus master, fast devsel, latency 0, IRQ 262 | ||
+ | I/O ports at e000 [size=256] | ||
+ | Memory at d0604000 (64-bit, non-prefetchable) [size=4K] | ||
+ | Memory at d0600000 (64-bit, prefetchable) [size=16K] | ||
+ | Capabilities: [40] Power Management version 3 | ||
+ | Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+ | ||
+ | Capabilities: [70] Express Endpoint, MSI 01 | ||
+ | Capabilities: [b0] MSI-X: Enable- Count=4 Masked- | ||
+ | Capabilities: [d0] Vital Product Data | ||
+ | Kernel driver in use: r8169 |
Revision as of 04:00, 11 May 2015
Note: These instructions are a work-in-progress, and are not yet completed.
I will continue to update this page as I work through transcribing my notes, and capturing the setup configuration details from my completed and running Gentoo LIVA MythTV systems.
- DStulken (talk) 19:29, 10 May 2015 (UTC)
ECS LIVA: Gentoo-based MythTV Backend & Frontend Setup Guide
(Start instructions part way through: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
see also: http://forums.gentoo.org/viewtopic-p-7670034.html)
Note: This is *not* a step-by-step walk through that follows the Gentoo Handbook docs, nor is it a general-purpose guide for Gentoo on the LIVA, MythTV on Gentoo, or MythTV on the LIVA.
Instead, it is a condensed refinement of my setup notes and long list of lessens learned, which have been re-arranged and simplified to produce the easiest set of instructions sufficient to replicate my results from a new LIVA to a working BE+FE system in the shortest amount of time possible. :-)
Installation Goals:
- Absolutely bare-bones minimimal "lean-and-mean" OS and software installation
- As optimized as possible for the LIVA's specific hardware
- Full MythTV backend with multiple HD tuner support
- Full MythTV frontend with hardware-accelerated playback, LIRC remote, etc.
- Wireless networking using the wifi card that comes with the LIVA
Despite being out-of-order per the Gentoo Handbook, I'll try to leave enough comments that you can tell what is being done (and why), and also know the jumping off points for where to go for different installations for your own needs.
Feel free to make corrections, additions, or improvements, as long as you think they fit the theme and intent of my installation. :-)
Contents
Prerequisites & Setup
- Lots of time. This installation will take SEVERAL DAYS to complete.
- Previous experience with Gentoo, or a commitment to learn.
- Gentoo live media won't boot on EFI system...
- Recommendation: Use the Linux Mint 17.1 XFCE LiveUSB instead.
- A first-generation ECS LIVA from the SECOND or later production batch.
- First generation first production batch has N2806 CPU (Not recommended)
- First generation second (and later) production batch has N2807 CPU, and is the one to get.
- The low-end version with 2GB RAM and 32GB eMMC flash is plenty. (No need to spend nearly twice as much for the 64GB version.)
- At the time of this writing (May 2015), these regularly come up for sale online for $99.
- Second generation (called the "LIVA-X") has different hardware (CPU, wireless, BIOS, power method, etc, etc), and is not covered by this guide.
- Assemble the LIVA from the parts included in the box
- Create the LiveUSB stick
- Ensure you have a WIRED network connection available (wireless will not work within the Mint live environment or initial Gentoo until later on).
- Setup of Gentoo without a network, using 'sneakernet' of packages, is possible...
- Configure LIVA BIOS options as follows:
* ???? (copy from other machine)
- Boot the Mint USB
- Open a terminal window
Disk (eMMC) Partitioning
- Partition the LIVA's eMMC:
Using GParted:
- The LIVA's eMMC is /dev/mmcblk0
- Use a GPT partition table (Device -> Create Partition Table -> GPT type)
- Ignore the "fix something" warnings if they come up.
Suggested partition layout:
(sda1) /dev/mmcblk0p1 128MB fat32 'grub' BIOS boot partition (bios_grub flag) (sda2) /dev/mmcblk0p2 128MB ext2 'boot' Boot partition (sda4) /dev/mmcblk0p3 26.87GB ext4 'rootfs' Root partition (-na-) /dev/mmcblk0p4 2GB ext4 'tempData' Data Partition (NOT SWAP!)
Apply, and close GParted.
Notes:
- The 2GB 'tempData' partition is one I created so that I can save copies of database backups and config files on a separate partition in case anything happens that corrupts the root filesystem. Consider it optional.
- No swap partition on the eMMC! (It will quickly kill it!)
- No data partition on the eMMC! (32 or 64GB is waaaay too small.)
- Create a reasonable size (4-8GB) swap partition on your USB hard drive that you are going to use for your recordings.
Set partition 1's type to EF00 using gdisk (gparted will call it "boot" after this)
sudo apt-get install gdisk sudo gdisk /dev/mmcblk0 t 1 EF00 q
Initial Gentoo Installation
Wi-Fi Network
MythTV Setup
Reference Information
Hardware Information
lspci -v
00:00.0 Host bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series SoC Transaction Register (rev 0e) Subsystem: Elitegroup Computer Systems Device 99ad Flags: bus master, fast devsel, latency 0 Kernel driver in use: iosf_mbi_pci Kernel modules: iosf_mbi 00:02.0 VGA compatible controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Graphics & Display (rev 0e) (prog-if 00 [VGA controller]) Subsystem: Elitegroup Computer Systems Device 99ad Flags: bus master, fast devsel, latency 0, IRQ 261 Memory at d0000000 (32-bit, non-prefetchable) [size=4M] Memory at c0000000 (32-bit, prefetchable) [size=256M] I/O ports at f020 [size=8] Expansion ROM at <unassigned> [disabled] Capabilities: [d0] Power Management version 2 Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit- Capabilities: [b0] Vendor Specific Information: Len=07 <?> Kernel driver in use: i915 00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series USB xHCI (rev 0e) (prog-if 30 [XHCI]) Subsystem: Elitegroup Computer Systems Device 99ad Flags: bus master, medium devsel, latency 0, IRQ 263 Memory at d0700000 (64-bit, non-prefetchable) [size=64K] Capabilities: [70] Power Management version 2 Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+ Kernel driver in use: xhci_hcd 00:1a.0 Encryption controller: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Trusted Execution Engine (rev 0e) Subsystem: Elitegroup Computer Systems Device 99ad Flags: bus master, fast devsel, latency 0, IRQ 255 Memory at d0500000 (32-bit, non-prefetchable) [size=1M] Memory at d0400000 (32-bit, non-prefetchable) [size=1M] Capabilities: [80] Power Management version 3 Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit- 00:1b.0 Audio device: Intel Corporation Atom Processor Z36xxx/Z37xxx Series High Definition Audio Controller (rev 0e) Subsystem: Elitegroup Computer Systems Device 99ad Flags: bus master, fast devsel, latency 0, IRQ 264 Memory at d0714000 (64-bit, non-prefetchable) [size=16K] Capabilities: [50] Power Management version 2 Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+ Kernel driver in use: snd_hda_intel 00:1c.0 PCI bridge: Intel Corporation Device 0f48 (rev 0e) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 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: 0000000080200000-00000000803fffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Elitegroup Computer Systems Device 99ad Capabilities: [a0] Power Management version 3 Kernel driver in use: pcieport 00:1c.1 PCI bridge: Intel Corporation Device 0f4a (rev 0e) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=02, subordinate=02, sec-latency=0 I/O behind bridge: 00002000-00002fff Memory behind bridge: 80400000-805fffff Prefetchable memory behind bridge: 0000000080600000-00000000807fffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Elitegroup Computer Systems Device 99ad Capabilities: [a0] Power Management version 3 Kernel driver in use: pcieport 00:1c.2 PCI bridge: Intel Corporation Device 0f4c (rev 0e) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=03, subordinate=03, sec-latency=0 I/O behind bridge: 0000e000-0000efff Memory behind bridge: d0600000-d06fffff Prefetchable memory behind bridge: 0000000080800000-00000000809fffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Elitegroup Computer Systems Device 99ad Capabilities: [a0] Power Management version 3 Kernel driver in use: pcieport 00:1c.3 PCI bridge: Intel Corporation Device 0f4e (rev 0e) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=00, secondary=04, subordinate=04, sec-latency=0 I/O behind bridge: 00003000-00003fff Memory behind bridge: 80a00000-80bfffff Prefetchable memory behind bridge: 0000000080c00000-0000000080dfffff Capabilities: [40] Express Root Port (Slot+), MSI 00 Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit- Capabilities: [90] Subsystem: Elitegroup Computer Systems Device 99ad Capabilities: [a0] Power Management version 3 Kernel driver in use: pcieport 00:1f.0 ISA bridge: Intel Corporation Atom Processor Z36xxx/Z37xxx Series Power Control Unit (rev 0e) Subsystem: Elitegroup Computer Systems Device 99ad Flags: bus master, medium devsel, latency 0 Capabilities: [e0] Vendor Specific Information: Len=0c <?> 00:1f.3 SMBus: Intel Corporation Device 0f12 (rev 0e) Subsystem: Elitegroup Computer Systems Device 99ad Flags: medium devsel, IRQ 18 Memory at d071c000 (32-bit, non-prefetchable) [size=32] I/O ports at f000 [size=32] Capabilities: [50] Power Management version 3 03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c) Subsystem: Elitegroup Computer Systems Device 99ad Flags: bus master, fast devsel, latency 0, IRQ 262 I/O ports at e000 [size=256] Memory at d0604000 (64-bit, non-prefetchable) [size=4K] Memory at d0600000 (64-bit, prefetchable) [size=16K] Capabilities: [40] Power Management version 3 Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+ Capabilities: [70] Express Endpoint, MSI 01 Capabilities: [b0] MSI-X: Enable- Count=4 Masked- Capabilities: [d0] Vital Product Data Kernel driver in use: r8169