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 44AF1C433F5 for ; Wed, 29 Dec 2021 23:27:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 324568015E; Thu, 30 Dec 2021 00:27:33 +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="SUl2hjo5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C4B0E8083E; Thu, 30 Dec 2021 00:27:30 +0100 (CET) Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) (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 B6EF18002A for ; Thu, 30 Dec 2021 00:27:27 +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=tomm.merciai@gmail.com Received: by mail-ed1-x536.google.com with SMTP id bm14so91548064edb.5 for ; Wed, 29 Dec 2021 15:27:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3s2WFuS3w/vdWD9R1gKyMPBwr3zalPCgvrOPindYwQ0=; b=SUl2hjo5tMbvAIsvKFhEQBUtZ5YGorj9BAgjG0bi8II2YgeaWl94HwRycmFFFis60c Fu9giETRTSEiihS9L4MiDCavRWDya4qL3G0gv+xJ8XH0tDNjdYc/vYqNTz6Eh0Rvjush 7L8rxF70tsDRnA439QU4fGA7RhTPwob5otoX4OU+bYQ6ltFz0FxpnqNo63Dk8/4Hka12 56SvH/dJr+BahQUO9L8pHq8Nfnpexby+zDkMYEZmjrtTYw7eozXfhGQ1ftaeEQwWh1gM H/jw6V0ZsGINOz951MeNm0rF01tYvAcnyL70uovEZzkKdBpJJRHSC2XYE8f/zYyQOm9Q 9smQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3s2WFuS3w/vdWD9R1gKyMPBwr3zalPCgvrOPindYwQ0=; b=J1tJCQaQQH0HJHyqC2Ugt8/9I1ehQHf09xGr7RVI3cd0JGRbvVXb5IQloneqvy3TmF jEfeX+BXzu6R7RFVs6BPMuYwh56a3fvGO0Q7t9L9goccahVYqUuSIqozV6N6yAIH8q/H 2InIZHuO09q1QYDyZyOn7gI2IlhkFjWvkcNBeFE2kXb6F/zYbwVEwDtwto/wqFQ0No44 ssb4L4NoH8yCOKlzYHT1lXoJtnPhaMudvmnrVIobo3wErls2zUQEH6oHsQJ55LcLQ6fF SV5qAc7CLYAEx0qaBvNJUEEXp6+9FI6ej7oATdaiWrX5RkpDl5kEkOhrKt05kyZc53M/ 6azw== X-Gm-Message-State: AOAM531qC12UExBIIvLWyYhlxQ5l8mlw/kuIFYBUKgUaze1iQioZgI4f aQbTKRVkKpA2WmjHj5vwPwk= X-Google-Smtp-Source: ABdhPJzQST/jnROHzn+1VzD4kfBpNHYP6LRmueabEMc+jg8uf4ARB218nzW6lSg+7npQjEH5vyqA4A== X-Received: by 2002:a05:6402:1650:: with SMTP id s16mr27125313edx.193.1640820447309; Wed, 29 Dec 2021 15:27:27 -0800 (PST) Received: from tom-desktop (net-93-71-218-227.cust.vodafonedsl.it. [93.71.218.227]) by smtp.gmail.com with ESMTPSA id kw22sm4280614ejc.132.2021.12.29.15.27.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Dec 2021 15:27:26 -0800 (PST) Date: Thu, 30 Dec 2021 00:27:24 +0100 From: Tommaso Merciai To: Fabio Estevam Cc: Tom Rini , Stefano Babic , Simon Glass , Breno Lima , Francesco Montefoschi , U-Boot-Denx , Peter Robinson , linux-fancy Subject: Re: help on udoo_neo power up on mainline uboot Message-ID: <20211229232724.GB15234@tom-desktop> References: <20211228165221.GA127430@tom-desktop> <20211229203305.GA6524@tom-desktop> <20211229220824.GA15234@tom-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 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 Wed, Dec 29, 2021 at 08:07:04PM -0300, Fabio Estevam wrote: > Hi Peter and Tommaso, > > On Wed, Dec 29, 2021 at 7:38 PM Fabio Estevam wrote: > > > Yes, according to Peter, the failure comes only during the second call > > to get_board_value() > > I managed to get my Udoo Neo board working again. > > With only the change below on top of Peter's series, I can get the > board version to be printed correctly: > > --- a/board/udoo/neo/neo.c > +++ b/board/udoo/neo/neo.c > @@ -383,18 +383,13 @@ static char *board_string(void) > return "UNDEFINED"; > } > > -int checkboard(void) > -{ > - printf("Board: UDOO Neo %s\n", board_string()); > - return 0; > -} > - > int board_late_init(void) > { > #ifdef CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG > env_set("board_name", board_string()); > #endif > > + printf("Board: UDOO Neo %s\n", board_string()); > return 0; > } > > U-Boot log: > > U-Boot SPL 2022.01-rc4-00031-gc5c4ced998e3-dirty (Dec 29 2021 - 20:03:26 -0300) > Trying to boot from MMC1 > > > U-Boot 2022.01-rc4-00031-gc5c4ced998e3-dirty (Dec 29 2021 - 20:03:26 -0300) > > CPU: Freescale i.MX6SX rev1.2 996 MHz (running at 792 MHz) > CPU: Extended Commercial temperature grade (-20C to 105C) at 64C > Reset cause: POR > Model: UDOO Neo Basic > I2C: ready > DRAM: 1 GiB > PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11 > MMC: FSL_SDHC: 1, FSL_SDHC: 2 > Loading Environment from MMC... OK > In: serial > Out: serial > Err: serial > Board: UDOO Neo FULL > Net: eth0: ethernet@2188000 > Hit any key to stop autoboot: 0 > ethernet@2188000 Waiting for PHY auto negotiation to > complete.......user interrupt! > Could not initialize PHY ethernet@2188000 > BOOTP broadcast 1 Hi Fabio, I test BASIC board and it work too, below some log: U-Boot SPL 2022.01-rc4-00030-gb3f84a939f-dirty (Dec 30 2021 - 00:20:36 +0100) Trying to boot from MMC1 U-Boot 2022.01-rc4-00030-gb3f84a939f-dirty (Dec 30 2021 - 00:20:36 +0100) CPU: Freescale i.MX6SX rev1.2 996 MHz (running at 792 MHz) CPU: Extended Commercial temperature grade (-20C to 105C) at 46C Reset cause: POR Model: UDOO Neo Basic DRAM: 512 MiB MMC: FSL_SDHC: 1, FSL_SDHC: 2 Loading Environment from MMC... OK In: serial Out: serial Err: serial Board: UDOO Neo BASIC Net: eth0: ethernet@2188000 Hit any key to stop autoboot: 0 Acked-by: Tommaso Merciai Tested-by: Tommaso Merciai Well play :) I think all the series can me merged now, what do you think about? You need a clear series? Let me know. Thanks, Tommaso