login|Register
Forum > Beginners
Post|
看6031|回11|Favorite
joe1203 看全部
2016-1-20 21:07:39
Hi Expert, please advise if I did anything wrong when compiling modules

Install Ubuntu 12.04 in virtualbox, clone the source of linux-3.4-sunxi from github, did some code editing and compile the modules with arm-linux-gnueabi-* . But when playing around on Fedora 22, I cannot load the module and receive "Invalid module format" error. Here is the output of modinfo, file and readelf -h, any clues?

output of modinfo of bundled sunxi-ir-rx.ko

code:

  1. filename:       /lib/modules/3.4.39/kernel/drivers/input/keyboard/sunxi-ir-rx.ko
  2. license:        GPL
  3. author:         DanielWang
  4. description:    Remote IR driver
  5. depends:
  6. intree:         Y
  7. vermagic:       3.4.39 SMP preempt mod_unload modversions ARMv7 p2v8
  8. parm:           debug_mask:int
output of modinfo of my built, named sunxi-ir-rx-hf.ko

code:

  1. filename:       /lib/modules/3.4.39/kernel/drivers/input/keyboard/sunxi-ir-rx-hf.ko
  2. license:        GPL
  3. author:         DanielWang
  4. description:    Remote IR driver
  5. srcversion:     2CEDB65025BE20B385A4605
  6. depends:
  7. vermagic:       3.4.39 SMP preempt mod_unload modversions ARMv7 p2v8
  8. parm:           debug_mask:int
  9. parm:           IR_RXFILT_VAL:int
  10. parm:           IR_RXIDLE_VAL:int
  11. parm:           IR_ACTIVE_T:int
  12. parm:           IR_ACTIVE_T_C:int
  13. parm:           IR_L1_MIN:int
  14. parm:           IR_L0_MIN:int
  15. parm:           IR_PMAX:int
  16. parm:           IR_DMID:int
  17. parm:           IR_DMAX:int
output of file of bundled sunxi-ir-rx.ko

code:

  1. sunxi-ir-rx.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=32e092d5e778c85bdc07d5e8e54038d53f574f0a, not stripped
output of file of my built, named sunxi-ir-rx-hf.ko

code:

  1. sunxi-ir-rx-hf.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=40b3f4abf5c4d2f38aa599a52c126adaee6ed1ee, not stripped
output of readelf -h of bundled sunxi-ir-rx.ko

code:

  1. ELF Header:
  2.   Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  3.   Class:                             ELF32
  4.   Data:                              2's complement, little endian
  5.   Version:                           1 (current)
  6.   OS/ABI:                            UNIX - System V
  7.   ABI Version:                       0
  8.   Type:                              REL (Relocatable file)
  9.   Machine:                           ARM
  10.   Version:                           0x1
  11.   Entry point address:               0x0
  12.   Start of program headers:          0 (bytes into file)
  13.   Start of section headers:          80916 (bytes into file)
  14.   Flags:                             0x5000000, Version5 EABI
  15.   Size of this header:               52 (bytes)
  16.   Size of program headers:           0 (bytes)
  17.   Number of program headers:         0
  18.   Size of section headers:           40 (bytes)
  19.   Number of section headers:         54
  20.   Section header string table index: 51

output of readelf -h of my built, named sunxi-ir-rx-hf.ko

code:

  1. ELF Header:
  2.   Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  3.   Class:                             ELF32
  4.   Data:                              2's complement, little endian
  5.   Version:                           1 (current)
  6.   OS/ABI:                            UNIX - System V
  7.   ABI Version:                       0
  8.   Type:                              REL (Relocatable file)
  9.   Machine:                           ARM
  10.   Version:                           0x1
  11.   Entry point address:               0x0
  12.   Start of program headers:          0 (bytes into file)
  13.   Start of section headers:          80860 (bytes into file)
  14.   Flags:                             0x5000000, Version5 EABI
  15.   Size of this header:               52 (bytes)
  16.   Size of program headers:           0 (bytes)
  17.   Number of program headers:         0
  18.   Size of section headers:           40 (bytes)
  19.   Number of section headers:         54
  20.   Section header string table index: 51

output of insmod of my built

code:

  1. insmod: ERROR: could not insert module sunxi-ir-rx-hf.ko: Invalid module format
*No output for bundled sunxi-ir-rx.ko, since it is loaded successfully



joe1203 看全部
2016-1-25 19:00:49
anyone gives me some hints?
joe1203 看全部
2016-1-31 22:22:06
any gurus can help?
secosek502 看全部
2024-2-24 21:21:26
I like prefer to reports, Generate liked, I will have a preference for extra information and facts making use of this, great deal of thought is particularly eye-catching., Bless you actually devised for crafting.        jun88
secosek502 看全部
2024-3-2 22:22:24
I precisely wished to appreciate you again. I am not sure what I would’ve worked on in the absence of those techniques provided by you concerning that industry. This has been the scary case in my opinion, but taking note of the skilled avenue you processed it took me to jump over contentment. I am happy for your advice and in addition hope you recognize what an amazing job you are always doing training people through the use of a web site. I’m certain you haven’t got to know any of us.        rút tiền 69vn
123NextPage

OrangePi En

Powered by Discuz! X3.4

homepage|Simple edition|Touch edition|PC