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
  New Pinebook pro won’t boot Generaltuxenburg 2 98 03-25-2023, 12:56 PM
Last Post: Generaltuxenburg
  U-Boot, video console, and visual artifacts dsimic 21 13,303 03-16-2023, 07:30 AM
Last Post: Tazdevl
  Pinebook Pro won't boot Whisk 6 1,185 03-14-2023, 11:54 AM
Last Post: KC9UDX
  Doesn’t power on after flashing emmc badguru 3 258 02-25-2023, 09:00 PM
Last Post: badguru
  Partial boot after installing Manjaro on emmc regivanx 11 810 02-06-2023, 09:11 AM
Last Post: wdt
  Unable to Boot anything (emmc or SDcard) line72 5 633 01-17-2023, 12:07 PM
Last Post: nfms
  how to make a bootable USB linux sine pinebook will not boot up River 14 1,741 12-11-2022, 11:12 PM
Last Post: wdt
  What OS have you recently flashed onto PBP eMMC? jcun4128 6 958 11-26-2022, 09:39 AM
Last Post: KC9UDX
  U-boot Updates jaredoconnor 5 873 11-17-2022, 04:25 PM
Last Post: wdt
  1st boot chrisrook 5 1,372 11-15-2022, 02:51 PM
Last Post: igorp

Forum Jump:

Users browsing this thread: 1 Guest(s)