Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD2C0C433EF for ; Sun, 3 Jul 2022 11:59:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8DEE78428F; Sun, 3 Jul 2022 13:59:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.b="FvigIJ7M"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="4o/CzcZf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 516C484497; Sun, 3 Jul 2022 13:59:19 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A343783E60 for ; Sun, 3 Jul 2022 13:59:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=msuchanek@suse.de Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 64AA62277B for ; Sun, 3 Jul 2022 11:59:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1656849556; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=ssfE8d89ZJ+jID0Vf0TSwzlzmjJYvg8demJuSb2Wohk=; b=FvigIJ7MB+BlPEZe+wUb5bpBkLTciRyvxy/dO27fLl4OIVcJpZdAMjh6hvASdC0PDA3MNc m/c8+iQKAsxxpMZikchio+EtV6hSWHy9VmM+C6c2UG2BhLqfAKkrblStHjCJI1WOcJ5nEk CJpUjFvSwTyzEu4UauLMyjUeRnyATHw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1656849556; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type; bh=ssfE8d89ZJ+jID0Vf0TSwzlzmjJYvg8demJuSb2Wohk=; b=4o/CzcZf9Qlofg1nQuNY3pDgqisAkQrfQ/rpGUhoXbuo0oFdLC8/4qfiEiBzcvmXKmNcrd Z5YRgLJz7yeJAQBA== Received: from kitsune.suse.cz (kitsune.suse.cz [10.100.12.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 56B1B2C141 for ; Sun, 3 Jul 2022 11:59:16 +0000 (UTC) Date: Sun, 3 Jul 2022 13:59:15 +0200 From: Michal =?iso-8859-1?Q?Such=E1nek?= To: u-boot@lists.denx.de Subject: rk3399 after reboot mmc1 is inaceessible Message-ID: <20220703115915.GG17705@kitsune.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hello, after rebooting rk3399 Pinebook Pro mmc1 is no longer accessible from u-boot, and video is not working, only cold boot works. This is not a problem anymore when Linux is loaded from another device. Any idea how to debug this? Thanks Michal U-Boot TPL 2022.07-rc5 (May 16 2022 - 12:00:00) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride lpddr4_set_rate: change freq to 400000000 mhz 0, 1 lpddr4_set_rate: change freq to 800000000 mhz 1, 0 Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2022.07-rc5 (May 16 2022 - 12:00:00 +0000) Trying to boot from MMC1 NOTICE: BL31: v2.6(debug): NOTICE: BL31: Built : 14:50:40, Jul 1 2022 INFO: GICv3 with legacy support detected. INFO: ARM GICv3 driver initialized in EL3 INFO: Maximum SPI INTID supported: 287 INFO: plat_rockchip_pmu_init(1624): pd status 3e INFO: BL31: Initializing runtime services INFO: BL31: cortex_a53: CPU workaround for 855873 was applied WARNING: BL31: cortex_a53: CPU workaround for 1530924 was missing! INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9 U-Boot 2022.07-rc5 (May 16 2022 - 00:00:00 +0000) SoC: Rockchip rk3399 Reset cause: POR Model: Pine64 Pinebook Pro DRAM: 3.9 GiB PMIC: RK808 Core: 317 devices, 34 uclasses, devicetree: separate MMC: mmc@fe310000: 3, mmc@fe320000: 1, mmc@fe330000: 0 Loading Environment from SPIFlash... SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB *** Warning - bad CRC, using default environment In: serial Out: vidconsole Err: vidconsole Model: Pine64 Pinebook Pro Net: No ethernet found. starting USB... Bus usb@fe380000: ehci_generic usb@fe380000: Failed to get clocks (ret=-19) Port not available. Bus usb@fe3a0000: USB OHCI 1.0 Bus usb@fe3c0000: ehci_generic usb@fe3c0000: Failed to get clocks (ret=-19) Port not available. Bus usb@fe3e0000: USB OHCI 1.0 Bus usb@fe800000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus usb@fe900000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe3a0000 for devices... 2 USB Device(s) found scanning bus usb@fe3e0000 for devices... 4 USB Device(s) found scanning bus usb@fe800000 for devices... 1 USB Device(s) found scanning bus usb@fe900000 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device ** Invalid partition 3 ** Couldn't find partition mmc 1:3 ** Invalid partition 4 ** Couldn't find partition mmc 1:4 Scanning mmc 1:1... BootOrder not defined EFI boot manager: Cannot load any image Found EFI removable media binary efi/boot/bootaa64.efi 857968 bytes read in 96 ms (8.5 MiB/s) Booting /efi\boot\bootaa64.efi U-Boot TPL 2022.07-rc5 (May 16 2022 - 12:00:00) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride lpddr4_set_rate: change freq to 400000000 mhz 0, 1 lpddr4_set_rate: change freq to 800000000 mhz 1, 0 Trying to boot from BOOTROM Returning to boot ROM... U-Boot SPL 2022.07-rc5 (May 16 2022 - 12:00:00 +0000) Trying to boot from MMC1 NOTICE: BL31: v2.6(debug): NOTICE: BL31: Built : 14:50:40, Jul 1 2022 INFO: GICv3 with legacy support detected. INFO: ARM GICv3 driver initialized in EL3 INFO: Maximum SPI INTID supported: 287 INFO: plat_rockchip_pmu_init(1624): pd status 3e INFO: BL31: Initializing runtime services INFO: BL31: cortex_a53: CPU workaround for 855873 was applied WARNING: BL31: cortex_a53: CPU workaround for 1530924 was missing! INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9 U-Boot 2022.07-rc5 (May 16 2022 - 00:00:00 +0000) SoC: Rockchip rk3399 Reset cause: RST Model: Pine64 Pinebook Pro DRAM: 3.9 GiB PMIC: RK808 Core: 317 devices, 34 uclasses, devicetree: separate MMC: mmc@fe310000: 3, mmc@fe320000: 1, mmc@fe330000: 0 Loading Environment from SPIFlash... SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB *** Warning - bad CRC, using default environment In: serial Out: vidconsole Err: vidconsole Model: Pine64 Pinebook Pro Net: No ethernet found. starting USB... Bus usb@fe380000: ehci_generic usb@fe380000: Failed to get clocks (ret=-19) Port not available. Bus usb@fe3a0000: USB OHCI 1.0 Bus usb@fe3c0000: ehci_generic usb@fe3c0000: Failed to get clocks (ret=-19) Port not available. Bus usb@fe3e0000: USB OHCI 1.0 Bus usb@fe800000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus usb@fe900000: Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe3a0000 for devices... 2 USB Device(s) found scanning bus usb@fe3e0000 for devices... 4 USB Device(s) found scanning bus usb@fe800000 for devices... 1 USB Device(s) found scanning bus usb@fe900000 for devices... 1 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Hit any key to stop autoboot: 0 *** ERROR: Can't read GPT Entries *** find_valid_gpt: *** ERROR: Invalid GPT *** *** ERROR: Can't read GPT header *** find_valid_gpt: *** ERROR: Invalid Backup GPT *** *** ERROR: Can't read GPT Entries *** find_valid_gpt: *** ERROR: Invalid GPT *** *** ERROR: Can't read GPT header *** find_valid_gpt: *** ERROR: Invalid Backup GPT *** *** ERROR: Can't read GPT Entries *** find_valid_gpt: *** ERROR: Invalid GPT *** *** ERROR: Can't read GPT header *** find_valid_gpt: *** ERROR: Invalid Backup GPT *** *** ERROR: Can't read GPT Entries *** find_valid_gpt: *** ERROR: Invalid GPT *** *** ERROR: Can't read GPT header *** find_valid_gpt: *** ERROR: Invalid Backup GPT *** *** ERROR: Can't read GPT Entries *** find_valid_gpt: *** ERROR: Invalid GPT *** *** ERROR: Can't read GPT header *** find_valid_gpt: *** ERROR: Invalid Backup GPT *** *** ERROR: Can't read GPT Entries *** find_valid_gpt: *** ERROR: Invalid GPT *** *** ERROR: Can't read GPT header *** find_valid_gpt: *** ERROR: Invalid Backup GPT *** *** ERROR: Can't read GPT Entries *** find_valid_gpt: *** ERROR: Invalid GPT *** *** ERROR: Can't read GPT header *** find_valid_gpt: *** ERROR: Invalid Backup GPT *** *** ERROR: Can't read GPT Entries *** find_valid_gpt: *** ERROR: Invalid GPT ***