From patchwork Wed Oct 16 15:46:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 835810 Delivered-To: patch@linaro.org Received: by 2002:a5d:6804:0:b0:37d:45d0:187 with SMTP id w4csp504802wru; Wed, 16 Oct 2024 08:47:05 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWJ7yQBoLSm9viHEf60ZygVFYa+vU3M73ibi2ojie28E5SDurqd9nJWNTQHM5GDssCX3p4gBw==@linaro.org X-Google-Smtp-Source: AGHT+IHh5k/toQyxa5ZCwX9yUVsDsjxFWW0AIwopX+mheAKCqkZO0eUz8JkR0XqAjYScrg+4Feuh X-Received: by 2002:a05:6e02:1a41:b0:3a0:4e2b:9ab9 with SMTP id e9e14a558f8ab-3a3dc49fddemr47283275ab.5.1729093624971; Wed, 16 Oct 2024 08:47:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729093624; cv=none; d=google.com; s=arc-20240605; b=epEE6N8SpQcCK2pId7pKtz0U9qVt2//EPG9MiLRbL/kpDr3+QPMP5rgwUgV6paih0r 3DU5EYT0ZeCe6Lbh3ClxbvlpCBYD2kDZhkq8YIwf9bgbdI3Axc1L66v63bF5nMkoVYh9 AsYEv4nhxpZHXG/xQk17qf+fBWKsSOr5Dh8Y7tits1yO7jue4zvHKjfyFyAMphTma4SR p9uvFLqMTcPnO203cSVlW7ssBGScDNyWCBVOaXnb0lvppGMqX2aJ174k3rnU31NxXfVV dYyIWl33+ZFcKrKnYIaDQVOR2hGwaf/o+1TNnScd/xW1QmSeJX0MzUdh44jZ9bNM/bNu 4R5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:content-transfer-encoding :mime-version:message-id:date:subject:from:dkim-signature; bh=2k0fDqhAU9GuO+iIITj+cQaEAQZMXktlZX10M26tAaU=; fh=4bdnxshih90mIpx77eujE6krIBZqAad1o/fWpl2uxrA=; b=BTa/XdreTYiUxRy5VLMNhqilwNQOdYmCEg2yoQ9kapRVmHlWUnFbZg/2PqiBwPQayK jVNdOVV2UAQk6SRa2skAW4r+f6pFPov1e3wyz2x+hHZouInPDTfJguczWwwOMklmAbyK itPCpxlHDAzLpn75tVQJejgyo8Y/rUHt1PtFTYjsMlOdaOaBntPXUePbFfifv6KJ0Z98 pTKSdpUR4JPksODmFW2n7d3qYN6sWB3EaWyAektDuKN6kzPxiUNK/JDQzuyLVa4KjF59 6mupMF4hdkApb68CWyqDx/6D5ToV6HM02nA25x8c1B050ZoCXfERiJOSCK7EV46Z1jdz oXYw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QHbNeQ+k; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id e9e14a558f8ab-3a3d714b26bsi18248125ab.68.2024.10.16.08.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 08:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QHbNeQ+k; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9CB4088D14; Wed, 16 Oct 2024 17:47:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="QHbNeQ+k"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A1F9C88D1C; Wed, 16 Oct 2024 17:47:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 8CAEC88C05 for ; Wed, 16 Oct 2024 17:46:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=neil.armstrong@linaro.org Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-430f6bc9ca6so54012485e9.2 for ; Wed, 16 Oct 2024 08:46:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729093619; x=1729698419; darn=lists.denx.de; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=2k0fDqhAU9GuO+iIITj+cQaEAQZMXktlZX10M26tAaU=; b=QHbNeQ+ks/83m9irVbf93c4NGLuV/NbNswVUsbJOqHtlA2/hRYTZrizT4LYjD+UdqA pU7XV1UH9bZM+F2vCdOqzC+Yf7jrSGJU6WeT4B2bkcs+yvN/ao5gfiKXYco9/Jy3LxHZ zPK5e/JzY1n4BBOlf5Y/IcPMqpyStAukY7IuAuyPqTSZ4pRbzGCO/DkqE5bRZak2JCUr EE6YGdmUnRQAacPsyy6ca4U+CW52IOiQkAErIa0VlUyVl61UEekzuVPWZYjyUCM5Iq30 e+SZJW5k3ulqMLcGBsyFEJtdNNwGifZ+i5H8+Fwfz+eg7PVGEgh8H0IqLTEFQXaYV4zP Fscw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729093619; x=1729698419; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2k0fDqhAU9GuO+iIITj+cQaEAQZMXktlZX10M26tAaU=; b=eRJpWEKNasHSfReXso7JVYq4kHxbiyPQ0RkHpy81A+5i4ecNQt45rcIML6erpaXa9f DlxOiqDgsZz+jJwFG7DzQleoe85QEyHYGblXSze1uB5gKG4pS/C1Ze21eDQNfSYsX8iX GjQ4n+lruDyvej9jJigm78IAyrHoDUjHkGYdAsMSo+XvqC4/x3kkYIFigjVB5+CgdvS+ gE2wGzScVNaIa7b3AP4zADExpoyedH3TfYjqNxSXihENfo/Q1znUPTYQ7XM70KVi3vPz BIF8UlLrjI+Mp0RvcJ0gkwWMS3GTYWFI1IQ+CUwE5hHetXMszd2CoKvRSKjUL6mTX5pn nJ3Q== X-Forwarded-Encrypted: i=1; AJvYcCVMu4Gx7tbJ/BfYiRDxEkzGf5oTs81Dxuo7RyCT8wWn8NN8nEVKDffF/GVjeY8wApCeM8F8lIA=@lists.denx.de X-Gm-Message-State: AOJu0YywLsqqLuUPWkurl+tC5YMdvgkd/+L8mZ9zjqDhvUJtQlYdrwOD z1YG7d5OIoNAxvVbWxEjDU2wr3EzCfY3L7M/Vkq4vo4iDctpcb8q+UetUqlZP/c= X-Received: by 2002:a05:600c:3b8e:b0:426:6e86:f82 with SMTP id 5b1f17b1804b1-43125609939mr131191085e9.22.1729093618911; Wed, 16 Oct 2024 08:46:58 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4314a6fbb77sm37767315e9.14.2024.10.16.08.46.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Oct 2024 08:46:58 -0700 (PDT) From: Neil Armstrong Subject: [PATCH 0/3] image: android: misc fixes when using on Qualcomm platforms Date: Wed, 16 Oct 2024 17:46:47 +0200 Message-Id: <20241016-topic-fastboot-fixes-mkbootimg-v1-0-94fd9340722b@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOffD2cC/x3MTQqEMAxA4atI1hOwVvy7yjCL1kYNopWmDELx7 laXHzxeAqHAJDAUCQL9WdjvGepTwLiYfSZklw1VWdWqVA1Gf/CIk5FovY848UmC2/qAtxk712p je+2sdpAnR6A3yY/v77puMY7ekXAAAAA= To: Tom Rini Cc: Mattijs Korpershoek , Guillaume La Roque , Caleb Connolly , u-boot-qcom@groups.io, u-boot@lists.denx.de, Neil Armstrong X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1047; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=nWiBQLdR+une3q+GRvJqA+doTBESuuTfabHiJMIdFu0=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBnD9/wxoXd619I3y4bkqNMIwGubkBRnpdHHH/axFDw C2NUuouJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZw/f8AAKCRB33NvayMhJ0WicD/ 9VFvlOi6QnS5RJ9MZRY7l83Py7ZPiF/7AypWB+lPiAMrff7U3N14ALGG91XySWCapd+f3WIjPjs/Kp 85KXUCg4GulM+L/2jPl/i6yxwAxl4qbbVTNe1XQJjPKsJOSjl6ZD2nicvUunVrhJHuLHl9Z2/kY6+W 8G/01VcTFtEP/zlIMrBwu6S+r94FcPda8G3X9zjrc3xu2K79huK09FA4PjlNNmXn00kh80f/yLemTC 4yZ3M6L64U5hJSNVGCQBegCJjz/oTBxFg8HaIgOzdmeosFl8sXSR005pL+KDnMfUNy5UVHg/r7dCCG neUSZLR0NKHXOLlt+h1FSGNihr7UFfIl5uJyzd382jRhW2DV8im0M0a5e0x8IMKXPQQp3xsXc5URrY Up4jahn1Aa74CwjfxjfhFxBd0ncNYt1iIogC4IsccBq+wwrNswQaiXvexhEHWUMWegtvPtzUa0Q3cB Q7OAi17VbSBT0ghlHbBXsIZPmfvc27U8zfIqICVA7W21T5mKyY3FWpU2CQ4IdftU/PmT7/howPpBj9 exMMw2UZAlTZtUjqKXo+3KMBhG1J328y4YGeq7vTDwksLKbcUwqB/ADJZoryXRqMmTP8/pPZgicFdD hN1OYgW3FZiVyhgBSF4uHAUGI2yPqkCTiT43JZrRRdBaRe2xcZY+YjhSTHRg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE 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.8 at phobos.denx.de X-Virus-Status: Clean When trying to use the Android boot image with header version 2 on recent Qualcomm platforms, we get into some troubles. First the kernel in-place address can be > 32bit, then since we use the Android mkbootimg, it uses the default load address which isn't big enough to uncompress the kernel. Finally, the ramdisk also uses a default load address, and it should be taken in account like for the kernel address. Signed-off-by: Neil Armstrong --- Neil Armstrong (3): image: android: use ulong for kernel address boot: image-android: do not boot XIP when kernel is compressed image: android: handle ramdisk default address boot/image-android.c | 60 +++++++++++++++++++++++++++++++++++++------------ include/android_image.h | 2 +- 2 files changed, 47 insertions(+), 15 deletions(-) --- base-commit: d5cab0d6adc26ec1bbd45c2fed101184d04454ae change-id: 20241016-topic-fastboot-fixes-mkbootimg-8d73ab93db3d Best regards,