Learn ARM development (2)

Publisher:BlossomWhisperLatest update time:2024-11-14 Source: cnblogs Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

It was Sunday, and I was just resting at home. It was a good time to learn ARM. I got up
very early in the morning because I was always anxious about how to set up the ARM development environment. I couldn't sleep well. I immediately turned on the computer. In order to speed up, I turned on both computers at home and installed LINUX on the faster computer. At present, because both computers have installed WINDOWS system and many software. In order to have no risks, I installed VMWARE software, which is virtual machine software. The virtual speed of this software is indeed much faster, and it is not slow to run the graphics operating system. If BOCHS runs a graphics operating system, it will be very slow, so I gave up this free software. If my computer is also very fast, such as using the latest AMD64-bit CPU, maybe BOCHS will not be slow. Haha...
After installing VMWARE software, I will install LINUX in it. So which LINUX is better? At present, I use the most popular REDHAT. And I use version 9.0, which is really good. All the way down, you can install it almost without doing anything.
I learned from the experience of the previous times, so this time I chose to install all the software. There is still 10G of hard disk space, so I
allocated 10G hard disk space to the virtual machine hard disk. After installing all LINUX, the size is only about 3G. This LINUX has installed the graphics, network, development source programs and all tools. Users like me who rarely use LINUX will definitely not go back to an environment like DOS. Maybe I haven't used DOS for a long time, so it is always difficult to type commands and I can't remember the commands under LINUX, so I chose the graphical method. At present, using the graphical method under LINUX is already very convenient. The level is comparable to that of WIN95. If WINDOWS really wants to charge me, I will switch to LINUX. REDHAT9.0 is already very convenient to use. If you only use LINUX for office work, it is already very useful. Before this, I didn't choose the graphical method when installing LINUX, which was really painful. I started installing LINUX in 1997. At that time, I used floppy disks to install it, which was too difficult and damaged my hard disk. By 2005, LINUX had indeed made great progress. REDHAT9.0 was already very practical, and LINUX could definitely become a standard configuration for office PCs.
After installing LINUX, you need to configure its network part. I failed to configure it several times before because I didn't understand LINUX, or maybe it didn't help much, and I thought everyone was an expert. Now I use the Chinese version of REDHAT9.0, and I finally understand it better. Set the IP address of the network card to 192.168.0.2, mask: 255.255.255.0, and gateway to 192.168.0.1. This is how the LINUX network is configured.
Next, you need to set up the network part of VMWARE. I choose NAT. So I found the virtual network card of VNET8, and set its IP address to 192.168.0.8, mask: 255.255.255.0, and gateway to 192.168.0.1. This is configured in the WINDOWS network. After setting up like this, in WINDOWS, you can ping the 192.168.0.2 of LINUX in the virtual machine.
What is the IP address of WINDOWS in LINUX? I didn't know this problem at the beginning. Later, I tried it and could only ping the address 192.168.0.8 of WINDOWS. However, as long as you can ping this address, it proves that the network of LINUX and WINDOWS has been set up.

Next, it is to solve the problem of sharing files between WINDOWS and LINUX. There are many solutions for this. My choice is to use FTP.
Because I don't know LINUX, I always try to configure VSFTPD of LINUX and it doesn't meet my requirements. My requirement is simple, any file can be uploaded and downloaded, but the default method of LINUX is very safe, so sometimes I can upload but not download, and sometimes I can upload but can't delete files, because the permissions are too complicated. Finally, I understand why WINDOWS is easy to use, because WINDOWS does not have so many permission controls.
Since the configuration of LINUX failed, I chose the FTP server of WINDOWS. Take out the WINDOWS CD, and then add the WINDOWS FTP server. After WINDOWS, just select two settings, and you can set anyone to log in, and any file can be uploaded and downloaded. This is too fast, and WINDOWS is still convenient, all interface. Because security is not considered at present, it is difficult to set up the LINUX one to change it to unsafe.

After setting up the WINDOWS FTP server, you can use the graphical GFTP tool after LINUX to connect to WINDOWS. As long as you put any file in the WINDOWS FTP directory, you can use GFTP to copy it in the virtual machine LINUX, and you can also copy files out of LINUX.

After installing such an operating system, you can install the ARM development environment. This is to download the arm-elf cross compiler. This will be discussed later.
At this point, the installation of LINUX and the file sharing problem are completed. The advantage of this is that you can compile programs under LINUX, and you can use VC and other tools on WINDOWS to write and modify source programs. The speed is fast, and it is also very convenient to write Chinese comments. And you can
run the uClinux target file in WINDOWS with SKYEYE, etc. If you still use SKYEYE in the virtual machine's LINUX, it will
become very slow.
I will continue to learn ARM next time.

Reference address:Learn ARM development (2)

Previous article:Learn ARM development (4)
Next article:Learn ARM development (1)

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号