ルートファイルシステム作成--Kernel panic-not syncing
2388 ワード
ターゲット環境:Embedded Linux
システムバージョン:linux-2.6.35.3
GUIバージョン:QtEmbedded-4.8.5-arm
問題の説明:
UBIFS: mounted UBI device 0, volume 0, name "rootfs0"
UBIFS: file system size: 106786816 bytes (104284 KiB, 101 MiB, 841 LEBs)
UBIFS: journal size: 5332992 bytes (5208 KiB, 5 MiB, 42 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root: 4952683 bytes (4836 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:15.
Freeing init memory: 160K
Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Backtrace:
[] (dump_backtrace+0x0/0x114) from [] (dump_stack+0x18/0x1c)
r7:00000013 r6:c0050170 r5:c0028e84 r4:c053f338
[] (dump_stack+0x0/0x1c) from [] (panic+0x78/0xf4)
[] (panic+0x0/0xf4) from [] (init_post+0xb4/0xdc)
r3:00000000 r2:c752c300 r1:c752c400 r0:c0483252
[] (init_post+0x0/0xdc) from [] (kernel_init+0x12c/0x170)
r5:c0028e84 r4:c053e460
[] (kernel_init+0x0/0x170) from [] (do_exit+0x0/0x6dc)
r5:c00083d0 r4:00000000
分析:
ファイルシステムを持参することに照らして、合理的なところはない.
#sudo tar//権限を上げてルートファイルシステムを再パッケージ
結果:
ファームウェアを再ダウンロードし、正常に動作
UBIFS: mounted UBI device 0, volume 0, name "rootfs0"
UBIFS: file system size: 106786816 bytes (104284 KiB, 101 MiB, 841 LEBs)
UBIFS: journal size: 5332992 bytes (5208 KiB, 5 MiB, 42 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root: 4952683 bytes (4836 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:15.
Freeing init memory: 160K
starting pid 1140, tty '': '/etc/rc.d/rcS'
Mounting /proc and /sys
Starting the hotplug events dispatcher udevd
Synthesizing initial hotplug events
Setting the hostname to myzr
Mounting filesystems
Generating keys for the ssh server:
Starting the ssh server:
Setting up networking on loopback device:
Setuping the eth0: 192.168.3.104
eth0: Freescale FEC PHY driver [Gen
理由:
一部のファイルへのアクセスにはroot権限が必要で、通常のユーザーIDパッケージでは一部のファイルが漏れ、キーファイルが不足してシステムが起きない.