Some Problems and Solutions encountered during Linux + ramdisk migration

Source: Internet
Author: User

1.

Uncompressing Linux ...................................... ..........................Done,Booting The Kernel.

It won't move.

 

Solution: Change console =/dev/ttysac0 to console = ttysac0.

 

2. the startup parameter initrd = 0x30800000,0x20000, 0x30800000 indicates the address of ramdisk in ram, and 0x20000 indicates the size of ramdisk.

 

3. failed to execute/linuxrc; kernel panic no init fo...

Cause: initrd = 0x30800000,0x20000; 0x20000 is smaller than the actual size of ramdisk

 

4. ramdisk: incomplete write (-28! = 32768) 4194304
Ramdisk: ran out of compressed data
Invalid compressed format (ERR = 1)
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root FS via NFS, trying floppy.
VFS: cannot open root device "" or unknown-block (2, 0)
Please append a correct "root =" Boot Option
Kernel panic-not syncing: VFS: Unable to mount root FS on unknown-block (2, 0)

In the above case, the reason is that the materials have not been modified.
Driver device->
Block device->
(4096) default RAM disk size (Kbytes)
Change 4096 to 8192

 

5. Error: Unrecognized/unsupported machine ID (r1 = 0x33f60264 ).

Solution: refer to my csdn blog

 

6. Kernel panic-not syncing: attempted to kill Init!

One of the reasons is that the kernel is not compiled by the compiler with Eabi, while the busybox that creates rootfs is compiled by the compiler with Eabi.

 

7. problems that may occur during compilation of busybox

You will encounter the following problems::
Applets/Applets. c:20:2: Error:# Warning static linking against glibc produces buggy executables
Applets/Applets. c:21:2: Error:# Warning (glibc does not well with LD -- GC-sections ).
Applets/Applets. c:22:2: Error:# Warning see sources.redhat.com/bugzilla/show_bug.cgi? Id = 3400
Applets/Applets. c:23:2: Error:# Warning note that glibc is unsuitable for static linking anyway.
Applets/Applets. c:24:2: Error:# Warning if you still want to do it, remove-wl, -- GC-Sections
Applets/Applets. c:25:2: Error:# Warning from top-level makefile and remove this warning.
Make[1]:***[Applets/Applets. o]Error 1

This warning is defined inApplets/Applets. c. Comment out this warning.This warning tells you that it is best to use uclibc for compilation, instead of using glibc because glibc is large, busybox is used in many embedded systems, so there are such requirements.

Related Article

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.