WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: GPD Pocket eMMC not seen and GUI not loading  (Read 382 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10160
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #15 on: November 09, 2018, 03:43:51 AM »
That would seem to indicate that Xvesa and its dependencies are not loaded - they are present in the cde folder in the TinyCore iso.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1700
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #16 on: November 09, 2018, 05:10:56 AM »
Quote
but how would you explain the fact that Tinycore still boots into the CLI without knowing where my home is?
The boot loader loaded the kernel and initrd into memory. Linux doesn't know where it was loaded from and can't perform subsequent actions on files in that same unknown location but the essential Tiny Core system is already up and running. Scripts contained in the initrd (now in memory) search for Tiny Core specific directories (tce) on attached devices if not otherwise specified via kernel boot code. If a tce directory was found it will be used for extensions, user data etc.
Download a copy and keep it handy: Core book ;)

Offline archieb0ld

  • WikiUser
  • *
  • Posts: 17
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #17 on: November 13, 2018, 05:24:33 PM »
First of all, I forgot to thank everyone who has been helping me so far.
So after banging my head against the wall last night, this is what I can say.
Going into the GRUB command line, I listed the partitions with "ls" to see if I can manually set root and load the kernel and initrd.
Grub lists the desired partition as (hd0,gpt5) and I'm able to view its contents from within GRUB console, but when loading TC it still doesn't see /dev/mmcblk
I've tried different options, including booting with "waitusb=10", setting UUID in boot options, doing "insmod" of part_gpt and gzio in GRUB (basically copying everything from Ubuntu GRUB menuentries) and even compiling the kernel for the first time (yay!) setting all MMC related options to Y, but still nothing.
I also wonder why "mmc_block" module is not loaded by default in TC while "mmc_core" is. Does anyone have a clue why?
So I assume there is still something in kernel options I might need to configure.
I did a diff between the .config used to compile Ubuntu and TC kernels. Now, I know it's a lot of text, but if anyone here has any experience compiling kernels for eMMC devices, pointing me in the right direction would be much appreciated

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10160
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #18 on: November 13, 2018, 09:34:38 PM »
Did you try loading the udev-extra extension?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 9874
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #19 on: November 14, 2018, 01:23:10 AM »
"lspci -vnn" on Ubuntu might tell something, look under the MMC part's "kernel driver in use" as well as the pci id.
The only barriers that can stop you are the ones you create yourself.

Offline archieb0ld

  • WikiUser
  • *
  • Posts: 17
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #20 on: November 14, 2018, 01:13:48 PM »
Did you try loading the udev-extra extension?
we're getting closer. Now the MMC drive shows up in /dev/disk/by-uuid, but mounting it fails with error "device or resource busy". Dmesg doesn't report a new drive and fdisk doesn't list the drive

"lspci -vnn" on Ubuntu might tell something, look under the MMC part's "kernel driver in use" as well as the pci id.
no mention of MMC there, only PCI and ISA bridges
Code: [Select]
00:00.0 Host bridge [0600]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register [8086:2280] (rev 34)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register [8086:7270]
Flags: bus master, fast devsel, latency 0
Kernel driver in use: iosf_mbi_pci

00:02.0 VGA compatible controller [0300]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers [8086:22b0] (rev 34) (prog-if 00 [VGA controller])
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers [8086:7270]
Flags: bus master, fast devsel, latency 0, IRQ 123
Memory at a0000000 (64-bit, non-prefetchable) [size=16M]
Memory at 80000000 (64-bit, prefetchable) [size=512M]
I/O ports at f000 [size=64]
[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
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
Kernel modules: i915

00:0b.0 Signal processing controller [1180]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller [8086:22dc] (rev 34)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller [8086:7270]
Flags: fast devsel, IRQ 129
Memory at a1a3b000 (64-bit, non-prefetchable) [size=4K]
Capabilities: [40] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [50] Power Management version 3
Kernel driver in use: proc_thermal
Kernel modules: processor_thermal_device

00:14.0 USB controller [0c03]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller [8086:22b5] (rev 34) (prog-if 30 [XHCI])
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller [8086:7270]
Flags: bus master, medium devsel, latency 0, IRQ 121
Memory at a1a00000 (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 [1080]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine [8086:2298] (rev 34)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine [8086:7270]
Flags: bus master, fast devsel, latency 0, IRQ 128
Memory at a1900000 (32-bit, non-prefetchable) [size=1M]
Memory at a1800000 (32-bit, non-prefetchable) [size=1M]
Capabilities: [80] Power Management version 3
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit-
Kernel driver in use: mei_txe
Kernel modules: mei_txe

00:1c.0 PCI bridge [0604]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 [8086:22c8] (rev 34) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0, IRQ 117
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
Memory behind bridge: a1000000-a14fffff
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port [8086:7270]
Capabilities: [a0] Power Management version 3
Capabilities: [100] #00
Capabilities: [200] L1 PM Substates
Kernel driver in use: pcieport
Kernel modules: shpchp

00:1f.0 ISA bridge [0601]: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU [8086:229c] (rev 34)
Subsystem: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU [8086:7270]
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich

01:00.0 Network controller [0280]: Broadcom Limited BCM4356 802.11ac Wireless Network Adapter [14e4:43ec] (rev 02)
Subsystem: Gemtek Technology Co., Ltd BCM4356 802.11ac Wireless Network Adapter [17f9:0036]
Flags: bus master, fast devsel, latency 0, IRQ 135
Memory at a1400000 (64-bit, non-prefetchable) [size=32K]
Memory at a1000000 (64-bit, non-prefetchable) [size=4M]
Capabilities: [48] Power Management version 3
Capabilities: [58] MSI: Enable+ Count=1/16 Maskable- 64bit+
Capabilities: [68] Vendor Specific Information: Len=44 <?>
Capabilities: [ac] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Device Serial Number 00-00-38-ff-ff-00-38-0f
Capabilities: [150] Power Budgeting <?>
Capabilities: [160] Virtual Channel
Capabilities: [1b0] Latency Tolerance Reporting
Capabilities: [220] #15
Capabilities: [240] L1 PM Substates
Kernel driver in use: brcmfmac
Kernel modules: brcmfmac

now that I have tried modprobing, I see that "shpchp" is not found in modules.dep. However, is see in TC .config CONFIG_HOTPLUG_PCI_SHPC=m
I'm not sure how this modules thing works exactly, but shouldn't I be able to "modprobe shpchp"?

As a side question, should I use "corepure64.gz" or "rootfs64.gz" in GRUB? I see someone in the forum using rootfs.gz, but I have personally always used corepure.gz
« Last Edit: November 14, 2018, 01:33:23 PM by archieb0ld »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 10160
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #21 on: November 14, 2018, 09:06:17 PM »
Using the apps gui provides function shows shpchp to be provided by the pci-hotplug-KERNEL extension.

corepure64.gz = rootfs64.gz + modules64.gz