Summary of the error in kernel panic-not syncing: No init found. Try passing init = option to kernel!

Source: Internet
Author: User

1
"Mount_devfs_fs (): Unable to mount devfs, err:-2" is a problem that has plagued me for a long time, mainly because of ECC problems. Here I want to explain my understanding:
Find out what you are doing in Driver/MTD/NAND/S3C2410. does the c file change nand_ecc_soft to nand_ecc_none? Many people on the Internet will do it (I heard there will be conflicts with the yaffs file system, but I found it is in conflict with the cramfs File System ). I didn't make it clear at that time. Sorry ^_^
If you change nand_ecc_soft to nand_ecc_none, [*] lets yaffs do its own ECC is required.
Finally, if you change nand_ecc_soft to nand_ecc_none, you should not add the-e parameter when downloading the yaffs file system.
I have learned this thing countless times before "mount_devfs_fs (): Unable to mount devfs, err:-2, but too many people have asked this question.
Finally, we recommend that you first Mount cramfs to the kernel (remember to change nand_ecc_soft to nand_ecc_none), because the file system only needs to download the kernel command, it will be your greatest encouragement to successfully mount cramfs.

2. Make sure that devfs is correctly modified. Because devfs is canceled after Linux 2.6.12, you can add devfs support in FS/kconfig.

Copy the following items from FS/kconfig of 2.6.12 to FS/kconfig of 2.6.14:

Config devfs_fs
Bool "/dev File System Support (obsolete )"
Depends on experimental
Help
.........................................................

Config devfs_mount
Bool "automatically mount at Boot"
Depends on devfs_fs
Help
..........................................................

Config devfs_debug
Bool "Debug devfs"
Depends on devfs_fs
Help
...........................................................

The help part is saved. You can see it in the 2.6.12 Kernel configuration file or write it on your own.

Re-make menuconfig. In the file systems> pseudo filesystems directory, you can configure devfs as follows:
[*]/Proc file system support │
[*]/Dev File System Support (obsolete) │
[*] Automatically mount at boot │
[*] Debug devfs │
[*] Virtual memory file system support (former shm fs) │
[] Relayfs File System Support

! I did not add debug devfs in an experiment. The system failed to be mounted! Because when the execution kernel is about to end, you need to mount devfs and debug devfs! So add it!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.