Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: simon1 on August 06, 2017, 11:59:37 PM

Title: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 06, 2017, 11:59:37 PM
Hello,
I am newbie, by the will of fate i need to install TyniCore(3.x) on device chuwi:hibox-hero.
Among other things, there is a memory on board of this device - emmc 64GB (memory is implemented in the form of 3 chips, biggest chip is Toshiba Thg8m5g9b0jbaie K87429 Japan 1530KAE).
There is also extended card slot - standard sd.
I create bootable flash drive according to this http://forum.tinycorelinux.net/index.php/topic,19364.0.html (http://forum.tinycorelinux.net/index.php/topic,19364.0.html) and everething seems ok, But (little hairy but around the corner).
After downloading from a flash drive, a can't see this emmc memory in /mnt/ and there are no similar devices with the name "mmc" in /dev/, rebuildfstab does't help.
blkid sees onle my bootable flash drive
dmesg | grep mmc
Quote
mmc0: SDHCI controller on ACPI [INT33BB:00] using ADMA
mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
mmc0: new ultra high speed DDR50 SDIO card at address 0001
lsmod
Quote
Module                  Size  Used by    Not tainted
cpufreq_userspace      12288  0
cpufreq_powersave      12288  0
cpufreq_conservative    12288  0
squashfs               28672  9
loop                   20480 18
mmc_block              28672  0
battery                16384  0
fjes                   24576  0
8250_dw                12288  0
ac                     12288  0
intel_vbtn             12288  0
sparse_keymap          12288  1 intel_vbtn
int3406_thermal        12288  0
video                  28672  1 int3406_thermal
lpc_ich                20480  0
backlight              12288  2 int3406_thermal,video
r8169                  53248  0
sdhci_acpi             12288  0
sdhci                  24576  1 sdhci_acpi
pcspkr                 12288  0
processor_thermal_device    12288  0
intel_soc_dts_iosf     12288  1 processor_thermal_device
mii                    12288  1 r8169
mmc_core               69632  3 mmc_block,sdhci_acpi,sdhci
int3403_thermal        12288  0
xhci_pci               12288  0
xhci_hcd               81920  1 xhci_pci
int3400_thermal        12288  0
acpi_thermal_rel       12288  1 int3400_thermal
iosf_mbi               12288  2 sdhci_acpi,intel_soc_dts_iosf
int340x_thermal_zone    12288  2 processor_thermal_device,int3403_thermal
mei_txe                16384  0
mei                    40960  1 mei_txe
Tried this solution http://wiki.laptop.org/go/Tiny_Core_Linux/eMMC (http://wiki.laptop.org/go/Tiny_Core_Linux/eMMC). On command  sudo echo mmc0:0001 > /sys/bus/mmc/drivers/mmcblk/unbind, got error "premission denied".

Question is: how to properly mount such memory to install TinyCore(3.x) on it?
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: gerald_clark on August 07, 2017, 12:17:51 AM
Try a newer version.  It will have a more recent kernel.
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 07, 2017, 12:30:28 AM
sorry, I incorrectly specified the number of the kernel, i dowloaded the lates version from http://tinycorelinux.net/downloads.html (http://tinycorelinux.net/downloads.html)
it means not 3.x, but 8.x
uname -r
Quote
Linux box 4.8.17-tinycore64 x86_64 GNU/Linux

Title: Re: Mount emmc on chuwi:hibox-hero
Post by: polikuo on August 07, 2017, 02:09:41 AM
Welcome simon1.

Just some guesses, maybe it's the naming issue ?
Usually, SD card partitions are assigned as /dev/mmcblk0p1, /dev/mmcblk0p2 ... etc.

I'd like to see what you'll get with fetch_devices (https://github.com/polikuo/tc-install/blob/master/fetch_devices).
(It's a part of tc-install.tcz, by the way.)

Or the terminal output of
Code: [Select]
fdisk -l
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 07, 2017, 02:32:24 AM
in "/dev/" there is no "*mmc*" devices.
fetch-devices
Quote
sda2   On a removable device.
sda   On a removable device.
sda1   On a removable device.
fdisk -l
Quote
Disk /dev/sda: 2051 MB, 2051013632 bytes
64 heads, 62 sectors/track, 1009 cylinders
Units = cylinders of 3968 * 512 = 2031616 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               2         600     1188416  83 Linux
/dev/sda2   *         601        1009      811456  ef EFI (FAT-12/16/32)
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: polikuo on August 07, 2017, 02:55:49 AM
Your kernel doesn't setup emmc properly.
Maybe it's the driver issue.
I'm rather inexperienced in this part.
You'll have to wait for others to help.

As for your earlier question:
Tried this solution http://wiki.laptop.org/go/Tiny_Core_Linux/eMMC (http://wiki.laptop.org/go/Tiny_Core_Linux/eMMC). On command  sudo echo mmc0:0001 > /sys/bus/mmc/drivers/mmcblk/unbind, got error "premission denied".

You can't redirect with sudo just by doing that.
You can:
Code: [Select]
# switch to root
sudo su
echo mmc0:0001 > /sys/bus/mmc/drivers/mmcblk/unbind
exit
# or run shell as root
sudo sh -c 'echo mmc0:0001 > /sys/bus/mmc/drivers/mmcblk/unbind'
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 07, 2017, 03:02:03 AM
polikuo, thanks for the answer, let's wait...
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: curaga on August 07, 2017, 04:04:06 AM
You need to find out how the mmc is connected, what driver does it use on Android or other distros.
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 07, 2017, 05:09:50 AM
here is what i findout,
if I understood correctly, emmc connected that way https://yadi.sk/i/V5yfxVHJ3Lme8c (https://yadi.sk/i/V5yfxVHJ3Lme8c)
on chuwi device preinstalled windows 10, that using driver Toshiba 064G93 (date 21.06.2006, version 10.0.14393)
on Android did't found yet...
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: Juanito on August 07, 2017, 08:34:56 AM
maybe you need one of these drivers loaded:
Code: [Select]
# MMC/SD/SDIO Host Controller Drivers
#
CONFIG_MMC_SDHCI=m
CONFIG_MMC_SDHCI_PCI=m
CONFIG_MMC_RICOH_MMC=y
CONFIG_MMC_SDHCI_ACPI=m
CONFIG_MMC_SDHCI_PLTFM=m
CONFIG_MMC_WBSD=m
CONFIG_MMC_TIFM_SD=m
CONFIG_MMC_SDRICOH_CS=m
CONFIG_MMC_CB710=m
CONFIG_MMC_VIA_SDMMC=m
CONFIG_MMC_VUB300=m
CONFIG_MMC_USHC=m
CONFIG_MMC_USDHI6ROL0=m
CONFIG_MMC_REALTEK_USB=m
CONFIG_MMC_TOSHIBA_PCI=m
CONFIG_MMC_MTK=m
CONFIG_MEMSTICK=m

If you load the pci-utils and usbutils extensions, does "lspci" or "lsusb" give any details of your device?

..something like:
Code: [Select]
$ lspci
...
03:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)

$ lsmod | grep sd
sdhci_acpi             12288  0
iosf_mbi               12288  1 sdhci_acpi
sdhci_pci              20480  0
sdhci                  24576  2 sdhci_acpi,sdhci_pci
mmc_core               69632  3 sdhci_acpi,sdhci_pci,sdhci

The drivers are at /lib/modules/4.8.17-tinycore/kernel/drivers/mmc/host
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 07, 2017, 10:43:19 PM
uploaded pci-utils and usbutils, here is results
lspci
Code: [Select]
00:00.0 Class 0600: Device 8086:2280 (rev 36)
00:02.0 Class 0300: Device 8086:22b0 (rev 36)
00:0b.0 Class 1180: Device 8086:22dc (rev 36)
00:14.0 Class 0c03: Device 8086:22b5 (rev 36)
00:1a.0 Class 1080: Device 8086:2298 (rev 36)
00:1c.0 Class 0604: Device 8086:22c8 (rev 36)
00:1f.0 Class 0601: Device 8086:229c (rev 36)
01:00.0 Class 0200: Device 10ec:8168 (rev 0c)

just in case
lspci -v
Code: [Select]
00:00.0 Class 0600: Device 8086:2280 (rev 36)
Subsystem: Device 8086:7270
Flags: bus master, fast devsel, latency 0
Kernel driver in use: iosf_mbi_pci

00:02.0 Class 0300: Device 8086:22b0 (rev 36)
Subsystem: Device 8086:7270
Flags: bus master, fast devsel, latency 0, IRQ 255
Memory at 90000000 (64-bit, non-prefetchable) [size=16M]
Memory at 80000000 (64-bit, prefetchable) [size=256M]
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 <?>

00:0b.0 Class 1180: Device 8086:22dc (rev 36)
Subsystem: Device 8086:7270
Flags: fast devsel, IRQ 116
Memory at 9153b000 (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

00:14.0 Class 0c03: Device 8086:22b5 (rev 36) (prog-if 30)
Subsystem: Device 8086:7270
Flags: bus master, medium devsel, latency 0, IRQ 119
Memory at 91500000 (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 Class 1080: Device 8086:2298 (rev 36)
Subsystem: Device 8086:7270
Flags: bus master, fast devsel, latency 0, IRQ 117
Memory at 91300000 (32-bit, non-prefetchable) [size=1M]
Memory at 91200000 (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

00:1c.0 Class 0604: Device 8086:22c8 (rev 36)
Flags: bus master, fast devsel, latency 0, IRQ 115
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000e000-0000efff [size=4K]
Memory behind bridge: 91400000-914fffff [size=1M]
Prefetchable memory behind bridge: None
Capabilities: [40] Express Root Port (Slot+), MSI 00
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Device 8086:7270
Capabilities: [a0] Power Management version 3
Capabilities: [100] #00
Capabilities: [200] L1 PM Substates
Kernel driver in use: pcieport

00:1f.0 Class 0601: Device 8086:229c (rev 36)
Subsystem: Device 8086:7270
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
Kernel driver in use: lpc_ich

01:00.0 Class 0200: Device 10ec:8168 (rev 0c)
Subsystem: Device 10ec:0123
Flags: bus master, fast devsel, latency 0, IRQ 118
I/O ports at e000 [size=256]
Memory at 91404000 (64-bit, non-prefetchable) [size=4K]
Memory at 91400000 (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
Capabilities: [100] Advanced Error Reporting
Capabilities: [140] Virtual Channel
Capabilities: [160] Device Serial Number 01-00-00-00-68-4c-e0-00
Capabilities: [170] Latency Tolerance Reporting
Kernel driver in use: r8169

lsusb -v
Code: [Select]
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         3
  bMaxPacketSize0         9
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0003 3.0 root hub
  bcdDevice            4.08
  iManufacturer           3 Linux 4.8.17-tinycore64 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 0000:00:14.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           31
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
        bMaxBurst               0
Hub Descriptor:
  bLength              12
  bDescriptorType      42
  nNbrPorts             6
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  bHubDecLat          0.0 micro seconds
  wHubDelay             0 nano seconds
  DeviceRemovable    0x00
 Hub Port Status:
   Port 1: 0000.02a0 5Gbps power Rx.Detect
   Port 2: 0000.02a0 5Gbps power Rx.Detect
   Port 3: 0000.02a0 5Gbps power Rx.Detect
   Port 4: 0000.02a0 5Gbps power Rx.Detect
   Port 5: 0000.02a0 5Gbps power Rx.Detect
   Port 6: 0000.02a0 5Gbps power Rx.Detect
Binary Object Store Descriptor:
  bLength                 5
  bDescriptorType        15
  wTotalLength           15
  bNumDeviceCaps          1
  SuperSpeed USB Device Capability:
    bLength                10
    bDescriptorType        16
    bDevCapabilityType      3
    bmAttributes         0x02
      Latency Tolerance Messages (LTM) Supported
    wSpeedsSupported   0x0008
      Device can operate at SuperSpeed (5Gbps)
    bFunctionalitySupport   3
      Lowest fully-functional device speed is SuperSpeed (5Gbps)
    bU1DevExitLat          10 micro seconds
    bU2DevExitLat         512 micro seconds
Device Status:     0x0001
  Self Powered

Bus 001 Device 004: ID 0c40:8000 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0c40
  idProduct          0x8000
  bcdDevice            0.01
  iManufacturer           1 ELMCU
  iProduct                2 iPazzPort
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      77
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      2 Mouse
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     104
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0007  1x 7 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 003: ID 1c4f:0026 SiGma Micro Keyboard
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1c4f SiGma Micro
  idProduct          0x0026 Keyboard
  bcdDevice            1.10
  iManufacturer           1 SIGMACHIP
  iProduct                2 USB Keyboard
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           59
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      54
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      50
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0003  1x 3 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp. Flash Drive
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x058f Alcor Micro Corp.
  idProduct          0x6387 Flash Drive
  bcdDevice            1.41
  iManufacturer           1 JetFlash
  iProduct                2 Mass Storage Device
  iSerial                 3 SKQ0J7VG
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            4.08
  iManufacturer           3 Linux 4.8.17-tinycore64 xhci-hcd
  iProduct                2 xHCI Host Controller
  iSerial                 1 0000:00:14.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             7
  wHubCharacteristic 0x000a
    No power switching (usb 1.0)
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       10 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0503 highspeed power enable connect
   Port 3: 0000.0303 lowspeed power enable connect
   Port 4: 0000.0303 lowspeed power enable connect
   Port 5: 0000.0100 power
   Port 6: 0000.0100 power
   Port 7: 0000.0100 power
Device Status:     0x0001
  Self Powered

lsmod | grep sd
Code: [Select]
sdhci_acpi             12288  0
sdhci                  24576  1 sdhci_acpi
mmc_core               69632  2 sdhci_acpi,sdhci
iosf_mbi               12288  2 sdhci_acpi,intel_soc_dts_iosf
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: Juanito on August 08, 2017, 05:21:02 AM
Oops, it shouldn't look like this:
Code: [Select]
$ lspci
...
03:00.0 Class 0805: Device 1217:8520 (rev 01)

..but should look like this:
Code: [Select]
$ lspci
...
03:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)

I corrected the pci-utils extension, could you update your copy and try again?
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 08, 2017, 06:15:19 AM
done
lspci
Code: [Select]
00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 36)
00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers (rev 36)
00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller (rev 36)
00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 36)
00:16.0 USB controller: Intel Corporation Device 22b7 (rev 36)
00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 36)
00:1c.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 (rev 36)
00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 36)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

but looks like my sd/mmc devices gone somewhere...
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: Juanito on August 08, 2017, 06:39:04 AM
I guess it is not a pci device...

Could you try the following:
Code: [Select]
$ tce-load -i usbutils
$ sudo update-usbids.sh
$ lsusb
..just to double-check it is not a usb device either
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: Juanito on August 08, 2017, 06:48:18 AM
you could also try this (since windows uses a toshiba driver):
Code: [Select]
$ sudo modprobe toshsd..and examine dmesg to see if anything relevant is reported when you try to load the driver
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 08, 2017, 10:42:41 PM
lsusb (after update-usbids.sh) gives same
Code: [Select]
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0c40:8000 
Bus 001 Device 003: ID 1c4f:0026 SiGma Micro Keyboard
Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp. Flash Drive
Bus 001 Device 005: ID 13fe:4200 Kingston Technology Company Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: [Select]
sudo modprobe toshsd
also gives no effect, before and after modprobe, command dmesg gives same, nothing new arrived
 
Code: [Select]
$ dmesg | grep mmc

mmc0: SDHCI controller on ACPI [INT33BB:00] using ADMA
mmc0: queuing unknown CIS tuple 0x80 (2 bytes)
mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
mmc0: queuing unknown CIS tuple 0x80 (3 bytes)
mmc0: queuing unknown CIS tuple 0x80 (7 bytes)
mmc0: new ultra high speed DDR50 SDIO card at address 0001
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: Juanito on August 09, 2017, 03:20:42 AM
hmm - as previously mentioned, you might need to try another linux distro and see if an appropriate kernel driver is loaded
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 09, 2017, 05:52:49 AM
ok, so tried Ubuntu 16.04.3, all mmc devices are in there places, can be seen and used
further in Ubuntu
Code: [Select]
lsmod | grep mc

mmc_block              36864  6

Code: [Select]
lsmod | grep sd

btsdio                 16384  0
bluetooth             557056  9 btsdio,bnep
sdhci_acpi             16384  0
sdhci                  45056  1 sdhci_acpi

Code: [Select]
modinfo mmc_block

filename:       /lib/modules/4.10.0-28-generic/kernel/drivers/mmc/core/mmc_block.ko
description:    Multimedia Card (MMC) block device driver
license:        GPL
alias:          mmc:block
srcversion:     0059BE51E907D4F0ED58B0E
depends:       
intree:         Y
vermagic:       4.10.0-28-generic SMP mod_unload
parm:           perdev_minors:Minors numbers to allocate per device (int)

Code: [Select]
lsusb

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0c40:8000 
Bus 001 Device 003: ID 1c4f:0026 SiGma Micro Keyboard
Bus 001 Device 002: ID 13fe:4200 Kingston Technology Company Inc.
Bus 001 Device 005: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code: [Select]
lspci

00:00.0 Host bridge: Intel Corporation Device 2280 (rev 36)
00:02.0 VGA compatible controller: Intel Corporation Device 22b0 (rev 36)
00:0b.0 Signal processing controller: Intel Corporation Device 22dc (rev 36)
00:14.0 USB controller: Intel Corporation Device 22b5 (rev 36)
00:16.0 USB controller: Intel Corporation Device 22b7 (rev 36)
00:1a.0 Encryption controller: Intel Corporation Device 2298 (rev 36)
00:1c.0 PCI bridge: Intel Corporation Device 22c8 (rev 36)
00:1f.0 ISA bridge: Intel Corporation Device 229c (rev 36)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

is it possible use this driver in TinyCore? Of course, if I found the right file.

Title: Re: Mount emmc on chuwi:hibox-hero
Post by: Juanito on August 09, 2017, 06:12:03 AM
mmc_block is in the base, so you can just "modprobe" it
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 09, 2017, 06:46:14 AM
but mms_block was in memory by default, after boot TinyCore64 lsmod shows, that mms_block already in memory and it does not give the desired result, also tried "modprobe" it and no result to

Code: [Select]
lsmod

Module                  Size  Used by    Not tainted
cpufreq_userspace      12288  0
cpufreq_powersave      12288  0
cpufreq_conservative    12288  0
squashfs               28672  9
loop                   20480 18
[u]mmc_block              28672  0[/u]
battery                16384  0
fjes                   24576  0
8250_dw                12288  0
ac                     12288  0
intel_vbtn             12288  0
sparse_keymap          12288  1 intel_vbtn
int3406_thermal        12288  0
video                  28672  1 int3406_thermal
lpc_ich                20480  0
backlight              12288  2 int3406_thermal,video
r8169                  53248  0
sdhci_acpi             12288  0
sdhci                  24576  1 sdhci_acpi
pcspkr                 12288  0
processor_thermal_device    12288  0
intel_soc_dts_iosf     12288  1 processor_thermal_device
mii                    12288  1 r8169
mmc_core               69632  3 mmc_block,sdhci_acpi,sdhci
int3403_thermal        12288  0
xhci_pci               12288  0
xhci_hcd               81920  1 xhci_pci
int3400_thermal        12288  0
acpi_thermal_rel       12288  1 int3400_thermal
iosf_mbi               12288  2 sdhci_acpi,intel_soc_dts_iosf
int340x_thermal_zone    12288  2 processor_thermal_device,int3403_thermal
mei_txe                16384  0
mei                    40960  1 mei_txe

or you mean take mmc_block file from Ubuntu, then "modeprobe -r mmc_block" in TinyCore, then replace mmc_block file in TinyCore and "modeprobe mmc_block"?
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: Juanito on August 09, 2017, 07:10:05 AM
I had assumed that mmc_block was not loaded on your system.

You will not be able to use mmc_block from ubuntu on tinycore.

On my machine mmc_block is loaded automatically and an sd card appears at /dev/mmcblk0
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 09, 2017, 10:03:32 PM
Juanito, as i understand, conclusion here is - no drivers for such emmc device?
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: Juanito on August 10, 2017, 03:12:12 AM
Without the hardware to test and with little detail available on the actual hardware specification, it is difficult to know.
Title: Re: Mount emmc on chuwi:hibox-hero
Post by: simon1 on August 10, 2017, 03:36:50 AM
polikuo, curaga, Juanito, thank you for your time, the question is closed.