[i.MX] imx6移植安卓4.4.3卡死在VFP求各位大神帮忙

[复制链接]
1714|8
 楼主| lug009 发表于 2015-9-10 08:50 | 显示全部楼层 |阅读模式

[    5.194613] usbcore: registered new interface driver usbhid
[    5.200239] usbhid: USB HID core driver
[    5.206138] ashmem: initialized
[    5.209708] logger: created 256K log 'log_main'
[    5.214679] logger: created 256K log 'log_events'
[    5.219754] logger: created 256K log 'log_radio'
[    5.224806] logger: created 256K log 'log_system'
[    5.231425] usbcore: registered new interface driver snd-usb-audio
[    5.336972] wm8962 0-001a: Failed to read ID register
[    5.342937] wm8962: probe of 0-001a failed with error -5
[    5.356112] fsl-hdmi-dai hdmi_audio.17: failed to probe. Load HDMI-video first.
[    5.363613] fsl-hdmi-dai: probe of hdmi_audio.17 failed with error -12
[    5.372116] imx-wm8962 sound.28: failed to find codec platform device
[    5.378627] imx-wm8962: probe of sound.28 failed with error -22
[    5.385666] imx-audio-hdmi sound-hdmi.29: initialize HDMI-audio failed. load HDMI-video first!
[    5.395167] NET: Registered protocol family 26
[    5.399673] u32 classifier
[    5.402650]     Actions configured
[    5.406107] Netfilter messages via NETLINK v0.30.
[    5.410994] nf_conntrack version 0.5.0 (15959 buckets, 63836 max)
[    5.418089] ctnetlink v0.93: registering with nfnetlink.
[    5.423639] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[    5.430681] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[    5.437281] xt_time: kernel timezone is -0000
[    5.442300] ip_tables: (C) 2000-2006 Netfilter Core Team
[    5.448002] arp_tables: (C) 2002 David S. Miller
[    5.452797] TCP: cubic registered
[    5.456161] Initializing XFRM netlink socket
[    5.461348] NET: Registered protocol family 10
[    5.467502] mip6: Mobile IPv6
[    5.470628] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    5.476432] NET: Registered protocol family 17
[    5.481038] NET: Registered protocol family 15
[    5.485533] can: controller area network core (rev 20120528 abi 9)
[    5.491913] NET: Registered protocol family 29
[    5.496411] can: raw protocol (rev 20120528)
[    5.500821] can: broadcast manager protocol (rev 20120528 t)
[    5.506552] can: netlink gateway (rev 20130117) max_hops=1
[    5.512658] Bluetooth: RFCOMM TTY layer initialized
[    5.517635] Bluetooth: RFCOMM socket layer initialized
[    5.522984] Bluetooth: RFCOMM ver 1.11
[    5.526788] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    5.532233] Bluetooth: BNEP filters: protocol multicast
[    5.537530] Bluetooth: BNEP socket layer initialized
[    5.542583] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    5.548566] Bluetooth: HIDP socket layer initialized
[    5.553687] 8021q: 802.1Q VLAN Support v1.8
[    5.558025] Key type dns_resolver registered
[    5.563077] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    5.570942] 695!!!!!!!!!!!!!!!!
[    5.574133] 703!!!!!!!!!!!!!!!!
[    5.577315] 731!!!!!!!!!!!!!!!!
[    5.580596] 738!!!!!!!!!!!!!!!!
[    5.583789] 739!!!!!!!!!!!!!!!!
[    5.586971] 740!!!!!!!!!!!!!!!
[/code]
 楼主| lug009 发表于 2015-9-10 08:55 | 显示全部楼层
后面数字是为了了测试vfp段代码做的打印。vfp段代码正常执行完成
  1.         pr_info("VFP support v0.3: ");
  2. // printk("printktest674!!!!!!!!!!!!!!!\n");
  3.         if (VFP_arch)
  4.                 pr_cont("not present\n");
  5.         else if (vfpsid & FPSID_NODOUBLE) {
  6. //printk("printktest678!!!!!!!!!!!!!!!\n");
  7.                 pr_cont("no double precision support\n");
  8.         } else {
  9.                 hotcpu_notifier(vfp_hotplug, 0);
  10.    //       printk("ifelsetest!!!!681!!!!!!!!!!!!!!!\n");
  11.                 VFP_arch = (vfpsid & FPSID_ARCH_MASK) >> FPSID_ARCH_BIT;  /* Extract the architecture version */
  12. //printk("683!!!!!!!!!!!!!!!\n");
  13.                 pr_cont("implementor %02x architecture %d part %02x variant %x rev %x\n",
  14.                         (vfpsid & FPSID_IMPLEMENTER_MASK) >> FPSID_IMPLEMENTER_BIT,
  15.                         (vfpsid & FPSID_ARCH_MASK) >> FPSID_ARCH_BIT,
  16.                         (vfpsid & FPSID_PART_MASK) >> FPSID_PART_BIT,
  17.                         (vfpsid & FPSID_VARIANT_MASK) >> FPSID_VARIANT_BIT,
  18.                         (vfpsid & FPSID_REV_MASK) >> FPSID_REV_BIT);
  19. // printk("689!!!!!!!!!!!!!!!\n");
  20.                 vfp_vector = vfp_support_entry;
  21. //printk("692!!!!!!!!!!!!!!!\n");
  22.                 thread_register_notifier(&vfp_notifier_block);
  23.                 vfp_pm_init();
  24. pr_info("695!!!!!!!!!!!!!!!!\n");
  25.                 /*
  26.                  * We detected VFP, and the support code is
  27.                  * in place; report VFP support to userspace.
  28.                  */
  29.                 elf_hwcap |= HWCAP_VFP;
  30. #ifdef CONFIG_VFPv3
  31. pr_info("703!!!!!!!!!!!!!!!!\n");

  32.                 if (VFP_arch >= 2) {
  33. //pr_info("703!!!!!!!!!!!!!!!\n");      
  34.                 elf_hwcap |= HWCAP_VFPv3;
  35. //printk("705!!!!!!!!!!!!!!!\n");
  36.                         /*
  37.                          * Check for VFPv3 D16 and VFPv4 D16.  CPUs in
  38.                          * this configuration only have 16 x 64bit
  39.                          * registers.
  40.                          */
  41.                         if (((fmrx(MVFR0) & MVFR0_A_SIMD_MASK)) == 1)
  42. //pr_info("712!!!!!!!!!!!!!!!!!!!!!\n");        
  43.                         elf_hwcap |= HWCAP_VFPv3D16; /* also v4-D16 */
  44.                         else
  45. //pr_info("715!!!!!!!!!!!!!!!!\n");
  46.                                 elf_hwcap |= HWCAP_VFPD32;
  47.                         else
  48. //pr_info("715!!!!!!!!!!!!!!!!\n");
  49.                                 elf_hwcap |= HWCAP_VFPD32;
  50.                 }
  51. #endif
  52.                 /*
  53.                  * Check for the presence of the Advanced SIMD
  54.                  * load/store instructions, integer and single
  55.                  * precision floating point operations. Only check
  56.                  * for NEON if the hardware has the MVFR registers.
  57.                  */
  58.                 if ((read_cpuid_id() & 0x000f0000) == 0x000f0000) {
  59. //printk("726!!!!1!!!!!!!!!!!!!!!\n");
  60. #ifdef CONFIG_NEON
  61. pr_info("731!!!!!!!!!!!!!!!!\n");

  62.                         if ((fmrx(MVFR1) & 0x000fff00) == 0x00011100)
  63. //printk("729!!!!!!1!!!!!!!!!!!!!!!\n");               
  64.                 elf_hwcap |= HWCAP_NEON;
  65. #endif
  66. #ifdef CONFIG_VFPv3
  67. pr_info("738!!!!!!!!!!!!!!!!\n");

  68.                         if ((fmrx(MVFR1) & 0xf0000000) == 0x10000000)
  69. //printk("vfp end!!!!!!!!!!!!!!!\n");
  70.                                 elf_hwcap |= HWCAP_VFPv4;
  71. pr_info("739!!!!!!!!!!!!!!!!\n");

  72. #endif
  73.                 }
  74.         }
  75.               pr_info("740!!!!!!!!!!!!!!!\n");//        printk("vfp end!!!!!!!!!!!!!!!\n");
  76.         return 0;
  77. }

  78. late_initcall(vfp_init);
  79.                                     
 楼主| lug009 发表于 2015-9-10 08:58 | 显示全部楼层
我们是参考的官方imx6q sabresd-sd做的板子
mini1986 发表于 2015-9-10 09:41 | 显示全部楼层
740都打印出来了,怎么会卡死在VFP,你找找别的原因吧......
一般移植的时候不会卡死在VFP......
 楼主| lug009 发表于 2015-9-14 19:54 | 显示全部楼层
是板子硬件问题,换了一块板子就好了
Roderman_z 发表于 2015-9-14 20:50 | 显示全部楼层
是硬件的问题吗,感觉移植没啥问题啊
 楼主| lug009 发表于 2015-9-15 00:57 来自手机 | 显示全部楼层
Roderman_z 发表于 2015-9-14 20:50
是硬件的问题吗,感觉移植没啥问题啊

现在系统起来了,可是一直卡在开机安卓动画上进不了界面,但是ls有输出
quray1985 发表于 2015-9-15 12:48 | 显示全部楼层
希望楼主早日解决问题吧
huangcunxiake 发表于 2015-9-15 13:26 | 显示全部楼层
竟然可以移植安卓?这也太强大了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

24

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部