도와주세요!!
글 수 15,339
2007.02.14 16:05:48 (*.92.157.131)
6672
안녕하십니까..이지보드를 이용하여 개발을 진행하고 있는 개발자입니다.
Kernel 업그레이드 후에 NFS 사용에 문제가 발생되어 문의드립니다.
[linux-2.4.19-rmk7-pxa1-ez-x5] -> [linux-2.4.19-x5-v07.tar.gz]
위와 같이 커널을 변경하였는데, 그전에는 없던 현상이 발생되었습니다.
이 현상은 마운트한 위치에서 파일을 복사해올때 발생되는 문제입니다.
한번 실행할 경우 잘 진행이 되는데, 다른 파일을 다시 복사하기 위해 진행하면 아래와 같은 메시지가 뜨면서 보드가 다운되는 현상이 생기고 있습니다.
이전 커널에서 사용할 때 한번도 본 적이 없는 현상이라 조금 당혹스럽습니다.
커널을 변경하게 된 원인은 BT_UART를 사용하기 위해서입니다. 기존의 커널에서는 UART 가 되지 않았습니다. 커널 변경후에 UART는 잘 사용하게 되었는데, NFS에서 말썽이 생기네요..
마운트는 아래와 같이 실행하였습니다. rsize와 wsize는 NFS가 중간에 끊어졌다 붙었다 하는 현상을 없애기 위해 사용되었습니다.
mount -t nfs -o nolock,rsize=2048,wsize=2048 192.168.0.250:/nfs /mnt/nfs
[root@ez-x5 /app]$ cp /mnt/nfs/LC_main ./
[root@ez-x5 /app]$ cp /mnt/nfs/LC_shell ./
Unable to handle kernel NULL pointer dereference at virtual address 00000000
mm = c000f1a0 pgd = c0c64000
*pgd = a0c7e801, *pmd = a0c7e801, *pte = 00000000, *ppte = 00000000
Internal error: Oops: 0
CPU: 0
pc : [<c01450a4>] lr : [<c0026078>] Not tainted
sp : c0c69968 ip : 00000000 fp : c01a3cf0
r10: 00000010 r9 : 00000000 r8 : c01a40ef
r7 : 00000000 r6 : c016d20c r5 : 60000013 r4 : c01a3cf0
r3 : c0c699c0 r2 : 00000000 r1 : c01a40f0 r0 : c01a3cef
Flags: nzCv IRQs off FIQs on Mode SVC_32 Segment user
Control: 397F Table: A0C64000 DAC: 00000015
Process cp (pid: 127, stack limit = 0xc0c68368)
Stack: (0xc0c69968 to 0xc0c6a000)
9960: 00000000 ffff0000 000081ed 00000000 00000400 00000000
9980: c01a3cf0 60000013 c016d20c 00000000 00000000 00000000 00000010 00003e80
99a0: c0026078 00000000 c0d97260 c0d9730c 00000010 00000000 c00d9718 00000000
99c0: c0159850 00003e80 00000074 00000000 001d0010 00000000 00000200 c0c69a48
99e0: 00000e96 00000000 c0c69cbc c00db608 c0c69a18 c0c69a48 001d0000 00000000
9a00: c0d97560 c00a9084 c0c69a18 c0c69a48 00000000 00000200 00000010 00000e80
9a20: 00000001 c0c9e000 00000074 c0195df0 00000016 c00a40b4 00000000 c02d8398
9a40: c0c9e000 c00a450c ffffffff ffff00ff ffffffff ffffffff c0c9e000 c02d8398
9a60: 00000074 00000000 c00a6000 c02d8398 c0c9e000 00000e96 00000074 00000001
9a80: c00a6e6c ffffffff ffffff00 ffffffff ffffffff 00001b67 00000000 c3444708
9aa0: c3444064 00000000 c0c9e000 c00a71e0 00000001 ffd00000 c1c40109 00000001
9ac0: 00000001 434cffff 6568735f 00006c6c 00000000 00000000 00000000 00000000
9ae0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9ba0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9bc0: 00000000 ffff0000 000081ed 00000000 00000000 00000093 000004a3 000004a3
9be0: 00011065 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c80: ffffffff ffffffff 00000000 ffffffff ffffffff ffffffff ffffffff ffffffff
9ca0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 00000001
9cc0: 00000001 434cffff 6568735f 00006c6c 00000000 00000000 00000000 00000000
9ce0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9da0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9dc0: 00000000 ffff0000 000081ed 00000000 00000000 00000093 000004a3 000001a7
9de0: 00000000 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e80: ffffffff ffffffff 00000000 ffffffff ffffffff ffffffff ffffffff ffffffff
9ea0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c3444708
9ec0: c0bd4da0 c0c69f10 00000048 c0aff620 00000002 000001b6 c0c69f78 c00a8a4c
9ee0: c0c9e000 c00a369c c0c69f10 c0bd4da0 00000000 c005c348 c0bd4e08 00000000
9f00: 00000000 c0bd4da0 00000000 c00445bc 00000048 00000000 00000002 000001b6
9f20: 00000000 00000000 000001a7 000001a7 000001a7 ffffffeb 00000000 00000242
9f40: c0c69f70 c005140c c0aff620 00000241 000001b6 00000241 c0da7000 c001a784
9f60: c0c68000 4013b8bc 00000000 c0045094 c0aff620 c02bd3a0 c0da7002 00000008
9f80: 79d6c8ca 00000010 00000000 00000004 c004541c 0006ff90 00070110 00000004
9fa0: 00000005 c001a5e0 0006ff90 c001a55c 0006ff90 00000241 000001b6 00000000
9fc0: 0006ff90 00070110 00000004 0004b950 bffffd36 00000001 4013b8bc bffffa34
9fe0: 00000001 bffff9f8 40088880 400e0744 20000010 0006ff90 00000000 00000000
Backtrace: frame pointer underflow
Backtrace aborted due to bad frame pointer <c01a3cf0>
Code: 326b0000 358d0010 e1a0c002 e58d2014 (e5dc2000)
Segmentation fault
Kernel 업그레이드 후에 NFS 사용에 문제가 발생되어 문의드립니다.
[linux-2.4.19-rmk7-pxa1-ez-x5] -> [linux-2.4.19-x5-v07.tar.gz]
위와 같이 커널을 변경하였는데, 그전에는 없던 현상이 발생되었습니다.
이 현상은 마운트한 위치에서 파일을 복사해올때 발생되는 문제입니다.
한번 실행할 경우 잘 진행이 되는데, 다른 파일을 다시 복사하기 위해 진행하면 아래와 같은 메시지가 뜨면서 보드가 다운되는 현상이 생기고 있습니다.
이전 커널에서 사용할 때 한번도 본 적이 없는 현상이라 조금 당혹스럽습니다.
커널을 변경하게 된 원인은 BT_UART를 사용하기 위해서입니다. 기존의 커널에서는 UART 가 되지 않았습니다. 커널 변경후에 UART는 잘 사용하게 되었는데, NFS에서 말썽이 생기네요..
마운트는 아래와 같이 실행하였습니다. rsize와 wsize는 NFS가 중간에 끊어졌다 붙었다 하는 현상을 없애기 위해 사용되었습니다.
mount -t nfs -o nolock,rsize=2048,wsize=2048 192.168.0.250:/nfs /mnt/nfs
[root@ez-x5 /app]$ cp /mnt/nfs/LC_main ./
[root@ez-x5 /app]$ cp /mnt/nfs/LC_shell ./
Unable to handle kernel NULL pointer dereference at virtual address 00000000
mm = c000f1a0 pgd = c0c64000
*pgd = a0c7e801, *pmd = a0c7e801, *pte = 00000000, *ppte = 00000000
Internal error: Oops: 0
CPU: 0
pc : [<c01450a4>] lr : [<c0026078>] Not tainted
sp : c0c69968 ip : 00000000 fp : c01a3cf0
r10: 00000010 r9 : 00000000 r8 : c01a40ef
r7 : 00000000 r6 : c016d20c r5 : 60000013 r4 : c01a3cf0
r3 : c0c699c0 r2 : 00000000 r1 : c01a40f0 r0 : c01a3cef
Flags: nzCv IRQs off FIQs on Mode SVC_32 Segment user
Control: 397F Table: A0C64000 DAC: 00000015
Process cp (pid: 127, stack limit = 0xc0c68368)
Stack: (0xc0c69968 to 0xc0c6a000)
9960: 00000000 ffff0000 000081ed 00000000 00000400 00000000
9980: c01a3cf0 60000013 c016d20c 00000000 00000000 00000000 00000010 00003e80
99a0: c0026078 00000000 c0d97260 c0d9730c 00000010 00000000 c00d9718 00000000
99c0: c0159850 00003e80 00000074 00000000 001d0010 00000000 00000200 c0c69a48
99e0: 00000e96 00000000 c0c69cbc c00db608 c0c69a18 c0c69a48 001d0000 00000000
9a00: c0d97560 c00a9084 c0c69a18 c0c69a48 00000000 00000200 00000010 00000e80
9a20: 00000001 c0c9e000 00000074 c0195df0 00000016 c00a40b4 00000000 c02d8398
9a40: c0c9e000 c00a450c ffffffff ffff00ff ffffffff ffffffff c0c9e000 c02d8398
9a60: 00000074 00000000 c00a6000 c02d8398 c0c9e000 00000e96 00000074 00000001
9a80: c00a6e6c ffffffff ffffff00 ffffffff ffffffff 00001b67 00000000 c3444708
9aa0: c3444064 00000000 c0c9e000 c00a71e0 00000001 ffd00000 c1c40109 00000001
9ac0: 00000001 434cffff 6568735f 00006c6c 00000000 00000000 00000000 00000000
9ae0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9b80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9ba0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9bc0: 00000000 ffff0000 000081ed 00000000 00000000 00000093 000004a3 000004a3
9be0: 00011065 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9c80: ffffffff ffffffff 00000000 ffffffff ffffffff ffffffff ffffffff ffffffff
9ca0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 00000001
9cc0: 00000001 434cffff 6568735f 00006c6c 00000000 00000000 00000000 00000000
9ce0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d40: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d60: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9da0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
9dc0: 00000000 ffff0000 000081ed 00000000 00000000 00000093 000004a3 000001a7
9de0: 00000000 ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e00: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e20: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e40: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e60: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
9e80: ffffffff ffffffff 00000000 ffffffff ffffffff ffffffff ffffffff ffffffff
9ea0: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c3444708
9ec0: c0bd4da0 c0c69f10 00000048 c0aff620 00000002 000001b6 c0c69f78 c00a8a4c
9ee0: c0c9e000 c00a369c c0c69f10 c0bd4da0 00000000 c005c348 c0bd4e08 00000000
9f00: 00000000 c0bd4da0 00000000 c00445bc 00000048 00000000 00000002 000001b6
9f20: 00000000 00000000 000001a7 000001a7 000001a7 ffffffeb 00000000 00000242
9f40: c0c69f70 c005140c c0aff620 00000241 000001b6 00000241 c0da7000 c001a784
9f60: c0c68000 4013b8bc 00000000 c0045094 c0aff620 c02bd3a0 c0da7002 00000008
9f80: 79d6c8ca 00000010 00000000 00000004 c004541c 0006ff90 00070110 00000004
9fa0: 00000005 c001a5e0 0006ff90 c001a55c 0006ff90 00000241 000001b6 00000000
9fc0: 0006ff90 00070110 00000004 0004b950 bffffd36 00000001 4013b8bc bffffa34
9fe0: 00000001 bffff9f8 40088880 400e0744 20000010 0006ff90 00000000 00000000
Backtrace: frame pointer underflow
Backtrace aborted due to bad frame pointer <c01a3cf0>
Code: 326b0000 358d0010 e1a0c002 e58d2014 (e5dc2000)
Segmentation fault
새로 올린 커널에는 어떤 문제가 있었는지는 모르겠지만,
원래 목적이 BT_UART를 살리는 것이었기 때문에,
serial.c 와 ez-x5.c를 비교하여 수정하였습니다.
기존 커널을 수정하고 나니 통신도 되고, NFS에서 에러가 발생되지도 않고..잘 사용하고 있습니다.