From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 28 Jan 2022 16:26:40 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nDT96-00G9v7-1H for lore@lore.pengutronix.de; Fri, 28 Jan 2022 16:26:40 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1nDT95-0004mu-5I; Fri, 28 Jan 2022 16:26:39 +0100 Received: from mail-db8eur05on2053.outbound.protection.outlook.com ([40.107.20.53] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nDT8w-0004mb-K3; Fri, 28 Jan 2022 16:26:31 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H4dXyp6JrDJIHotQbnqsOWZj6QE4z7gfKLR5pacsUDyt63CFDXGYqOikBejFa+6B20pfKb50+mZSPR+ZyQLfXFKgs2CK389lqRI7vO7xgYy5Ypaw5wSGP7VA4WMLDza9IUKtnXxDojOXoKOQDBDWo7+mEE1xoN02ZBYkSPbE/vXJ4yaZ3Ge++1dVDUkCkwhrm7PBg6ZvfdU2CCtZaRiKOXDm0zAfGgmMYPQWY0HQSI3YXxeEIp+wlceY4iGFG5f+vM5VChAwWoByVZEwY/omSpiWwMSpi0+fds7YDN3/WlfL4ChOepSLifceY6QmN4gnUGErd5uKFqR3Era5Ly1Hlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NqgnP+km2VgXNvASxINMNGVbFqgnIdaLQOBWCXhgJt4=; b=gyuMBPSriwdmOuwgEGan0hTwsWHaNt0QxotT3FTj274xNcXZikqLgsgnfJtYefHuOY+ZYh+NSw6b0vi1A/j82pOpDOd8zUgTfBiSN6hMNL4K8Jb435/eTR0JvKV8voyfcBI1jyUn8uR3MiLKJUOEFlJCkvnRgr021mNN4Eu6qNpHEFArPypwHxEKc9WbpbI/eiAQNr6olJmgi6NHu9z4epDo4iGCQzwODTwW29tyBSkcFeN3zZ4PzjI105HEj82Tz6n4ZG3oGgDevhqzST//hkXwz3XHUF1qKa6Ma77pVJHAz7cKDGmp0/bOQPRFbqbdD/+wKmExLLVAjeU47KdQLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NqgnP+km2VgXNvASxINMNGVbFqgnIdaLQOBWCXhgJt4=; b=rIPPB2dlWdWPcT2T6SplgRI0tPgQlFeYbPjSLlKZc/AK47R9AqAcEahU73pfBOnT1+GFDAlBcJ4/++CU7Bbr8hY7eDOVqj6AMqH+vT+gnGI0l0ZQKjk+Ra4HSol7lX+iufw4ex/rf3bIYArp+0of6xxwXjnmhPkpADcJSXwHp3c= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by DB8PR08MB5241.eurprd08.prod.outlook.com (2603:10a6:10:e2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.17; Fri, 28 Jan 2022 15:26:28 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56%3]) with mapi id 15.20.4930.019; Fri, 28 Jan 2022 15:26:26 +0000 Message-ID: Date: Fri, 28 Jan 2022 16:26:23 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: ptxdist@pengutronix.de, m.olbrich@pengutronix.de References: <20220124120942.557161-1-michael.riesch@wolfvision.net> <20220124120942.557161-6-michael.riesch@wolfvision.net> From: Michael Riesch In-Reply-To: X-ClientProxiedBy: VI1PR09CA0169.eurprd09.prod.outlook.com (2603:10a6:800:120::23) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a858adee-57d4-4654-c080-08d9e2728caf X-MS-TrafficTypeDiagnostic: DB8PR08MB5241:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O+04tbBYLOFSmz3BmR58f2kZHwUiPvxcRssn2QPErMAVJxChgFBoG4bfEd+7bJ4tQDuiuyw7BpLwMJXD3MY3G7X7DDRLgztr71QzmAcr/bqF5YMymqjND8ZojTLDZ1G1/VAWQLuafjMlNGre7l6gceEFWuyis54TTN0kXXBY2j5P7d/S/MgA1gylkuYvPD0tuKT7YFHYcjIZPnJsG1J3G/5h/ScWIYOIQIgMSl0RinSlYVno4Vmo1yAPpJqLw/pnmtn9Ff9wjyXPWSC4h5oWWUIRZaFFZWciatIfijDbzfV0iC0HdH/i3rpxmaJWMpeZpGVtXB6uD/fj8k9ifdewT4TsComs6UQMxhoy4TzH59unXEmxC+aSpueYZh30b9wcKL+BH5NqG3P7/b0IeChKHg877JIBzUXgriEzB+jAzbNt0KJi9FwMcBSg2Nv63WZ4wpCxJE9ctWJVEQYEviNFJzLQ+4GMj5jTob0CNekSGC6F6Khj34kE83ewibqm0uQpWJDgDXnK/TvWyKDCjwGf0WS5OF2Y9nKvkVv/lXXdx7K3HogcJl4ps11F52Fy6VsMKWCMN3eax7RNFMC3oqo0i29xujcAqxbtj6Xt4O5E9gMb09dh9catIRHZxLWhWjKl0dq8kW0oFm9qUgpHecO88woJUkDggylhs5+QTWhFSo6854rs7q8aNZpVlGv7VuhCHh46TNdqySitGQwM9wcO0HLDYshZ5pYBBzRipw2s6yo= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0802MB2426.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(44832011)(38100700002)(2906002)(31686004)(83380400001)(36756003)(186003)(6486002)(316002)(2616005)(52116002)(53546011)(6666004)(86362001)(6506007)(508600001)(66476007)(66556008)(8676002)(8936002)(66946007)(4326008)(6512007)(5660300002)(450100002)(31696002)(43740500002)(45980500001)(20210929001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?akVUblVYS2MwQ1VQbGZWc3gyOGYwR2k1M3hqTlZGRmtHYWM3bnZBYlNNTzRY?= =?utf-8?B?TExqUmdlU1lia2RZUkduUXVnczlFVlhTZ2Job0dxQjg3Vk01QVJnL09vRmkx?= =?utf-8?B?dFBqME53K0hmT0ZGQ21sV3N3cE53L3pWWllQMUIybW1MY21ValAzUFFUcjhF?= =?utf-8?B?YzJ2T1lJQUZrL1hSelZxQmtPc0MyeGJJU2tRS2tVVG5LZ1orTFJiRnZ0WEhp?= =?utf-8?B?UlozRlNzbGJyS094bWpsRzd1V09teXQwN0xJeWlxWXBhU1AySjRHQk1TOTJj?= =?utf-8?B?WDJGODRua3pkeV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3Ezck83N0paMFQxWjhBTHlCVkh1?= =?utf-8?B?UnNuNlQ4WU9SZ0xZQ2gzeHFxYUZYL1BDTGwwaTB2OGNLNFhxcEx1bmVlc0k5?= =?utf-8?B?aUpCY3BIZ05wL0tlVTdEYlRXNWk2VG9KMjdCYWRvWTRCbi9sTkhNaCtTcVZS?= =?utf-8?B?dTV2UUd3cktLZmlnVkY4QVkwc1l3WUZpVzlValpqbEZpcWIvVzQ2bm9RTkcw?= =?utf-8?B?ZmVkd1NHVjJMckRPdG9pYkZqTnczeGpuV2hQWWtuc09XdFRCdmMvMFRpNk0r?= =?utf-8?Q?2xEV08+nGCWehZ4s=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: a858adee-57d4-4654-c080-08d9e2728caf X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2022 15:26:26.7550 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: H3b4LNbGmh+4tgviZ+Py3aR/Qg/+WMiKyTceyIsxX5sPJJRg5baOfgGPR3RP3V86D7DYTVJq4AqZoaxbESARTckmEZxxVPpgzOns+RbdQQQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5241 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.3 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [RFC PATCH v5 5/5] barebox.rockchip: add binary firmware blobs for quartz64 and rk3568-evb1 X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: m.tretter@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Hello Michael, Thanks for your review. I'll prepare a v6! On 1/28/22 13:33, Michael Olbrich wrote: > On Mon, Jan 24, 2022 at 01:09:42PM +0100, Michael Riesch wrote: >> Currently, the mainline OP-TEE and TF-A sources do not support the >> RK356x SoCs. Therefore, the only option is to use the binary blobs >> provided by Rockchip. This patch integrates these blobs (along the SDRAM >> initialization binary) for the Pine64 Quartz64 board and the RK3568 >> EVB1 into barebox. >> >> Signed-off-by: Michael Riesch >> --- >> platforms/barebox.rockchip.in | 13 +++++++++++++ >> rules/barebox.rockchip.make | 18 ++++++++++++++++++ >> 2 files changed, 31 insertions(+) >> create mode 100644 rules/barebox.rockchip.make >> >> diff --git a/platforms/barebox.rockchip.in b/platforms/barebox.rockchip.in >> index 8ecdb0762..9aad4eaf8 100644 >> --- a/platforms/barebox.rockchip.in >> +++ b/platforms/barebox.rockchip.in >> @@ -1 +1,14 @@ >> ## SECTION=barebox_firmware >> + >> +config BAREBOX_NEEDS_FIRMWARE_ROCKCHIP >> + prompt "barebox needs firmware-rockchip" >> + bool >> + depends on ARCH_ARM64 >> + select FIRMWARE_ROCKCHIP if BAREBOX_NEEDS_FIRMWARE_ROCKCHIP > > This does not work. It must look like this or the build dependency is not > created: > > config BAREBOX_NEEDS_FIRMWARE_ROCKCHIP > prompt "barebox needs firmware-rockchip" > bool > depends on ARCH_ARM64 > > config BAREBOX > select FIRMWARE_ROCKCHIP if BAREBOX_NEEDS_FIRMWARE_ROCKCHIP > > Multiple occurrences of the same symbol are merged, so this works just > fine as long as 'BAREBOX' is fully defined somewhere else. I tried this approach but it returns the error .../ptxdist/platforms/barebox.in:11:error: recursive dependency detected! .../ptxdist/platforms/barebox.in:11: symbol BAREBOX depends on BAREBOX Any idea what could be wrong here? Thanks and best regards, Michael > > Michael > >> + select FIRMWARE_ROCKCHIP_RK356x_BL31 if BAREBOX_NEEDS_FIRMWARE_ROCKCHIP >> + select FIRMWARE_ROCKCHIP_RK356x_BL32 if BAREBOX_NEEDS_FIRMWARE_ROCKCHIP >> + select FIRMWARE_ROCKCHIP_RK3566_SDRAM if BAREBOX_NEEDS_FIRMWARE_ROCKCHIP >> + select FIRMWARE_ROCKCHIP_RK3568_SDRAM if BAREBOX_NEEDS_FIRMWARE_ROCKCHIP >> + help >> + Select this if barebox needs the non-free Rockchip firmware >> + blobs. >> diff --git a/rules/barebox.rockchip.make b/rules/barebox.rockchip.make >> new file mode 100644 >> index 000000000..0255b2b4d >> --- /dev/null >> +++ b/rules/barebox.rockchip.make >> @@ -0,0 +1,18 @@ >> +# -*-makefile-*- >> +# >> +# Copyright (C) 2021 by Michael Riesch >> +# >> +# For further information about the PTXdist project and license conditions >> +# see the README file. >> +# >> + >> +ifdef PTXCONF_BAREBOX_NEEDS_FIRMWARE_ROCKCHIP >> + >> +BAREBOX_INJECT_FILES += rk3568_bl31_v1.24.elf:firmware/rk3568-bl31.bin >> +BAREBOX_INJECT_FILES += rk3568_bl32_v1.05.bin:firmware/rk3568-op-tee.bin >> + >> +BAREBOX_INJECT_FILES += rk3566_ddr_1056MHz_v1.08.bin:arch/arm/boards/pine64-quartz64/sdram-init.bin >> + >> +BAREBOX_INJECT_FILES += rk3568_ddr_1560MHz_v1.08.bin:arch/arm/boards/rockchip-rk3568-evb/sdram-init.bin >> + >> +endif >> -- >> 2.30.2 >> >> >> _______________________________________________ >> ptxdist mailing list >> ptxdist@pengutronix.de >> To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de >> > _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de