Hi all,
i have taken Appro DM368 IPNETCAM Reference design and trying to build and install my own uImage.
My directory structure of DM36x folder is as shown in attached .png file.
Inside the ti-davinci directory i am typing the following command
make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage
in order to generate Image in the following directory:
/home/mayank/DM36x/ipnc/ti-davinci/arch/arm/boot
i tried to install this image and the default filesystem image cramfsImage by copying it first in tftpboot directory using the following command:
tftp 0x80700000 uImage_ipnc_dm368_IMX036_2.60.01
tftp 0x82000000 cramfsImage_ipnc_dm368_IMX036_2.60.01
nand erase 0x200000 0xF00000
nand write 0x80700000 0x500000 0x200000
nand write 0x82000000 0x700000 0xD00000
setenv bootcmd 'nand read 0x82000000 0x700000 0xD00000;nboot 0x80700000 0 0x500000;bootm 0x80700000'
setenv bootargs 'mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x82000000,16M ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:::off eth=00:0C:0C:’
But when i am trying to boot the board i am getting the following output:
DM36x initialization passed!
TI UBL Base Version: 1.50
Boot Loader BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
Boot Mode Task Completed
IPNC UBL Version: 1.1.0
Platform: DM368
Jumping to entry point at 0x81080000
U-Boot 1.3.4 (Dec 9 2010 - 17:44:14) DM368-IPNC-1.0.1
I2C: ready
DRAM: 128 MB
NAND: NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3)
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
128 MiB
In: serial
Out: serial
Err: serial
ARM Clock :- 432MHz
DDR Clock :- 340MHz
Ethernet PHY: GENERIC @ 0x01
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x700000, size 0xd00000
Skipping bad block 0x00b80000
13631488 bytes read: OK
Loading from NAND 128MiB 3,3V 8-bit, offset 0x500000
Image Name: Linux-2.6.18_pro500-davinci_IPNC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1865356 Bytes = 1.8 MB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80700000 ...
Image Name: Linux-2.6.18_pro500-davinci_IPNC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1865356 Bytes = 1.8 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Linux version 2.6.18_pro500-davinci_IPNC_DM368_2.6.0 (mayank@mayank-laptop) (gc1
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci DM368 IPNC
Memory policy: ECC disabled, Data cache writeback
DaVinci DM0365 variant 0x8
PLL0: fixedrate: 24000000, commonrate: 170000000, vpssrate: 340000000
PLL0: vencrate_sd: 75555555, ddrrate: 340000000 mmcsdrate: 48571428
PLL1: armrate: 432000000, voicerate: 20571428, vencrate_hd: 27000000
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: 12288
Kernel command line: mem=48M console=ttyS1,115200n8 root=/dev/ram0 rw initrd=0x’
TI DaVinci EMAC: kernel boot params Ethernet address: 00:0C:0C:��’
PID hash table entries: 256 (order: 8, 1024 bytes)
Clock event device timer0_0 configured with caps set: 07
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 48MB = 48MB total
Memory: 28196KB available (3193K code, 654K data, 184K init)
Security Framework v1.0.0 initialized
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like d
Freeing initrd memory: 16384K
NET: Registered protocol family 16
DaVinci: 104 gpio irqs
MUX: initialized GPIO20
MUX: initialized I2C_SCL
Generic PHY: Registered new driver
ch0 default output "COMPOSITE", mode "NTSC"
VPBE Encoder Initialized
SCSI subsystem initialized
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
***davinci_spi_board_init()!<6>
***davinci_spi_board_init_End(0)!<5>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 Aug 19 2011 13:36:10 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
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
Davinci EMAC MII Bus: probed
MAC address is 00:0C:0C:��’
TI DaVinci EMAC Linux version updated 4.0
netconsole: not configured, aborting
Linux video capture interface: v2.00
Trying to register davinci display video device.
layer=c2f08000,layer->video_dev=c2f08160
Trying to register davinci display video device.
layer=c2f1be00,layer->video_dev=c2f1bf60
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
i2c /dev entries driver
nand_davinci nand_davinci.0: Using 4-bit hardware ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-b)
Creating 7 MTD partitions on "nand_davinci.0":
0x00000000-0x00300000 : "bootloader"
0x00300000-0x00500000 : "params"
0x00500000-0x00700000 : "kernel"
0x00700000-0x02700000 : "filesystem"
0x02700000-0x02900000 : "data1"
0x02900000-0x02d00000 : "Calibration"
0x02d00000-0x08000000 : "data2"
nand_davinci nand_davinci.0: hardware revision: 2.3
musb_hdrc: version 6.0, cppi-dma, peripheral, debug=0
musb_hdrc musb_hdrc: No DMA interrupt line
musb_hdrc: USB Peripheral mode controller at c3866000 using DMA, IRQ 12
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: proc
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc intf: dev (254:0)
rtc_davinci_dm365 rtc_davinci_dm365.0: rtc core: registered rtc_davinci_dm365 a0
davinci-mmc davinci-mmc.0: Supporting 4-bit mode
davinci-mmc davinci-mmc.0: Using DMA mode
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50.
ASoC version 0.13.1
CQ0093 Voice Codec 0.1
asoc: cq93vc <-> davinci-vcif mapping ok
ALSA device list:
#0: On-chip voice codec (cq93vc)
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc_davinci_dm365 rtc_davinci_dm365.0: setting the system clock to 2000-01-01 0)
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=192.168.1.101, mask=255.255.255.0, gw=192.168.1.1,
host=192.168.1.101, domain=, nis-domain=(none),
bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 14136KiB [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing init memory: 184K
INIT: version 2.86 booting
0
mkdir: Cannot create directory `/dev/.test': Read-only file system
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
0
csl: disagrees about version of symbol struct_module
insmod: cannot insert `./csl.ko': Invalid module format (-1): Exec format error
drv: disagrees about version of symbol struct_module
insmod: cannot insert `./drv.ko': Invalid module format (-1): Exec format error
cmemk: disagrees about version of symbol struct_module
BusyBox v1.2.2 (2007.03.11-00:56+0000) 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 thedmak: disagrees about version e
e specified mode (default a=rw)
TYPEs include:
b: Make a block (buffered) device
c or u: Make a character (un-buffered) device
p: Make a named pipe. MAJOR and MINOR are ignored for named pipes
Busirqk: disagrees about version of symbol struct_module
yBox v1.2.2 (2007.03.11-00:56+0000) 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 sdm365mmap: disagrees about ve
pecified mode (default a=rw)
TYPEs include:
b: Make a block (buffered) device
c or u: Make a character (un-buffered) device
p: Make a named pipe. MAJOR and MINOR are ignored for named pipes
insmod: cannot insert `cmemk.ko': Invalid module format (-1): Exec format error
insmod: cannot insert `edmak.ko': Invalid module format (-1): Exec format error
insmod: cannot insert `irqk.ko': Invalid module format (-1): Exec format error
insmod: cannot insert `dm365mmap.ko': Invalid module format (-1): Exec format er
Creat queue id:0
queue id:0
FileMngThread created
Creat queue id:32769
queue id:32769
AlramThread created
Share memory init success
IPNC_DM368_2.6.0 (mayank@mayank-laptop) (gcc version 4.2.0 (Mon
Creat queue id:65538
queue id:65538
queue id:32769
queue id:65538
Creat queue id:98307
queue id:98307
Starting mounting local filesystems: mount none on /dev/shm type tmpfs (rw,size)
none on /var/run type tmpfs (rw)
CPU is DM368
./av_server.out DM368 NTSC AUDIO 8000 G711 64000 APPRO2A AEWB 720P H264 5000000&
Check_device_version : DEVICE VER = 1 !!
AVSERVER UI: Initializing.
ERROR (drv.c|DRV_init|31): CSL init
ERROR (drv.c|DRV_init|107): DRV_init()
ERROR (avServerApi.c|AVSERVER_init|572): DRV_init()
ERROR (avServerUi.c|UI_start|54): AVSERVER_init()
none on /tmp type tmpfs (rw,sync)
Setting up networking ...rm: unable to remove `/etc/network/run': Read-only film
ApproDrvInit: 7
CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
Error: ApproDrvInit fail
SystemInit success
Schedule manager init success
Starting hotplug subsystem:
pci
pci [success]
usb
usb [success]
isapnp
isapnp [success]
ide
ide [success]
input
input [success]
scsi
scsi [success]
done.
Starting portmap daemon: portmap.
Starting internet superserver: inetdcrc_ccitt: disagrees about version of symboe
.
libcrc32c: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/crc-ccitt.ko': Invalid module format (r
insmod: cannot insert `/opt/ipnc/modules/libcrc32c.ko': Invalid module format (r
deadline_iosched: disagrees about version of symbol struct_module
cfq_iosched: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/deadline-iosched.ko': Invalid module fr
insmod: cannot insert `/opt/ipnc/modules/cfq-iosched.ko': Invalid module formatr
i2c_emac: disagrees about version of symbol struct_module
sbull: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/i2c-emac.ko': Invalid module format (-r
insmod: cannot insert `/opt/ipnc/modules/sbull.ko': Invalid module format (-1):r
crc32c: disagrees about version of symbol struct_module
deflate: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/crc32c.ko': Invalid module format (-1)r
insmod: cannot insert `/opt/ipnc/modules/deflate.ko': Invalid module format (-1r
des: disagrees about version of symbol struct_module
md5: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/des.ko': Invalid module format (-1): Er
insmod: cannot insert `/opt/ipnc/modules/md5.ko': Invalid module format (-1): Er
sha1: disagrees about version of symbol struct_module
nls_ascii: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/sha1.ko': Invalid module format (-1): r
insmod: cannot insert `/opt/ipnc/modules/nls_ascii.ko': Invalid module format (r
nls_utf8: disagrees about version of symbol struct_module
exportfs: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/nls_utf8.ko': Invalid module format (-r
insmod: cannot insert `/opt/ipnc/modules/exportfs.ko': Invalid module format (-r
nfsd: disagrees about version of symbol struct_module
loop: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/nfsd.ko': Invalid module format (-1): r
insmod: cannot insert `/opt/ipnc/modules/loop.ko': Invalid module format (-1): r
tun: disagrees about version of symbol struct_module
slhc: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/tun.ko': Invalid module format (-1): Er
insmod: cannot insert `/opt/ipnc/modules/slhc.ko': Invalid module format (-1): r
netconsole: disagrees about version of symbol struct_module
ppp_generic: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/netconsole.ko': Invalid module format r
insmod: cannot insert `/opt/ipnc/modules/ppp_generic.ko': Invalid module formatr
ppp_synctty: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/ppp_synctty.ko': Invalid module formatr
ppp_async: disagrees about version of symbol struct_module
ppp_deflate: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/ppp_async.ko': Invalid module format (r
insmod: cannot insert `/opt/ipnc/modules/ppp_deflate.ko': Invalid module formatr
davinci_emac: disagrees about version of symbol struct_module
mmc_core: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/davinci_emac.ko': Invalid module formar
insmod: cannot insert `/opt/ipnc/modules/mmc_core.ko': Invalid module format (-r
mmc_block: disagrees about version of symbol struct_module
davinci_mmc: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/mmc_block.ko': Invalid module format (r
insmod: cannot insert `/opt/ipnc/modules/davinci-mmc.ko': Invalid module formatr
usbcore: disagrees about version of symbol struct_module
musb_hdrc: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/usbcore.ko': Invalid module format (-1r
insmod: cannot insert `/opt/ipnc/modules/musb_hdrc.ko': Invalid module format (r
usbmon: disagrees about version of symbol struct_module
scsi_transport_iscsi: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/usbmon.ko': Invalid module format (-1)r
insmod: cannot insert `/opt/ipnc/modules/scsi_transport_iscsi.ko': Invalid modur
libiscsi: disagrees about version of symbol struct_module
iscsi_tcp: disagrees about version of symbol struct_module
insmod: cannot insert `/opt/ipnc/modules/libiscsi.ko': Invalid module format (-r
insmod: cannot insert `/opt/ipnc/modules/iscsi_tcp.ko': Invalid module format (r
sbull: disagrees about version of symbol struct_module
insmod: cannot insert `sbull.ko': Invalid module format (-1): Exec format error
mkdosfs 3.0.6 (04 Oct 2009)
queue id:0
umount: /mnt/mmc: not mounted
killall: dhcpcd: no process killed
rm: cannot remove `/var/run/dhcpcd-eth0.pid': No such file or directory
net_search_gateway:eth0, 1A8C0, 0, 1
dns=192.168.1.1
net_search_gateway:eth0, 1A8C0, 0, 1
net_search_gateway:eth0, 0, FE01A8C0, 3
dns=192.168.1.1
cp: unable to open `/mnt/ramdisk/usbconf.exe': Read-only file system
cp: unable to open `/mnt/ramdisk/autorun.inf': Read-only file system
cp: unable to open `/mnt/ramdisk/NET.TXT': Read-only file system
g_file_storage: disagrees about version of symbol struct_module
ERROR: Module g_file_storage does not exist in /proc/modules
insmod: cannot insert `g_file_storage.ko': Invalid module format (-1): Exec forr
system_server/526[CPU#0]: BUG in local_bh_enable at kernel/softirq.c:196
ApproDrvInit: 9
CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
ApproDrvInit: 8
CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
ApproDrvInit: 2
CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
ApproDrvInit: 10
CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
ApproDrvInit: 6
CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
ApproDrvInit: 3
CMEM Error: init: Failed to open /dev/cmem: 'No such file or directory'
INIT: Entering runlevel: 3
MontaVista(R) Linux(R) Professional Edition 5.0.0 (0702774)
192.168.1.101 login: root
I have following doubts:
1.My purpose is to make changes in appro code,make uimage and then install it in the board.
i want to know whether the procedure i am following above is right or wrong,after doing any changes
in the code i have to build the uimage and install it using tftp on the board so that when the gui is visible
on ip 192.168.1.168 the code changes get reflected in that.
Please guide if for accomplishing above my procedure is right or there is something else which needs to be done more.
2.Also the ipnetcam gui which was appearing at 192.168.1.168 is not appearing.Please guide me whether the above procedure
is right or something more needs to be done.
Thanks and Regards,
Mayank Agarwal