How to port a PowerPC-Based Kernel

Source: Internet
Author: User
Linux general technology-Linux programming and kernel information, which is a strange problem of PowerPC kernel transplantation, is described below. How to port a PowerPC-Based Kernel

My system is based on mpc3167, the kernel is using a linux-2.6.10, u-boot version is 1.1.5,
Use tftp to download the uImage to the target board. After decompression, the serial port is not printed. The following content is displayed:

=> Bootm 0x400000
Using fpc3 ETHERNET device
TFTP from server 192.168.0.48; our IP address is 192.168.0.49
Filename 'uimage '.
Load address: 0x400000
Loading: *####################################### ##########################
###################################
Done
Bytes transferred = 511300 (hex)
# Booting image at 00400000...
Image Name: Linux-2.6.10
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 511236 Bytes = 499.3 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum... OK
Uncompressing Kernel Image... OK

Then there will be no changes. With the method of lighting to head. s, the light can be on before bl call_setup_cpu (line 189 attachment), but then the light will cause the machine to restart. My lighting code is as follows:

Void led ()
{
* (Unsigned int *) (IMMR_ADDR + 0x10d10) & = ~ (0x003c0000 & (3 <18 ));
Return;
}
IMMR_ADDR is 0xf0000000

SCC1 is used to print the serial port. Can you solve this problem?
Which codes need to be modified to print with SCC1? How can I use the light to continue tracking?

I have been depressed for more than a week. Hope you can help me!

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.