Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to analyze the Linux embedded system of Fedora 7

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to analyze the Linux embedding of Fedora 7. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Let's talk about Linux embedding in detail on this issue. Here, we need to use the kernel nfs function to mount the file system from the PC to the development board to facilitate development. The IP address of my nfs root directory is / xgnfs,PC is 192.168.2.80, and the IP of the development board is 192.168.2.199. Linux embedded content is rich and clear, covering almost all the content of the tutorial, because it is carried out step by step, it helps beginners to understand and grasp the essence of the problem, improves the overall understanding of the application operation framework, and provides a classic example for readers to master operation skills.

Configuration under Fedora 7, nfs service, Linux embedded development

1)。 First install the nfs service, which is already installed when you install the operating system.

2). # vi / etc/exports, and after entering the following, save and exit.

/ xgnfs 192.168.2.199 (rw,sync,no_root_squash)

/ xgnfs 192.168.2.80 (rw,sync,no_root_squash)

3). # exportfs-rv Linux embedded

4) .Linux embedded permissions to modify directories (and their subdirectories)

# chmod 777-R / xgnfs

5). Linux embedded modification / etc/hosts to add the IP and name (or no name) of the target board to the table, and the added file content is as follows:

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost

:: 1 localhost6.localdomain6 localhost6

192.168.2.199

127.0.0.1 localhost

6) .Linux embedded restart nfs

# service nfs restart

7)。 Test, Linux embedded mount to another directory, after mounting, the contents of the two directories change at the same time.

# mount 192.168.2.80:/xgnfs / mnt

Copy a file to / xgnfs and see if the file is also added to mnt. If yes, the nfs configuration is successful.

Remember, if it doesn't work, it could be the firewall. * turn it off.

View firewall status:

/ etc/init.d/iptables status

Temporarily turn off the firewall:

/ etc/init.d/iptables stop

Prevent the firewall from starting when the system starts

/ sbin/chkconfig-- level 2345 iptables off

Restart iptables:

/ etc/init.d/iptables restart

On how to analyze Fedora 7 Linux embedded to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report