From e0d984b049966ac8c4fb440da1a0e5ea75da5df4 Mon Sep 17 00:00:00 2001 From: Rishabh Bhatnagar <rishabhb@codeaurora.org> Date: Tue, 19 Feb 2019 20:55:28 -0800 Subject: [PATCH] ldrpv2: Enforce physical offset to be picked from board config Enforce the physical offset to be picked from boards config file. Autodump feauture takes physical offset from ddr info files which assumes kernel is loaded at ram start address. This is no longer a valid assumption. Change-Id: I0d55ce2f93198a802723017e2a9f64d0877f461c Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org> --- linux-ramdump-parser-v2/ramdump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-ramdump-parser-v2/ramdump.py b/linux-ramdump-parser-v2/ramdump.py index afc974c..adf24a2 100644 --- a/linux-ramdump-parser-v2/ramdump.py +++ b/linux-ramdump-parser-v2/ramdump.py @@ -1,4 +1,4 @@ -# Copyright (c) 2012-2018, The Linux Foundation. All rights reserved. +# Copyright (c) 2012-2019, The Linux Foundation. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 and @@ -1227,7 +1227,7 @@ class RamDump(): if board.wdog_addr is not None: print_out_str( 'TZ address: {0:x}'.format(board.wdog_addr)) - if self.phys_offset is None: + if board.phys_offset is not None: self.phys_offset = board.phys_offset self.tz_addr = board.wdog_addr self.ebi_start = board.ram_start -- GitLab