1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
大家好,最近在看Appro的参考设计的时候,没看到以往的“insmod cmemk.ko”这样的脚本,我用的是4.0的RDK
在/etc/init.d/rcS脚本文件里368相关的加载脚本如下: DVEVMDIR=/opt/ipnc # Load the dsplink and cmem kernel modules /bin/mount -t sysfs none /sys -n mount -t debugfs none /sys/kernel/debug cd $DVEVMDIR mount -t jffs2 /dev/mtdblock4 /mnt/nand ./system_server & $DVEVMDIR/beforeloadkmodule.sh $DVEVMDIR/loadkmodules.sh $DVEVMDIR/loadmodules_ipnc.sh ifconfig lo 127.0.0.1 cd $DVEVMDIR ./boot_proc 1 $DVEVMDIR/autorun.sh mount devpts /dev/pts -t devpts 我查看了Appro参考设计里所有368有关的*.sh,比如上面提到的“beforeloadkmodule.sh”、“loadkmodules.sh”、“loadmodules_ipnc.sh”等等,都没有看到“insmod cmemk.ko”这样的语句。 希望ti的专家们帮我解释一下这个现象。 还是我没找到?还请专家告诉我在哪找到? |
|
相关推荐
3个回答
|
|
我也遇到了相似的问题 我用的是dm365 原先SDK用的是dvsdk_dm365_4_02_00_06, 是需要手动insmod cmemk.ko的 后来SDK换成了ipnc_psp_03_21_00_04,发现内核直接都加载了 但是lsmod看一下 发现 也没加载上;现在想把cmemk.ko从内核中剥离出来, 还没找到方法
|
|
|
|
下面是我的打印:
DM36x initialization passed! TI UBL Version: 1.50 Booting Catalog Boot Loader BootMode = SD/MMC Starting SDMMC Copy... DONE Jumping to entry point at 0x81080000. U-Boot 2010.12-rc2 (Mar 24 2011 - 19:27:17) Cores: ARM 297 MHz DDR: 243 MHz I2C: ready DRAM: 128 MiB NAND: 256 MiB MMC: davinci: 0, davinci: 1 Bad block table found at page 131008, version 0x01 Bad block table found at page 130944, version 0x01 nand_read_bbt: Bad block at 0x000000000000 nand_read_bbt: Bad block at 0x000000020000 nand_read_bbt: Bad block at 0x000001b40000 nand_read_bbt: Bad block at 0x000002920000 nand_read_bbt: Bad block at 0x000002ba0000 nand_read_bbt: Bad block at 0x000006dc0000 nand_read_bbt: Bad block at 0x000007860000 Net: Ethernet PHY: GENERIC @ 0x00 DaVinci-EMAC Hit any key to stop autoboot: 0 Loading from nand0, offset 0x500000 Image Name: Linux-2.6.37_IPNC_DM365EVM_4.1.0 Created: 2013-07-31 7:42:53 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4844704 Bytes = 4.6 MiB Load Address: 80008000 Entry Point: 80008000 ## Booting kernel from Legacy Image at 80700000 ... Image Name: Linux-2.6.37_IPNC_DM365EVM_4.1.0 Created: 2013-07-31 7:42:53 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4844704 Bytes = 4.6 MiB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Linux version 2.6.37_IPNC_DM365EVM_4.1.0 (root@cc) (gcc version 4.3.3 (GCC) ) #2 PREEMPT Wed Jul 31 15:42:50 CST 2013 CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 CPU: VIVT data cache, VIVT instruction cache Machine: DaVinci DM36x EVM Memory policy: ECC disabled, Data cache writeback DaVinci dm365_rev1.1 variant 0x0 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 15240 Kernel command line: console=ttyS0,115200n8 mem=60M noinitrd rw ip=192.168.143.177:192.168.143.244:192.168.143.1:255.255.255.0 root=/dev/nfs nfsroot=192.168.143.244:/home/zhp/IPNC/Source/ipnc_rdk/target/filesys,nolock video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,2025K dm365_imp.oper_mode=0 PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 60MB = 60MB total Memory: 55932k/55932k available, 5508k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) DMA : 0xff000000 - 0xffe00000 ( 14 MB) vmalloc : 0xc4000000 - 0xfea00000 ( 938 MB) lowmem : 0xc0000000 - 0xc3c00000 ( 60 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .init : 0xc0008000 - 0xc002d000 ( 148 kB) .text : 0xc002d000 - 0xc0475000 (4384 kB) .data : 0xc0476000 - 0xc04a6ca0 ( 196 kB) SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Preemptable hierarchical RCU implementation. RCU-based detection of stalled CPUs is disabled. Verbose stalled-CPUs detection is disabled. NR_IRQS:245 Console: colour dummy device 80x30 Calibrating delay loop... 147.86 BogoMIPS (lpj=739328) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok DaVinci: 8 gpio irqs NET: Registered protocol family 16 EVM: HD imager video input bio: create slab SCSI subsystem initialized u***core: registered new interface driver u***fs u***core: registered new interface driver hub u***core: registered new device driver u*** vpss vpss: dm365_vpss vpss probed vpss vpss: dm365_vpss vpss probe success Advanced Linux Sound Architecture Driver Version 1.0.23. cfg80211: Calling CRDA to update world regulatory domain Switching to clocksource timer0_1 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Installing knfsd (copyright (C) 1996 okir@monad.swb.de). JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc. msgmni has been set to 109 io scheduler noop registered (default) CSL: Module install successful, device major num = 254 CSL: Module version 0.10.00, built on Jul 31 2013 11:32:10 I2C: Module install successful, device major num = 253 DMA: Module install successful, device major num = 252 EVM: switch to tvp5146 SD video input DRV: Sensor interface selected on DM365 EVM DRV: Module install successful DRV: Module built on Jul 31 2013 11:32:11 DRV: EDMACC.QUEPRI = 00002777 DRV: SYSTEM.MSTPRI0 = 00440011 DRV: SYSTEM.MSTPRI1 = 00000444 DRV: ISP.BCR = 00000002 DRV: SYSTEM.MISC = 00000391 EDMAK module: built on Jul 31 2013 at 11:31:48 Reference Linux version 2.6.37 File /home/zhp/IPNC/Source/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c IRQK module: built on Jul 31 2013 at 11:31:47 Reference Linux version 2.6.37 File /home/zhp/IPNC/Source/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c irqk initialized CMEMK module: built on Jul 31 2013 at 11:31:44 Reference Linux version 2.6.37 /////////////////////////////////////////////////////////////// cmemk 在这儿加载了 但是好像加载没有成功 ////////////////////////////////////////////////////////////////////////////////// File /home/zhp/IPNC/Source/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c no physical memory specified, continuing with no memory allocation capability... cmemk initialized Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A console [ttyS0] enabled serial8250 serial8250.0: unable to register port at index 1 (IO0 MEM1d06000 IRQ41): -22 brd: module loaded at24 1-0050: 32768 byte 24c256 EEPROM (writable) Read MAC addr from EEPROM: 00:0e:99:02:c8:e8 NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung ) Creating 5 MTD partitions on "davinci_nand.0": 0x000000000000-0x000000f00000 : "bootloader" 0x000000f00000-0x000001000000 : "params" 0x000001000000-0x000001400000 : "kernel" 0x000001400000-0x000021400000 : "filesystem1" mtd: partition "filesystem1" extends beyond the end of device "davinci_nand.0" -- size truncated to 0xec00000 0x000010000000-0x000010000000 : "filesystem2" mtd: partition "filesystem2" is out of reach -- disabled davinci_nand davinci_nand.0: controller rev. 2.3 spi_davinci spi_davinci.0: DMA: supported spi_davinci spi_davinci.0: DMA: RX channel: 17, TX channel: 16, event queue: 3 at25 spi0.0: 8 KByte at25640 eeprom, pagesize 32 spi_davinci spi_davinci.0: Controller at 0xfec66000 davinci_mdio davinci_mdio.0: davinci mdio revision 1.4 davinci_mdio davinci_mdio.0: detected phy mask fffffffc davinci_mdio.0: probed davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown console [netcon0] enabled netconsole: network logging started mice: PS/2 mouse device common for all mice tsc2004: probe of 1-0049 failed with error -121 input: DM365 EVM Controls as /devices/platform/i2c_davinci.1/i2c-1/1-0025/input/input0 i2c /dev entries driver Linux media interface: v0.10 lirc_dev: IR Remote Control driver registered, major 246 IR NEC protocol handler initialized IR RC5(x) protocol handler initialized IR RC6 protocol handler initialized IR JVC protocol handler initialized IR Sony protocol handler initialized IR RC5 (streamzap) protocol handler initialized IR LIRC bridge handler initialized Linux video capture interface: v2.00 vpbe-osd vpbe-osd: OSD sub device probe success vpbe-venc vpbe-venc: VENC sub device probe success vpbe-v4l2 vpbe-v4l2: vpbe v4l2 device registered ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter) write byte data failed vpbe-v4l2 vpbe-v4l2: v4l2 sub device ths7303 registered Setting default output to Composite Setting default mode to ntsc vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device. vpbe-v4l2 vpbe-v4l2: layer=c35d7e00,layer->video_dev=c35d7ef4 vpbe-v4l2 vpbe-v4l2: Trying to register VPBE display device. vpbe-v4l2 vpbe-v4l2: layer=c35d1000,layer->video_dev=c35d10f4 watchdog watchdog: heartbeat 60 sec u***core: registered new interface driver u***hid u***hid: USB HID core driver asoc: tlv320aic3x-hifi <-> davinci-mcbsp mapping ok ALSA device list: #0: DaVinci DM365 EVM TCP cubic registered NET: Registered protocol family 17 lib80211: common routines for IEEE802.11 drivers net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, id=221613) IP-Config: Complete: device=eth0, addr=192.168.143.177, mask=255.255.255.0, gw=192.168.143.1, host=192.168.143.177, domain=, nis-domain=(none), bootserver=192.168.143.244, rootserver=192.168.143.244, rootpath= PHY: 0:01 - Link is Up - 100/Full VFS: Mounted root (nfs filesystem) on device 0:13. Freeing init memory: 148K INIT: version 2.86 booting Division by zero in kernel. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
336 浏览 1 评论
529 浏览 2 评论
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
774 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
651 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1130 浏览 1 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
58浏览 29评论
140浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
252浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
201浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
57浏览 13评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 09:02 , Processed in 0.486447 second(s), Total 46, Slave 40 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号