您尚未登录。

#1 Re: 全志 SOC » 荔枝派nano(f1c100s)的SPI-Flash系统编译创建全过程 » 2019-08-10 21:10:58

[    1.119355] CPU: 0 PID: 3 Comm: kworker/0:0 Not tainted 4.14.0-licheepi-nano+ #10
[    1.126861] Hardware name: Allwinner suniv Family
[    1.131613] Workqueue: events deferred_probe_work_func
[    1.136891] [<c010e6d8>] (unwind_backtrace) from [<c010b88c>] (show_stack+0x10/0x14)
[    1.144652] [<c010b88c>] (show_stack) from [<c01166ac>] (__warn+0xd4/0xfc)
[    1.151604] [<c01166ac>] (__warn) from [<c011670c>] (warn_slowpath_fmt+0x38/0x48)
[    1.159160] [<c011670c>] (warn_slowpath_fmt) from [<c047c954>] (sunxi_musb_ep_offset+0x3c/0x54)
[    1.167941] [<c047c954>] (sunxi_musb_ep_offset) from [<c047059c>] (ep_config_from_hw+0xe0/0x158)
[    1.176798] [<c047059c>] (ep_config_from_hw) from [<c0471e00>] (musb_probe+0x528/0xc0c)
[    1.184821] [<c0471e00>] (musb_probe) from [<c03f7dbc>] (platform_drv_probe+0x50/0xb0)
[    1.192839] [<c03f7dbc>] (platform_drv_probe) from [<c03f64ec>] (driver_probe_device+0x22c/0x2f0)
[    1.201798] [<c03f64ec>] (driver_probe_device) from [<c03f4b20>] (bus_for_each_drv+0x64/0x94)
[    1.210393] [<c03f4b20>] (bus_for_each_drv) from [<c03f61dc>] (__device_attach+0xac/0x114)
[    1.218727] [<c03f61dc>] (__device_attach) from [<c03f57d4>] (bus_probe_device+0x84/0x8c)
[    1.226969] [<c03f57d4>] (bus_probe_device) from [<c03f3ce0>] (device_add+0x3c8/0x578)
[    1.234901] [<c03f3ce0>] (device_add) from [<c03f7b30>] (platform_device_add+0x100/0x218)
[    1.243137] [<c03f7b30>] (platform_device_add) from [<c03f8520>] (platform_device_register_full+0xf0/0x114)
[    1.252937] [<c03f8520>] (platform_device_register_full) from [<c047c5cc>] (sunxi_musb_probe+0x26c/0x414)
[    1.262563] [<c047c5cc>] (sunxi_musb_probe) from [<c03f7dbc>] (platform_drv_probe+0x50/0xb0)
[    1.271069] [<c03f7dbc>] (platform_drv_probe) from [<c03f64ec>] (driver_probe_device+0x22c/0x2f0)
[    1.280010] [<c03f64ec>] (driver_probe_device) from [<c03f4b20>] (bus_for_each_drv+0x64/0x94)
[    1.288601] [<c03f4b20>] (bus_for_each_drv) from [<c03f61dc>] (__device_attach+0xac/0x114)
[    1.296929] [<c03f61dc>] (__device_attach) from [<c03f57d4>] (bus_probe_device+0x84/0x8c)
[    1.305122] [<c03f57d4>] (bus_probe_device) from [<c03f5c20>] (deferred_probe_work_func+0x4c/0x140)
[    1.314246] [<c03f5c20>] (deferred_probe_work_func) from [<c0129d60>] (process_one_work+0x1f4/0x404)
[    1.323445] [<c0129d60>] (process_one_work) from [<c012a1f4>] (worker_thread+0x284/0x59c)
[    1.331693] [<c012a1f4>] (worker_thread) from [<c012f3ac>] (kthread+0xf8/0x138)
[    1.339081] [<c012f3ac>] (kthread) from [<c0107f48>] (ret_from_fork+0x14/0x2c)
[    1.346346] ---[ end trace 144b209d5d49627c ]---
[    1.350984] musb-sunxi 1c13000.usb: Error unknown readb offset 128
[    1.357310] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -22
[    1.365099] musb-hdrc: probe of musb-hdrc.1.auto failed with error -22
[    1.372518] ALSA device list:

我的版本USB 启动失败 ,请问你们用的是linux哪个版本呢

#2 Re: 全志 SOC » f1c100s 文件系统挂载出错 » 2019-08-10 20:12:24

nano的编译器有问题 自己编译了一个ARM9的编译器 就OK了

#3 Re: 全志 SOC » f1c100s 文件系统挂载出错 » 2019-08-09 21:16:07

晕哥 说:

和这个 https://whycan.cn/t_2002.html 有点像,

感觉应该是编译根文件系统的 toolchain 有问题。

按这个帖子, https://whycan.cn/t_2002.html#p13502 一个一个替换试一试,

先从 rootfs 开始替换

kylin@ubuntu:~/nano/linux$ arm-linux-gnueabi-readelf  -A vmlinux
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "5TE"
  Tag_CPU_arch: v5TE
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  Tag_FP_arch: VFPv2
  Tag_ABI_PCS_wchar_t: 2
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_enum_size: int

kylin@ubuntu:~/nano/buildroot-2017.08/output/build/busybox-1.27.1$ arm-linux-gnueabi-readelf -A busybox
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "7-A"
  Tag_CPU_arch: v7
  Tag_CPU_arch_profile: Application
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-2
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_rounding: Needed
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_CPU_unaligned_access: v6


linux内核编译Tag_CPU_arch 与build root 不移植 所以才会出错
但是buidroot .config 配置 BR2_ARM_CPU_ARMV5 是正确的,编译出来确实ARMV7的 ,真是奇怪了

BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_ABI="aapcs-linux"
BR2_GCC_TARGET_CPU="arm926ej-s"
BR2_GCC_TARGET_FLOAT_ABI="soft"
BR2_GCC_TARGET_MODE="arm"
BR2_BINFMT_SUPPORTS_SHARED=y
BR2_READELF_ARCH_NAME="ARM"
BR2_BINFMT_ELF=y
BR2_ARM_CPU_MAYBE_HAS_VFPV2=y
BR2_ARM_CPU_HAS_ARM=y
BR2_ARM_CPU_HAS_THUMB=y
BR2_ARM_CPU_ARMV5=y
# BR2_arm920t is not set
# BR2_arm922t is not set
BR2_arm926t=y

#4 全志 SOC » f1c100s 文件系统挂载出错 » 2019-08-09 17:06:04

huyile
回复: 6

[    0.936455] ohci-platform: OHCI generic platform driver
[    0.942072] usbcore: registered new interface driver usb-storage
[    0.948593] musb-sunxi 1c13000.usb: Invalid or missing 'dr_mode' property
[    0.955514] musb-sunxi: probe of 1c13000.usb failed with error -22
[    0.961996] i2c /dev entries driver
[    1.024474] sunxi-mmc 1c0f000.mmc: base:0xc28a6000 irq:18
[    1.031788] usbcore: registered new interface driver usbhid
[    1.037483] usbhid: USB HID core driver
[    1.058717] NET: Registered protocol family 17
[    1.063416] Key type dns_resolver registered
[    1.069957] Loading compiled-in X.509 certificates
[    1.083478] ALSA device list:
[    1.086630]   #0: Loopback 1
[    1.188106] random: crng init done
[    4.183395] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[    4.192103] devtmpfs: mounted
[    4.199597] Freeing unused kernel memory: 1024K
[    6.053677] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    6.053677]
[    6.062825] CPU: 0 PID: 1 Comm: init Not tainted 4.14.0-licheepi-nano+ #4
[    6.069595] Hardware name: Allwinner suniv Family
[    6.074374] [<c010e50c>] (unwind_backtrace) from [<c010b68c>] (show_stack+0x10/0x14)
[    6.082131] [<c010b68c>] (show_stack) from [<c0116804>] (panic+0xb8/0x230)
[    6.089008] [<c0116804>] (panic) from [<c0117fcc>] (do_exit+0x96c/0x9a4)
[    6.095708] [<c0117fcc>] (do_exit) from [<c0118b50>] (do_group_exit+0x3c/0xb4)
[    6.102925] [<c0118b50>] (do_group_exit) from [<c012166c>] (get_signal+0x144/0x558)
[    6.110582] [<c012166c>] (get_signal) from [<c010a914>] (do_signal+0xc4/0x404)
[    6.117809] [<c010a914>] (do_signal) from [<c010ae1c>] (do_work_pending+0xb8/0xcc)
[    6.125379] [<c010ae1c>] (do_work_pending) from [<c0107d3c>] (slow_work_pending+0xc/0x20)
[    6.133543] Rebooting in 5 seconds..
[   12.112776] Reboot failed -- System halted

这是什么情况?

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn