Re: Compiling error of backport-4.12.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thankd for fixing, i am able compile now.
But when i load the modules and firmware.bin, it crash.
Message as below:
[ 1344.243437] Loading modules backported from Linux version
v3.18-226098-gc22a8ba
[ 1344.250815] Backport generated by backports.git v4.14-rc2-1-26-g0d45039
[ 1344.269749] cfg80211: Loading compiled-in X.509 certificates for
regulatory database
[ 1344.278368] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 1344.285333] platform regulatory.0: Direct firmware load for
regulatory.db failed with error -2
[ 1344.294031] platform regulatory.0: Falling back to user helper
[ 1344.304266] firmware regulatory.db: firmware_loading_store: map pages failed
[ 1344.311495] cfg80211: failed to load regulatory.db
[ 1344.363110] DMAR: 32bit 0000:09:00.0 uses non-identity mapping
[ 1344.369115] ath10k_pci 0000:09:00.0: enabling device (0000 -> 0002)
[ 1344.375903] ath10k_pci 0000:09:00.0: pci irq msi oper_irq_mode 2
irq_mode 0 reset_mode 0
[ 1344.426308] DMAR: 32bit 0000:0a:00.0 uses non-identity mapping
[ 1344.432363] ath10k_pci 0000:0a:00.0: enabling device (0000 -> 0002)
[ 1344.439234] ath10k_pci 0000:0a:00.0: pci irq msi oper_irq_mode 2
irq_mode 0 reset_mode 0
[ 1344.479440] ath10k_pci 0000:09:00.0: Direct firmware load for
ath10k/pre-cal-pci-0000:09:00.0.bin failed with error -2
[ 1344.490211] ath10k_pci 0000:09:00.0: Falling back to user helper
[ 1344.500062] firmware ath10k!pre-cal-pci-0000:09:00.0.bin:
firmware_loading_store: map pages failed
[ 1344.510139] ath10k_pci 0000:09:00.0: Direct firmware load for
ath10k/cal-pci-0000:09:00.0.bin failed with error -2
[ 1344.520565] ath10k_pci 0000:09:00.0: Falling back to user helper
[ 1344.530760] firmware ath10k!cal-pci-0000:09:00.0.bin:
firmware_loading_store: map pages failed
[ 1344.539579] ath10k_pci 0000:09:00.0: Direct firmware load for
ath10k/QCA9984/hw1.0/firmware-6.bin failed with error -2
[ 1344.547910] ath10k_pci 0000:0a:00.0: Direct firmware load for
ath10k/pre-cal-pci-0000:0a:00.0.bin failed with error -2
[ 1344.547912] ath10k_pci 0000:0a:00.0: Falling back to user helper
[ 1344.552928] firmware ath10k!pre-cal-pci-0000:0a:00.0.bin:
firmware_loading_store: map pages failed
[ 1344.553248] ath10k_pci 0000:0a:00.0: Direct firmware load for
ath10k/cal-pci-0000:0a:00.0.bin failed with error -2
[ 1344.553250] ath10k_pci 0000:0a:00.0: Falling back to user helper
[ 1344.562227] firmware ath10k!cal-pci-0000:0a:00.0.bin:
firmware_loading_store: map pages failed
[ 1344.601233] ath10k_pci 0000:09:00.0: Falling back to user helper
[ 1344.611150] firmware ath10k!QCA9984!hw1.0!firmware-6.bin:
firmware_loading_store: map pages failed
[ 1344.620293] ath10k_pci 0000:0a:00.0: firmware file
'ath10k/QCA9984/hw1.0/firmware-6.bin' too small to contain magic: 0
[ 1344.620758] ath10k_pci 0000:09:00.0: qca9984/qca9994 hw1.0 target
0x01000000 chip_id 0x00000000 sub 168c:cafe
[ 1344.620762] ath10k_pci 0000:09:00.0: kconfig debug 1 debugfs 1
tracing 0 dfs 1 testmode 0
[ 1344.621444] ath10k_pci 0000:09:00.0: firmware ver 10.4-3.4-00082
api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast
crc32 f301de65
[ 1344.663188] ath10k_pci 0000:0a:00.0: qca9984/qca9994 hw1.0 target
0x01000000 chip_id 0x00000000 sub 168c:cafe
[ 1344.673204] ath10k_pci 0000:0a:00.0: kconfig debug 1 debugfs 1
tracing 0 dfs 1 testmode 0
[ 1344.682133] ath10k_pci 0000:0a:00.0: firmware ver 10.4-3.4-00082
api 5 features no-p2p,mfp,peer-flow-ctrl,btcoex-param,allows-mesh-bcast
crc32 f301de65
[ 1346.043744] ath10k_pci 0000:09:00.0: board_file api 2 bmi_id 0:1
crc32 751efba1
[ 1346.118411] ath10k_pci 0000:0a:00.0: board_file api 2 bmi_id 0:2
crc32 751efba1
[ 1348.806817] ath10k_pci 0000:09:00.0: htt-ver 2.2 wmi-op 6 htt-op 4
cal otp max-sta 512 raw 0 hwcrypto 1
[ 1348.869350] ath: EEPROM regdomain: 0x0
[ 1348.869355] ath: EEPROM indicates default country code should be used
[ 1348.869358] ath: doing EEPROM country->regdmn map search
[ 1348.869360] ath: country maps to regdmn code: 0x3a
[ 1348.869363] ath: Country alpha2 being used: US
[ 1348.869365] ath: Regpair used: 0x3a
[ 1348.883029] ath10k_pci 0000:0a:00.0: htt-ver 2.2 wmi-op 6 htt-op 4
cal otp max-sta 512 raw 0 hwcrypto 1
[ 1348.944830] ath: EEPROM regdomain: 0x0
[ 1348.944836] ath: EEPROM indicates default country code should be used
[ 1348.944839] ath: doing EEPROM country->regdmn map search
[ 1348.944841] ath: country maps to regdmn code: 0x3a
[ 1348.944844] ath: Country alpha2 being used: US
[ 1348.944846] ath: Regpair used: 0x3a
[ 1349.611560] ath10k_pci 0000:09:00.0 wifiap0: renamed from wlan0
[ 1349.653533] ath10k_pci 0000:0a:00.0 wifiap1: renamed from wlan1
[ 1671.905204] init: Console is alive
[ 1672.909471] init: - preinit -
[ 1675.942680] mount_root: mounting /dev/root
[ 1675.957155] procd: - early -
[ 1676.060047] udevd[19071]: failed to execute '/etc/init.d/lirc'
'/etc/init.d/lirc restart udev': No such file or directory
[ 1676.140833] [usb.002.002]
/sys/devices/pci0000:00/0000:00:15.0/usb2/2-1 added. (MTP mode)
[ 1677.020395] procd: - ubus -
[ 1678.023799] procd: - init -
[ 1683.218050] BUG: unable to handle kernel NULL pointer dereference
at           (null)
[ 1683.226000] IP: [<          (null)>]           (null)
[ 1683.231133] PGD 200e08067 PUD 200b93067 PMD 0
[ 1683.235713] Oops: 0010 [#1] SMP
[ 1683.239052] Modules linked in: ath10k_pci(O) ath10k_core(O)
ath9k(O) ath9k_common(O) ath9k_hw(O) ath(O) mac80211(O) cfg80211(O)
compat(O) cdc_acm xt_nat rfcomm iscsi_tcp(O) libiscsi_tcp(O)
libiscsi(O) scsi_transport_iscsi(O) fbdisk(O) ipt_MASQUERADE
iptable_nat nf_nat_masquerade_ipv4 nf_nat_ipv4 nf_nat xt_policy
xt_mark bonding br_netfilter bridge stp 8021q ipv6 uvcvideo
videobuf2_vmalloc videobuf2_memops videobuf2_core snd_usb_caiaq
snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_rawmidi fnotify(O) udf
isofs sp5100_tco iTCO_wdt x53B_pins(O) ufsd(PO) jnl(O) pl2303
usbserial qm2_i2c(O) intel_ips drbd(O) flashcache(O)
dm_tier_btier_algo dm_thin_pool dm_bio_prison dm_persistent_data
hal_netlink(O) k10temp coretemp r8152 usbnet mii igb e1000e mpt3sas(O)
mpt2sas scsi_transport_sas raid_class usb_storage xhci_pci xhci_hcd
usblp uhci_hcd ehci_pci ehci_hcd [last unloaded: cfg80211]
[ 1683.319512] CPU: 2 PID: 21357 Comm: hostapd Tainted: P     U     O
  4.2.8 #2
[ 1683.326822] Hardware name: Default string Default string/Aptio CRB,
BIOS QY47AR03 10/20/2016
[ 1683.335313] task: ffff880251c35140 ti: ffff88026eab4000 task.ti:
ffff88026eab4000
[ 1683.342831] RIP: 0010:[<0000000000000000>]  [<          (null)>]
       (null)
[ 1683.350381] RSP: 0018:ffff88026eab7c50  EFLAGS: 00010292
[ 1683.355749] RAX: ffff880251c35140 RBX: ffff880200fc1ae8 RCX: 0000000000003ec0
[ 1683.362912] RDX: 0000000080000000 RSI: ffff880200fc1ae8 RDI: ffff880251e31800
[ 1683.370076] RBP: ffff88026eab7c78 R08: 0000000000008100 R09: 0000000000000000
[ 1683.377244] R10: ffff880251e31800 R11: ffff88026eab8000 R12: ffff880251e400b8
[ 1683.384405] R13: ffff880251e31800 R14: ffff880200fc1ae8 R15: 0000000000004000
[ 1683.391573] FS:  00007f13dce80700(0000) GS:ffff88027fd00000(0000)
knlGS:0000000000000000
[ 1683.399688] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1683.405492] CR2: 0000000000000000 CR3: 00000002008e3000 CR4: 00000000003406e0
[ 1683.412667] Stack:
[ 1683.414701]  ffffffff817a261e ffff88026eab7ec0 ffff880200fc1800
ffff880251e31800
[ 1683.422311]  0000000000000ec0 ffff88026eab7cb8 ffffffff8179f645
ffff88026eab7ec0
[ 1683.429925]  ffff880200fc1800 ffff88026eab7ec0 0000000000000000
00000000000016f4
[ 1683.437518] Call Trace:
[ 1683.440004]  [<ffffffff817a261e>] ? genl_lock_dumpit+0x2e/0x50
[ 1683.445875]  [<ffffffff8179f645>] netlink_dump+0x125/0x280
[ 1683.451391]  [<ffffffff8179f9e6>] netlink_recvmsg+0x246/0x390
[ 1683.457184]  [<ffffffff8175a70e>] sock_recvmsg+0xe/0x10
[ 1683.462437]  [<ffffffff8175d28f>] ___sys_recvmsg+0xcf/0x1e0
[ 1683.468040]  [<ffffffff811793e7>] ? destroy_inode+0x37/0x60
[ 1683.473643]  [<ffffffff81179519>] ? evict+0x109/0x170
[ 1683.478729]  [<ffffffff811754c9>] ? __dentry_kill+0x149/0x1c0
[ 1683.484501]  [<ffffffff81175701>] ? dput+0x1c1/0x200
[ 1683.489493]  [<ffffffff8175e16d>] __sys_recvmsg+0x3d/0x70
[ 1683.494938]  [<ffffffff8175e1ad>] SyS_recvmsg+0xd/0x20
[ 1683.500118]  [<ffffffff818be297>] entry_SYSCALL_64_fastpath+0x12/0x6a
[ 1683.506593] Code:  Bad RIP value.
[ 1683.510021] RIP  [<          (null)>]           (null)
[ 1683.515231]  RSP <ffff88026eab7c50>
[ 1683.518741] CR2: 0000000000000000
[ 1683.528970] ---[ end trace 2575ff6be952e206 ]---
[ 1683.537105] BUG: unable to handle kernel paging request at fffffffffffffff8
[ 1683.544176] IP: [<ffffffff817a27b2>] genl_unbind+0x32/0xa0
[ 1683.549749] PGD 2bf9067 PUD 2bfb067 PMD 0
[ 1683.553983] Oops: 0000 [#2] SMP
[ 1683.557300] Modules linked in: ath10k_pci(O) ath10k_core(O)
ath9k(O) ath9k_common(O) ath9k_hw(O) ath(O) mac80211(O) cfg80211(O)
compat(O) cdc_acm xt_nat rfcomm iscsi_tcp(O) libiscsi_tcp(O)
libiscsi(O) scsi_transport_iscsi(O) fbdisk(O) ipt_MASQUERADE
iptable_nat nf_nat_masquerade_ipv4 nf_nat_ipv4 nf_nat xt_policy
xt_mark bonding br_netfilter bridge stp 8021q ipv6 uvcvideo
videobuf2_vmalloc videobuf2_memops videobuf2_core snd_usb_caiaq
snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_rawmidi fnotify(O) udf
isofs sp5100_tco iTCO_wdt x53B_pins(O) ufsd(PO) jnl(O) pl2303
usbserial qm2_i2c(O) intel_ips drbd(O) flashcache(O)
dm_tier_btier_algo dm_thin_pool dm_bio_prison dm_persistent_data
hal_netlink(O) k10temp coretemp r8152 usbnet mii igb e1000e mpt3sas(O)
mpt2sas scsi_transport_sas raid_class usb_storage xhci_pci xhci_hcd
usblp uhci_hcd ehci_pci ehci_hcd [last unloaded: cfg80211]
[ 1683.637907] CPU: 2 PID: 21357 Comm: hostapd Tainted: P     UD    O
  4.2.8 #2
[ 1683.645157] Hardware name: Default string Default string/Aptio CRB,
BIOS QY47AR03 10/20/2016
[ 1683.653635] task: ffff880251c35140 ti: ffff88026eab4000 task.ti:
ffff88026eab4000
[ 1683.661143] RIP: 0010:[<ffffffff817a27b2>]  [<ffffffff817a27b2>]
genl_unbind+0x32/0xa0
[ 1683.669138] RSP: 0018:ffff88026eab7848  EFLAGS: 00010286
[ 1683.674477] RAX: ffffffffffffff90 RBX: 0000000000000006 RCX: 0000000000000000
[ 1683.681657] RDX: 0000000000000000 RSI: 0000000000000006 RDI: ffffffff81c75740
[ 1683.688827] RBP: ffff88026eab7868 R08: 0000000000000000 R09: ffff880276a89080
[ 1683.696045] R10: ffff880276173a60 R11: ffff88024d7c8210 R12: ffffffff81c725c0
[ 1683.703224] R13: ffffffff81ebedc0 R14: ffff880200fc1000 R15: ffff880075382c40
[ 1683.710383] FS:  00007f13dce80700(0000) GS:ffff88027fd00000(0000)
knlGS:0000000000000000
[ 1683.718499] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1683.724270] CR2: fffffffffffffff8 CR3: 0000000002bf8000 CR4: 00000000003406e0
[ 1683.731449] Stack:
[ 1683.733479]  ffff880200fc1000 0000000000000006 ffff880200fc13a8
0000000000000000
[ 1683.741053]  ffff88026eab78c8 ffffffff817a16cb ffff880252a8e7c0
ffff88026f8477ec
[ 1683.748630]  000000006eab78b8 ffff88024d7c8210 0000000800000001
ffff880252a8e7c0
[ 1683.756241] Call Trace:
[ 1683.758717]  [<ffffffff817a16cb>] netlink_release+0x1bb/0x4a0
[ 1683.764499]  [<ffffffff8175bbaa>] sock_release+0x1a/0x80
[ 1683.769841]  [<ffffffff8175bc1d>] sock_close+0xd/0x20
[ 1683.774922]  [<ffffffff8115ead7>] __fput+0xd7/0x1e0
[ 1683.779829]  [<ffffffff8115ec19>] ____fput+0x9/0x10
[ 1683.784737]  [<ffffffff810889d6>] task_work_run+0x96/0xb0
[ 1683.790166]  [<ffffffff81072b45>] do_exit+0x365/0xa20
[ 1683.795253]  [<ffffffff810b413a>] ? kmsg_dump+0xaa/0xc0
[ 1683.800501]  [<ffffffff81007cd8>] oops_end+0x88/0xc0
[ 1683.805496]  [<ffffffff81042bf4>] no_context+0x104/0x360
[ 1683.810840]  [<ffffffff81763692>] ? skb_queue_tail+0x42/0x50
[ 1683.816547]  [<ffffffff81042ec0>] __bad_area_nosemaphore+0x70/0x1f0
[ 1683.822842]  [<ffffffff8104304e>] bad_area_nosemaphore+0xe/0x10
[ 1683.828789]  [<ffffffff810432cb>] __do_page_fault+0x7b/0x3e0
[ 1683.834484]  [<ffffffff817a2bbe>] ? genl_family_rcv_msg+0x29e/0x380
[ 1683.840784]  [<ffffffff81043653>] do_page_fault+0x23/0x80
[ 1683.846215]  [<ffffffff818bf912>] page_fault+0x22/0x30
[ 1683.851400]  [<ffffffff817a261e>] ? genl_lock_dumpit+0x2e/0x50
[ 1683.857260]  [<ffffffff8179f645>] netlink_dump+0x125/0x280
[ 1683.862777]  [<ffffffff8179f9e6>] netlink_recvmsg+0x246/0x390
[ 1683.868551]  [<ffffffff8175a70e>] sock_recvmsg+0xe/0x10
[ 1683.873804]  [<ffffffff8175d28f>] ___sys_recvmsg+0xcf/0x1e0
[ 1683.879401]  [<ffffffff811793e7>] ? destroy_inode+0x37/0x60
[ 1683.885004]  [<ffffffff81179519>] ? evict+0x109/0x170
[ 1683.890097]  [<ffffffff811754c9>] ? __dentry_kill+0x149/0x1c0
[ 1683.895869]  [<ffffffff81175701>] ? dput+0x1c1/0x200
[ 1683.900867]  [<ffffffff8175e16d>] __sys_recvmsg+0x3d/0x70
[ 1683.906300]  [<ffffffff8175e1ad>] SyS_recvmsg+0xd/0x20
[ 1683.911479]  [<ffffffff818be297>] entry_SYSCALL_64_fastpath+0x12/0x6a
[ 1683.917953] Code: 54 53 49 89 fc 49 c7 c5 40 ed eb 81 48 c7 c7 40
57 c7 81 89 f3 48 83 ec 08 e8 9b a2 11 00 49 8b 55 00 49 39 d5 48 8d
42 90 74 1d <8b> 50 68 39 da 77 09 8b 48 64 01 d1 39 d9 77 31 48 8b 50
70 49
[ 1683.939243] RIP  [<ffffffff817a27b2>] genl_unbind+0x32/0xa0
[ 1683.944878]  RSP <ffff88026eab7848>
[ 1683.948386] CR2: fffffffffffffff8
[ 1683.951726] ---[ end trace 2575ff6be952e207 ]---
[ 1683.959314] Fixing recursive fault but reboot is needed!
[ 1683.969312] ------------[ cut here ]------------
[ 1683.973977] WARNING: CPU: 2 PID: 15 at net/netlink/af_netlink.c:946
netlink_sock_destruct+0xa7/0xe0()
[ 1683.983247] Modules linked in: ath10k_pci(O) ath10k_core(O)
ath9k(O) ath9k_common(O) ath9k_hw(O) ath(O) mac80211(O) cfg80211(O)
compat(O) cdc_acm xt_nat rfcomm iscsi_tcp(O) libiscsi_tcp(O)
libiscsi(O) scsi_transport_iscsi(O) fbdisk(O) ipt_MASQUERADE
iptable_nat nf_nat_masquerade_ipv4 nf_nat_ipv4 nf_nat xt_policy
xt_mark bonding br_netfilter bridge stp 8021q ipv6 uvcvideo
videobuf2_vmalloc videobuf2_memops videobuf2_core snd_usb_caiaq
snd_usb_audio snd_usbmidi_lib snd_seq_midi snd_rawmidi fnotify(O) udf
isofs sp5100_tco iTCO_wdt x53B_pins(O) ufsd(PO) jnl(O) pl2303
usbserial qm2_i2c(O) intel_ips drbd(O) flashcache(O)
dm_tier_btier_algo dm_thin_pool dm_bio_prison dm_persistent_data
hal_netlink(O) k10temp coretemp r8152 usbnet mii igb e1000e mpt3sas(O)
mpt2sas scsi_transport_sas raid_class usb_storage xhci_pci xhci_hcd
usblp uhci_hcd ehci_pci ehci_hcd [last unloaded: cfg80211]
[ 1684.063975] CPU: 2 PID: 15 Comm: ksoftirqd/2 Tainted: P     UD    O
   4.2.8 #2
[ 1684.071328] Hardware name: Default string Default string/Aptio CRB,
BIOS QY47AR03 10/20/2016
[ 1684.079809]  ffffffff81b7bc1a ffff8802769c3ca8 ffffffff818b719c
ffff88027fd0ec80
[ 1684.087419]  0000000000000000 ffff8802769c3ce8 ffffffff810707c0
ffff88027fd14930
[ 1684.095019]  ffff880200fc1800 ffff88027fd14930 ffff88024f3dc200
0000000000000005
[ 1684.102648] Call Trace:
[ 1684.105159]  [<ffffffff818b719c>] dump_stack+0x45/0x57
[ 1684.110338]  [<ffffffff810707c0>] warn_slowpath_common+0x80/0xc0
[ 1684.116386]  [<ffffffff810708a5>] warn_slowpath_null+0x15/0x20
[ 1684.122259]  [<ffffffff8179ef37>] netlink_sock_destruct+0xa7/0xe0
[ 1684.128402]  [<ffffffff81761b88>] sk_destruct+0x18/0x110
[ 1684.133753]  [<ffffffff81761cbc>] __sk_free+0x3c/0x90
[ 1684.138844]  [<ffffffff81761d23>] sk_free+0x13/0x20
[ 1684.143768]  [<ffffffff8179fb4a>] deferred_put_nlk_sk+0x1a/0x20
[ 1684.149727]  [<ffffffff810bdd82>] rcu_process_callbacks+0x1d2/0x4e0
[ 1684.156037]  [<ffffffff81073d70>] __do_softirq+0x100/0x230
[ 1684.161562]  [<ffffffff81073eb7>] run_ksoftirqd+0x17/0x30
[ 1684.167003]  [<ffffffff8108d1b0>] smpboot_thread_fn+0x130/0x190
[ 1684.172961]  [<ffffffff8108d080>] ? sort_range+0x20/0x20
[ 1684.178310]  [<ffffffff8108a316>] kthread+0xd6/0xf0
[ 1684.183231]  [<ffffffff8108a240>] ? kthread_create_on_node+0x170/0x170
[ 1684.189803]  [<ffffffff818be65f>] ret_from_fork+0x3f/0x70
[ 1684.195283]  [<ffffffff8108a240>] ? kthread_create_on_node+0x170/0x170
[ 1684.201850] ---[ end trace 2575ff6be952e208 ]---

On Tue, Oct 24, 2017 at 10:09 PM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx> wrote:
> On Tue, 2017-10-24 at 13:12 +0200, Johannes Berg wrote:
>> On Tue, 2017-10-24 at 18:37 +0800, 吳重毅 wrote:
>> >
>> > /home/chungyi/backport_test/compat/backport-4.12.c:49:27: error:
>> > lvalue required as left operand of assignment
>> >    genl_info_userhdr(info) = ERR_PTR(-ENOMEM);
>> >                            ^
>>
>> Huh, my mistake, I'll fix that.
>
> Fixed, please try now.
>
> johannes



-- 
Wu Chung-I
--
To unsubscribe from this list: send the line "unsubscribe backports" in




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux