TI中文支持网
TI专业的中文技术问题搜集分享网站

内核及根文件系统移植

这段时间自己在搞内核以及根文件系统的移植,前两天终于将根文件系统(cramfs文件系统)移植到开发板中,并成功挂载了。但是在运行自己的程序app.out的时候,却出现了如下的错误。我在网上搜索了好几天了,还是没有找到解决的方案。还请各位帮忙看看。谢谢!

root@(none):/opt/boardcode# ./app.out
*******************************
resolution:1
*******************************
reading config,sysmode=0,resolution=1,bitrate=3000000,storage path=/tmp/
ortp-message-oRTP-0.9.1 initialized.
ortp-message-scheduler: trying to reach real time kernel scheduling…
ortp-message-rtpInit successfully !

[CE_init]
DMA: DMA_devOpen()   ,  252,  0
[blend-info] before OSA_cmemAlloc[blend-info] before bmpInit
[b[LUJUN-DEBUG] UART Config PORT_16650V2!
lend-info] after bmpInit
[TCP_LISTEN]:START.
[Blend]:START.
[using default mode PAL!
uart-tcp-server] Start
NUM_OF_THREADS=9
successful open /dev/v[dma_demux] successfully alloc dma channel 5
ideo0
*************************edma request param_slot,first=64
**********
curMode:0
curResoluDMA: DMA_demuxCreate() success … chId is 5
tion:1
image width:704 ,image height:576
********************using default mode PAL!
***************
successful open /dev/video1
Video_v4l2Start VI[dma_demux] successfully alloc dma channel 7
DIOC_STREAMON successful!
[VIDEedma request param_slot,first=87
O_TSK_RUN]:START.
DMA: DMA_demuxCreate() success … chId is 7
Video_v4l2Start VIDIOC_STREAMON successful!
[VIDEO_TSK_RUN]:START.
[AUD_CAP]:      (createPrm)
                sampleRate:8000
                bitsPerSample:16
                audioChannels:1
                bufLen:1024
                buf[0]:0x498c2dd0
                originBuf:0x498d3000
[coolen_debug](evm_hw_params).

 [coolen_debug]:mcaspTx regList:

HCLK:8000.
CLK:60.
FS:2.
FMT:74.

 [coolen_debug]:mcaspRx regList:

HCLK:8000.
CLK:80.
FS:810.
FMT:18070.
========[audio_capture_info]========
period time = 128000
period_size = 1024 frames
periods per buffer = 16
buffer time = 2048000
buffer size = 16384 frames
mono
capture channels = 8
========~[audio_capture_info]========
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
pgd = c1e90000
[0000000c] *pgd=8228f031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] PREEMPT
Modules linked in: dsplinkk cmemk
CPU: 0    Not tainted  (2.6.32-rc2-davinci1-g73dbf71-dirty #10)
PC is at touch_atime+0x10/0x15c
LR is at generic_file_aio_read+0x670/0x6e8
pc : [<c00b027c>]    lr : [<c0073e98>]    psr: 40000013
sp : c1f6bbf0  ip : c1f6bc20  fp : c1f6bc1c
r10: c2270ec0  r9 : 00000ec9  r8 : 0000058d
r7 : 00001000  r6 : 0000058d  r5 : 00000000  r4 : 0058dec9
r3 : 00000000  r2 : c1177180  r1 : 00000000  r0 : 00000000
Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 0005317f  Table: 81e90000  DAC: 00000017
Process app.out (pid: 1896, stack limit = 0xc1f6a270)
Stack: (0xc1f6bbf0 to 0xc1f6c000)
bbe0:                                     c00737ac c0038cf8 00001000 c047a5c0
bc00: 0058dec9 00000000 0000058d 00001000 c1f6bcac c1f6bc20 c0073e98 c00b027c
bc20: 0000057d 00000011 00000000 00000000 c11771c0 c1f6bd08 c1f6bcb8 c1177180
bc40: 00000000 00000000 c1f6bd08 c1f6a000 00000ec9 0000058e c2270e18 c1f6bd48
bc60: 0000058d 00000001 c00781e0 000b0004 00000000 c3478004 00000000 000b0004
bc80: c3400000 c1f6bcb8 c1177180 c1f6bcb8 c1f6bd48 c11771a0 0058dec9 fffffdee
bca0: c1f6bd74 c1f6bcb0 c009aca4 c0073838 004ddec5 00000000 c20025e0 000000d2
bcc0: 00000000 00000001 ffffffff c1177180 00000000 00000000 00000000 00000000
bce0: c10b8000 c1f6bd1c 00000000 00000000 c0091988 c10b8000 c0056418 c1f6bcfc
bd00: c1f6bcfc c1f6bd10 0058dec9 00000000 c0091294 c0090658 ffffffff c2231ec4
bd20: 000b0004 ffffffff 000002cf bf0182f8 c318d000 004ddec5 c1f6bd74 c1f6bd48
bd40: c0091b54 c00919b0 c33c8000 000b0004 bf000000 c3190000 c318a000 c318a010
bd60: c318d000 004ddec5 c1f6bd8c c1f6bd78 bf019b98 c009abf8 c318d000 c33c8000
bd80: c1f6bda4 c1f6bd90 bf0178f4 bf019b18 00000000 0058dec9 c1f6bdec c1f6bda8
bda0: bf016658 bf0178b0 c318a014 00000000 00000000 c33c8000 c33c8000 00010000
bdc0: bf017b34 00008000 c318a000 bf01f9b0 00000000 0005a68c 00000000 c1f6be50
bde0: c1f6be24 c1f6bdf0 bf017670 bf016344 c1f6be14 c318d000 bf018ee8 00008000
be00: c30a5000 00000000 00000008 bf01f9a0 0005a68c bf01f9ac c1f6be8c c1f6be28
be20: bf01b504 bf0175e0 0008ff73 0008ff03 452f0d64 00000001 c1fff5d8 c1de4458
be40: c1fff580 c21896a8 00000000 c2169180 00000002 bf01e1e4 bf01e1e4 bf01e1b8
be60: c1fff5d8 00006c05 00008000 c1f6bebc 412f0d7c 412f0d7c c1f6a000 0006e110
be80: c1f6bef4 c1f6be90 bf01c8e4 bf01b3a4 c21896a0 c2169180 c1f6bebc 00000000
bea0: c1fff5d8 400844ff 4a8e7000 c1a42680 c1f6bf2c c1f6bec0 c008cbdc 00008000
bec0: 00000000 0005a68c 00000001 452f0d64 00008000 c1f6bee0 c1a42680 412f0d7c
bee0: 00006c05 c1a42680 c1f6bf14 c1f6bef8 c00a8a00 bf01c47c c21896a8 c1a42680
bf00: c1de43b0 00000017 c1f6bf7c c1f6bf18 c00a9068 c00a8994 00000001 0008ff03
bf20: c1f6bf74 c1f6bf30 c1f6bf64 c1f6bf38 c018a92c c0038cf8 c1f6a000 c1f6a000
bf40: 4a8e7000 c1a42680 00000000 00070100 c1f6bf7c c1f6bf60 00000017 412f0d7c
bf60: 00006c05 c1a42680 c002afe4 0006e110 c1f6bfa4 c1f6bf80 c00a9108 c00a8b20
bf80: c1f6a000 00000001 00000766 00070730 00070780 00000036 00000000 c1f6bfa8
bfa0: c002ae60 c00a90d8 00000766 00070730 00000017 00006c05 412f0d7c 00000017
bfc0: 00000766 00070730 00070780 00000036 00000050 00000004 0006e110 412f0d64
bfe0: 0008af9c 412f0c98 0003fa88 401d127c 20000010 00000017 80498031 80498431
Backtrace:
[<c00b026c>] (touch_atime+0x0/0x15c) from [<c0073e98>] (generic_file_aio_read+0x
670/0x6e8)
 r7:00001000 r6:0000058d r5:00000000 r4:0058dec9
[<c0073828>] (generic_file_aio_read+0x0/0x6e8) from [<c009aca4>] (do_sync_read+0
xbc/0x10c)
[<c009abe8>] (do_sync_read+0x0/0x10c) from [<bf019b98>] (KFILEDEF_Read+0x90/0xec
 [dsplinkk])
[<bf019b08>] (KFILEDEF_Read+0x0/0xec [dsplinkk]) from [<bf0178f4>] (KFILE_Read+0
x54/0x70 [dsplinkk])
 r5:c33c8000 r4:c318d000
[<bf0178a0>] (KFILE_Read+0x0/0x70 [dsplinkk]) from [<bf016658>] (COFF_init+0x324
/0x544 [dsplinkk])
 r5:0058dec9 r4:00000000
[<bf016334>] (COFF_init+0x0/0x544 [dsplinkk]) from [<bf017670>] (COFFFILE_init+0
xa0/0xd4 [dsplinkk])
[<bf0175d0>] (COFFFILE_init+0x0/0xd4 [dsplinkk]) from [<bf01b504>] (PMGR_PROC_lo
ad+0x170/0x268 [dsplinkk])
[<bf01b394>] (PMGR_PROC_load+0x0/0x268 [dsplinkk]) from [<bf01c8e4>] (DRV_Ioctl+
0x478/0x818 [dsplinkk])
[<bf01c46c>] (DRV_Ioctl+0x0/0x818 [dsplinkk]) from [<c00a8a00>] (vfs_ioctl+0x7c/
0x98)
 r7:c1a42680 r6:00006c05 r5:412f0d7c r4:c1a42680
[<c00a8984>] (vfs_ioctl+0x0/0x98) from [<c00a9068>] (do_vfs_ioctl+0x558/0x5b8)
 r6:00000017 r5:c1de43b0 r4:c1a42680
[<c00a8b10>] (do_vfs_ioctl+0x0/0x5b8) from [<c00a9108>] (sys_ioctl+0x40/0x64)
[<c00a90c8>] (sys_ioctl+0x0/0x64) from [<c002ae60>] (ret_fast_syscall+0x0/0x28)
 r7:00000036 r6:00070780 r5:00070730 r4:00000766
Code: e1a0c00d e92dd8f0 e24cb004 e24dd010 (e591500c)
—[ end trace 698ef5a5cb14223d ]—

Eason Wang:

1. 什么器件?

2. 是否采用了一致的编译工具链

3. 采用NFS文件系统的话是否有问题?

xm xm:

回复 Eason Wang:

1、我用的是TI提供的dm6467

2、你所说的一致的编译工具链能再说得再具体点吗?(我刚刚接触这一块,所以好多东西还不太懂)

3、我用nfs将开发板挂载到服务器上的根文件系统上,是可以正常运行的。但是当我将挂载的目录制作成cramfs类型的根文件系统,并烧写到开发板以后,运行程序就出现上述的错误了。

这个问题我在网上搜了好几天了,还是没找到解决的办法。还请帮忙看看。谢谢。

赞(0)
未经允许不得转载:TI中文支持网 » 内核及根文件系统移植
分享到: 更多 (0)