For ordinary computer users may be exposed to the BSP is not much, BSP is a bell bottom file, carrying the stable operation of the underlying hardware.
What is the BSP file
BSP (Board Support Package) is a board-level support package, a layer between the motherboard hardware and the operating system, and should be said to be part of the operating system, primarily to support the operating system so that it can run better on the hardware motherboard.
The BSP is a board-level support package, which is a layer between the motherboard hardware and the operating system and should be said to be part of the operating system, primarily to support the operating system so that it can run better on the hardware motherboard. BSP is relative to the operating system, different operating systems correspond to different defined forms of BSP, such as VxWorks BSP and Linux BSP relative to a CPU, although the implementation of the same function, but the writing and interface definition is completely different, Therefore, the writing BSP must be written according to the definition of the system BSP (BSP programming process is mostly in a formed BSP template to modify). This allows the correct interface to be maintained with the upper OS and good support for the upper OS.
For example: In VxWorks, the network card driver, first in the config.h contains the network card, and then the network card contains the information of the network card into the array end_tbl_entry enddevtbl [], the system through the function Muxdevload () Call this array to install the NIC driver.
In Linux, the network card driver, is in the space.c to declare the device, and then the NIC-driven some functions added to the dev structure, by the function Ether_setup () to complete the installation of the network card driver.
The pure BSP contains content that is generally related to the system's drivers and programs, such as network drivers and network protocols in the system, serial drive and system download and debugging, and so on. Leaving these drive systems will not work properly.
The tornado in the BSP is different from the upper application, the command line or directly in the Tornado environment build, under the tornado can not track debugging.
How does a BSP file open?
Users can also add their own programs to the BSP, but strictly not the BSP. This practice is generally not recommended. Because once the operating system is running well on the final motherboard hardware, the BSP is fixed and no changes are required. and users themselves in the BSP program will continue to upgrade the update, which is bound to the BSP has a bad impact on the system, and because the BSP debugging and compiling environment is poor, also not conducive to the program's compilation and debugging.
While opening the BSP file, we recommend using BSP to convert map Map file converter, CS Map editor and other tools open, as shown in the figure above.