[meta-xilinx] Rocko with meta-xilinx doesn't boot on ZynqMP zynqmp_clk_get_periphial_rate
Luca Ceresoli
luca at lucaceresoli.net
Tue Dec 5 02:09:11 PST 2017
Hi,
On 05/12/2017 02:37, Manjukumar Harthikote Matha wrote:
>
>
>> -----Original Message-----
>> From: meta-xilinx-bounces at yoctoproject.org [mailto:meta-xilinx-
>> bounces at yoctoproject.org] On Behalf Of Alistair Francis
>> Sent: Monday, December 04, 2017 9:20 AM
>> To: Forstmayr, Franz <Franz.Forstmayr at rosenberger.com>
>> Cc: meta-xilinx at yoctoproject.org
>> Subject: Re: [meta-xilinx] Rocko with meta-xilinx doesn't boot on ZynqMP
>> zynqmp_clk_get_periphial_rate
>>
>> On Mon, Dec 4, 2017 at 6:34 AM, Forstmayr, Franz
>> <Franz.Forstmayr at rosenberger.com <mailto:Franz.Forstmayr at rosenberger.com> >
>> wrote:
>>
>>
>> Hey,
>>
>>
>>
>> I just cloned the rocko branch of yocto and the master branch of meta-xilinx
>> and wanted to build a core-image-minimal first.
>>
>>
>>
>> Parsing recipes: 100%
>> |###################################################################
>> ####################################################################
>> #################################| Time: 0:00:33
>>
>> Parsing of 841 .bb files complete (0 cached, 841 parsed). 2154 targets, 226
>> skipped, 0 masked, 0 errors.
>>
>> NOTE: Resolving any missing task queue dependencies
>>
>>
>>
>> Build Configuration:
>>
>> BB_VERSION = "1.36.0"
>>
>> BUILD_SYS = "x86_64-linux"
>>
>> NATIVELSBSTRING = "ubuntu-16.04"
>>
>> TARGET_SYS = "aarch64-poky-linux"
>>
>> MACHINE = "zcu102-zynqmp"
>>
>> DISTRO = "poky"
>>
>> DISTRO_VERSION = "2.4"
>>
>> TUNE_FEATURES = "aarch64"
>>
>> TARGET_FPU = ""
>>
>> meta
>>
>> meta-poky
>>
>> meta-yocto-bsp = "rocko:f7b90ab3eaf832bd81f3efc1dab4dcf6863ac284"
>>
>> meta-xilinx = "master:82ac762e83e37e45db3fbe38ad1e21114a3426b6"
>>
>>
>>
>> Initialising tasks: 100%
>> |###################################################################
>> ####################################################################
>> ##############################| Time: 0:00:03
>>
>> NOTE: Executing SetScene Tasks
>>
>> NOTE: Executing RunQueue Tasks
>>
>> WARNING: core-image-minimal-1.0-r0 do_rootfs: [log_check] core-image-
>> minimal: found 1 warning message in the logfile:
>>
>> [log_check] warning: %post(sysvinit-inittab-2.88dsf-r10.zcu102_zynqmp)
>> scriptlet failed, exit status 1
>>
>>
>>
>> NOTE: Tasks Summary: Attempted 2792 tasks of which 6 didn't need to be
>> rerun and all succeeded.
>>
>>
>>
>> Summary: There was 1 WARNING message shown.
>>
>>
>>
>> After copying the relevant files to my sd, I get following output.
>>
>>
>>
>> U-Boot SPL 201fsbl_bsp/psu_cortexa53_0/libsrc/xilpm_v2_1/src/pm_cfg_obj.c7.01 (Dec 04 2017 - 14:49:28)
>> EL Level: EL3
>> Trying to boot from MMC1
>> reading u-boot.bin
>> reading atf-uboot.ub
>> reading atf-uboot.ub
>> NOTICE: ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000, with
>> PMU firmware
>> NOTICE: BL31: Secure code at 0x0
>> NOTICE: BL31: Non secure code at 0x8000000
>> NOTICE: BL31: v1.3(release):f9b244b
>> NOTICE: BL31: Built : 13:59:16, Dec 4 2017
>> PMUFW: v0.3
>> zynqmp_clk_get_peripheral_rate mio read fail
>> failed to get rate
>> zynqmp_clk_get_peripheral_rate mio read fail
>> failed to get rate
>>
>>
>>
>> Is there something wrong with my setup? I have no modifications so far.
>>
>>
>> It looks like the PMU FW config data hasn't been loaded. I'm not too sure how to do
>> that from SPL though.
>>
>>
>
> Yes this is not documented and I am not sure how it works through SPL either. Any inputs?
> Is there a manual step to get PMU firmware in SPL boot.bin?
U-Boot SPL is currently unable to load a PMU FW config object AFAIK. The
current best hack to boot with U-Boot SPL is to let PMU FW load a
hard-coded cfg object. This is implemented in [0].
But you need a configuration object of course. You can obtain one by
generating an FSBL with Xilinx XSDK, it will be in a path similar to
fsbl_bsp/psu_cortexa53_0/libsrc/xilpm_v2_1/src/pm_cfg_obj.c
[0]
https://github.com/topic-embedded-products/meta-topic/tree/master/recipes-bsp/pmu-firmware
Bye,
--
Luca
More information about the meta-xilinx
mailing list