Page 1 of 2

eMMC Installation: No Disk Found

Posted: January 18th, 2017, 5:33 pm
by trymes
We have stumbled across an old problem while trying to install IPFire on a Lenovo Flex4 Laptop/Tablet. The Installer cannot find the internal eMMC disk drive. This was discussed back in 2014 here in this thread.

Is this something that can reasonably easily be rectified in a future update?

Tom

Re: eMMC Installation: No Disk Found

Posted: January 19th, 2017, 2:37 am
by Arne.F
The eMMC version 5.0 problem should be fixed long time ago. Do you really get the same csd version 7 error ?

Re: eMMC Installation: No Disk Found

Posted: January 19th, 2017, 2:49 am
by trymes
I'm not certain it's identical, but the installer cannot see the HDD. My initial impression was that it is similar, but perhaps I have jumped to conclusions. Where's the best place to dig in the logs for more details? Kernel log, boot log?

Re: eMMC Installation: No Disk Found

Posted: January 19th, 2017, 3:45 am
by Arne.F
Switch to 2nd console and check the messages. You can also execute dmesg here to get the kernel log. But its not so easy to get the logfile out because the installer run in a ramdisk.
Maybee it is easier to boot a Flash image from an usb stick to check if the eMMC was detected.

Re: eMMC Installation: No Disk Found

Posted: January 19th, 2017, 1:53 pm
by trymes
Here's what I came up with to get a dump of the kernel log from the installer:

  1. Switch to the third console by pressing Alt-F3
  2. Insert a USB stick, which is detected as /dev/sdb
  3. mkdir /usbkey
  4. mount /dev/sdb1 /usbkey
  5. dmesg > /usbkey/log.txt
  6. umount /usbkey
  7. remove USB stick and copy file to desktop

As for the error we are seeing:

Code: Select all

[   25.536703] sdhci: Secure Digital Host Controller Interface driver
[   25.536707] sdhci: Copyright(c) Pierre Ossman
[   25.537205] sdhci-pci 0000:00:1b.0: SDHCI controller found [8086:5aca] (rev a)
[   25.539700] mmc0: SDHCI controller on PCI [0000:00:1b.0] using ADMA
[   25.539726] sdhci-pci 0000:00:1c.0: SDHCI controller found [8086:5acc] (rev a)
[   25.542106] mmc1: SDHCI controller on PCI [0000:00:1c.0] using ADMA
[   25.690678] mmc1: unrecognised EXT_CSD revision 8
[   25.690691] mmc1: error -22 whilst initialising MMC card
[   25.827073] mmc1: unrecognised EXT_CSD revision 8
[   25.827087] mmc1: error -22 whilst initialising MMC card
[   25.975315] mmc1: unrecognised EXT_CSD revision 8
[   25.975328] mmc1: error -22 whilst initialising MMC card
[   26.160691] mmc1: unrecognised EXT_CSD revision 8
[   26.160705] mmc1: error -22 whilst initialising MMC card
[   47.050157] random: nonblocking pool is initialized

Re: eMMC Installation: No Disk Found

Posted: January 19th, 2017, 3:10 pm
by Arne.F
Arrrg. The same problem with newer CSD version. In actual kernel releases the entire CSD Version check is removed...

I will patch the kernel next days...

Re: eMMC Installation: No Disk Found

Posted: January 19th, 2017, 4:16 pm
by trymes
Thanks, Arne!

Re: eMMC Installation: No Disk Found

Posted: January 19th, 2017, 4:41 pm
by trymes
Also, I presume this is a change we would see in the next Core update, whenever that is?

Re: eMMC Installation: No Disk Found

Posted: January 20th, 2017, 8:10 am
by Arne.F
The 64bit nightly was now finished the i586 is still building ...
http://nightly.ipfire.org/next/2017-01- ... -ba957627/

Re: eMMC Installation: No Disk Found

Posted: January 23rd, 2017, 4:32 pm
by stlawr
I was able to create a bootable USB stick from the image you posted in the thread. I was able to get 2.19 core 109 installed this time, as it successfully saw the drive. However, when you try to boot into IPFire for the first time, I'm getting stuck on the "GRUB loading. Welcome to GRUB!" screen. It will not continue loading after that point.

Any suggestions?

Re: eMMC Installation: No Disk Found

Posted: February 15th, 2017, 4:14 pm
by stlawr
I have tried several more iterations of the nightly builds since the last post and I'm still get stuck at the "Welcome to GRUB" screen. Is there a fix possible for this?

Re: eMMC Installation: No Disk Found

Posted: February 19th, 2017, 12:55 am
by trymes
I saw this update listed as one of the new fixes in core 109. Does the "welcome to GRUB" problem still exist?

UPDATE: Still an issue with Core 109 if I install and try to boot from eMMC. However, if I write the USB image to a USB flash drive, it will successfully boot from that.

Re: eMMC Installation: No Disk Found

Posted: February 27th, 2017, 6:59 pm
by trymes
Arne,

I hate to look a gift horse in the mouth, but do you have any updates on this? I was going to add a comment to an existing bug in the tracker, but I could not find one. Before I open a new bug, I wanted to ask here.

Thank you,

Tom

Re: eMMC Installation: No Disk Found

Posted: February 27th, 2017, 7:11 pm
by Arne.F
sorry, at the moment i have no idea but if the usb image boot it sounds like a bug in the grub install script. Maybee mmcblk* is not in the list of valid devices. This is the same for NVMe SSD Discs.

Re: eMMC Installation: No Disk Found

Posted: February 27th, 2017, 9:38 pm
by trymes
Thanks, Arne. Where would I start looking for that file to check if it is correct?

I mounted up the installer, and then unpacked the distro.img file, but I was not able to find it, and I'm pretty certain I'm barking up the wrong tree.

Tom