Learning about Kernel Driver errors and Solutions

Source: Internet
Author: User

I was confused when I tried to download files from TFTP,

A: The Development Board cannot be pinged, and the virtual machine and host machine network are also turned on and off the firewall! It was discovered that there was a problem with the connection mode of the Virtual Machine. If you want to ping the virtual machine, it may be in the same network segment, but my virtual machine and the host machine are not in the same network segment, because the previous virtual machine used.

A: The default net network mode: virtual machines can connect as long as the physical function is connected to the network, but their IP addresses are randomly allocated, so they are not in the same network segment as the host machine;

B: There is also a bridge: vmnet0 is used by default.

Set the IP address of the Virtual Machine and the IP address of the host in the same network segment, and the rest are the same as those of the Host:

For example, if the host IP address is 192.168.2.46, set the Virtual Machine IP address to 192.168.2.254. Netmask, broadcast, gateway, and DNS are all the same as the host to implement Internet communication between Vm instances.

C: Then there is a host-only:

Vmnet1 is used by default.

DHCP: DHCP is used by default.

Constitute an independent virtual network isolated from the physical network

But one thing is that it can communicate with the host machine.

Of course, you can manually specify the IP address, but you must select the IP address of vmnet1 as the network header.

After introducing the three network modes, I naturally knew that I finally chose the bridging method to make them in the same network segment and then set the development board to the same network segment. Then I restarted the machine !!!!

B: I opened TFTP but TFTP couldn't download the file. Then I found that the Linux Firewall was not closed after I restarted the machine, after the firewall is disabled, you can download the file:

2. This error occurs on the Development Board console during kernel loading.


 

Finally, I searched for the information and found that there was a problem in my source file. The error is as follows:

Because the pointer type is required, I declare a struct variable as the pointer type and then directly use the pointer type. However, the compilation is correct.

Solution:

Declare the struct variable as a non-pointer variable and take the struct variable address for use;

Note: This may be only one of the situations I encountered. I have read the internet and other reasons have led to this problem. So now I just want to take a step!

 

 

Learning about Kernel Driver errors and Solutions

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.