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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F32AEC433EF for ; Sun, 7 Nov 2021 17:26:26 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C607461029 for ; Sun, 7 Nov 2021 17:26:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C607461029 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3D5A58351F; Sun, 7 Nov 2021 18:26:23 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CpuqXYU/"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 921AC8328D; Sun, 7 Nov 2021 18:26:20 +0100 (CET) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DB45D83702 for ; Sun, 7 Nov 2021 18:26:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ed1-x532.google.com with SMTP id b15so33841861edd.7 for ; Sun, 07 Nov 2021 09:26:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Yyy45WiFcVbYKcHJK+349m9U9wdHC8UjwJOMVodsQb0=; b=CpuqXYU/gPOqgmpPrSat/vD1mC059Fski36jPoMZzCoVzvF3o5niQv3ZpbAzWN7cNa qOPFAg/hUPZIl9WQyjYQ2abUQ+TY0igAwaICrb9Y74+t7GXnDswbk6eOGZRCzruydY6h VpTZQ22Ced2k7TRYKI9cq+b/JvzIV4Q3TpBCRK+FR8MSyA6OcA4cgmNIIBrj/euweIJu NllBtqTjiCw9vyuDWlPNUDELuhnKFaLecPzWlts1KTKXTllyATOf+8gxPweEoZjX80GD O5y0KALxOZgZ2b/JOFIovr+mEiE8LKXMq3B2IaleRUosxGLG0mvOaGwuPs1p98G4KO73 TBvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Yyy45WiFcVbYKcHJK+349m9U9wdHC8UjwJOMVodsQb0=; b=rHwgnjzb4h7HoVBZ2EdvYCXaH8XKbJzgEsopY+KZ0rtfIFW86dzm0ZN+PQB71OA+ny btV+36OwPyWE6jmZsztiNS7zgyQtka33t0U+tTWTu+4fRjqClL0AcoYDlIc+ej3emq4z oKwtr8GA7o54TzPl406fxe4etdc4t4gQiaWRmc54Z3ao6moVEC9OxcF7Mv/ARzNeremU kfvSHmiIqYE/QM+uxjKjnHOkoGFlfcxp43BHu6+Ib85rR4r9tMyqC4Jul93R4MTloWMp T6hyi1IQ0DIqzwKKxuvo1oZbboe1RH8l3s2zxB90w6YnfgPYB5M5iXCRv7zp8TSMsu7M /e3w== X-Gm-Message-State: AOAM530e3p1FbSn1wdYxwY0/UJAc5L3DiqMBozsr8uYcY7x6xO1md5G8 cwWKds6jTi2SP2z5so/FqWw= X-Google-Smtp-Source: ABdhPJw3JBHCAflaRZa6pq5VXmkbgH0APThQBepMgvS7F/T9MWkaHTGWEILC8rI9+6N8WCo0f+xIPA== X-Received: by 2002:a17:906:6549:: with SMTP id u9mr89610488ejn.514.1636305975097; Sun, 07 Nov 2021 09:26:15 -0800 (PST) Received: from [192.168.0.74] ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id ec38sm8018889edb.40.2021.11.07.09.26.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Nov 2021 09:26:14 -0800 (PST) Message-ID: <670bc05a-40db-96a3-4c17-6a036abc31b1@gmail.com> Date: Sun, 7 Nov 2021 20:26:09 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: rk3399-gru-kevin: issues on bringup Content-Language: en-US To: Simon Glass , "Marty E. Plummer" Cc: U-Boot Mailing List References: <79736268-6cd1-ecab-950a-be05b1581765@gmail.com> <20210313193958.wjieohyd27tkj5rf@proprietary-killer> <36a426d2-6745-91e4-2878-a2c6f831c697@gmail.com> From: Alper Nebi Yasak In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean On 06/11/2021 06:16, Simon Glass wrote: > On Tue, 2 Nov 2021 at 17:05, Simon Glass wrote: >> On Mon, 1 Nov 2021 at 17:25, Alper Nebi Yasak wrote: >>> Most of the patches are small config and dts changes that I've grouped >>> by whatever effect they have. Should I squash them into one commit each >>> for config/dts? >> >> Probably best. I did so and updated the branches, now the series goes like this: rockchip: gru: Set up SoC IO domain registers rockchip: gru: Add more devicetree settings rockchip: bob: Enable more configs rockchip: rk3399: Add support for chromebook_kevin >>> Marty, your (second) chromebook_kevin support patch didn't have your >>> sign-off. Is it OK to add it? See: I still didn't add a sign-off for this patch. There is an earlier version with one [1]. I'm not sure if I can add the sign-off citing that, or send the patches without a sign-off. I guess I'll wait a bit more for a reply? [1] https://patchwork.ozlabs.org/patch/1053386/ >> I actually have bob in my lab but I have not tried the Chrome OS boot >> script on it. I could probably add kevin. Booting the Chrome OS way would be an interesting experiment. I might eventually work on it, but not exactly a priority for me right now unless if it makes it easier for you to test things on these boards :D . >> $ do-try-int.sh bob >> Revision 77680d8f85b94ffe690b8fe1f35767aef8b1415a, board bob (I notice this was on a recent u-boot/master instead of my branch) > Just to note that I have a kevin in my lab now and it boots into > U-Boot with your > > https://github.com/alpernebbi/u-boot/tree/rk3399-gru-chromebooks > > I also tried Bob and got this: > > $ do-try-int.sh bob > Revision 6a549d02fc43408cf4f000cc97688e7a64948572, board bob > > Checking revision 6a549d02fc43408cf4f000cc97688e7a64948572 > /vid/software/devel/ubtest > tbot starting ... > ├─Parameters: > │ rev = '6a549d02fc43408cf4f000cc97688e7a64948572' > │ clean = False > ├─Calling uboot_build_and_flash ... > │ ├─bob is on port 9904 and uses /dev/pts/37 > │ ├─POWERON (bob) > │ ├─Calling uboot_build ... > │ │ ├─Calling uboot_checkout ... > │ │ │ ├─Builder: bob > │ │ │ └─Done. (0.195s) > │ │ ├─Configuring build ... > │ │ ├─Calling uboot_make ... > │ │ │ └─Done. (9.943s) > │ │ └─Done. (10.329s) > │ ├─Calling uboot_flash ... > │ │ └─Done. (2.209s) > │ ├─POWEROFF (bob) > │ └─Done. (13.305s) > ├───────────────────────────────────────── > └─SUCCESS (13.438s) > tbot starting ... > ├─Calling interactive_board ... > │ ├─bob is on port 9904 and uses /dev/pts/37 > │ ├─POWERON (bob) > │ ├─Entering interactive shell (CTRL+D to exit) ... > Channel 0: LPDDR3, 933MHz > BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB > Channel 1: LPDDR3, 933MHz > BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB > 256B stride > > U-Boot SPL 2021.10-00036-g6a549d02fc4 (Nov 05 2021 - 21:12:30 -0600) > Trying to boot from SPI > rockchip_rk3399_pinctrl pinctrl: pinctrl_select_state_full: > uclass_get_device_by_phandle_id: err=-19 > rockchip_rk3399_pinctrl pinctrl: pinctrl_select_state_full: > uclass_get_device_by_phandle_id: err=-19 > ns16550_serial serial@ff1a0000: pinctrl_select_state_full: > uclass_get_device_by_phandle_id: err=-19 I have a feeling that this is because the SPL devicetree filters out pinctrl subnodes while some other included nodes might be referring to those. That might be what's causing the same messages in sandbox as well... > U-Boot 2021.10-00036-g6a549d02fc4 (Nov 05 2021 - 21:12:30 -0600) > > Model: Google Bob > DRAM: 3.9 GiB > MMC: mmc@fe320000: 1, mmc@fe330000: 0 > Loading Environment from MMC... *** Warning - bad CRC, using default environment > > In: cros-ec-keyb > Out: vidconsole > Err: vidconsole > Model: Google Bob > Net: No ethernet found. Could you manually confirm that the display and keyboard works? > Hit any key to stop autoboot: 0 > switch to partitions #0, OK > mmc0(part 0) is current device > Scanning mmc 0:c... > libfdt fdt_check_header(): FDT_ERR_BADMAGIC > Scanning disk mmc@fe320000.blk... > Disk mmc@fe320000.blk not ready > Scanning disk mmc@fe330000.blk... > fs_devread read outside partition 2 > Failed to mount ext2 filesystem... > fs_devread read outside partition 2 > Failed to mount ext2 filesystem... > fs_devread read outside partition 2 > Failed to mount ext2 filesystem... > fs_devread read outside partition 2 > Failed to mount ext2 filesystem... > Found 13 disks > [...] > => This starts with mmc1 (microSD card) for me and gives an error for mmc0 (eMMC) which I have to prevent with a hack to skip its re-init. Nice to see that Bob doesn't need that. Other than that I see the same output with Chrome OS installed on eMMC. I would greatly appreciate it if you could try booting into any Linux really, to have some logs of what goes wrong while doing so. Debian's installer images [2] should be somewhat working on Kevin/Bob. Booting after USB is initialized requires a patch [3] to fix a hang though. [2] https://deb.debian.org/debian/dists/bullseye/main/installer-arm64/current/images/netboot/gtk/SD-card-images/ [3] https://patchwork.ozlabs.org/project/uboot/patch/20210406151059.1187379-1-icenowy@aosc.io/ > Having both in my lab will make it much easier to test. Thanks for the tests so far!