1*4882a593SmuzhiyunBuilding the UMP Device Driver for Linux 2*4882a593Smuzhiyun---------------------------------------- 3*4882a593Smuzhiyun 4*4882a593SmuzhiyunBuild the UMP Device Driver for Linux by running the following make command: 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunKDIR=<kdir_path> CONFIG=<your_config> BUILD=<build_option> make 7*4882a593Smuzhiyun 8*4882a593Smuzhiyunwhere 9*4882a593Smuzhiyun kdir_path: Path to your Linux Kernel directory 10*4882a593Smuzhiyun your_config: Name of the sub-folder to find the required config.h file 11*4882a593Smuzhiyun ("arch-" will be prepended) 12*4882a593Smuzhiyun build_option: debug or release. Debug is default. 13*4882a593Smuzhiyun 14*4882a593SmuzhiyunThe config.h contains following configuration parameters: 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunARCH_UMP_BACKEND_DEFAULT 17*4882a593Smuzhiyun 0 specifies the dedicated memory allocator. 18*4882a593Smuzhiyun 1 specifies the OS memory allocator. 19*4882a593SmuzhiyunARCH_UMP_MEMORY_ADDRESS_DEFAULT 20*4882a593Smuzhiyun This is only required for the dedicated memory allocator, and specifies 21*4882a593Smuzhiyun the physical start address of the memory block reserved for UMP. 22*4882a593SmuzhiyunARCH_UMP_MEMORY_SIZE_DEFAULT 23*4882a593Smuzhiyun This specified the size of the memory block reserved for UMP, or the 24*4882a593Smuzhiyun maximum limit for allocations from the OS. 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunThe result will be a ump.ko file, which can be loaded into the Linux kernel 27*4882a593Smuzhiyunby using the insmod command. The driver can also be built as a part of the 28*4882a593Smuzhiyunkernel itself. 29