WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #15 on: November 09, 2018, 06: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: 1702
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #16 on: November 09, 2018, 08: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

  • Newbie
  • *
  • Posts: 20
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #17 on: November 13, 2018, 08: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: 14801
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #18 on: November 14, 2018, 12:34:38 AM »
Did you try loading the udev-extra extension?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #19 on: November 14, 2018, 04: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

  • Newbie
  • *
  • Posts: 20
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #20 on: November 14, 2018, 04: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, 04:33:23 PM by archieb0ld »

Offline Juanito

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

corepure64.gz = rootfs64.gz + modules64.gz

Offline archieb0ld

  • Newbie
  • *
  • Posts: 20
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #22 on: November 19, 2018, 08:44:21 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

Sorry for misinforming you. Upon closer inspection, it turned out that the new device that popped up in /dev/disk/by-uuid is actually a symlink to /dev/zram0, which is clearly not the eMMC device. I somehow messed up the UUID.

Tried loading pci-hotplug extension and modprobing shpchp, but still nothing.

Here's the output of blkid on Ubuntu:
Code: [Select]
/dev/mmcblk0: PTUUID="5c568493-45bd-4cb4-8dba-6640b7144464" PTTYPE="gpt"
/dev/mmcblk0p1: LABEL="SYSTEM" UUID="C4FD-2BDD" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="2c66add8-ed34-48a4-adf7-229109f6d4ea"
/dev/mmcblk0p2: PARTLABEL="Microsoft reserved partition" PARTUUID="64666d5c-f92e-4ea2-ba07-2c3754e28265"
/dev/mmcblk0p3: LABEL="Local Disk" UUID="F68A01FC8A01BA5F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="156a4989-b15c-4889-945e-2d465ef52bb2"
/dev/mmcblk0p4: LABEL="Recovery" UUID="0A560288560274AB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6150f9b4-7d91-4108-9b49-6a0011ad658d"
/dev/mmcblk0p5: UUID="d553d5aa-365e-4196-aa5e-c7da105b9f94" TYPE="ext4" PARTUUID="fb088592-9a20-4515-a9e9-9111dde9ed64"

I will try reaching out to the person who initially ported Ubuntu to the GPD Pocket, but maybe there would be any other suggestions?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #23 on: November 20, 2018, 12:09:35 AM »
Have you loaded the pci-hotplug-KERNEL extension?

If so, is the shpchp module loaded automatically or do you need to do it manually?

Offline archieb0ld

  • Newbie
  • *
  • Posts: 20
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #24 on: November 20, 2018, 12:55:10 AM »
yes, I have, and shpchp is loaded automatically. I assume there is something to do with the Broadcom chip. Maybe the eMMC drive is somehow related to the brcmfmac kernel module

Offline archieb0ld

  • Newbie
  • *
  • Posts: 20
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #25 on: November 20, 2018, 12:15:54 PM »
yes, I have, and shpchp is loaded automatically. I assume there is something to do with the Broadcom chip. Maybe the eMMC drive is somehow related to the brcmfmac kernel module
couldn't edit my own reply, but I just re-checked. shpcp needs to be manually loaded, but it doesn't help anyways