WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline archieb0ld

  • Newbie
  • *
  • Posts: 20
GPD Pocket eMMC not seen and GUI not loading
« on: November 08, 2018, 05:58:23 AM »
I'm trying to dual-boot Ubuntu and Tinycore on a GPD Pocket which only has eMMC storage. I can boot TC without a problem, but I cannot mount /dev/mmcblk0 because TC can't see it. I see that mmc_core module is loaded on boot, but after digging around the net, I also tried to modprobe mmc_block, but that didn't help. Any suggestions? Any other modules I need to load maybe?

My grub2 config looks like this:
Code: [Select]
menuentry "TC9" {
  linux /boot/tcvmlinuz64 quiet multivt showapps tz=EET-2EEST laptop
  initrd /boot/corepure64.gz /boot/modules64.gz
}

I also thought about giving x86 CorePlus a try to have a full GUI environment out of the box, but for some reason it only boots to CLI. The corresponding grub2 entry is:
Code: [Select]
menuentry "TC9 x86" {
  set isofile="/home/user/TinyCore-current.iso"
  loopback loop $isofile
  linux (loop)/boot/vmlinuz findiso=${isofile} quiet
  initrd (loop)/boot/core.gz
}

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #1 on: November 08, 2018, 06:48:05 AM »
Hi archieb0ld
What are the results of these commands:
Code: [Select]
dmesg | grep mmc
fdisk -l

Offline archieb0ld

  • Newbie
  • *
  • Posts: 20
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #2 on: November 08, 2018, 07:16:58 AM »
on a working ubuntu system:
Code: [Select]
dmesg | grep mmc
[    2.993886] mmc0: SDHCI controller on ACPI [80860F14:00] using ADMA
[    3.013047] mmc1: SDHCI controller on ACPI [80860F14:01] using ADMA
[    3.104179] mmc0: new HS200 MMC card at address 0001
[    3.108585] mmcblk0: mmc0:0001 DJNB4R 116 GiB
[    3.109025] mmcblk0boot0: mmc0:0001 DJNB4R partition 1 4.00 MiB
[    3.110116] mmcblk0boot1: mmc0:0001 DJNB4R partition 2 4.00 MiB
[    3.110288] mmcblk0rpmb: mmc0:0001 DJNB4R partition 3 4.00 MiB, chardev (243:0)
[    3.112916]  mmcblk0: p1 p2 p3 p4 p5
[    4.264296] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    4.859096] EXT4-fs (mmcblk0p5): re-mounted. Opts: errors=remount-ro

Code: [Select]
sudo fdisk -l
Disk /dev/mmcblk0: 116,5 GiB, 125069950976 bytes, 244277248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5C568493-45BD-4CB4-8DBA-6640B7144464

Device             Start       End   Sectors  Size Type
/dev/mmcblk0p1      2048    206847    204800  100M EFI System
/dev/mmcblk0p2    206848    239615     32768   16M Microsoft reserved
/dev/mmcblk0p3    239616  67348479  67108864   32G Microsoft basic data
/dev/mmcblk0p4 242636800 244275199   1638400  800M Windows recovery environment
/dev/mmcblk0p5  67348480 242636799 175288320 83,6G Linux filesystem

Partition table entries are not in disk order.


Disk /dev/mmcblk0boot1: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mmcblk0boot0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

On TC both return nothing

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #3 on: November 08, 2018, 07:36:01 AM »
Hi archieb0ld
Maybe try running this on your Ubuntu system:
Code: [Select]
lsmod  | grep mmcto see which modules are needed.

I also noticed this:
Quote
Code: [Select]
Device             Start       End   Sectors  Size Type
/dev/mmcblk0p1      2048    206847    204800  100M EFI System
I don't know anything about EFI so I don't know if that would cause any problems.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #4 on: November 08, 2018, 07:43:19 AM »
Hi archieb0ld
Post the result of this from your Ubuntu system:
Code: [Select]
lsmodbecause you may require some modules not containing  mmc  like  sdhci.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #5 on: November 08, 2018, 08:08:40 AM »
Hi archieb0ld
Just a guess on my part, but based on your dmesg result, you may need to modprobe  sdhci-acpi.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #6 on: November 08, 2018, 08:33:29 AM »
[...]
I also thought about giving x86 CorePlus a try to have a full GUI environment out of the box, but for some reason it only boots to CLI. The corresponding grub2 entry is:
Code: [Select]
menuentry "TC9 x86" {
  set isofile="/home/user/TinyCore-current.iso"
  loopback loop $isofile
  linux (loop)/boot/vmlinuz findiso=${isofile} quiet
  initrd (loop)/boot/core.gz
}

Change
Code: [Select]
findiso=${isofile}to just
Code: [Select]
iso=${isofile}
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 #7 on: November 08, 2018, 09:30:02 AM »
Hi archieb0ld
Post the result of this from your Ubuntu system:
Code: [Select]
lsmodbecause you may require some modules not containing  mmc  like  sdhci.

I checked sdhci modules, they are loaded in TC as well
lsmod ubuntu:
Code: [Select]
Module                  Size  Used by
rfcomm                 77824  12
cmac                   16384  1
bnep                   20480  2
nls_iso8859_1          16384  1
input_leds             16384  0
fusb302                28672  0
tcpm                   45056  1 fusb302
typec                  24576  1 tcpm
max17042_battery       20480  0
snd_soc_sst_cht_bsw_rt5645    20480  0
joydev                 24576  0
gpio_keys              20480  0
intel_rapl             20480  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             212992  0
kvm                   598016  1 kvm_intel
irqbypass              16384  1 kvm
punit_atom_debug       16384  0
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
brcmfmac              315392  0
pcbc                   16384  0
brcmutil               16384  1 brcmfmac
aesni_intel           188416  2
cfg80211              622592  1 brcmfmac
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel,aesni_intel
intel_cstate           20480  0
bq24190_charger        28672  1
snd_intel_sst_acpi     16384  1
snd_intel_sst_core     53248  1 snd_intel_sst_acpi
extcon_intel_cht_wc    16384  0
snd_soc_rt5645        143360  2 snd_soc_sst_cht_bsw_rt5645
snd_soc_sst_atom_hifi2_platform   102400  3 snd_intel_sst_core
snd_soc_rl6231         16384  1 snd_soc_rt5645
snd_soc_acpi           16384  2 snd_intel_sst_acpi,snd_soc_sst_cht_bsw_rt5645
snd_soc_acpi_intel_match    20480  1 snd_intel_sst_acpi
snd_soc_core          241664  3 snd_soc_sst_atom_hifi2_platform,snd_soc_rt5645,snd_soc_sst_cht_bsw_rt5645
snd_compress           20480  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hdmi_lpe_audio     24576  0
shpchp                 36864  0
lpc_ich                24576  0
snd_pcm                98304  6 snd_hdmi_lpe_audio,snd_soc_sst_atom_hifi2_platform,snd_soc_core,snd_soc_rt5645,snd_soc_sst_cht_bsw_rt5645,snd_pcm_dmaengine
mei_txe                20480  0
mei                    90112  1 mei_txe
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
snd_rawmidi            32768  1 snd_seq_midi
processor_thermal_device    16384  0
intel_soc_dts_iosf     16384  1 processor_thermal_device
intel_soc_pmic_bxtwc    16384  0
snd_seq                65536  2 snd_seq_midi,snd_seq_midi_event
intel_pmc_ipc          20480  1 intel_soc_pmic_bxtwc
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer              32768  2 snd_seq,snd_pcm
intel_cht_int33fe      16384  0
dw_dmac                16384  0
intel_hid              16384  0
dw_dmac_core           24576  1 dw_dmac
sparse_keymap          16384  1 intel_hid
hci_uart              106496  0
goodix                 20480  0
btqca                  16384  1 hci_uart
snd                    81920  9 snd_seq,snd_seq_device,snd_timer,snd_compress,snd_hdmi_lpe_audio,snd_soc_sst_atom_hifi2_platform,snd_soc_core,snd_pcm,snd_rawmidi
8250_dw                16384  0
soundcore              16384  1 snd
spi_pxa2xx_platform    24576  0
mac_hid                16384  0
dptf_power             16384  0
int3406_thermal        16384  0
int3403_thermal        16384  0
int340x_thermal_zone    16384  2 int3403_thermal,processor_thermal_device
int3400_thermal        16384  0
soc_button_array       16384  0
acpi_thermal_rel       16384  1 int3400_thermal
intel_int0002_vgpio    16384  1
acpi_pad              180224  0
sch_fq_codel           20480  2
parport_pc             36864  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 parport_pc,lp,ppdev
ip_tables              28672  0
x_tables               40960  1 ip_tables
autofs4                40960  2
overlay                77824  0
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  2 hci_uart,btusb
btintel                16384  2 hci_uart,btusb
bluetooth             548864  43 btrtl,btqca,btintel,hci_uart,btbcm,bnep,btusb,rfcomm
ecdh_generic           24576  2 bluetooth
hid_generic            16384  0
usbhid                 49152  0
hid                   118784  2 usbhid,hid_generic
mmc_block              36864  3
i915                 1617920  3
i2c_algo_bit           16384  1 i915
drm_kms_helper        172032  1 i915
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
i2c_cht_wc             16384  0
drm                   401408  4 drm_kms_helper,i915
video                  45056  2 int3406_thermal,i915
sdhci_acpi             16384  0
pwm_lpss_platform      16384  0
sdhci                  49152  1 sdhci_acpi
pwm_lpss               16384  2 pwm_lpss_platform

lsmod tc:
Code: [Select]
Module                  Size  Used by    Not tainted
cpufreq_userspace      12288  0
cpufreq_conservative    12288  0
cpufreq_powersave      12288  0
intel_cht_int33fe      12288  0
battery                16384  0
8250_dw                12288  0
sdhci_acpi             12288  0
sdhci                  32768  1 sdhci_acpi
mmc_core               73728  2 sdhci_acpi,sdhci
pcspkr                 12288  0
squashfs               28672  0
zstd_decompress        77824  1 squashfs
xxhash                 12288  1 zstd_decompress
int3406_thermal        12288  0
video                  32768  1 int3406_thermal
backlight              12288  2 int3406_thermal,video
int3403_thermal        12288  0
int3400_thermal        12288  0
acpi_thermal_rel       12288  1 int3400_thermal
processor_thermal_device    12288  0
lpc_ich                20480  0
intel_soc_dts_iosf     12288  1 processor_thermal_device
int340x_thermal_zone    12288  2 int3403_thermal,processor_thermal_device
intel_hid              12288  0
sparse_keymap          12288  1 intel_hid
mei_txe                16384  0
mei                    40960  1 mei_txe
loop                   20480  0
xhci_pci               12288  0
xhci_hcd               81920  1 xhci_pci
iosf_mbi               12288  2 sdhci_acpi,intel_soc_dts_iosf

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #8 on: November 08, 2018, 10:01:58 AM »
Hi archieb0ld
I see Ubuntu has  mmc_block  loaded but Tinycore does not.

Offline archieb0ld

  • Newbie
  • *
  • Posts: 20
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #9 on: November 08, 2018, 10:48:03 AM »
Rich, as I mentioned in my initial post, I tried to modprobe mmc_block and also ran a command to rescan the pci bus using /sys/bus/pci/rescan

Offline archieb0ld

  • Newbie
  • *
  • Posts: 20
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #10 on: November 08, 2018, 10:49:33 AM »
[...]
I also thought about giving x86 CorePlus a try to have a full GUI environment out of the box, but for some reason it only boots to CLI. The corresponding grub2 entry is:
Code: [Select]
menuentry "TC9 x86" {
  set isofile="/home/user/TinyCore-current.iso"
  loopback loop $isofile
  linux (loop)/boot/vmlinuz findiso=${isofile} quiet
  initrd (loop)/boot/core.gz
}


Change
Code: [Select]
findiso=${isofile}to just
Code: [Select]
iso=${isofile}


that didn't help, still neither gui, nor /dev/mmcblk0
« Last Edit: November 08, 2018, 10:51:31 AM by archieb0ld »

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #11 on: November 08, 2018, 11:52:30 AM »
Oh, also the path must be something like
Code: [Select]
/mnt/sda1/TinyCore-current.iso
because grub doesn't know where your home is.
Has nothing to do with mmc though.
Download a copy and keep it handy: Core book ;)

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #12 on: November 08, 2018, 11:55:58 AM »
Also, you might need to specify the partition in grub.
for example
Code: [Select]
loopback loop (hd0,msdos1)/boot/tce-5.x/boot/${isofile}
Download a copy and keep it handy: Core book ;)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #13 on: November 08, 2018, 11:45:01 PM »
I don't know anything about EFI so I don't know if that would cause any problems.

It's normal to have an efi partition to enable (u)efi booting - it behaves like a dos partition.

On my machine running tinycore, inserting an sd card into the slot causes the appropriate modules to be loaded and /dev/mmcblk0 is created automatically - there is however, another thread in the forums where a different user experiences the same problem though.

it might be worth loading the udev-extra extension in CorePure64 and/or using the boot code "waitusb=10" to see if that helps?

Offline archieb0ld

  • Newbie
  • *
  • Posts: 20
Re: GPD Pocket eMMC not seen and GUI not loading
« Reply #14 on: November 09, 2018, 03:39:39 AM »
Oh, also the path must be something like
Code: [Select]
/mnt/sda1/TinyCore-current.iso
because grub doesn't know where your home is.
Has nothing to do with mmc though.
but how would you explain the fact that Tinycore still boots into the CLI without knowing where my home is? Maybe I need to specify some boot options? I've tried "vga=" and "desktop=" options, but "xsetup" is not found and neither is "startx"