eMMC problem with Tow-Boot/u-boot on SPI
#1
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
Code:
    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)) {
#if !defined(CONFIG_SPL_BUILD) || defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
            pr_err("mmc fail to send stop cmd\n");
#endif
            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.
  Reply


Messages In This Thread
eMMC problem with Tow-Boot/u-boot on SPI - by repa - 12-29-2022, 03:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Charging problem RicTor 0 65 04-04-2026, 07:30 AM
Last Post: RicTor
  Pinebook problem meghancordo 2 4,738 03-18-2026, 08:58 AM
Last Post: RicTor
Sad What to can't boot from TF card, EMMC system broken - any advice?do guys? qingss0 1 703 12-18-2025, 01:05 AM
Last Post: qingss0
  swap eMMC advice jceaser 2 964 10-23-2025, 09:59 PM
Last Post: Der Geist der Maschine
  Need new eMMC Karsten1 2 3,036 10-23-2025, 09:38 AM
Last Post: jceaser
  Bonk to boot biketool 2 1,193 10-21-2025, 09:08 AM
Last Post: biketool
  3 days in, slow/stuck or no boot. lgmpbp2 34 24,195 06-11-2025, 08:53 AM
Last Post: lgmpbp2
  upgrading u-boot--what version? where to get it? bsammon 14 15,280 04-03-2025, 07:47 AM
Last Post: Tazdevl
  Problem with Wifi, Sleep, Video and PGP signature Anarethos 4 4,568 03-31-2025, 07:14 AM
Last Post: Anarethos
  Problem: Wi-Fi Connectivity Issues on Pinebook Pro markwood00 1 5,063 02-05-2025, 03:56 AM
Last Post: waylonwesley

Forum Jump:


Users browsing this thread: 1 Guest(s)