danielotero / linux-on-hi10

My attempt to provide full Linux support to Chuwi Hi10 Pro
53 stars 10 forks source link

working sd card #4

Open pgrobelny opened 7 years ago

pgrobelny commented 7 years ago

Hello I made my SDHC sard working by changing sdcard from ACPI mode to PCI in bios under bridges settings :) try it yourself

aminehmida commented 7 years ago

@crackgm thanks for sharing ❤️ I hope that someone will be able to fix the remaining problems too (Speekers, cameras and accelerometer)

pgrobelny commented 7 years ago

did you get it working too?

danielotero commented 7 years ago

Thank you for sharing it! As soon as I test it, I will let you know if it works for me.

If you feel like contributing in some way, don't hesitate to ask for write permission, as I don't have much time to fiddle with the device by myself.

On 26 October 2017 16:53:01 CEST, crackgm notifications@github.com wrote:

Hello I made my SDHC sard working by changing sdcard from ACPI mode to PCI in bios under bridges settings :) try it yourself

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/danielotero/linux-on-hi10/issues/4

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.

danielotero commented 7 years ago

My BIOS is awfully detailed. Do you mean the settings under Chipset/South Bridge/LPSS & SCC Configuration/SCC SD Card Support?

If I change it to PCI Mode the card does not even shows on the kernel log. In ACPI mode at least I get:

error: -110 whilst initialising SD card

Do we have the same device? Mine is a Chuwi Hi10 Pro Z8350 S/N HQ64G4217010xxxx

pgrobelny commented 7 years ago

The same tablet. Maybe kernel? I use antergos with newest kernel

Orochimarufan commented 7 years ago

As I noted in a different issue, the microSD slot worked right away for me.

Possibly relevant System info:

[taeyeon:~] % cat /sys/block/mmcblk2/device/uevent
DRIVER=mmcblk
MMC_TYPE=SD
MMC_NAME=GD4QT
MODALIAS=mmc:block
[taeyeon:~] % uname -a
Linux 4.13.0-3-hi10 #1 SMP PREEMPT Wed Aug 30 11:49:11 UTC 2017 x86_64 GNU/Linux
[taeyeon:~] % sudo dmidecode
# dmidecode 3.1
[...]
BIOS Information
        Vendor: American Megatrends Inc.
        Version: 5.11
        Release Date: 12/23/2016
[...]
System Information
        Manufacturer: CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD
        Product Name: Hi10 pro tablet
        SKU Number: P1D6_C109D
[...]
Base Board Information
        Manufacturer: Hampoo
        Product Name: Cherry Trail CR
        Version: V100
[...]

S/N is HQ64G421703XXXXX Bios settings are default (It keeps resetting on me); Dualboot with windows using efistub and rEFInd (though the bios has serious issues actually doing what it's supposed to and not messing up the bootorder every other boot)

danielotero commented 7 years ago

I'm using the kernel config that is published in this repo. I should try with the stock one (but I think the brightness setting wasn't yet fixed) and with different SDCards, as maybe some other chip works.

Also, I can't get rid of the preloaded bootloader that came in the device (the white one that let me choose between Windows and Android, before I clean all the eMMC storage), and I have to load Arch through the Android option before I reach the gummiboot efi loader. Maybe that issue is affecting the BIOS settings in some way. I should study that.

danielotero commented 7 years ago

Just to let you know:

[daniel.otero:~] $ dmesg
[...]    
mmc2: error -110 whilst initialising SD card
[daniel.otero:~] $ uname -a
Linux chuwi 4.14.0-2-hi10 #1 SMP PREEMPT Fri Sep 29 00:11:30 CEST 2017 x86_64 GNU/Linux
[daniel.otero:~] # dmidecode 
# dmidecode 3.1
[...]
BIOS Information
    Vendor: American Megatrends Inc.
    Version: 5.11
    Release Date: 11/10/2016
[...]
System Information
    Manufacturer: CHUWI INNOVATION AND TECHNOLOGY(SHENZHEN)CO.LTD
    Product Name: Hi10 pro tablet
    SKU Number: I1D6_C109D_Hi10Pro
[...]
Base Board Information
    Manufacturer: Hampoo
    Product Name: Cherry Trail CR
    Version: V103

There are a couple of differences. I wonder if it has anything to do with it...

Orochimarufan commented 7 years ago

You can disable the built in boot menu from Windows by using the SwitchNOW app and selecting No in the promt that asks to switch to Android. Unfortunately it comes back sometimes. That BIOS has some serious voodoo included that tries to fix broken boot setups, conversely it breaks stuff all the time if your setup doesn't match what it expects :(

The bios and board rev are different. Now that I look at it, we also fall into a different bracket in the official downloads thread: http://forum.chuwi.com/thread-2341-1-1.html yours falls into 2) while mine is 3). Unfortunately they don't provide bios updates for the hi10 pro and it's not particularly safe to flash a bios that came with a different board rev.

pgrobelny commented 7 years ago

Just to let you know, my sdcard is working but once 2-3 reboots it behaves like it doesn't exist.

Orochimarufan commented 7 years ago

A small update on my part: My SD card has been acting up a lot recently. The symptoms are similar to others described here, but I believe it's more of a case of flaky hardware than a Linux issue because I've since experienced similar problems in Windows, though I'm not entirely sure there since Windows error reporting sucks. When it's gone in windows, the event log entry just says there was a paging error detected related to harddisk1. I've also noticed occasional severe slowdowns in both OSes that seem to be the system trying to deal with the SD card.

Danct12 commented 5 years ago

Android detects my card just fine, however on Linux it'll just failed to initialize.

RafaelLinux commented 3 years ago

It's a hardware issue. Even on Windows 10 and Android, mSD reader fails, and no way to read mSD cards. Android ask to format and format (after accepting) forever, and Windows 10 (native default version) doesn't recognize any card. So Chuwi is the bug, not any os.

Danct12 commented 3 years ago

I noticed that too, I haven't gone back to my tablet since I got my Pinebook Pro.

But it seems to be a common issue as well, someone I know ran into the issue and it was also discussed on russian forum boards.