check struct i2c_device_id initialization. Missing of empty curly braces causes the error . eg: if struct i2c_device_id initialization is like given below , compiler will show the above error . ie “struct i2c_device_id is not terminated with a NULL entry! ” const struct i2c_device_id adt7461_id[] = { { DRIVER_NAME, 0 }, }; Fix for the aboveContinue reading “[Linux][Driver]Fix for the error : struct i2c_device_id is not terminated with a NULL entry!”
Monthly Archives: July 2014
[Linux]How to test given memory address is “kernelness” ?
is_kernel_addr function will check whether a memory is inside the kernel or not
[Linux]How to find device’s offset in linux ?
subtract KERNELBASE from the device’s kernel address
[Linux]How determine a physical address from a virtual address ?
There are two ways to determine a physical address from a virtual one: va = pa + PAGE_OFFSET – MEMORY_START va = pa + KERNELBASE – PHYSICAL_START
[Linux][Memory Mapping]Linear mapping equation among Kernel base , page offset, physical start and memory start
For the linear mapping the following equation should be true: KERNELBASE – PAGE_OFFSET = PHYSICAL_START – MEMORY_START Also, KERNELBASE >= PAGE_OFFSET and PHYSICAL_START >= MEMORY_START where KERNELBASE ->the virtual address of the start of the kernel PAGE_OFFSET->the virtual address of the start of lowmem PHYSICAL_START-> the physical address of the start of the kernel MEMORY_STARTContinue reading “[Linux][Memory Mapping]Linear mapping equation among Kernel base , page offset, physical start and memory start”