Answer the question
In order to leave comments, you need to log in
How to extract symvers from kernel?
I need to extract symvers from the kernel in order to assemble the module. I found a script for this https://github.com/glandium/extract-symvers (but as I understand it is written in python 2). Installed unbootimg , unpacked my kernel (boot.img), received 3 files including zImage. I found out the address (xs how to call 0xffffffc001374000) with this command adb shell dmesg | grep "\.init"
. And when I write the command
python extract-symvers.py -B 0xffffffc001374000 zImage > Module.symvers
, I getTraceback (most recent call last):
File "extract-symvers.py", line 139, in <module>
main()
File "extract-symvers.py", line 135, in main
for s, crc, t in kernel.symbols():
File "extract-symvers.py", line 102, in symbols
for t, s in symsearch.items():
AttributeError: 'NoneType' object has no attribute 'items'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question