From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.7400.1587471651796261880 for ; Tue, 21 Apr 2020 05:20:52 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ard.biesheuvel@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1953F31B; Tue, 21 Apr 2020 05:20:51 -0700 (PDT) Received: from [192.168.1.81] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 63CEA3F68F; Tue, 21 Apr 2020 05:20:50 -0700 (PDT) Subject: Re: [edk2-non-osi][PATCH 1/1] Platform/RPi/TrustedFirmware: Update TF-A binaries to v2.3 release To: Pete Batard , devel@edk2.groups.io Cc: leif@nuviainc.com, awarkentin@vmware.com References: <20200421112931.11752-1-pete@akeo.ie> From: "Ard Biesheuvel" Message-ID: <9bcf3dcc-71a3-49c8-5a88-ea2d5a11432d@arm.com> Date: Tue, 21 Apr 2020 14:20:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200421112931.11752-1-pete@akeo.ie> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit On 4/21/20 1:29 PM, Pete Batard wrote: > With the v2.3 release of TF-A, that integrates automatic PL011 vs miniUART > switching, we can remove the dual bl31 binaries we were using for RPi4, > and of course, we also take this opportunity to update the RPi3 binaries > to the latest. > > Note that these binaries were built in an open and verifiable manner > through an AppVeyor build script (https://github.com/pbatard/pitf). > > Signed-off-by: Pete Batard > --- > Platform/RaspberryPi/RPi3/TrustedFirmware/Readme.md | 16 ++++++++-------- > Platform/RaspberryPi/RPi3/TrustedFirmware/bl1.bin | Bin 18776 -> 18837 bytes > Platform/RaspberryPi/RPi3/TrustedFirmware/fip.bin | Bin 45792 -> 53972 bytes > Platform/RaspberryPi/RPi4/TrustedFirmware/Readme.md | 16 ++++++++++------ > Platform/RaspberryPi/RPi4/TrustedFirmware/bl31.bin | Bin 0 -> 41067 bytes > Platform/RaspberryPi/RPi4/TrustedFirmware/bl31_miniuart.bin | Bin 41072 -> 0 bytes > Platform/RaspberryPi/RPi4/TrustedFirmware/bl31_pl011.bin | Bin 41072 -> 0 bytes > 7 files changed, 18 insertions(+), 14 deletions(-) > I gave these a spin, and my RPi3 isn't booting. I then went back to your v1.21 release, and it doesn't boot either. Log of my DEBUG build below - any thoughts? Raspberry Pi Bootcode Read File: config.txt, 93 Read File: start.elf, 2884708 (bytes) Read File: fixup.dat, 6746 (bytes) MESS:00:00:01.526885:0: brfs: File read: /mfs/sd/config.txt MESS:00:00:01.531096:0: brfs: File read: 93 bytes MESS:00:00:01.587076:0: brfs: File read: /mfs/sd/config.txt MESS:00:00:01.591292:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined MESS:00:00:01.795773:0: gpioman: gpioman_get_pin_num: pin DISPLAY_DSI_PORT not defined MESS:00:00:01.803201:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined MESS:00:00:01.809220:0: *** Restart logging MESS:00:00:01.813107:0: brfs: File read: 93 bytes MESS:00:00:01.834674:0: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead MESS:00:00:01.853083:0: brfs: File read: /mfs/sd/bcm2710-rpi-3-b.dtb MESS:00:00:01.857754:0: Loading 'bcm2710-rpi-3-b.dtb' to 0x100 size 0x675f MESS:00:00:02.073260:0: brfs: File read: 26463 bytes MESS:00:00:02.079132:0: brfs: File read: /mfs/sd/config.txt MESS:00:00:02.084442:0: brfs: File read: 93 bytes MESS:00:00:02.089923:0: brfs: File read: /mfs/sd/cmdline.txt MESS:00:00:02.093917:0: Read command line from file 'cmdline.txt': MESS:00:00:02.099785:0: 'console=serial0,115200 console=tty1 root=/dev/mmcblk0p7 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles' MESS:00:00:04.177869:0: gpioman: gpioman_get_pin_num: pin EMMC_ENABLE not defined MESS:00:00:04.347941:0: brfs: File read: 160 bytes MESS:00:00:04.484887:0: brfs: File read: /mfs/sd/RPI_EFI.fd MESS:00:00:04.488762:0: Loading 'RPI_EFI.fd' to 0x0 size 0x200000 MESS:00:00:04.494604:0: brfs: File read: 2097152 bytes MESS:00:00:05.334051:0: brfs: File read: /mfs/sd/kernel8.img MESS:00:00:05.338010:0: Loading 'kernel8.img' to 0x80000 size 0xc9e200 MESS:00:00:05.344269:0: Device tree loaded to 0x2eff9400 (size 0x6b8a) MESS:00:00:05.351740:0: uart: Set PL011 baud rate to 103448.300000 Hz MESS:00:00:05.358222:0: uart: Baud rate change done... MESS:00:00:05.361652:0: uart: Baud rateNOTICE: Booting Trusted Firmware NOTICE: BL1: v2.3():v2.3 NOTICE: BL1: Built : 10:40:46, Apr 21 2020 NOTICE: rpi3: Detected: Raspberry Pi 3 Model B (1GB, Embest, China) [0x00a22082] NOTICE: BL1: Booting BL2 NOTICE: BL2: v2.3():v2.3 NOTICE: BL2: Built : 10:40:42, Apr 21 2020 NOTICE: BL1: Booting BL31 NOTICE: BL31: v2.3():v2.3 NOTICE: BL31: Built : 10:40:44, Apr 21 2020 UEFI firmware (version EDK2-DEV built at 14:02:06 on Apr 21 2020) Board Rev: 0xA22082 Base RAM : 0x00000000 (Size 0x3B400000) VideoCore: 0x3B400000 (Size 0x04C00000) FD: PhysicalBase: 0x0 VirtualBase: 0x0 Length: 0x1E0000 FD Variables: PhysicalBase: 0x1E0000 VirtualBase: 0x1E0000 Length: 0x20000 TF-A RAM: PhysicalBase: 0x200000 VirtualBase: 0x200000 Length: 0x200000 Base System RAM: PhysicalBase: 0x400000 VirtualBase: 0x400000 Length: 0x3B000000 GPU Reserved: PhysicalBase: 0x3B400000 VirtualBase: 0x3B400000 Length: 0x3C00000 SoC Reserved (283x): PhysicalBase: 0x3F000000 VirtualBase: 0x3F000000 Length: 0x2000000 Decompress Failed - Invalid Parameter ASSERT_EFI_ERROR (Status = Not Found) ASSERT [ArmPlatformPrePiUniCore] /home/ardbie01/build/edk2/ArmPlatformPkg/PrePi/PrePi.c(152): !EFI_ERROR (Status)