Dear Sir/Madam,
I am using DVSDK 2.00.00.22 for DM6467 platform (custom board using EVM reference design)
The board vendor said the board will work with DVSDK 2.00.00.22 and
they have tested already and using it.
Using the installation guide, I installed DVSDK 2.00.00.22 on my
workstation running Ubuntu 10.04.
I successfully got the uImage, dsplinkk.ko and cmemk.ko
I downloaded the uImage to the board using minicom ymodem, exported
the filesystem through NFS
The following is what all I did:
***************************************************************************************************************
I set the uboot parameters as follows:
SY6467 # printenv
bootdelay=2
baudrate=115200
rw=root=/dev/nfs
nfsroot=172.16.70.38:/home/suhail/work/syn/bspcore/rootfs,v3,tcp,rsize=32768,wsize=32768
gnv=netmask 255.255.255.0
00=0x0 0xa0000
rootarg=root=/dev/nfs
rootnfsarg=nfsroot=172.16.70.38:/bspcore,v3,tcp,rsize=32768,wsize=32768
rootargnfs=root=/dev/nfs
nfsroot=172.16.70.38:/bspcore,v3,tcp,rsize=32768,wsize=32768
autoload=no
bootfile=uImage
ipadr=172.16.70.50
device=eth0
nfsroot=/home/suhayil/work/workdir/filesys
gatewayipip=172.16.1.2
init=none
rdinit=none
root=/home/suhayil/nfs
nfshost=172.16.70.38
ipaddr=172.16.70.50
serverip=172.16.70.38
gatewayip=172.16.70.2
netmask=255.255.255.0
bootcmd=nboot 0x80800000 0x0 0xa0000; bootm
rootpath=/home/suhayil/workdir/filesys
filesize=18CDD8
bootargs=rdinit=none mem=77M console=ttyS0,115200n8
ip=172.16.70.50:172.16.70.38:172.16.70.2:255.255.255.0:::off rw
root=/dev/nfs nfsroot=172.16.70.38:/home/suhayil/workdir/filesys
stdin=serial
stdout=serial
stderr=serial
Environment size: 957/16380 bytes
SY6467 #saveenv
***************************************************************************************************************
The /etc/exports(on the HOST PC) file is as follows:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check)
hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home/suhayil/workdir/filesys
*(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
***************************************************************************************************************
suhayil@work:~$ sudo /usr/sbin/exportfs -rav
suhayil@work:~$ sudo /etc/init.d/nfs-kernel-server reload
suhayil@work:~$ sudo /etc/init.d/nfs-kernel-server restart
suhayil@work:~$ sudo /etc/init.d/nfs-kernel-server status
***************************************************************************************************************
On the Target (uboot prompt):
SY6467 #boot
Loading from NAND 64MiB 3,3V 8-bit, offset 0xa0000
Image Name: Linux-2.6.18_pro500-davinci_evm-
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1988032 Bytes = 1.9 MB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80800000 ...
Image Name: Linux-2.6.18_pro500-davinci_evm-
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1988032 Bytes = 1.9 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux...................................................................................................................................
done,
booting the kernel.
Linux version 2.6.18_pro500-davinci_evm-arm_v5t_le (suhayil@work) (gcc
version 4.2.0 (MontaVista 4.2.0-16.0.32.0801914 2008-08-30)) #1
PREEMPT Tue Feb 8 12:2
0:21 GST 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci DM6467 EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci DM6467 variant 0x0
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists. Total pages: 19712
Kernel command line: rdinit=none mem=77M console=ttyS0,115200n8
ip=172.16.70.50:172.16.70.38:172.16.70.2:255.255.255.0:::off rw
root=/dev/nfs nfsroot=172.16.
70.38:/home/suhayil/nfs
PID hash table entries: 512 (order: 9, 2048 bytes)
Clock event device timer0_0 configured with caps set: 03
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 77MB = 77MB total
Memory: 73740KB available (3401K code, 684K data, 172K init)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
DaVinci: 48 gpio irqs
ch0 default output "COMPOSITE", mode "NTSC"
ch1 default output "", mode ""
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 3.1 (2006/08/19) Phillip Lougher
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
yaffs Feb 8 2011 12:49:45 Installing.
SGI XFS with no debug enabled
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
LTT : ltt-facilities init
LTT : ltt-facility-core init in kernel
DAVINCI-WDT: DaVinci Watchdog Timer: heartbeat 60 sec
CIR device registered successfully (Major = 252, Minor = 0)
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfec20000 (irq = 40) is a ST16654
serial8250.0: ttyS1 at MMIO map 0x1c20400 mem 0xfec20400 (irq = 41) is
a ST16650V2
serial8250 serial8250.0: unable to register port at index 2 (IO0
MEM1c20800 IRQ42): -28
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
netconsole: not configured, aborting
TI DaVinci EMAC: MAC address is 04:c0:00:60:c0:c4
TI DaVinci EMAC Linux version updated 4.0
TI DaVinci EMAC: Installed 1 instances.
Linux video capture interface: v2.00
i2c /dev entries driver
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
MUX: initialized ATAEN
ide0: MMIO-DMA , BIOS settings: hda:pio, hdb:pio
Palm Chip BK3710 IDE Register Fail
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
musb_hdrc: version 6.0, cppi-dma, host, debug=0
musb_hdrc: USB Host mode controller at c505c000 using DMA, IRQ 13
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mice: PS/2 mouse device common for all mice
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22
13:55:50 2006 UTC).
ASoC version 0.13.1
AIC3X Audio Codec 0.1
asoc: aic3x <-> davinci-i2s mapping ok
asoc: DIT <-> davinci-dit mapping ok
ALSA device list:
#0: DaVinci DM6467 EVM (aic3x)
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Time: timer0_1 clocksource has been installed.
Clock event device timer0_0 configured with caps set: 08
Switched to high resolution mode on CPU 0
IP-Config: Complete:
device=eth0, addr=172.16.70.50, mask=255.255.255.0, gw=172.16.70.2,
host=172.16.70.50, domain=, nis-domain=(none),
bootserver=172.16.70.38, rootserver=172.16.70.38, rootpath=
Looking up port of RPC 100003/2 on 172.16.70.38
portmap: server 172.16.70.38 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 172.16.70.38
***************************************************************************************************************
***************************************************************************************************************
Since this uImage did not take the NFS exported rootsf from host, I
flashed the uImage which I got from the board vendor
(same DVSDK 2.00.00.22) but I did not change the rootfs (on the HOST
PC NFS). It fortunately worked.
Then I did as follows:
***************************************************************************************************************
***************************************************************************************************************
In the target board:
root@suhayil:/opt/hello# ./loadmodules.sh
CMEMK module: built on Feb 12 2011 at 15:24:50
Reference Linux version 2.6.18
File /home/suhayil/dvsdk_2_00_00_22/linuxutils_2_23_01/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
ioremap_nocache(0x87800000, 67108864)=0xc6000000
allocated heap buffer 0xc6000000 of size 0x621000
cmem initialized 5 pools between 0x87800000 and 0x8b800000
DSPLINK Module (1.61.03) created on Date: Apr 16 2009 Time: 18:25:15
***************************************************************************************************************
In the target board:
root@suhayil:/opt/hello# ./messagegpp message.out 1 0
GPP side
========== Sample Application : MESSAGE ==========
Entered MESSAGE_Create ()
Unable to handle kernel paging request at virtual address fec40014
pgd = c3fc4000
[fec40014] *pgd=80484011, *pte=00000000, *ppte=00000000
Internal error: Oops: 7 [#1]
Modules linked in: dsplinkk cmemk
CPU: 0
PC is at DM6467GEM_halPscEnable+0xc/0x9c [dsplinkk]
LR is at DM6467GEM_halPwrCtrl+0x3c/0x7c [dsplinkk]
pc : [<bf00e354>] lr : [<bf00e434>] Not tainted
sp : c38fdde8 ip : c38fddf8 fp : c38fddf4
r10: 00000000 r9 : c5066024 r8 : c38fde08
r7 : bf022164 r6 : 00000008 r5 : c5066000 r4 : c5092000
r3 : 00040000 r2 : 00000000 r1 : 00000000 r0 : fec40000
Flags: Nzcv IRQs on FIQs on Mode SVC_32 Segment user
Control: 5317F
Table: 83FC4000 DAC: 00000015
Process messagegpp (pid: 760, stack limit = 0xc38fc258)
Stack: (0xc38fdde8 to 0xc38fe000)
dde0: c38fde04 c38fddf8 bf00e434 bf00e358 c38fde3c c38fde08
de00: bf00e170 bf00e408 11f00000 00008000 c50a0000 00000000 c5066000 00000000
de20: 00000028 00000000 00008000 00000000 c38fde4c c38fde40 bf00e4f8 bf00e048
de40: c38fde94 c38fde50 bf01410c bf00e4dc 00000009 bf022ad0 bf021414 c5064000
de60: 00000001 00000000 c38fde94 00000000 00000001 00008000 00000000 00000000
de80: c38fc000 00000000 c38fdecc c38fde98 bf009bfc bf013ef4 00000010 00000000
dea0: c508b000 00000000 0000000b 00006c08 beac4bf4 00006c08 c0511900 c0031fe8
dec0: c38fdf2c c38fded0 bf0085dc bf009b04 c38fdf3c c38fdee0 c007f8a0 c0039438
dee0: 00001000 00000000 00000000 00000000 00000000 00013000 c4180ee8 c002e040
df00: 00008000 00000000 00000000 4001dbf8 beac4c14 beac4ee7 c0511900 beac4bf4
df20: c38fdf4c c38fdf30 c00a6488 bf00809c c38fdf84 c0511900 00000003 beac4bf4
df40: c38fdf7c c38fdf50 c00a66a8 c00a640c 00000000 00013000 00000003 beac4bf4
df60: 00006c08 c0511900 c0031fe8 c38fc000 c38fdfa4 c38fdf80 c00a67f4 c00a64a8
df80: c38fc000 00000000 00008000 00000000 beac4ee9 00000036 00000000 c38fdfa8
dfa0: c0031e40 c00a67c4 00008000 00000000 00000003 00006c08 beac4bf4 00000003
dfc0: 00008000 00000000 beac4ee9 00000036 beac4edb 00000000 00000000 beac4be4
dfe0: beac4ee7 beac4b10 0000a468 400ff27c 80000010 00000003 00000000 00000000
Backtrace:
[<bf00e348>] (DM6467GEM_halPscEnable+0x0/0x9c [dsplinkk]) from
[<bf00e434>] (DM6467GEM_halPwrCtrl+0x3c/0x7c [dsplinkk])
[<bf00e3f8>] (DM6467GEM_halPwrCtrl+0x0/0x7c [dsplinkk]) from
[<bf00e170>] (DM6467GEM_init+0x138/0x174 [dsplinkk])
[<bf00e038>] (DM6467GEM_init+0x0/0x174 [dsplinkk]) from [<bf00e4f8>]
(DSP_init+0x2c/0x34 [dsplinkk])
[<bf00e4cc>] (DSP_init+0x0/0x34 [dsplinkk]) from [<bf01410c>]
(LDRV_PROC_init+0x228/0x300 [dsplinkk])
[<bf013ee4>] (LDRV_PROC_init+0x0/0x300 [dsplinkk]) from [<bf009bfc>]
(PMGR_PROC_attach+0x108/0x38c [dsplinkk])
[<bf009af4>] (PMGR_PROC_attach+0x0/0x38c [dsplinkk]) from [<bf0085dc>]
(DRV_Ioctl+0x550/0x9a0 [dsplinkk])
r8 = C0031FE8 r7 = C0511900 r6 = 00006C08 r5 = BEAC4BF4
r4 = 00006C08
[<bf00808c>] (DRV_Ioctl+0x0/0x9a0 [dsplinkk]) from [<c00a6488>]
(do_ioctl+0x8c/0x9c)
r5 = BEAC4BF4 r4 = C0511900
[<c00a63fc>] (do_ioctl+0x0/0x9c) from [<c00a66a8>] (vfs_ioctl+0x210/0x31c)
r6 = BEAC4BF4 r5 = 00000003 r4 = C0511900
[<c00a6498>] (vfs_ioctl+0x0/0x31c) from [<c00a67f4>] (sys_ioctl+0x40/0x68)
r9 = C38FC000 r8 = C0031FE8 r7 = C0511900 r6 = 00006C08
r5 = BEAC4BF4 r4 = 00000003
[<c00a67b4>] (sys_ioctl+0x0/0x68) from [<c0031e40>] (ret_fast_syscall+0x0/0x2c)
r7 = 00000036 r6 = BEAC4EE9 r5 = 00000000 r4 = 00008000
Code: 8000800b e1a0c00d e92dd800 e24cb004 (e5903014)
Segmentation fault
gives the above and crashes!!!
***************************************************************************************************************
In the target board(with some printf statements for clarification):
# ./messagegpp ./message.out 100 0
GPP side
GPP side before MESSAGE_main call()
========== Sample Application : MESSAGE ==========
Entered MESSAGE_Create ()
GPP side after PROC_setup call()
and hangs in the last line!!!
***************************************************************************************************************
If I again load the modules as follows:
./loadmodules.sh
insmod: cannot insert 'cmemk.ko': File exists
insmod: cannot insert 'dsplinkk.ko': File exists
***************************************************************************************************************
And again run the messagegpp sample, I get different error
# ./messagegpp ./message.out 100 0
GPP side
GPP side before MESSAGE_main call()
========== Sample Application : MESSAGE ==========
Entered MESSAGE_Create ()
GPP side after PROC_setup call()
PROC_setup () failed. Status = [0x8000800f]
Leaving MESSAGE_Create ()
Entered MESSAGE_Delete ()
MSGQ_release () failed. Status = [0x8000800b]
Leaving MESSAGE_Delete ()
====================================================
GPP side after MESSAGE_main call()
***************************************************************************************************************
Can anyone help me try the dsplink samples on both gpp and dsp sides.
Thanks in advance