From d1b7d1769d772b6b5c7cbb48cf19840989360efa Mon Sep 17 00:00:00 2001
From: Xiaogang Cui <xiaogang@codeaurora.org>
Date: Wed, 16 Jul 2014 16:16:54 +0800
Subject: [PATCH] linux-ramdump-parser-v2: fix the t32 path for 8939 and 8936

Fix the t32 tool path for 8939 and 8936, and fix the cpu type in
startup script.

Change-Id: Ia1b7af9f80f2fb46a2b3c964630aecfe8b82e80a
---
 linux-ramdump-parser-v2/boards.py  | 4 ++--
 linux-ramdump-parser-v2/ramdump.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/linux-ramdump-parser-v2/boards.py b/linux-ramdump-parser-v2/boards.py
index ade896b..d66b90a 100755
--- a/linux-ramdump-parser-v2/boards.py
+++ b/linux-ramdump-parser-v2/boards.py
@@ -171,7 +171,7 @@ class Board8939(Board):
         super(Board8939, self).__init__()
         self.socid = socid
         self.board_num = 8939
-        self.cpu = 'CORTEXA53'
+        self.cpu = 'CORTEXA7'
         self.ram_start = 0x80000000
         self.smem_addr = smem_addr
         self.phys_offset = 0x80000000
@@ -184,7 +184,7 @@ class Board8936(Board):
         super(Board8936, self).__init__()
         self.socid = socid
         self.board_num = 8936
-        self.cpu = 'CORTEXA53'
+        self.cpu = 'CORTEXA7'
         self.ram_start = 0x80000000
         self.smem_addr = 0x6300000
         self.phys_offset = 0x80000000
diff --git a/linux-ramdump-parser-v2/ramdump.py b/linux-ramdump-parser-v2/ramdump.py
index 9eec2f8..0702400 100755
--- a/linux-ramdump-parser-v2/ramdump.py
+++ b/linux-ramdump-parser-v2/ramdump.py
@@ -693,7 +693,7 @@ class RamDump():
 
         startup_script = open(out_path + '/t32_startup_script.cmm', 'wb')
 
-        if self.arm64 and self.hw_id == 8916:
+        if self.arm64 and (self.hw_id == 8916 or self.hw_id == 8939 or self.hw_id == 8936):
             startup_script.write('sys.cpu CORTEXA53\n'.encode('ascii', 'ignore'))
         else:
             startup_script.write('sys.cpu {0}\n'.format(self.cpu_type).encode('ascii', 'ignore'))
@@ -763,7 +763,7 @@ class RamDump():
         t32_bat = open(out_path + '/launch_t32.bat', 'wb')
         if self.arm64:
             t32_binary = 'C:\\T32\\bin\\windows64\\t32MARM64.exe'
-        elif self.hw_id == 8916:
+        elif self.hw_id == 8916 or self.hw_id == 8939 or self.hw_id == 8936:
             t32_binary = 'C:\\T32\\bin\\windows64\\t32MARM.exe'
         else:
             t32_binary = 'c:\\t32\\t32MARM.exe'
-- 
GitLab