0

I have build softuart.ko and add into kernel, but I got "segmentation fault" error when run insmod. I get code from https://github.com/themrleon/RpiSoft-UART.

The detail message error I got from dmesg like that:

[  947.011954] softuart: loading out-of-tree module taints kernel.
[  947.012852] 8<--- cut here ---
[  947.012869] Unable to handle kernel paging request at virtual address f3200000
[  947.012884] pgd = 7999603d
[  947.012893] [f3200000] *pgd=00000000
[  947.012911] Internal error: Oops: 5 [#1] SMP ARM
[  947.012921] Modules linked in: softuart(O+) rfcomm cmac bnep hci_uart btbcm bluetooth ecdh_generic ecc fuse 8021q garp stp llc brcmfmac brcmutil sha256_generic libsha256 cfg80211 rfkill raspberrypi_hwmon bcm2835_codec(C) bcm2835_v4l2(C) v4l2_mem2mem bcm2835_isp(C) bcm2835_mmal_vchiq(C) videobuf2_dma_contig videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 snd_bcm2835(C) videobuf2_common snd_pcm snd_timer videodev snd mc vc_sm_cma(C) fixed uio_pdrv_genirq uio i2c_dev ip_tables x_tables ipv6
[  947.013055] CPU: 1 PID: 3431 Comm: insmod Tainted: G         C O      5.4.79-v7+ #1373
[  947.013064] Hardware name: BCM2835
[  947.013090] PC is at ModuleInit+0x70/0x1000 [softuart]
[  947.013100] LR is at 0x7
[  947.013111] pc : [<7f0da070>]    lr : [<00000007>]    psr: 60000013
[  947.013120] sp : 9a553d48  ip : 0000000a  fp : 9a553d8c
[  947.013130] r10: 80e04f88  r9 : 00000001  r8 : 7f1a21e4
[  947.013141] r7 : 00000004  r6 : 66666667  r5 : 7f1a3000  r4 : 7f1a3300
[  947.013151] r3 : f3200000  r2 : 7f1a3578  r1 : 00000001  r0 : 9999999c
[  947.013164] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  947.013176] Control: 10c5383d  Table: 190d006a  DAC: 00000055
[  947.013187] Process insmod (pid: 3431, stack limit = 0x4b960904)
[  947.013200] Stack: (0x9a553d48 to 0x9a554000)
[  947.013215] 3d40:                   802d5aec 00000001 9a553f30 8040003e 9a553d8c b70df114
[  947.013232] 3d60: b6401e00 80e04f88 7f0da000 a6097ac0 00000000 7f1a30c0 9a553f30 80e04f88
[  947.013249] 3d80: 9a553e04 9a553d90 801030c4 7f0da00c 802eeda0 8091ac30 00000000 00000002
[  947.013265] 3da0: 9a553dc4 9a553db0 8091ac30 80192e3c 00000cc0 802ecc8c 9a553e04 9a553dc8
[  947.013282] 3dc0: 802ecc8c 802b30d8 00000cc0 00000000 9a553e04 a6097700 00000002 25da394d
[  947.013298] 3de0: 00000002 7f1a30c0 a6097dc0 a6097ac0 a6097b00 7f1a30c0 9a553e2c 9a553e08
[  947.013314] 3e00: 801bdf5c 80103080 9a553e2c 9a553e18 802d038c 00000002 00000002 a6097ac0
[  947.013332] 3e20: 9a553f0c 9a553e30 801c05b4 801bdef8 7f1a30cc 00007fff 7f1a30c0 801bc8cc
[  947.013349] 3e40: 80e04f88 80badbc4 80badbf4 80badb9c 7f0dbecf 80a03d7c 7f1a32b4 7f1a31d4
[  947.013365] 3e60: 80badc44 a8c89018 a6097ac8 7f1a3108 80e04f88 80bad79c 9a550001 00000000
[  947.013381] 3e80: 80c5a51c 80c45980 00000000 00000000 00000000 00000000 00000000 00000000
[  947.013396] 3ea0: 6e72656b 00006c65 00000000 00000000 00000000 00000000 00000000 00000000
[  947.013412] 3ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 25da394d
[  947.013428] 3ee0: 7fffffff 80e04f88 00000000 0002d064 00000003 801011c4 9a552000 0000017b
[  947.013446] 3f00: 9a553fa4 9a553f10 801c0b1c 801be258 7fffffff 00000000 00000003 b54f8a80
[  947.013462] 3f20: 00000000 bb889000 00003280 00000000 bb889dfe bb88a540 bb889000 00003280
[  947.013478] 3f40: bb88bd58 bb88bc30 bb88b124 00003000 00003440 00001e5c 00003720 00000000
[  947.013494] 3f60: 00000000 00000000 00001e4c 0000001e 0000001f 00000016 00000011 0000000b
[  947.013511] 3f80: 00000000 25da394d 928c3900 7eaaf7c4 0003fce8 0000017b 00000000 9a553fa8
[  947.013527] 3fa0: 80101000 801c0a54 928c3900 7eaaf7c4 00000003 0002d064 00000000 00000003
[  947.013543] 3fc0: 928c3900 7eaaf7c4 0003fce8 0000017b 0041a7e0 00000000 00000002 00000000
[  947.013559] 3fe0: 7eaaf5f8 7eaaf5e8 00022cb8 76c45af0 60000010 00000003 00000000 00000000
[  947.013568] Backtrace: 
[  947.013604] [<7f0da000>] (ModuleInit [softuart]) from [<801030c4>] (do_one_initcall+0x50/0x25c)
[  947.013623]  r10:80e04f88 r9:9a553f30 r8:7f1a30c0 r7:00000000 r6:a6097ac0 r5:7f0da000
[  947.013632]  r4:80e04f88
[  947.013652] [<80103074>] (do_one_initcall) from [<801bdf5c>] (do_init_module+0x70/0x264)
[  947.013668]  r8:7f1a30c0 r7:a6097b00 r6:a6097ac0 r5:a6097dc0 r4:7f1a30c0
[  947.013685] [<801bdeec>] (do_init_module) from [<801c05b4>] (load_module+0x2368/0x266c)
[  947.013699]  r6:a6097ac0 r5:00000002 r4:00000002
[  947.013716] [<801be24c>] (load_module) from [<801c0b1c>] (sys_finit_module+0xd4/0xec)
[  947.013733]  r10:0000017b r9:9a552000 r8:801011c4 r7:00000003 r6:0002d064 r5:00000000
[  947.013742]  r4:80e04f88
[  947.013759] [<801c0a48>] (sys_finit_module) from [<80101000>] (ret_fast_syscall+0x0/0x28)
[  947.013769] Exception stack(0x9a553fa8 to 0x9a553ff0)
[  947.013784] 3fa0:                   928c3900 7eaaf7c4 00000003 0002d064 00000000 00000003
[  947.013800] 3fc0: 928c3900 7eaaf7c4 0003fce8 0000017b 0041a7e0 00000000 00000002 00000000
[  947.013813] 3fe0: 7eaaf5f8 7eaaf5e8 00022cb8 76c45af0
[  947.013828]  r7:0000017b r6:0003fce8 r5:7eaaf7c4 r4:928c3900
[  947.013843] Code: e0633141 e067739c e1a03103 e24336ce (e5931000) 
[  947.013858] ---[ end trace 8642425bb3f02e01 ]---

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.