Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
vendor
qcom-opensource
tools
Commits
6f54b4bf
Commit
6f54b4bf
authored
11 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
11 years ago
Browse files
Options
Downloads
Plain Diff
Merge "linux-ramdump-parser-v2: Conditionally add phys offset for socinfo"
parents
8e18c8d8
9e570006
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linux-ramdump-parser-v2/ramdump.py
+6
-2
6 additions, 2 deletions
linux-ramdump-parser-v2/ramdump.py
with
6 additions
and
2 deletions
linux-ramdump-parser-v2/ramdump.py
+
6
−
2
View file @
6f54b4bf
...
...
@@ -612,7 +612,7 @@ class RamDump():
first_mem
=
open
(
first_mem_path
,
'
rb
'
)
# put some dummy data in for now
self
.
ebi_files
=
[(
first_mem
,
0
,
0xffff0000
,
first_mem_path
)]
if
not
self
.
get_hw_id
():
if
not
self
.
get_hw_id
(
add_offset
=
False
):
return
False
first_mem_end
=
self
.
ebi_start
+
os
.
path
.
getsize
(
first_mem_path
)
-
1
self
.
ebi_files
=
[
...
...
@@ -705,7 +705,7 @@ class RamDump():
else
:
return
self
.
read_word
(
self
.
tz_addr
,
False
)
def
get_hw_id
(
self
):
def
get_hw_id
(
self
,
add_offset
=
True
):
heap_toc_offset
=
self
.
field_offset
(
'
struct smem_shared
'
,
'
heap_toc
'
)
if
heap_toc_offset
is
None
:
print_out_str
(
...
...
@@ -734,6 +734,8 @@ class RamDump():
print_out_str
(
'
smem_addr = {0:x}
'
.
format
(
board
.
smem_addr
))
socinfo_start_addr
=
board
.
smem_addr
+
heap_toc_offset
+
smem_heap_entry_size
*
SMEM_HW_SW_BUILD_ID
+
offset_offset
if
add_offset
:
socinfo_start_addr
+=
board
.
ram_start
soc_start
=
self
.
read_int
(
socinfo_start_addr
,
False
)
if
trace
is
True
:
print_out_str
(
'
Read from {0:x}
'
.
format
(
socinfo_start_addr
))
...
...
@@ -745,6 +747,8 @@ class RamDump():
continue
socinfo_start
=
board
.
smem_addr
+
soc_start
if
add_offset
:
socinfo_start
+=
board
.
ram_start
if
trace
:
print_out_str
(
'
socinfo_start {0:x}
'
.
format
(
socinfo_start
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment