Create a powerpc405ep development environment in ubuntu

Source: Internet
Author: User
Create a powerpc405ep development environment under ubuntu-Linux general technology-Linux programming and kernel information. The following is a detailed description. Although the progress is a little slow, it seems like a snail crawling, but there is a progress. Due to some design problems of the ubuntu system itself, there are still some problems in creating a development environment for PPC_405EP in ubuntu according to the manual. The following describes how to install the development environment.

The operating system uses the ubuntu 7.04 linux operating system. Installing the ubuntu system is very simple for users who are not the latest hardware devices. If the hardware devices are very new, related drivers need to be resolved by yourself. For intel 965 chipset, you can upgrade the kernel to 2.6.20-16 and install xserver-xorg-video-intel to solve the driver problem.

After installing the ubuntu system, you usually need to modify the system update source and/etc/apt/sources. list file, select the appropriate source followed by the new system, and upgrade the kernel earlier. This step will also be completed.

Next, install the C/C ++ development environment, run sudo apt-get build-essential to install the build-essential Package, and then install the package required to compile the kernel, as shown below:

Sudo apt-get install libncurses5-dev bin86 kernel-package libqts-headers
Sudo apt-get install libqt3-mt-dev
Sudo apt-get install mkinitramfs

The next step is to install eldk:
1, sudo mount-o exec/dev/cdrom/mnt
2, sudo mkdir/opt/eldk
3, cd/mnt
4, sudo./install-d/opt/eldk ppc_4xx
5, export CROSS_COMPILE = ppc_4xx-
6, export PATH = $ PATH:/opt/eldk/usr/bin:/opt/eldk/bin

At this point, the cross-compilation environment is basically configured. Then configure the host as a tftp server. This process is also very simple for ubuntu. There are a lot of instructions in the evening, after tftp is configured, if the tftp server works properly and the link to the target board fails, the related parameters of the server may be incorrect, however, it may be that the speed of the hardware devices at both ends does not match. You can add a hub between the two devices for transfer. At the same time, you should note that the network cable in the middle should not be too short, it is too short to achieve the effect. I am confused about this issue for a long time. I hope you will not.

Finally, let's talk about a problem that requires attention when compiling the kernel for the target board in ubuntu. Compiling the kernel usually requires the privileges of the super user of the system. To compile the kernel for the target board, you must use the cross-compiling environment configured earlier. However, Because ubuntu automatically blocks superusers From the security perspective, the Environment configured previously is only configured for normal users, and The sudo command only allows normal users to temporarily obtain superuser permissions.

Therefore, you need to run the sudo-su command to enter the superuser mode, and then set the relevant environment variables. In the superuser mode, the kernel is also available. The kernel of ppc is generated using make uImage.

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.