您尚未登录。

楼主 #1 2019-08-09 17:06:04

huyile
会员
注册时间: 2019-01-02
已发帖子: 4
积分: 4

f1c100s 文件系统挂载出错

[    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

这是什么情况?

离线

楼主 #3 2019-08-09 21:16:07

huyile
会员
注册时间: 2019-01-02
已发帖子: 4
积分: 4

Re: f1c100s 文件系统挂载出错

晕哥 说:

和这个 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

离线

楼主 #5 2019-08-10 20:12:24

huyile
会员
注册时间: 2019-01-02
已发帖子: 4
积分: 4

Re: f1c100s 文件系统挂载出错

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

离线

页脚

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

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