정말 미티는 것이 예전에 제가 포스팅한 글에서 파일을 5MB이상이 되는 것을 복사할 때 아래에 포시팅한 것처럼 에러가 발생했습니다. 소스도 추적해 봐도 ㅠㅠ; 정말 모르겠더군여..

그런데... ㅠㅠ 제가 혹시나해서 bootargs의 mem이 설정이 되지 않았었는데... mem을 30M 또는 24M등으로 해보니..

5MB가 넘는 파일도 복사가 잘 되더군요.. 그래서 먼가 mem에 있다.

 

제가 현재 메모리는 삼성 256MB를 달았는데요... 혹시 이 메모리와 bootargs의 mem과 먼가가 있는 것이 아닌가?

이런 생각이 들어서요.. ^^; 혹시 bootargs의 mem과련 자료나 이게 머하는 것인지 아시는 분은 답변 부탁드립니다.

전 단지 현재 제가 갖고 있는(보드 상에 붙어 있는 메모리) 메모리의 용량을 적으면 되는 것인줄 알았는데,

이 값을 256M 또는 128M로 설정하면 안되더라구요..음..혹시 커널과 먼가 매칭이 이뤄져야 하는 것이 아닌가? 머 이런 생각도 되고요 ^^ ㅎㅎ그래서 알고 싶었습니다. 먼가가 있는 것이 아닌가? 해서요 ^^

 

 

===================== 예전에 포스팅한 글 ======================================

용량 적은 파일은 복사가 잘 되는데 ㅠㅠ 5MB이상 되는 파일은 복사하려고 하면 아래와 같이

에러가 발생했습니다. ㅠㅠ 먼지도 모르는 에러가 커널에서 뱉어 내는데 ㅠㅠ; 초보인 저로써는

왜? 이런 문제가 발생하는 지 정말 모르겠네요..고수님들의 친절한 답변 부탁드립니다.


root@at91sam9g20ek:~# cd /mnt/nfs
root@at91sam9g20ek:/mnt/nfs# cp fpga.bit /
BUG: Bad page state in process cp pfn:2e428
page:c0537500 flags:(null) count:0 mapcount:1 mapping:(null) index:0
[<c002a640>] (unwind_backtrace+0x0/0xdc) from [<c0065ccc>] (bad_page+0x10c/0x148)
[<c0065ccc>] (bad_page+0x10c/0x148) from [<c00631fc>] (generic_file_aio_read+0x430/0x670)
[<c00631fc>] (generic_file_aio_read+0x430/0x670) from [<c0081ac4>] (do_sync_read+0xb0/0xfc)
[<c0081ac4>] (do_sync_read+0xb0/0xfc) <2>kernel BUG at mm/slab.c:600!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = cf8a8000
[00000000] *pgd=2f8a1031, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1]
Modules linked in:
CPU: 0 Not tainted (2.6.30 #3)
PC is at __bug+0x1c/0x28
LR is at __bug+0x18/0x28
pc : [<c00287c4>] lr : [<c00287c0>] psr: 60000093
sp : cfbafa28 ip : 0000150b fp : c201a8c0
r10: 00000011 r9 : c0367cf8 r8 : a0000013
r7 : cfb6d800 r6 : cfabe5a0 r5 : cfabe5a0 r4 : cfaea980
r3 : 00000000 r2 : c03385b4 r1 : c035894c r0 : 00000020
Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0005317f Table: 2f8a8000 DAC: 00000015
Process cp (pid: 959, stack limit = 0xcfbae268)
Stack: (0xcfbafa28 to 0xcfbb0000)
fa20: c201a8c0 c007e52c cfaea980 cfabe5a0 cfabe5a0 00008080
fa40: cfb50040 c01db900 cfaeaac0 c01dbc24 cfabe5a0 cf907584 cfabe5a0 c01db900
fa60: cfb50040 c01de6f8 00008080 c02357e8 cf837c80 cfb50040 cfb50040 00008088
fa80: 00000000 cfabe5c0 cfbf4844 c01d9660 cfb50040 00000000 cfabe5a0 c0218300
faa0: cfb50040 00008088 cfabe5a0 c0219740 0000f902 00000002 c0367cf8 cf886000
fac0: cf8b1140 c0367cf8 cfa653a0 c01fac7c cf89bce0 cfabe5c0 2401a8c0 c201a8c0
fae0: 00000013 00000011 cfabe5a0 c036728c cf886000 00000000 c0366ec8 00000008
fb00: cf886338 c01f9e10 cfaf2c30 cfabe5a0 c03558ac c01f9d38 cf886000 00000000
fb20: 00000600 ffffffea cfabe5a0 c0366ea8 c03558ac cf886000 00000000 c01e2898
fb40: cf80fe60 c01dc880 000001e1 cfabe5a0 0000017a cf886300 000001e1 00000180
fb60: fffffffa c0168dec 01312d00 00000040 00000005 0000003b 0000004c cf886338
fb80: 00000040 0000000c 0000012c c0353674 c0366eb8 ffffbeb2 c0353684 c01e11c8
fba0: 00000000 cfbae000 00000100 0000000c 00000001 c035ce38 00000000 0000000a
fbc0: c035ce00 c003f2a4 00000001 c033a7f4 00000015 00000015 00000000 00000015
fbe0: cfbafcd4 00000019 00000000 cfbafc6e c0338608 c0024060 c035cde0 ffffffff
fc00: fefff000 c0024a14 c03385f4 c035894c c03385b4 c03385b4 c035c9e0 c035c9f9
fc20: 80000013 cfbafcd4 00000019 00000000 cfbafc6e c0338608 c014c298 cfbafc50
fc40: c003aef0 c003b4b0 60000013 ffffffff 30450312 cfbafced ffffffff 0000006c
fc60: 00000004 80000013 00000009 00000060 ffffffff 00000010 ffffffff 0000006c
fc80: cfbafcc4 cfbafce1 0000000c cfbaff5c 00000447 00000000 cf4921c8 cfaa9ac0
fca0: cfbafe04 c02d4df0 cfbafce1 cfbaff5c 00000447 00000000 cf4921c8 cfaa9ac0
fcc0: cfbafe04 c026a5e8 000000b0 c005c7a4 c02d4df0 cfbafce1 ffffffff 00000000
fce0: 5f6f6415 636e7973 6165725f 78302b64 302f3062 00636678 c03385f4 c035894c
fd00: c03385b4 c03385b4 c035c9e0 c035c9ed 60000013 cfbafdc4 00000010 00000000
fd20: cfbafd5e c0338608 c014c298 cfbafd40 c003aef0 c003b4b0 60000013 ffffffff
fd40: c035c9e0 c035ca28 40000013 cfbafdfc 00000004 60000013 cfbafd96 c0338608
fd60: 00001300 c0081ac4 cfbafde0 c002a40c 20000013 ffffffff 00000000 c0062664
fd80: 00001000 cfaa9ac0 beaa8898 cfbaff80 00001000 c0082678 c0081ac4 cfbaff5c
fda0: 00000447 00000000 cf4921c8 cfaa9ac0 cfbafe04 c026a5e8 00000000 c00290f8
fdc0: c02d4dfb c0082678 c0081ac4 c0029104 c0081ac4 cfbafde0 c0537500 c002a70c
fde0: beaa8898 cfbaff60 c0082678 c0082678 00000000 c0537500 beaa8898 cfbafe08
fe00: c0065ccc c002a650 00000001 00000000 00000000 00000447 00000001 00000447
fe20: 00000001 c00631fc 00001000 00000001 00000001 cfbaff00 cfaeaca0 cfbaff40
fe40: 00000000 cfbaff00 00000448 cfaa9b00 cf492130 00000000 00000000 00000446
fe60: 00000000 00000001 cf473488 00000000 00001000 beaa8898 00000000 00001000
fe80: 00000001 cfbafeb0 cfaa9ac0 cfbaff40 cfbaff80 fffffdee cfbae000 00000000
fea0: beaa8898 c0081ac4 00447000 00000000 cfbae000 cfbae000 00000000 00000001
fec0: ffffffff cfaa9ac0 00000000 00000000 00000000 00000000 cf89bce0 c033a7f4
fee0: 00000000 00000000 00000000 cf89bce0 c004d7e0 cfbafef4 cfbafef4 00000000
ff00: 00447000 00000000 00000000 ffffffff fefff000 c0024a14 00001000 00000000
ff20: 00440000 00000000 cfaa9740 00000000 00000000 00000000 beaa8898 00000002
ff40: beaa8898 00001000 cfaa9ac0 beaa8898 cfbaff80 00001000 beaa8898 c0082678
ff60: 00000000 cfbaff70 c026aba8 00447000 00000000 cfaa9ac0 00001000 c00827c0
ff80: 00447000 00000000 cfbaffac 00000000 00000003 beaa8898 00001000 00000003
ffa0: c0024f28 c0024d80 00000003 beaa8898 00000003 beaa8898 00001000 00001000
ffc0: 00000003 beaa8898 00001000 00000003 00000001 00000004 00000003 beaa8898
ffe0: 00000080 beaa8880 00013e67 4017569c 40000010 00000003 00000000 00000000
[<c00287c4>] (__bug+0x1c/0x28) from [<c007e52c>] (kfree+0x64/0x124)
[<c007e52c>] (kfree+0x64/0x124) from [<c01db900>] (__kfree_skb+0x14/0xb4)
[<c01db900>] (__kfree_skb+0x14/0xb4) from [<c01dbc24>] (skb_release_data+0xa4/0xc0)
[<c01dbc24>] (skb_release_data+0xa4/0xc0) from [<c01db900>] (__kfree_skb+0x14/0xb4)
[<c01db900>] (__kfree_skb+0x14/0xb4) from [<c01de6f8>] (skb_free_datagram+0x10/0x38)
[<c01de6f8>] (skb_free_datagram+0x10/0x38) from [<c02357e8>] (xs_udp_data_ready+0x178/0x194)
[<c02357e8>] (xs_udp_data_ready+0x178/0x194) from [<c01d9660>] (sock_queue_rcv_skb+0xe8/0xf4)
[<c01d9660>] (sock_queue_rcv_skb+0xe8/0xf4) from [<c0218300>] (__udp_queue_rcv_skb+0x14/0x90)
[<c0218300>] (__udp_queue_rcv_skb+0x14/0x90) from [<c0219740>] (__udp4_lib_rcv+0x488/0x6c4)
[<c0219740>] (__udp4_lib_rcv+0x488/0x6c4) from [<c01f9e10>] (ip_local_deliver+0xa4/0x130)
[<c01f9e10>] (ip_local_deliver+0xa4/0x130) from [<c01f9d38>] (ip_rcv+0x480/0x4b4)
[<c01f9d38>] (ip_rcv+0x480/0x4b4) from [<c01e2898>] (netif_receive_skb+0x290/0x2c4)
[<c01e2898>] (netif_receive_skb+0x290/0x2c4) from [<c0168dec>] (macb_poll+0x1ec/0x258)
[<c0168dec>] (macb_poll+0x1ec/0x258) from [<c01e11c8>] (net_rx_action+0x68/0x16c)
[<c01e11c8>] (net_rx_action+0x68/0x16c) from [<c003f2a4>] (__do_softirq+0x68/0xf0)
[<c003f2a4>] (__do_softirq+0x68/0xf0) from [<c0024060>] (_text+0x60/0x78)
[<c0024060>] (_text+0x60/0x78) from [<c0024a14>] (__irq_svc+0x34/0x60)
Exception stack(0xcfbafc08 to 0xcfbafc50)
fc00: c03385f4 c035894c c03385b4 c03385b4 c035c9e0 c035c9f9
fc20: 80000013 cfbafcd4 00000019 00000000 cfbafc6e c0338608 c014c298 cfbafc50
fc40: c003aef0 c003b4b0 60000013 ffffffff
[<c0024a14>] (__irq_svc+0x34/0x60) from [<c003aef0>] (release_console_sem+0x19c/0x200)
[<c003aef0>] (release_console_sem+0x19c/0x200) from [<00000010>] (0x10)
Code: e1a01000 e59f000c eb090783 e3a03000 (e5833000)
Kernel panic - not syncing: Fatal exception in interrupt
[<c002a640>] (unwind_backtrace+0x0/0xdc) from [<c026a4f4>] (panic+0x34/0x110)
[<c026a4f4>] (panic+0x34/0x110) from [<c0028be8>] (die+0x130/0x15c)
[<c0028be8>] (die+0x130/0x15c) from [<c002b4b0>] (__do_kernel_fault+0x68/0x80)
[<c002b4b0>] (__do_kernel_fault+0x68/0x80) from [<c002b6d0>] (do_page_fault+0x208/0x228)
[<c002b6d0>] (do_page_fault+0x208/0x228) from [<c0024220>] (do_DataAbort+0x30/0x90)
[<c0024220>] (do_DataAbort+0x30/0x90) from [<c00249cc>] (__dabt_svc+0x4c/0x60)
Exception stack(0xcfbaf9e0 to 0xcfbafa28)
f9e0: 00000020 c035894c c03385b4 00000000 cfaea980 cfabe5a0 cfabe5a0 cfb6d800
fa00: a0000013 c0367cf8 00000011 c201a8c0 0000150b cfbafa28 c00287c0 c00287c4
fa20: 60000093 ffffffff
[<c00249cc>] (__dabt_svc+0x4c/0x60) from [<c00287c0>] (__bug+0x18/0x28)
[<c00287c0>] (__bug+0x18/0x28) from [<c007e52c>] (kfree+0x64/0x124)
[<c007e52c>] (kfree+0x64/0x124) from [<c01db900>] (__kfree_skb+0x14/0xb4)
[<c01db900>] (__kfree_skb+0x14/0xb4) from [<c01dbc24>] (skb_release_data+0xa4/0xc0)
[<c01dbc24>] (skb_release_data+0xa4/0xc0) from [<c01db900>] (__kfree_skb+0x14/0xb4)
[<c01db900>] (__kfree_skb+0x14/0xb4) from [<c01de6f8>] (skb_free_datagram+0x10/0x38)
[<c01de6f8>] (skb_free_datagram+0x10/0x38) from [<c02357e8>] (xs_udp_data_ready+0x178/0x194)
[<c02357e8>] (xs_udp_data_ready+0x178/0x194) from [<c01d9660>] (sock_queue_rcv_skb+0xe8/0xf4)
[<c01d9660>] (sock_queue_rcv_skb+0xe8/0xf4) from [<c0218300>] (__udp_queue_rcv_skb+0x14/0x90)
[<c0218300>] (__udp_queue_rcv_skb+0x14/0x90) from [<c0219740>] (__udp4_lib_rcv+0x488/0x6c4)
[<c0219740>] (__udp4_lib_rcv+0x488/0x6c4) from [<c01f9e10>] (ip_local_deliver+0xa4/0x130)
[<c01f9e10>] (ip_local_deliver+0xa4/0x130) from [<c01f9d38>] (ip_rcv+0x480/0x4b4)
[<c01f9d38>] (ip_rcv+0x480/0x4b4) from [<c01e2898>] (netif_receive_skb+0x290/0x2c4)
[<c01e2898>] (netif_receive_skb+0x290/0x2c4) from [<c0168dec>] (macb_poll+0x1ec/0x258)
[<c0168dec>] (macb_poll+0x1ec/0x258) from [<c01e11c8>] (net_rx_action+0x68/0x16c)
[<c01e11c8>] (net_rx_action+0x68/0x16c) from [<c003f2a4>] (__do_softirq+0x68/0xf0)
[<c003f2a4>] (__do_softirq+0x68/0xf0) from [<c0024060>] (_text+0x60/0x78)
[<c0024060>] (_text+0x60/0x78) from [<c0024a14>] (__irq_svc+0x34/0x60)
Exception stack(0xcfbafc08 to 0xcfbafc50)
fc00: c03385f4 c035894c c03385b4 c03385b4 c035c9e0 c035c9f9
fc20: 80000013 cfbafcd4 00000019 00000000 cfbafc6e c0338608 c014c298 cfbafc50
fc40: c003aef0 c003b4b0 60000013 ffffffff
[<c0024a14>] (__irq_svc+0x34/0x60) from [<c003aef0>] (release_console_sem+0x19c/0x200)
[<c003aef0>] (release_console_sem+0x19c/0x200) from [<00000010>] (0x10)