达芬奇记录

来源:互联网 发布:espace uc mac 编辑:程序博客网 时间:2024/06/10 18:57


uboot 变量设置  适用dm3730  omap3530


setenv bootargs console=ttyS2,115200n8 ubi.mtd=4 root=ubi0:rootfs rootfstype=ubifs video=omapfb:mode:4.3inch_LCD mem=80M

setenv bootcmd nand read.i 80300000 280000 300000\;bootm 80300000


Error in porting DVSDK onto Devkit8000. Error his "insmod: cannot insert 'dsplinkk.ko': unknown symbol in module, or unknown parameter"

Hello Sanjeev Premi, let me explain the procedure i followed in breif.

We have purchased DEVKIT8000 borad from TIMLL, which use Omap3530 processor. They have just a provided DVSDK Demo version which has precomplied files in it.

We thought of porting TI DVSDK onto Devkit8000, so that we can use encoders. To port TI DVSDK onto Devkit8000, we need to generate MLO, u-boot.bin, and uImage for DEVKIT8000. When i searched how to generate and i got some patch files for Devkit8000, which has 2 patch files in it one to generate uboot.bin and another to generate uImage

http://code.google.com/p/devkit8000-unofficial-patches/downloads/list

Uboot patch file was for DVSDK-3.01 and uImage patch file was for DVSDK-3.00.

In DVSDK-3.00 there was no configuration file only for Devkit 8000 so again i downloaded DVSDK-3.01 and extracted the u-boot source code which has configuration file for devkit8000 and used it. I just used the MLO file which i got in DVSDK Demo version only

Steps i used to Rebuilt U-boot(from DVSDK 3.00)
host $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean
host $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm devkit8000_config
host $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm
u-boot.bin was generated without any errors.


Steps i used to Rebuilt the Linux Kernel(from DVSDK 3.01)
host $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean
host $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm omap3_devkit8000_defconfig
host $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm menuconfig
host $ make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm uImage modules
uImage was generated successfully without any errors.




Then steps i used to Rebuilt the DVSDK software for the target(from DVSDK 3.01)
host $ cd /home/<useracct>/dvsdk/dvsdk_3_00_02_44
host $ make check
host $ make info
host $ make clean
host $ make all

All files were generated without error.

Then copied MLO, u-boot.bin and uImage to one partition of the memory card and nfs to another partition of the memory card, Then finally i did
host $ make install.
It replaced some files in the memory card as follows
root@cedt-desktop:/home/cedt/dvsdk/dvsdk_3_00_02_44# make install

 

Creating /media/File/opt/dvsdk/omap3530
Installing DVSDK demos..
make -C /home/cedt/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530 install
make[1]: Entering directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530'

Executing make install in subdirectory decode/...
make[2]: Entering directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530/decode'

Installed decode binaries to /media/File/opt/dvsdk/omap3530..
make[2]: Leaving directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530/decode'

Executing make install in subdirectory interface/...
make[2]: Entering directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530/interface'

Installed interface binaries to /media/File/opt/dvsdk/omap3530..
make[2]: Leaving directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530/interface'

make[2]: Entering directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/data'

Installing fonts in /media/File/opt/dvsdk/omap3530/data/fonts...

Installing pictures in /media/File/opt/dvsdk/omap3530/data/pics...

Installing sounds in /media/File/opt/dvsdk/omap3530/data/sounds...

Installing sounds in /media/File/opt/dvsdk/omap3530/data/videos...
make[2]: Leaving directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/data'
make[1]: Leaving directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/dvsdk_demos_3_00_01_13/omap3530'
Installing clips..
make -C clips install
make[1]: Entering directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/clips'

Installing sounds in /media/File/opt/dvsdk/omap3530/data/sounds...

Installing sounds in /media/File/opt/dvsdk/omap3530/data/videos...

Installing sounds in /media/File/opt/dvsdk/omap3530/data/images...
make[1]: Leaving directory `/home/cedt/dvsdk/dvsdk_3_00_02_44/clips'

Copying kernel modules to target file system: /media/File/opt/dvsdk/omap3530/
Copying cmemk.ko
Copying dsplinkk.ko
Copying lpm_omap3530.ko
Copying sdmak.ko
Copying codec servers from /home/cedt/dvsdk/dvsdk_3_00_02_44/cs1omap3530_1_00_01

Then started Booting up Devkit8000 through Memory card.

Boot parameters are as follows

OMAP3 DevKit8000 # printenv
bootdelay=3
baudrate=115200
ipaddr=192.168.1.177
serverip=192.168.1.121
gatewayip=192.168.1.1
netmask=255.255.255.0
ethaddr=02:fa:09:02:00:15
bootargs=console=ttyS2,115200n8 root=/dev/mmcblk0p2 rootdelay=1 mem=99M
bootcmd=mmc init;fatload mmc 0 82000000 uImage;bootm 82000000
bootfile="uImage"
stdin=serial
stdout=serial
stderr=serial
dieid#=148a000400000000040365fa09020015
ethact=dm9000

Environment size: 389/131068 bytes

 

OMAP3 DevKit8000 # boot
mmc1 is available
reading uImage

2152300 bytes read
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-2.6.29-rc3-omap1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2152236 Bytes =  2.1 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.29-rc3-omap1 (root@cedt) (gcc version 4.2.1 (CodeSourcery Sourcery G++ Lite 2007q3-51)) #1 Thu May 5 11:54:49 IST 2011
CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: OMAP3 DevKit8000 Board
Memory policy: ECC disabled, Data cache writeback
OMAP3430 ES3.1 (full speed SGX, IVA2)
SRAM: Mapped pa 0x40200000 to va 0xd7000000 size: 0x100000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 25146
Kernel command line: console=ttyS2,115200n8 root=/dev/mmcblk0p2 rootdelay=1 mem=99M
Clocking rate (Crystal/DPLL/MPU core): 26.0/266/500 MHz
IVA2 clocking rate: 360 MHz
Reprogramming SDRC
dpll3_m2_clk rate change failed: -22
GPMC revision 5.0
IRQ: Found an INTC at 0xd8200000 (revision 4.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
OMAP34xx GPIO hardware version 2.5
PID hash table entries: 512 (order: 9, 2048 bytes)
OMAP clockevent source: GPTIMER12 at 32768 Hz
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: 99MB = 99MB total
Memory: 95772KB available (3964K code, 362K data, 156K init)
Calibrating delay loop... 515.72 BogoMIPS (lpj=2015232)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 520 bytes
NET: Registered protocol family 16
Found NAND on CS0
Registering NAND on CS0
omap3evmdc: Driver registration complete
OMAP DMA hardware revision 4.0
USB: No board-specific platform config found
OMAP DSS rev 2.0
OMAP DISPC rev 3.0
OMAP VENC rev 2
bio: create slab <bio-0> at 0
i2c_omap i2c_omap.1: bus 1 rev3.12 at 2600 kHz
twl4030: PIH (irq 7) chaining IRQs 368..375
twl4030: power (irq 373) chaining IRQs 376..383
twl4030: gpio (irq 368) chaining IRQs 384..401
i2c_omap i2c_omap.2: bus 2 rev3.12 at 400 kHz
i2c_omap i2c_omap.3: bus 3 rev3.12 at 400 kHz
SCSI subsystem initialized
twl4030_usb twl4030_usb: Initialized TWL4030 USB module
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
musb_hdrc: version 6.0, musb-dma, host, debug=0
musb_hdrc: USB Host mode controller at d80ab000 using DMA, IRQ 92
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
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 187
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654
serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654
serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16654
console [ttyS2] enabled
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.31
eth0: dm9000a at c68ae000,c68b2400 IRQ 185 MAC: 00:11:22:33:44:55 (chip)
Linux video capture interface: v2.00
i2c /dev entries driver
Driver 'sd' needs updating - please use bus_type methods
omap2-nand driver initializing
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xb1 (Micron NAND 128MiB 1,8V 16-bit)
cmdlinepart partition parsing not available
Creating 5 MTD partitions on "omap2-nand":
0x000000000000-0x000000080000 : "X-Loader"
0x000000080000-0x000000260000 : "U-Boot"
0x000000260000-0x000000280000 : "U-Boot Env"
0x000000280000-0x000000680000 : "Kernel"
0x000000680000-0x000008000000 : "File System"
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 2
ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: OMAP UDC driver, version: 4 October 2004 (iso) (dma)
input: omap_twl4030keypad as /class/input/input0
input: gpio-keys as /class/input/input1
ads7846 spi2.0: touchscreen, irq 187
input: ADS784x Touchscreen as /class/input/input2
twl4030_rtc twl4030_rtc: rtc core: registered twl4030_rtc as rtc0
twl4030_rtc twl4030_rtc: Power up reset detected.
twl4030_rtc twl4030_rtc: Enabling TWL4030-RTC.
Registered led device: led1
Registered led device: led2
Registered led device: ledB
Registered led device: led3
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.19.
No device for DAI twl4030
No device for DAI twl4030 Voice
No device for DAI omap-mcbsp-dai-0
No device for DAI omap-mcbsp-dai-1
No device for DAI omap-mcbsp-dai-2
No device for DAI omap-mcbsp-dai-3
No device for DAI omap-mcbsp-dai-4
TWL4030 Audio Codec init
asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
ALSA device list:
  #0: omap3evm (twl4030)
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
Console: switching to colour frame buffer device 60x34
Display already enabled
Display already enabled
Buffer Size = 3686400
omap_vout: registered and initialized            video device 0 [v4l2]
display->updated
twl4030_rtc twl4030_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
Waiting 1sec before mounting root device...
mmc0: new SD card at address aaaa
mmcblk0: mmc0:aaaa SU02G 1.84 GiB
 mmcblk0: p1 p2
kjournald starting.  Commit interval 5 seconds
EXT3 FS on mmcblk0p2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 156K
udevd version 124 started
eth0: link down
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
INIT: Entering runlevel: 5
Starting telnet daemon.
Starting syslogd/klogd: done
Starting thttpd.
/etc/rc5.d/S99omap-demo: line 3: can't create /sys/devices/platform/omapfb/sleep_timeout: nonexistent directory
CMEMK module: built on May 23 2011 at 14:10:16
  Reference Linux version 2.6.29
  File /home/cedt/dvsdk/dvsdk_3_00_02_44/linuxutils_2_24_02/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
ioremap_nocache(0x86300000, 16777216)=0xc9000000
allocated heap buffer 0xc9000000 of size 0x22000
cmem initialized 7 pools between 0x86300000 and 0x87300000
dsplinkk: disagrees about version of symbol __class_create
dsplinkk: Unknown symbol __class_create
dsplinkk: disagrees about version of symbol class_destroy
dsplinkk: Unknown symbol class_destroy
dsplinkk: disagrees about version of symbol set_user_nice
dsplinkk: Unknown symbol set_user_nice
dsplinkk: disagrees about version of symbol wake_up_process
dsplinkk: Unknown symbol wake_up_process
dsplinkk: disagrees about version of symbol dma_alloc_coherent
dsplinkk: Unknown symbol dma_alloc_coherent
dsplinkk: disagrees about version of symbol device_create
dsplinkk: Unknown symbol device_create
dsplinkk: disagrees about version of symbol dma_free_coherent
dsplinkk: Unknown symbol dma_free_coherent
dsplinkk: disagrees about version of symbol device_destroy
dsplinkk: Unknown symbol device_destroy
insmod: cannot insert 'dsplinkk.ko': unknown symbol in module, or unknown parameter
BusyBox v1.13.2 (2009-04-14 20:13:58 EDT) multi-call binary

Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR

Create a special file (block, character, or pipe)

Options:
    -m    Create the special file using the specified mode (default a=rw)
TYPEs includelpm_omap3530: Unknown symbol IPS_notify
:
    b:    Make a block device
    c olpm_omap3530: Unknown symbol IPS_register
r u:    Make a character device
    plpm_omap3530: Unknown symbol IPS_unregister
:    Make a named pipe (MAJOR and Mlpm_omap3530: Unknown symbol LDRV_PROC_setState
INOR are ignored)

lpm_omap3530: Unknown symbol LDRV_PROC_getState
lpm_omap3530: Unknown symbol PMGR_PROC_getSymbolAddress
insmod: cannot insert 'lpm_omap3530.ko': unknown symbol in module, or unknown parameter
SDMAK module: built on May 23 2011 at 14:10:18
  Reference Linux version 2.6.29
  File /home/cedt/dvsdk/dvsdk_3_00_02_44/linuxutils_2_24_02/packages/ti/sdo/linuxutils/sdma/src/module/sdmak.c
/opt/dvsdk/omap3530/interface: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

.-------.                                          
|       |                  .-.                     
|   |   |-----.-----.-----.| |   .----..-----.-----.
|       |     | __  |  ---'| '--.|  .-'|     |     |
|   |   |  |  |     |---  ||  --'|  |  |  '  | | | |
'---'---'--'--'--.  |-----''----''--'  '-----'-'-'-'
                -'  |
                '---'

The Angstrom Distribution arago ttyS2

Arago 2009.03 arago ttyS2

arago login: root
root@arago:~# cd ../..
root@arago:/# ls
bin         etc         linuxrc     mnt         sbin        tmp
boot        home        lost+found  opt         srv         usr
dev         lib         media       proc        sys         var
root@arago:/#


Question1: How to solve this DSP Link error?
Question2: In latest DVSDK i.e 4.01 version, there is no configuration file provided for Devkit8000 to generate uImage.
Question3: Is there any precompiled images for Devkit 8000 so that i can just use it for booting?

Thankyou,
Naveen Kumar.S

原创粉丝点击