eMMC problem with Tow-Boot/u-boot on SPI
I have a 2022 (July?) Pinebook pro.

I installed the latest Tow-Boot on the SPI, that works, but won't boot the eMMC, SD card booting works, haven't tried NVME.

The current Tow-Boot is based on the 2021.10 u-boot, so I think the problems are common to both.

I also successfully re-built Tow-Boot myself, and was able to add a patch with some debugging statements.

The problem seems to start when Tow-Boot tries to read multiple blocks off the eMMC, and the eMMC returns timeout in response to the stop transmission command that is supposed to close off the read command, in u-boot file drivers/mmc/mmc.c / mmc_read_blocks:

My (patched) version
    if (blkcnt > 1) {
        cmd.cmdidx = MMC_CMD_STOP_TRANSMISSION;
        cmd.cmdarg = 0;
        cmd.resp_type = MMC_RSP_R1b;
        if (mmc_send_cmd_quirks(mmc, &cmd, NULL,
                    MMC_QUIRK_RETRY_STOP_CMD, 4)) {
            pr_err("mmc fail to send stop cmd\n");
            return 0;

After this, the emmc is unusable, also from an os successfully booted from the sd card (Debian 11).

If I avoid writing to the emmc with Tow-Boot/u-boot, the emmc is readable and writeable from a Linux booted from the SD card. Both Linux and u-boot seem to access the eMMC with the DW drivers.

Any ideas/suggestions appreciated.
Replying to my own message:

Some progress, I enabled debug messages in dw_mmc.c

That resulted in something unexpected;
- when interacting with the sd, the messages from dw_mmc.c show up
- when interacting with the mmc, they don't show up, apparently another driver is being used for the emmc, if the Linux selection is anything to go by, it must be sdhci
I'm curious if you've made any progress with this. I'm seeing the same problem and it's really impacting the usefulness of the laptop for me.
No, still stuck on this, I am using an sd card in the meantime, and haven't had too much time to work on this.

Possibly Related Threads…
Thread Author Replies Views Last Post
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 462 05-20-2023, 01:02 AM
Last Post: jackwilson
  I'm booting from NVME but I want to switch back to eMMC acruhl 4 312 04-23-2023, 06:58 AM
Last Post: acruhl
  New Pinebook pro won’t boot Generaltuxenburg 2 355 03-25-2023, 12:56 PM
Last Post: Generaltuxenburg
  U-Boot, video console, and visual artifacts dsimic 21 14,373 03-16-2023, 07:30 AM
Last Post: Tazdevl
  Pinebook Pro won't boot Whisk 6 1,629 03-14-2023, 11:54 AM
Last Post: KC9UDX
  Doesn’t power on after flashing emmc badguru 3 442 02-25-2023, 09:00 PM
Last Post: badguru
  Partial boot after installing Manjaro on emmc regivanx 11 1,240 02-06-2023, 09:11 AM
Last Post: wdt
  Unable to Boot anything (emmc or SDcard) line72 5 885 01-17-2023, 12:07 PM
Last Post: nfms
  how to make a bootable USB linux sine pinebook will not boot up River 14 2,288 12-11-2022, 11:12 PM
Last Post: wdt
  What OS have you recently flashed onto PBP eMMC? jcun4128 6 1,193 11-26-2022, 09:39 AM
Last Post: KC9UDX

Forum Jump:

Users browsing this thread: 1 Guest(s)