Automatic matching method of hardware board card
暂无分享,去创建一个
Provided is an automatic matching method of a hardware board card. In the uboot starting stage, board card information of current hardware is acquired and saved in the environment variable bootargs of linuxuboot in the mode of character strings; the character strings saved in the environment variable bootargs are copied to a heap address space to which a kernel pointer saved_command_line points by a kernel, and the copied and saved character strings are saved in a cmdline file by establishing a proc folder; a file system is started, the cmdline file in the proc folder is analyzed to obtain the edition type boardtype and the slot position identification slotid of the current hardware, corresponding software is loaded according to an analysis result, and configuration needed by different board cards is completed. Through the method, software can be configured on the same platform, different hardware board cards can be automatically matched, the requirement for hardware can be lowered, and manpower and resource waste can be avoided.