These days have been practicing driving, building a simple cross-compilation environment, cross-compiling tool chain and the Development Board source code are in the Linux directory, and decompression, but a simple cross-compiler command will always appear a strange error hint:
as:unrecongnized option ' mcpu=xxx ';
Think of the solution, and then after a lab brother's tips, finally understand. Here's a background to explain:
I am a driver development exercise in the Unbuntu virtual machine under Windows.
First, I set up a shared folder, copy the cross-compilation chain of compressed files, here my compressed file name is XXX.tar.gz
Then I used the following command line when I extracted it:
CP xxx.tar.gz/home/a270 (The directory I created)
Then I used a simple Hello World program to test whether the cross-compilation chain worked, and there was an error message as shown at the beginning of the article.
But then I changed a method, that is, the compressed file to the first test I set up the goal:
CP xxx.tar.gz/home/a270
Then unzip
TAR-ZXVF XXX.tar.gz
After another try, everything went well.
My god!
Originally I started to use the method, is the decompression under Windows, and then copied into the directory I created, so I lost a connection file (you can check it yourself)
Therefore, this error occurs, and if the compressed package is copied first, there will be no loss of the soft connection file.
Crossing do not believe, you can try it yourself, in the shared folder, unzip a compressed package and then copy to another directory, and then copy the compressed package into a directory, with the LS command to look at the number of files, contrast.
Here is an article to look at:
Http://blog.chinaunix.net/uid-29100821-id-3990728.html
Postscript:
The driver of Linux is not very studious, need to accumulate experience slowly in the practice of repetition, also test a person's patient degree, but, after the success of the thing, the sense of accomplishment that comes with it is also quite high.
This article is from the "Freehand" blog, please be sure to keep this source http://8827835.blog.51cto.com/8817835/1560503
Unzip the shared folder into other Linux directories, and pay attention to the problem of soft connection