기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

찾다 찾다 도저히 못찾아서 여기에 글을 올립니다.

 

삼성 SDMK6410 보드입니다.

커널 2.6.29 입니다.

 

alsa를 포팅했는데 아무래도 DMA설정이 잘 못된것 같습니다.

 

alsa_aplay를 실행하면 memory dump가 납니다.

아래는 부팅 로고입니다.(sound관련 부분만)

...............

s3c64xx_dma_init: Registering DMA channels
s3c64xx_dma_init1: registering DMA 0 (c8808100)
s3c64xx_dma_init1: registering DMA 1 (c8808120)
s3c64xx_dma_init1: registering DMA 2 (c8808140)
s3c64xx_dma_init1: registering DMA 3 (c8808160)
s3c64xx_dma_init1: registering DMA 4 (c8808180)
s3c64xx_dma_init1: registering DMA 5 (c88081a0)
s3c64xx_dma_init1: registering DMA 6 (c88081c0)
s3c64xx_dma_init1: registering DMA 7 (c88081e0)
PL080: IRQ 73, at c8808000
s3c64xx_dma_init1: registering DMA 8 (c880c100)
s3c64xx_dma_init1: registering DMA 9 (c880c120)
s3c64xx_dma_init1: registering DMA 10 (c880c140)
s3c64xx_dma_init1: registering DMA 11 (c880c160)
s3c64xx_dma_init1: registering DMA 12 (c880c180)
s3c64xx_dma_init1: registering DMA 13 (c880c1a0)
s3c64xx_dma_init1: registering DMA 14 (c880c1c0)
s3c64xx_dma_init1: registering DMA 15 (c880c1e0)
PL080: IRQ 74, at c880c000
S3C6410: Initialising architecture

...............

Advanced Linux Sound Architecture Driver Version 1.0.18a.
No device for DAI s3c64xx-ac97
Entered s3c6400_ac97_probe
WM9713/WM9714 SoC Audio Codec 0.15
Entered s3c24xx_pcm_new
Entered s3c24xx_pcm_preallocate_dma_buffer
Entered s3c24xx_pcm_preallocate_dma_buffer
asoc: AC97 HiFi <-> s3c64xx-ac97 mapping ok
Entered s3c6400_ac97_cold_reset
mmc0: new high speed SDHC card at address a125
mmcblk0: mmc0:a125 SD04G 3.69 GiB
 mmcblk0:<7>mmc0: starting CMD18 arg 00000000 flags 000000b5
 p1
Cold Reset: [00000000]
Entered s3c6400_ac97_read: reg=0x0
Entered s3c6400_ac97_warm_reset
Warm Reset: [00002a0c]
Entered s3c6400_ac97_read: reg=0x0
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_read: reg=0x0
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_warm_reset
Warm Reset: [00002a0c]
Entered s3c6400_ac97_read: reg=0x0
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400002
Entered s3c6400_ac97_cold_reset
Cold Reset: [00000000]
Entered s3c6400_ac97_read: reg=0x0
Entered s3c6400_ac97_warm_reset
Warm Reset: [00002a0c]
Entered s3c6400_ac97_read: reg=0x0
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_read: reg=0x0
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_write: reg=0x3c, val=0x3aff
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_write: reg=0x26, val=0x0
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_read: reg=0x12
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_write: reg=0x12, val=0x0
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
ALSA device list:
  #0: SMDK6400 (WM9713)
oprofile: using arm/armv6

....

 

 

아래를 에러 로고입니다.

 

# alsa_aplay w.wav
Entered s3c24xx_pcm_open
Playing WAVE 'w.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
Entered s3c6400_ac97_hw_params
Entered s3c24xx_pcm_hw_params, params = (null)
params c04c3a80, client c04c3ae0, channel 22
failed to get dma channel
Entered s3c24xx_pcm_prepare
Entered s3c24xx_pcm_enqueue
Entered s3c6400_ac97_write: reg=0x2a, val=0x411
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_write: reg=0x2c, val=0x5622
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_hifi_prepare
Entered s3c6400_ac97_write: reg=0x26, val=0x0
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_write: reg=0xc, val=0x808
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_write: reg=0x18, val=0x606
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_write: reg=0x2, val=0x8080
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_write: reg=0x4, val=0x606
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Entered s3c6400_ac97_write: reg=0x3c, val=0x1aff
Entered s3c6400_ac97_irq: AC_GLBSTAT = 0x400003
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c659c000
[00000000] *pgd=57bb3031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT
Modules linked in:
CPU: 0    Not tainted  (2.6.29 #14)
PC is at __copy_from_user+0x70/0x3b8
LR is at 0xfffe
pc : [<c019d0b8>]    lr : [<0000fffe>]    psr: 20000013
sp : c7bb1ddc  ip : 00000001  fp : c7bb1e24
r10: 00000000  r9 : c79fbe98  r8 : 0000fffd
r7 : 00000003  r6 : 0000fffc  r5 : 00000005  r4 : 0000fff3
r3 : 0000005e  r2 : 00001f60  r1 : 00023808  r0 : 00000000
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 00c5387d  Table: 5659c008  DAC: 00000015

위의 빨간 색 부분의 params이 null이라 에러가 나는 것 같은데 고견 부탁합니다.

 


profile

JhoonKim

2010.03.25 01:57:02
*.229.246.97

ALSA의 경우 사운드 드라이버의 등록 구조가 2.6.29에서 바뀌었습니다.

기존의 드라이버를 사용했을 경우 동작하지 않을 가능성이 높습니다.

이솝 자료실에 올라온 이솝 6410용 커널과 비교해 보시면 될 것 같습니다.

 

Unable to handle kernel NULL pointer dereference 에러의 경우 커널이 어떤 코드 또는 데이터를 를 찾는데 MMU 테이블에서 불러온 물리 주소에 해당 데이터가 위치하지 않았을 경우 발생 합니다.

 

보통 저런 경우는 디바이스 설계나 메모리 문제 또는 타이밍 문제를 한 번 의심해 보시는것이 어떨지 싶습니다. :)

List of Articles
번호 제목 글쓴이 날짜sort 조회 수
3288 cupcake build하는데... 궁금한게 있어요~.. [1] 당그니 2010-03-20 483
3287 [오드로이드]secure crt에서 키 입력 불가 문제 입니다. [1] 레니 2010-03-21 874
3286 XnRSTOUT 신호에 대해서.. [1] 허경 2010-03-21 503
3285 [오드로이드] 관련 몇가지 질문 (센서, 음성 인식, API Demo) [1] 크리스 2010-03-22 756
3284 6410 SPI 사용하기 AnyTime 2010-03-23 756
» 9713 sound 동작중 memory dump [1] MOAS 2010-03-23 712
3282 이솝커널 부팅후 /dev/ram관련 하여 문의 드립니다. [4] 김정희 2010-03-23 707
3281 램을 바꾸게 되면... [1] 현쓰 2010-03-24 500
3280 MP2530 Wince 5.0 BSP를 다운받을수 없나요?? [1] 조장현 2010-03-24 548
3279 Alignment trap?? [1] 배영춘 2010-03-24 776
3278 slide event에 따른 landscape & portrait mode 전환 [1] 나영찬 2010-03-25 24651
3277 v210,c110,안드로이드에 대하여?? [1] 액숀승짱 2010-03-25 638
3276 ramdisk에 대해서… [1] 김진희 2010-03-25 501
3275 6410 wince 관련 질문입니다. [1] 나오 2010-03-25 481
3274 S3C6410 Linux 2.6.21에서 x window porting 방법? [1] 요셉 2010-03-25 539
3273 OPENGL-ES 를 사용해서 렌더링이 어떻게 처리되는지 궁금해서요 ?... 장석원 2010-03-26 1609
3272 git 서버 구축 하여 IP로 접근 할수 있는 방법? [3] 작두 2010-03-26 2825
3271 오드로이드에서 블루투스 관련 질문드립니다. [2] bloodyan 2010-03-26 585
3270 오드로이드에서 Rootfs [1] 김성수 2010-03-27 477
3269 LMS350DF에 장착하는 터치스크린 Part name [1] 노승수 2010-03-27 494

사용자 로그인