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
  upgrading u-boot--what version? where to get it? bsammon 5 125 6 hours ago
Last Post: dachalife
  uboot wont boot to SD card after upgrade jbradley419 7 1,026 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 335 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 2,437 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 796 12-13-2023, 08:17 PM
Last Post: trillobite
  Various freezes during boot & while running several Linux distros - hardware error? donuts 1 654 11-22-2023, 11:47 AM
Last Post: fxc
  Happy eMMC and SDcard OS usage for Pinebook Pro Newbies... Paulie420 42 61,096 11-20-2023, 06:22 PM
Last Post: wdt
  Cannot boot to Kali SD card after uboot upgrade jbradley419 4 1,295 09-19-2023, 08:48 AM
Last Post: dachalife
  Does latest Tow-Boot install/work correctly for everyone? tophneal 4 2,023 08-03-2023, 03:30 PM
Last Post: tophneal
  Boot into NVME drive, no wifi, sound, buttons... PaulQ 0 838 07-13-2023, 01:50 PM
Last Post: PaulQ

Forum Jump:

Users browsing this thread: 1 Guest(s)