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 3007EC4332F for ; Tue, 2 Nov 2021 12:40:01 +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 DD33E60E9B for ; Tue, 2 Nov 2021 12:39:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DD33E60E9B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=firemail.cc 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 5391C815A8; Tue, 2 Nov 2021 13:39:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=firemail.cc 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=firemail.cc header.i=@firemail.cc header.b="NjlbHIzL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9D77A83383; Tue, 2 Nov 2021 01:50:26 +0100 (CET) Received: from mail.cock.li (mail.cock.li [37.120.193.124]) (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 7D5E48326F for ; Tue, 2 Nov 2021 01:50:21 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=firemail.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=juang@firemail.cc Date: Mon, 1 Nov 2021 21:54:00 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firemail.cc; s=mail; t=1635814218; bh=WbzcNB2yALxF9ZjYpLOV8eHVfFrPUMC6msW6UD5jMmw=; h=Date:From:To:Subject:From; b=NjlbHIzLv3InqZaq2GVeiPCjruTOrk+6M0nhFHlka4nYSKTCCQhPXZzQNIRgB3TM2 9xixdNRI1bEJXLxpy8Bb4JLUe8Vd1RJwXOIK19GhPnEaEua4rXDJgka41PbCQL2Ltp Gf7iTVeWPlBX6DbA3FJIdGTBAzgb72DUbzcb1TubaJMAu0jZfkxYFwCXQWI4W2bD/Y BEhUwYCaxwj1iaog4s35lehkJ+xXsqOxiH0+JNQHJL24IWmUSIqTRwkXvTGvnUr+f1 sBxfEwfVlBl0znqVGrjb+ot190hNKUdWPjXXfFVaOc9tT6rsuH3Xy/VY/WsxpgjWiX jtkZ5KBp0LCiQ== From: Juan To: u-boot@lists.denx.de Subject: rockchip novice MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20211102005026.9D77A83383@phobos.denx.de> X-Mailman-Approved-At: Tue, 02 Nov 2021 13:39:49 +0100 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 I have a rk3126 board(a cheap tablet) with a hynix nand chip (H27UCG8T2ETR). I've done some searching but couldn't find much info on how to write u-boot to nand. I compiled u-boot from the rockchip repo (evb-rk3126_defconfig) but as far as I can tell there's no way to install it to nand. For instance, >mkimage -T list : gives rkimage Rockchip Boot Image rksd Rockchip SD Boot Image rkspi Rockchip SPI Boot Image but rkimage says mkimage: Can't print header for Rockchip Boot Image support: Success and puts 0x00000000 as header, so apparently it does nothing? (I'm assuming rkimage is the option for nand). At the moment I can enter the rockchip "loader" mode via usb and am wondering a few things. 1) where the hell is that "loader" code located? It must be somewhere in the nand chip? 2) can I burn to nand a raw binary to blink a led and have the "loader" run it? 3) is the "ID Block" header that the rom boot code looks for simply the "RK31" string and it must be somewhere in the nand chip? apologies if the questions are dumb - any help would be greatly appreciated ! J.