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 97C3CC636D7 for ; Tue, 21 Feb 2023 20:16:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5167785A55; Tue, 21 Feb 2023 21:16:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=googlemail.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=googlemail.com header.i=@googlemail.com header.b="T++ogf2u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EB40885A5F; Tue, 21 Feb 2023 21:16:33 +0100 (CET) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (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 9091E80BA2 for ; Tue, 21 Feb 2023 21:16:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=chf.fritz@googlemail.com Received: by mail-ed1-x529.google.com with SMTP id f13so21507262edz.6 for ; Tue, 21 Feb 2023 12:16:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:date:cc:to :reply-to:from:subject:message-id:from:to:cc:subject:date:message-id :reply-to; bh=wdfQb6oLC534kx2PlC9dKM+hhdntWSdNx3B+9mo7yNs=; b=T++ogf2uzuS7pHnQ4w6Ao2r0QL2BdtqfEoBxHCXzN0hfAccWNvjnSb9H03Ov0iwWhi ygv6UX1oRlqtw7k1k/5y4VKSfrlw1g/Vg7kxNs5QoQ+nG52T0Taw/hqVqBv8dw4lS88J fZZsMkHfYB5WIamn8tEvuTwcDDSLr19s8iYrTvlU0eds22h9NMvcILdTHjQLLlwl4yAb ybgx0ViN9XUXw1WWlzVRmqDVMSlW5JjsP8Orz4xq78mYAII+rE8x2qPTGrj7Qws2z1vV 97gv32+rfWLTd+IELJkGKrl5heENbEANfaUijpRJwrfBHJR2mruNnoRazsX3rI9aeY/5 Fe+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:date:cc:to :reply-to:from:subject:message-id:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wdfQb6oLC534kx2PlC9dKM+hhdntWSdNx3B+9mo7yNs=; b=OZEfw10AvARnEHk4DK1r7e/m954tgQa290+PYEoBnH+qQcp1mp7n0o4fzoYpc5GHOz unXEQCuJxqLU2lC/h6HcCMwq0E7UGGE+FnvHkznX1tT6eutqs+6JpKd5TT6ThgKpcO0l fXgiPwRxstfOiKqoYkNbfdOzuvEtTpwTAZ9+y0rrIrr/IkL+/rncZoof0SIYvRikqFeK WZ2LSfYL17+huF57uTH2l4HSJ1Gp27WFYEc07rzYMsMbFn6sd4SLwvmNc7uNS69+klg6 H6yMffd4zy90dFYEGsoGy92pUSuBxA/61XoJ/McHMl0jYKsZetRPd485fk4tLHeurKee bnRw== X-Gm-Message-State: AO0yUKUchJEFPift9EXSsvKQx4Jravc+HPqoL4TCPZvLKr+KFhSeJ+ho Didcl3baQERbtkRVt42L92s= X-Google-Smtp-Source: AK7set9Unxnp4DYCfkSmwCS9CFaZLb5ybJb0mOp0Xnx27VeGxtv192aoy362b9SB7kHramCBpP8bSw== X-Received: by 2002:a17:907:2d89:b0:884:3174:119d with SMTP id gt9-20020a1709072d8900b008843174119dmr19145522ejc.14.1677010590991; Tue, 21 Feb 2023 12:16:30 -0800 (PST) Received: from mars.fritz.box ([2a02:8070:b80:7760:b352:6d7:c693:9659]) by smtp.gmail.com with ESMTPSA id fi9-20020a170906da0900b008b26f3d45fbsm6308732ejb.143.2023.02.21.12.16.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 12:16:30 -0800 (PST) Message-ID: Subject: rk3399: Loading OP-TEE by SPL? From: Christoph Fritz To: Simon Glass , Kever Yang , Jagan Teki Cc: u-boot@lists.denx.de Date: Tue, 21 Feb 2023 21:16:29 +0100 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1+deb11u1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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: , Reply-To: chf.fritz@googlemail.com Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Hello, my goal is to load OP-TEE after BL31 and before u-boot, so I enabled CONFIG_SPL_OPTEE_IMAGE. But it fails to build (tested current master): $ make -j$(nproc) CROSS_COMPILE=aarch64-linux-gnu- rock-pi-4-rk3399_defconfig all ./arch/arm/include/asm/unified.h: Assembler messages: ./arch/arm/include/asm/unified.h:12: Error: unknown pseudo-op: `.syntax' common/spl/spl_optee.S:11: Error: operand 1 must be an integer register -- `mov pc,r3' make[3]: *** [scripts/Makefile.build:292: spl/common/spl/spl_optee.o] Error 1 make[2]: *** [scripts/Makefile.spl:533: spl/common/spl] Error 2 make[2]: *** Waiting for unfinished jobs.... Without CONFIG_SPL_OPTEE_IMAGE the board starts like this: TPL -> SPL -> BL31 -> u-boot What's the correct way to start OP-TEE on rk3399? Any ideas? Thanks -- Christoph