Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

µClinux setup for USBHOST error

Altera_Forum
Honored Contributor II
997 Views

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 all
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
348 Views

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!
0 Kudos
Altera_Forum
Honored Contributor II
348 Views

I solved the problem by changing uclinux version from linux-20080619 to 20090730

0 Kudos
Altera_Forum
Honored Contributor II
348 Views

i have solved it by commenting that function close to the error line ; 

or, you can try use" return 0 " instead ;
0 Kudos
Altera_Forum
Honored Contributor II
348 Views

but i can't find it ,i only get the nios2-uclinux-20120826

0 Kudos
Reply