블랙핀 BF533-EZKIT에서 개발중입니다.
비디오 디바이스를 열고 메모리 맵으로 주소를 얻어 오려고 하면 에러가 발생해서 이렇게 질문을 올립니다.
다음은 비디오 디바이스 파일인 bfin_ad7171fb.c의 메모리 맵 함수입니다.
bfin_mmap(struct fb_info *info, struct file *file, struct vm_area_struct * vma)
{
/* we really dont need any map ... not sure how the smem_start will
end up in the kernel
*/
return((int)rgb_buffer) ;
}
다음은 응용 프로그램에서 mmap를 사용한 모습입니다.