Forum Discussion
Altera_Forum
Honored Contributor
16 years agoµClinux setup for USBHOST error
Hi all,
In µclinux setup for USB **************************************************** In kernel menuconfig, Turn on SCSI device and SCSI disk. SCSI device support ---> [ ] RAID Transport Class [*] SCSI device support [ ] SCSI target support [*] legacy /proc/scsi/ support *** SCSI support type (disk, tape, CD-ROM) *** [*] SCSI disk support *********************************************** When i do it i have this code error : drivers/built-in.o(.text+0x28c00): In function `scsi_dma_map': /home/hayder/nios2-linux/linux-2.6/include/scsi/scsi_cmnd.h:154: undefined reference to `dma_map_sg' drivers/built-in.o(.text+0x28c48): In function `scsi_dma_unmap': /home/hayder/nios2-linux/linux-2.6/include/scsi/scsi_cmnd.h:154: undefined reference to `dma_unmap_sg *********************************************************** it's normal i don't have dma in my design... I have to modify something??? Thanks for all4 Replies
- Altera_Forum
Honored Contributor
I verified that i have the same files like in this patch
http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.22-rc6/2.6.22-rc6-mm1/broken-out/scsi-dont-build-scsi_dma_mapunmap-for-has_dma.patch (nothing to change) someone can help me! - Altera_Forum
Honored Contributor
I solved the problem by changing uclinux version from linux-20080619 to 20090730
- Altera_Forum
Honored Contributor
i have solved it by commenting that function close to the error line ;
or, you can try use" return 0 " instead ; - Altera_Forum
Honored Contributor
but i can't find it ,i only get the nios2-uclinux-20120826