Home > OS >  The Linux kernel transplantation
The Linux kernel transplantation

Time:11-10

# # Executing script at c4100000
* * the File not found rproc - m4 - fw. The elf * *
6931232 bytes read in 302 ms (21.9 MiB/s)
71204 bytes read 5 ms in MiB/s (13.6)
# # Booting the kernel from Legacy Image at c2000000...
Image Name: Linux - also 5.4.7
Image Type: ARM Linux Kernel Image (uncompressed)
The Data Size: 6931168 Bytes=6.6 MiB
The Load Address: c2000040
Entry Point: c2000040
Verifying the Checksum... OK
# # Flattened Device Tree blob at c4000000
Booting using the FDT blob at 0 xc4000000
XIP Kernel Image... OK
Using the Device Tree in place at c4000000, end c4014623

Starting the kernel...

Want to consult everybody, transplantation of the latest kernel 5.4, always stuck in Starting the kernel... This, as the kernel to take over the executive stuck, excuse me what reason be? Is there a general direction?

CodePudding user response:

Kernel image damage or hardware resources conformity, first check the kernel compilation has no error message,

CodePudding user response:

The first is to open the can make early_printk, starts again and then look to whether can be effectively prompt information
If early_printk can't see the message, that directly read cache, the cache address for __log_buf, its address in the system. The map inside find,

Specific as follows:
First of all to kernel build directory System. The map file,
Next was System. __log_buf correspondence address in the map, execution:

The/System. The map | grep -n __log_buf

How can get the following results:
64584: c0770be8 __log_buf b
At this point the number c0770be8,
3. Start the kernel, the kernel card at this time in Starting the kernel... Position,
4. Reboot the system (note: do not start power), enter the UBoot command line interface
5. Under uboot command line input (Numbers are just get Numbers) :

Md 0 xc0770be8

This time will be displayed abnormal information, according to the exception information to analyze code,

6, continuously tap the enter key, until all of 0

CodePudding user response:

Thank you, and this tried and print out all look not innocent string, don't know how to track

CodePudding user response:

Can refine, kernel function
  • Related