Embodiment
Below in conjunction with Figure of description and embodiment, the present invention is described in detail.
The Linux software development system that the present invention is based on hardware comprises windows platform and Linux analog development environment unit.Linux analog development environment unit at least comprises field programmable gate array (FPGA:Field-Programmable Gate Array) module and Linux analog development tool model.
Wherein, FPGA module is connected to windows platform by interface, for the hardware simulation of Linux software development.Windows driver is installed in FPGA module, makes it be identified in windows platform and used.
Linux analog development tool model is arranged on windows platform, for forming Linux analog development environment at windows platform, carries out Linux software development.
By said structure, achieve and build Linux analog development environment unit on windows platform basis, can develop by the built-in Linux carried out on windows platform based on hardware chip, avoid frequent switching between system or use multiple computers.Reduce cost of development, improve development efficiency.
FPGA module is connected to windows platform and comprises two layers of meaning, i.e. the connection of software interface and the connection of hardware interface.Wherein, software interface is connected to the Windows system on windows platform, and hardware interface is connected to the main frame of windows platform.
Concrete connected mode and the concrete connecting interface of software interface and hardware interface are not limit, and can realize the connection of FPGA and windows platform.Preferred software interface has jtag interface, UART interface and EJTAG interface; Hardware interface preferably uses HPI wiring, and its connected mode can be connected to the PCI slot of main frame by PCI-HPI patchcord or be connected to the USB interface of main frame by USB-HPI patchcord.
Windows platform is provided with Code Edit tool model and/or media formats, code stream scan tool module.After above-mentioned module has been installed, be conducive to watching result easily.
The support module corresponding with Linux software development content is provided with in Linux analog development tool model.After support module has been installed, hardware can be called well, realize the co-development work of software and hardware.When this system is applied to the exploitation of audio frequency and video, Cygwin or the MiniGW software that the preferred usability of Linux analog development tool model is good.
Telnet submodule is provided with, for supporting that multiple client carries out Telnet in Linux analog development tool model.Because this remote login service allows the remote collaborative of multiple staff to develop, so make native system be provided with higher convenience.Facilitate user to edit on the remote computer to develop software, but also multiple people can share use Linux analog development environment, jointly carry out remote collaboration, reduce the cost of exploitation, improve the efficiency of exploitation.
Do not have concrete quantity to limit to Terminal Server Client in native system, there is no the restriction of operating system, Windows system or linux system yet.
In order to realize above-mentioned hardware based Linux software development system, the construction method that the present invention is based on the Linux software development system of hardware at least comprises the steps:
Main frame is installed Windows system, forms windows platform; Windows system platform is carried out the scheme of the Linux embedded software developing based on hardware chip.
The software interface of FPGA is connected to windows system, the hardware interface of FPGA is connected to main frame, for software interface and hardware interface install windows driver; Both are made to be identified in windows platform and to be used.
Linux analog development instrument is installed in windows system; Make the software development of being correlated with identical with the exploitation under linux system.
In FPGA, flashburn tools is installed; This instrument, by decoding chip program in software interface programming, erasing FPGA, uses the form of FPGA analog hardware to be conducive to the debugging of hardware and the synchronous development of software and hardware.
Code word instrument is installed in windows system; This code word instrument mainly comprises Code Edit instrument sourceInsight and/or media formats, code stream scan tool.Code Edit instrument sourceInsight with the whole code engineering of the interface display of close friend, and can set up relative index.Media formats, code stream scan tool are for debugging, checking the correctness of decoding software.
In Linux analog development instrument, the support module corresponding with Linux software development content is installed.When Linux analog development instrument is the Cygwin supporting graphic software platform, also need the driving of installing audio hardware.The audio driven of preferred employing ALSA framework, so that realize audio frequency and video test; Install the Gstreamer increased income, Gstreamer can provide unified interface for the media play on upper strata, and it is also convenient to debug decoding software simultaneously.
Remote login service is enabled in Linux analog development instrument.This remote login service be multiple client by ssh protocol entry in Linux analog development instrument, the username and password of login be login name and the password of windows system on main frame.
After having had above-mentioned remote login service, user can be facilitated to edit on the remote computer and to develop software.But also multiple people can share use Linux analog development environment, carry out remote collaboration.Reduce cost of development, improve development efficiency.
Preferred embodiment one: hardware based Linux software development system comprises windows platform and Linux analog development environment unit.Linux analog development environment unit comprises FPGA module and Linux analog development tool model, and this Linux analog development tool model is the Cygwin of Xserver version.
Windows platform is made up of jointly main frame and Windows XP operating system mounted thereto.The jtag interface of FPGA is connected in the windows system of main frame by USB; The simulation code of foradownloaded video decoder chip in FPGA, the input and output of demoder are connected in the PCI slot of main frame through PCI-HPI patchcord.To jtag interface, windows driver is installed, makes it to identify use in windows platform.
In windows XP operating system, Cygwin is installed.Cygwin can support basic Linux shelll order, supports the compilation tool gcc that increases income, debugging acid gdb under Linux.Most importantly it can utilize the video card of windows, supports patterned display, makes the exploitation of video decode software and develops just the same under linux.
In FPGA, install XILINX flashburn tools, this instrument, by decoding chip program in jtag interface programming, erasing FPGA, uses the form of FPGA analog hardware to be conducive to the debugging of hardware and the synchronous development of software and hardware.
Code Edit instrument sourceInsight and media formats, code stream scan tool are installed in windows system.Code Edit instrument sourceInsight with the whole code engineering of the interface display of close friend, and can set up relative index; Media formats, code stream scan tool are for debugging, checking the correctness of decoding software.
In order to realize the development to audio frequency, in this preferred embodiment, use the Cygwin supporting graphic software platform.Need the driving of installing audio hardware in addition, adopt the audio driven of ALSA framework here, so that realize audio frequency and video test; Install the Gstreamer increased income, Gstreamer can provide unified interface for the media play on upper strata, and it is also convenient to debug decoding software simultaneously.
This preferred embodiment carries out the scheme of the Linux embedded software developing based on hardware chip on windows platform.The program can when hardware chip lacks Li nux driving, and when namely cannot be directly connected in linux system, install class Linux analog development environment in the windows system of windows platform, exploitation is applicable to the software of Linux platform.
Preferred embodiment two: hardware based Linux software development system comprises windows platform and Linux analog development environment unit.Linux analog development environment unit comprises FPGA module and Linux analog development tool model, and this Linux analog development tool model is the Cygwin of Xserver version.
Windows platform is made up of jointly main frame and Windows XP operating system mounted thereto.The jtag interface of FPGA is connected in the windows system of main frame by USB, HPI (Hard ware PlatformInterface hardware platform interface) wiring is connected to the PCI slot of main frame by PCI-HPI patchcord, windows driver both simultaneously installing, makes it to identify use in windows platform.
In windows XP operating system, Cygwin is installed.Cygwin can support basic Linux shelll order, supports the compilation tool gcc that increases income, debugging acid gdb under Linux.Most importantly it can utilize the video card of windows, supports patterned display, makes the exploitation of video decode software and develops just the same under linux.
In FPGA, install XILINX flashburn tools, this instrument, by decoding chip program in jtag interface programming, erasing FPGA, uses the form of FPGA analog hardware to be conducive to the debugging of hardware and the synchronous development of software and hardware.
Code Edit instrument sourceInsight and media formats, code stream scan tool are installed in windows system.Code Edit instrument sourceInsight with the whole code engineering of the interface display of close friend, and can set up relative index; Media formats, code stream scan tool are for debugging, checking the correctness of decoding software.
In order to realize the development to audio frequency, in this preferred embodiment, use the Cygwin supporting graphic software platform.Need the driving of installing audio hardware in addition, adopt the audio driven of ALSA framework here, so that realize audio frequency and video test; Install the Gstreamer increased income, Gstreamer can provide unified interface for the media play on upper strata, and it is also convenient to debug decoding software simultaneously.
In Cygwin, enable sshd remote login service, utilize the network of windows, allow 10 long-range clients by ssh protocol entry in Cygwin.Have 5 clients to be windows in the middle of 10 clients, 5 clients are Linux.The username and password that Terminal Server Client logs in be also login name, the password of main frame windows system.
This preferred embodiment is also the scheme of the Linux embedded software developing carried out on windows platform based on hardware chip.Be from the different of preferred embodiment one function adding Telnet, facilitate user to edit on the remote computer and develop software, but also multiple people can share the development environment using Cygwin, carry out remote collaboration, greatly reduce the cost of exploitation.
Preferred embodiment three: hardware based Linux software development system comprises windows platform and Linux analog development environment unit.Linux analog development environment unit comprises FPGA module and Linux analog development tool model, and this Linux analog development tool model is MiniGW.
Windows platform is made up of jointly main frame and Windows XP operating system mounted thereto.The UART interface of FPGA is connected in the windows system of main frame by USB, HPI (Hard ware PlatformInterface hardware platform interface) wiring is connected on the USB of main frame by USB-HPI patchcord.The windows driver of UART interface and HPI is installed simultaneously, makes two interfaces be identified in windows platform and to use.
In windows XP operating system, MiniGW is installed.MiniGW can support basic Linux shelll order, supports increase income compilation tool g cc, debugging acid gdb under Linux.Most importantly it can utilize the video card of windows, supports patterned display, makes the exploitation of video decode software and develops just the same under linux.
In FPGA, install flashburn tools, this instrument, by decoding chip program in jtag interface programming, erasing FPGA, uses the form of FPGA analog hardware to be conducive to the debugging of hardware and the synchronous development of software and hardware.
Code Edit instrument sourceInsight and media formats, code stream scan tool are installed in windows system.Code Edit instrument sourceInsight with the whole code engineering of the interface display of close friend, and can set up relative index; Media formats, code stream scan tool are for debugging, checking the correctness of decoding software.
In order to realize the development to video, in this preferred embodiment, use the MiniGW supporting graphic software platform.Need the driving of installing vision hardware in addition; Install the Gstreamer increased income, Gstreamer can provide unified interface for the media play on upper strata, and it is also convenient to debug decoding software simultaneously.
This preferred embodiment is also the scheme of the Linux embedded software developing carried out on windows platform based on hardware chip.Use MiniGW as Linux analog development instrument from different being of preferred embodiment one, and the connected mode of FPGA and windows platform is also different.But still can lack Linux drives at hardware chip and pass through class Linux analog development environment is installed in windows system, reach the object that exploitation is applicable to Linux platform software.
Preferred embodiment four: hardware based Linux software development system comprises windows platform and Linux analog development environment unit.Linux analog development environment unit comprises FPGA module and Linux analog development tool model, and this Linux analog development tool model is MiniGW.
Windows platform is made up of jointly main frame and Windows XP operating system mounted thereto.The UART interface of FPGA is connected in the windows system of main frame by USB, HPI (Hard ware PlatformInterface hardware platform interface) wiring is connected on the USB of main frame by USB-HPI patchcord.The windows driver of UART interface and HPI is installed simultaneously, makes two interfaces be identified in windows platform and to use.
In windows XP operating system, MiniGW is installed.MiniGW can support basic Linux shelll order, supports the compilation tool gcc that increases income, debugging acid gdb under Linux.Most importantly it can utilize the video card of windows, supports patterned display, makes the exploitation of video decode software and develops just the same under linux.
In FPGA, install flashburn tools, this instrument, by decoding chip program in jtag interface programming, erasing FPGA, uses the form of FPGA analog hardware to be conducive to the debugging of hardware and the synchronous development of software and hardware.
Code Edit instrument sourceInsight and media formats, code stream scan tool are installed in windows system.Code Edit instrument sourceInsight with the whole code engineering of the interface display of close friend, and can set up relative index; Media formats, code stream scan tool are for debugging, checking the correctness of decoding software.
In order to realize the development to video, in this preferred embodiment, use the MiniGW supporting graphic software platform.Need the driving of installing audio hardware in addition, adopt the audio driven of ALSA framework here, so that realize audio frequency and video test; Install the Gstreamer increased income, Gstreamer can provide unified interface for the media play on upper strata, and it is also convenient to debug decoding software simultaneously.
In Cygwin, enable sshd remote login service, utilize the network of windows, allow 20 long-range clients by ssh protocol entry in Cygwin.Have 12 clients to be windows system in the middle of 20 clients, 8 clients are Linu system x.The username and password that Terminal Server Client logs in be also login name, the password of main frame windows system.
This preferred embodiment is also the scheme of the Linux embedded software developing carried out on windows platform based on hardware chip.Be from the different of preferred embodiment three function adding Telnet, facilitate user to edit on the remote computer and develop software, but also multiple people can share the development environment using Cygwin, carry out remote collaboration, greatly reduce the cost of exploitation.
Above; be only preferred embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, the protection domain that protection scope of the present invention should define with claim is as the criterion.