{"action":"created","issue":{"url":"https://api.github.com/repos/OpenAMP/open-amp/issues/8","labels_url":"https://api.github.com/repos/OpenAMP/open-amp/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/OpenAMP/open-amp/issues/8/comments","events_url":"https://api.github.com/repos/OpenAMP/open-amp/issues/8/events","html_url":"https://github.com/OpenAMP/open-amp/issues/8","id":103693360,"number":8,"title":"Follow openamp_gs.pdf and meet build error.","user":{"login":"kinreven","id":1622728,"avatar_url":"https://avatars.githubusercontent.com/u/1622728?v=3","gravatar_id":"","url":"https://api.github.com/users/kinreven","html_url":"https://github.com/kinreven","followers_url":"https://api.github.com/users/kinreven/followers","following_url":"https://api.github.com/users/kinreven/following{/other_user}","gists_url":"https://api.github.com/users/kinreven/gists{/gist_id}","starred_url":"https://api.github.com/users/kinreven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinreven/subscriptions","organizations_url":"https://api.github.com/users/kinreven/orgs","repos_url":"https://api.github.com/users/kinreven/repos","events_url":"https://api.github.com/users/kinreven/events{/privacy}","received_events_url":"https://api.github.com/users/kinreven/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-28T10:30:46Z","updated_at":"2015-10-08T18:26:27Z","closed_at":"2015-08-31T03:16:31Z","body":"openamp_gs.pdf:\r\n5. Build PetaLinux\r\na. Change into the <master_root>\r\n          $ cd <master_root>\r\nb. Execute the following command:\r\n          $ petalinux-build\r\n\r\nkinreven@ubuntu:~/openamp/xilinx-zynq-linux$ petalinux-build\r\nINFO: Checking component...\r\nINFO: Generating make files and build linux\r\nINFO: Generating make files for the subcomponents of linux\r\nINFO: Building linux\r\n[INFO ] pre-build linux/rootfs/rpmsg_echo_test_kern_app\r\n[INFO ] pre-build linux/rootfs/rpmsg_mat_mul_kern_app\r\n[INFO ] pre-build linux/rootfs/rpmsg_proxy_dev_driver\r\n[INFO ] pre-build linux/rootfs/rpmsg_user_dev_driver\r\n[INFO ] pre-build linux/rootfs/zynq_remoteproc_driver\r\n[INFO ] pre-build linux/rootfs/echo_test\r\n[INFO ] pre-build linux/rootfs/echo_test_baremetal_fw\r\n[INFO ] pre-build linux/rootfs/fwupgrade\r\n[INFO ] pre-build linux/rootfs/mat_mul_baremetal_fw\r\n[INFO ] pre-build linux/rootfs/mat_mul_demo\r\n[INFO ] pre-build linux/rootfs/peekpoke\r\n[INFO ] pre-build linux/rootfs/proxy_app\r\n[INFO ] pre-build linux/rootfs/rpc_demo_baremetal_fw\r\n[INFO ] pre-build linux/rootfs/uWeb\r\n[INFO ] build system.dtb\r\n[INFO ] build linux/kernel\r\n[INFO ] update linux/u-boot source\r\n[INFO ] generate linux/u-boot configuration files\r\n[INFO ] build linux/u-boot\r\n[INFO ] Setting up stage config\r\n[INFO ] Setting up rootfs config\r\n[INFO ] Updating for armv7a-vfp-neon\r\n[INFO ] Updating package manager\r\n[INFO ] Expanding stagefs\r\n[INFO ] build kernel in-tree modules\r\n[INFO ] modules linux/kernel\r\n[INFO ] build linux/rootfs/rpmsg_echo_test_kern_app\r\n[INFO ] modules linux/kernel\r\n[INFO ] build linux/rootfs/rpmsg_mat_mul_kern_app\r\n[INFO ] modules linux/kernel\r\n[INFO ] build linux/rootfs/rpmsg_proxy_dev_driver\r\n[INFO ] modules linux/kernel\r\n[INFO ] build linux/rootfs/rpmsg_user_dev_driver\r\n[INFO ] modules linux/kernel\r\n[INFO ] build linux/rootfs/zynq_remoteproc_driver\r\n[INFO ] modules linux/kernel\r\n[ERROR] make[6]: *** [/home/kinreven/openamp/xilinx-zynq-linux/build/linux/rootfs/modules/zynq_remoteproc_driver/zynq_remoteproc_driver.o] Error 1\r\n[ERROR] make[5]: *** [_module_/home/kinreven/openamp/xilinx-zynq-linux/build/linux/rootfs/modules/zynq_remoteproc_driver] Error 2\r\n[ERROR] make[4]: *** [sub-make] Error 2\r\n[ERROR] make[3]: *** [modules_only] Error 2\r\n[ERROR] make[2]: *** [modules] Error 2\r\n[ERROR] make[1]: *** [sub_build_component_/none/modules/multi/zynq_remoteproc_driver] Error 2\r\nERROR: Failed to build linux"},"comment":{"url":"https://api.github.com/repos/OpenAMP/open-amp/issues/comments/146645675","html_url":"https://github.com/OpenAMP/open-amp/issues/8#issuecomment-146645675","issue_url":"https://api.github.com/repos/OpenAMP/open-amp/issues/8","id":146645675,"user":{"login":"joshkern","id":4529592,"avatar_url":"https://avatars.githubusercontent.com/u/4529592?v=3","gravatar_id":"","url":"https://api.github.com/users/joshkern","html_url":"https://github.com/joshkern","followers_url":"https://api.github.com/users/joshkern/followers","following_url":"https://api.github.com/users/joshkern/following{/other_user}","gists_url":"https://api.github.com/users/joshkern/gists{/gist_id}","starred_url":"https://api.github.com/users/joshkern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshkern/subscriptions","organizations_url":"https://api.github.com/users/joshkern/orgs","repos_url":"https://api.github.com/users/joshkern/repos","events_url":"https://api.github.com/users/joshkern/events{/privacy}","received_events_url":"https://api.github.com/users/joshkern/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T18:26:26Z","updated_at":"2015-10-08T18:26:26Z","body":"@wjliang Is there a version of OpenAMP that works with Peatlilnux 2014.2 (kernel version 3.14)? I tried using both the current version and the commit you posted above but both are not working for me. If I use the 3.8 version, I get the same error kinreven got during petalinux-build. If I use the current version, I get this error during modprobe:\r\n\r\nroot@Avnet-Digilent-ZedBoard-2014_2:~# modprobe zynq_remoteproc_driver firmware=\r\n\"/lib/firmware/zc702evk/baremetal/matrix_multiply/firmware\"\r\nCPU1: shutdown\r\n\r\n=================================\r\n[ INFO: inconsistent lock state ]\r\n3.14.2-xilinx #14 Tainted: G           O\r\n---------------------------------\r\ninconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage.\r\nmodprobe/783 [HC0[0]:SC0[0]:HE1:SE1] takes:\r\n (irq_controller_lock){?.-...}, at: [<8021a374>] gic_set_affinity+0x60/0xac\r\n{IN-HARDIRQ-W} state was registered at:\r\n  [<8005f6f4>] __lock_acquire+0x75c/0x199c\r\n  [<80061030>] lock_acquire+0x68/0x7c\r\n  [<80495eb0>] _raw_spin_lock_irqsave+0x50/0x64\r\n  [<8021a974>] gic_raise_softirq+0x14/0x80\r\n  [<80014560>] smp_send_reschedule+0x30/0x3c\r\n  [<80049ee8>] check_preempt_curr+0x54/0x80\r\n  [<80049f28>] ttwu_do_wakeup+0x14/0xb0\r\n  [<8004d7bc>] try_to_wake_up+0x244/0x28c\r\n  [<8005aa7c>] autoremove_wake_function+0xc/0x34\r\n  [<8005a4ac>] __wake_up_common+0x4c/0x78\r\n  [<8005a6cc>] __wake_up+0x34/0x48\r\n  [<8008feb4>] __irq_work_run+0x90/0xc8\r\n  [<800144ec>] handle_IPI+0x68/0xac\r\n  [<8000854c>] gic_handle_irq+0x58/0x60\r\n  [<80012444>] __irq_svc+0x44/0x78\r\n  [<80496058>] _raw_spin_unlock_irqrestore+0x40/0x74\r\n  [<80072720>] rcu_process_callbacks+0x190/0x548\r\n  [<80026cc0>] __do_softirq+0x120/0x278\r\n  [<80027104>] irq_exit+0x84/0xf4\r\n  [<8000efa8>] handle_IRQ+0x6c/0x90\r\n  [<80008530>] gic_handle_irq+0x3c/0x60\r\n  [<80012444>] __irq_svc+0x44/0x78\r\n  [<800678a4>] vprintk_emit+0x480/0x504\r\n  [<8048f15c>] printk+0x2c/0x3c\r\n  [<806932d8>] devtmpfs_init+0xb0/0xdc\r\n  [<806931b0>] driver_init+0x8/0x28\r\n  [<8067cba8>] kernel_init_freeable+0x98/0x1d0\r\n  [<8048bcdc>] kernel_init+0x8/0xe4\r\n  [<8000e728>] ret_from_fork+0x14/0x2c\r\nirq event stamp: 9995\r\nhardirqs last  enabled at (9995): [<804960b0>] _raw_spin_unlock_irq+0x24/0x5c\r\nhardirqs last disabled at (9994): [<80495edc>] _raw_spin_lock_irq+0x18/0x60\r\nsoftirqs last  enabled at (9706): [<80026d90>] __do_softirq+0x1f0/0x278\r\nsoftirqs last disabled at (9697): [<80027104>] irq_exit+0x84/0xf4\r\n\r\nother info that might help us debug this:\r\n Possible unsafe locking scenario:\r\n\r\n       CPU0\r\n       ----\r\n  lock(irq_controller_lock);\r\n  <Interrupt>\r\n    lock(irq_controller_lock);\r\n\r\n *** DEADLOCK ***\r\n\r\n2 locks held by modprobe/783:\r\n #0:  (&__lockdep_no_validate__){......}, at: [<80271be8>] __driver_attach+0x34/0x94\r\n #1:  (&__lockdep_no_validate__){......}, at: [<80271c0c>] __driver_attach+0x58/0x94\r\n\r\nstack backtrace:\r\nCPU: 0 PID: 783 Comm: modprobe Tainted: G           O 3.14.2-xilinx #14\r\n[<80015658>] (unwind_backtrace) from [<800119b4>] (show_stack+0x10/0x14)\r\n[<800119b4>] (show_stack) from [<80490688>] (dump_stack+0x8c/0xd0)\r\n[<80490688>] (dump_stack) from [<8048eda0>] (print_usage_bug+0x25c/0x2d0)\r\n[<8048eda0>] (print_usage_bug) from [<8005e6bc>] (mark_lock+0x3d0/0x6b8)\r\n[<8005e6bc>] (mark_lock) from [<8005f760>] (__lock_acquire+0x7c8/0x199c)\r\n[<8005f760>] (__lock_acquire) from [<80061030>] (lock_acquire+0x68/0x7c)\r\n[<80061030>] (lock_acquire) from [<80495d68>] (_raw_spin_lock+0x40/0x50)\r\n[<80495d68>] (_raw_spin_lock) from [<8021a374>] (gic_set_affinity+0x60/0xac)\r\n[<8021a374>] (gic_set_affinity) from [<8021a3fc>] (gic_set_cpu+0x3c/0x44)\r\n[<8021a3fc>] (gic_set_cpu) from [<7f093470>] (zynq_remoteproc_probe+0x1c8/0x3ec [zynq_remoteproc_driver])\r\n[<7f093470>] (zynq_remoteproc_probe [zynq_remoteproc_driver]) from [<80273114>] (platform_drv_probe+0x18/0x48)\r\n[<80273114>] (platform_drv_probe) from [<80271958>] (driver_probe_device+0x11c/0x334)\r\n[<80271958>] (driver_probe_device) from [<80271c24>] (__driver_attach+0x70/0x94)\r\n[<80271c24>] (__driver_attach) from [<8026ff14>] (bus_for_each_dev+0x70/0x84)\r\n[<8026ff14>] (bus_for_each_dev) from [<80270ffc>] (bus_add_driver+0xfc/0x1f4)\r\n[<80270ffc>] (bus_add_driver) from [<8027223c>] (driver_register+0x9c/0xe0)\r\n[<8027223c>] (driver_register) from [<800088b8>] (do_one_initcall+0xb8/0x160)\r\n[<800088b8>] (do_one_initcall) from [<80086070>] (load_module+0x1744/0x1d48)\r\n[<80086070>] (load_module) from [<80086770>] (SyS_init_module+0xfc/0x10c)\r\n[<80086770>] (SyS_init_module) from [<8000e660>] (ret_fast_syscall+0x0/0x48)\r\n remoteproc0: 0.remoteproc-test is available\r\n remoteproc0: Note: remoteproc is still under development and considered experimental.\r\n remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.\r\n remoteproc0: Direct firmware load failed with error -2\r\n remoteproc0: Falling back to user helper\r\nroot@Avnet-Digilent-ZedBoard-2014_2:~#  remoteproc0: registered virtio0 (type 7)\r\nrandom: nonblocking pool is initialized\r\n\r\n\r\nI have also changed the ipino from 6 to 8 as has been suggested for the newer kernels.\r\n\r\nThanks,\r\nJosh"}}