becaus of updating to DVSDK2_00_00_22,I make DM6446 board boot MV5 linux kernel via TFTP,and log in use root successfully。It can not ping to server but can ping itself。。
Any advice will be appreciated!!!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
not sure if I have ever pinged from target EVM linux prompt; I normally ping via u-boot prompt and that seems to work ok for me. You may need to add proper file-system support to have the capability to ping from Linux prompt.
hello Juan
I can also ping to my server via u-boot prompt,but after logining use root ,it does not work。The messages given are:
PING 192.168.0.25 (192.168.0.25) 56(84) bytes of data.
From 192.168.0.84 icmp_seq=1 Destination Host Unreachable
From 192.168.0.84 icmp_seq=2 Destination Host Unreachable
From 192.168.0.84 icmp_seq=3 Destination Host Unreachable
--- 192.168.0.25 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5013ms, pipe 3
As for file-system,I just use hard driver file-system.
I check the boot message,somethings strange are below:
。。。。
Machine: DaVinci EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci DM6443 variant 0x0 //--------------------------》does this mean the uIamge just for DM6443,but I find it in ....../uImage-dm6446
。。。。。
TI DaVinci EMAC: MAC address is deadbeaf//----------------->This may be the answer.but I don't how to correct.
TI DaVinci EMAC Linux version updated 4.0
TI DaVinci EMAC: Installed 1 instances.
。。。。。
Davici AEW Driver cannot be loaded
VIDEO PORT is not enabledData Flow path from CCDC is disabled
Davinci AF driver cannot be loaded
VIDEO PORT is not enabled
CCDC needs to be configured<6>i2c /dev entries driver
。。。。。
ALSA device list:
No soundcards found.
Thanks for any help!
Something definitely seems odd about those messages; are you using our DM6446 ECM made by Spectrum Digital? I am thinking the missing MAC address my be the problem here; below is what my boot log looks like
DRAM: 256 MB
MY AMD Flash: 16 MB
In: serial
Out: serial
Err: serial
ARM Clock :- 297MHz
DDR Clock :- 162MHz
MSP430 Firmware does not support AM/PM Feature
Hit any key to stop autoboot: 0
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 44
*** Unhandled DHCP Option in OFFER/ACK: 46
*** Unhandled DHCP Option in OFFER/ACK: 150
*** Unhandled DHCP Option in OFFER/ACK: 44
*** Unhandled DHCP Option in OFFER/ACK: 46
*** Unhandled DHCP Option in OFFER/ACK: 150
DHCP client bound to address 156.117.95.149
TFTP from server 156.117.95.15; our IP address is 156.117.95.149
Filename 'uImage-dm6446'.
Load address: 0x80700000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#####
done
Bytes transferred = 2018344 (1ecc28 hex)
## Booting image at 80700000 ...
Image Name: Linux-2.6.18_pro500-davinci_evm-
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2018280 Bytes = 1.9 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux.....................................................................................................
................................ done, booting the kernel.
Linux version 2.6.18_pro500-davinci_evm-arm_v5t_le (x0029463@aspbuild11) (gcc version 4.2.0 20070126 (prerelease) (Monta
Vista 4.2.0-3.0.0.0702771 2007-03-10)) #1 PREEMPT Wed May 20 01:14:17 IST 2009
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: DaVinci EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci DM6443 variant 0x1
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: 30720
Kernel command line: console=ttyS0,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=156.117.95.15:/home/user/dvsdk_2_0
0_00_22/filesys,nolock mem=120M
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: 120MB = 120MB total
Memory: 117376KB available (3461K code, 689K data, 176K 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: 71 gpio irqs
WARNING: both IDE and NOR flash are enabled, but share pins.
Disable IDE for NOR support.
ch0 default output "COMPOSITE", mode "NTSC"
MUX: initialized LOEEN
MUX: initialized LFLDEN
VPBE Encoder Initialized
LogicPD encoder initialized
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
davinci_spi_board_init: NO spi support
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 May 20 2009 01:11:27 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
davincifb davincifb: dm_osd0_fb: 720x480x16@0,0 with framebuffer size 675KB
davincifb davincifb: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 1020KB
davincifb davincifb: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 675KB
davincifb davincifb: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 1020KB
davincifb davincifb.0: dm_osd0_fb: Failed to obtain ownership of OSD window.
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 0xfec20000 (irq = 40) is a 16550A
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
netconsole: not configured, aborting
TI DaVinci EMAC: MAC address is 00:0e:99:02:51:f4
TI DaVinci EMAC Linux version updated 4.0
TI DaVinci EMAC: Installed 1 instances.
Linux video capture interface: v2.00
vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
Trying to register davinci display video device.
layer=c748d600,layer->video_dev=c748d760
Trying to register davinci display video device.
layer=c748d400,layer->video_dev=c748d560
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
Davici AEW Driver cannot be loaded
VIDEO PORT is not enabledData Flow path from CCDC is disabled
Davinci AF driver cannot be loaded
VIDEO PORT is not enabled
CCDC needs to be configured<6>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 HDIREN
MUX: initialized ATAEN
ide0: MMIO-DMA , BIOS settings: hda:pio, hdb:pio
hda: SAMSUNG MP0402H, ATA DISK drive
ide0 at 0xfec661f0-0xfec661f7,0xfec663f6 on irq 22
hda: max request size: 512KiB
hda: 78242976 sectors (40060 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(66)
hda: cache flushes supported
hda: hda1 hda2
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 musb_hdrc: No DMA interrupt line
musb_hdrc: USB Host mode controller at c805e000 using DMA, IRQ 12
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
rtc_davinci_evm rtc_davinci_evm: rtc intf: proc
rtc_davinci_evm rtc_davinci_evm: rtc intf: dev (254:0)
rtc_davinci_evm rtc_davinci_evm: rtc core: registered rtc_davinci_evm as rtc0
rtc0: hours 12-23 are misreported as duplicate hours 00-11
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 2006 UTC).
ASoC version 0.13.1
MUX: initialized MCBSP
AIC3X Audio Codec 0.1
asoc: aic3x <-> davinci-i2s mapping ok
ALSA device list:
#0: DaVinci EVM (aic3x)
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
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
rtc_davinci_evm rtc_davinci_evm: setting the system clock to 2004-01-01 12:00:22 (1072958422)
Sending DHCP requests .., OK
IP-Config: Got DHCP answer from 255.255.255.255, my address is 156.117.95.149
IP-Config: Complete:
device=eth0, addr=156.117.95.149, mask=255.255.254.0, gw=156.117.94.2,
host=156.117.95.149, domain=am.dhcp.ti.com, nis-domain=(none),
bootserver=255.255.255.255, rootserver=156.117.95.15, rootpath=
Looking up port of RPC 100003/2 on 156.117.95.15
Looking up port of RPC 100005/1 on 156.117.95.15
VFS: Mounted root (nfs filesystem).
Freeing init memory: 176K
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Activating swap...done.
Remounting root filesystem...done.
Calculating module dependencies
WARNING: Couldn't open directory /lib/modules/2.6.18_pro500-davinci_evm-arm_v5t_le: No such file or directory
FATAL: Could not open /lib/modules/2.6.18_pro500-davinci_evm-arm_v5t_le/modules.dep.temp for writing: No such file or di
rectory
Loading modules:
Checking all file systems: fsck
fsck 1.40 (29-Jun-2007)
Mounting local filesystems: mount nothing was mounted
umount.nfs: /dev/root: not found or not mounted
Setting up networking ....
/etc/network/options is deprecated.
Setting up IP spoofing protection: rp_filter done.
Disabling IPv4 packet forwarding: done.
Disabling TCP/IP Explicit Congestion Notification: done.
Starting network interfaces: done.
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....
Cleaning: /tmp /var/lock /var/run done.
Updating /etc/motd...done.
INIT: Entering runlevel: 3
Starting system log daemon: syslogd klogd.
Starting NFS common utilities: statd.
Starting internet superserver: inetd.
Starting OpenBSD Secure Shell server: sshd.
MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921)
156.117.95.149 login: root
Last login: Thu Jan 1 12:05:09 2004 on console
Linux 156.117.95.149 2.6.18_pro500-davinci_evm-arm_v5t_le #1 PREEMPT Wed May 20 01:14:17 IST 2009 armv5tejl GNU/Linux
Welcome to MontaVista(R) Linux(R) Professional Edition 5.0.0 (0801921).
root@156.117.95.149:~# ping 156.117.95.15
PING 156.117.95.15 (156.117.95.15) 56(84) bytes of data.
64 bytes from 156.117.95.15: icmp_seq=1 ttl=64 time=0.668 ms
64 bytes from 156.117.95.15: icmp_seq=2 ttl=64 time=0.487 ms
64 bytes from 156.117.95.15: icmp_seq=3 ttl=64 time=0.730 ms
64 bytes from 156.117.95.15: icmp_seq=4 ttl=64 time=0.523 ms
64 bytes from 156.117.95.15: icmp_seq=5 ttl=64 time=0.478 ms
64 bytes from 156.117.95.15: icmp_seq=6 ttl=64 time=0.972 ms
64 bytes from 156.117.95.15: icmp_seq=7 ttl=64 time=0.552 ms
--- 156.117.95.15 ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 5995ms
rtt min/avg/max/mdev = 0.478/0.630/0.972/0.164 ms
root@156.117.95.149:~#
I think the problem here is the missing MAC address; I am using u-boot 1.2.0 (so you may want to upgrade if you can), but if the MAC address is missing, I do not think the u-boot version would matter much.
I download all sofewares in www.ti.com.
Anther question,does the MAC addr read from u-boot argument:ethaddr,and we can change it to any number?although the MAC addr is deaddeaf,in linux prompt,the command “ifconfig” give the message
The mac addr is
08:00:28:32:06:08
but the ethaddr given is A0:BB:32:76:FE:01
Please note the MAC address should be printed on your DM6446 EVM; you can also download a utility at http://c6000.spectrumdigital.com/davincievm/revf/ to re-program the MAC address if it has been erased somehow, deadbeaf value shown in your boot log above does not sound like a good value
Thanks again ,Juan
First,How can I confirm my board's mac address has been erased?I am puzzled ,assumed that the mac addr has been erased,why I can boot my old kernel MVL4.0,and get mac addr from the u-boot argument ethaddr,ping to server successfully.
second,I have download DaVinciEVM_setmac.out,but I don't know how to use it,can you provide more help,thanks!
What u-boot version are you using with the new mv pro 5 dvsdk? I would recommend you upgrade to the one included in the dvsdk release. If you have not done this; it may explain why things work with mv pro 4 kernel but not w/ mv pro 5.
To be honest, I have never used DaVinciEVM_setmac.out, but going by the name, it appears this is a executable which you can load via CCS/JTAG. I am guessing that when you load and run the executable, it will ask some questions such as value of MAC address and take over from there. Of course, this is just a guess since I have never tried it.
With regards to kernels and bootloaders, I would not count on u-boot passing any information other then what is in bootargs to the kernel; I suppose it can pass MAC address set via u-boot variable, but I am not sure if this is the case. The kernel can read the MAC address from EEPROM itself, hence it may not rely on u-boot value. Furthermore, how the kernel gets MAC address may change from kernel to kernel... bottom line, making sure EEPROM has a valid MAC address is a good idea; it can help it will likely not make things any worse than they already are.
hello,Juan
Thanks for your response.
As your advices,I update the uboot to version 1.2,and reset the board's mac address by what you guess.everything seems right.The message I get as below:
In CCS output,
Enter MAC address: ( 00-0E-99-xx-xx-xx ) ( Last 3 numbers only [format:##-##-##])
00-0E-99-A0-00-00
Writing MAC address: ( 00-0E-99-00-0E-99 )
New MAC address set: ( 00-0E-99-00-0E-99 ) - Good!
Athough the result is not my input,it seems works.
BTW,I didn't update the HDD file system before,because I think it can instead of NFS,however,I update it too today. From the message,I know I lack modules.tar.gz. I don't know whether it matter my next works.Do you know where to download it?
Everything is ready. I boot the new kernel MVL5.0 via TFTP,use HDD fs and NAND mode.
。。。。。。。。。。。。。
TI DaVinci EMAC: MAC address is 00:0e:99:00:0e:99 ==================》the same as CCS output.
TI DaVinci EMAC Linux version updated 4.0
TI DaVinci EMAC: Installed 1 instances.
Linux video capture interface: v2.00
。。。。。。。。。。。。。
however,the sound card still not found.
What the important is I still can not ping my server.I use U-boot1.1.3 ,nor flash mode ,HDD fs to boot MVL5.0 again,the result is same.But I can ping my server in U-boot prompt and in MVL4.0 linux prompt . It seems something wrong in uImage-dm6446,but I confirm I get it from DVSDK2-00-00-22. I make my own kernel in default mode,it still can not ping my server.
I don't what to do next,and puzzled what is wrong.can you give me some more advice again?
Thanks again!
bei liu said:BTW,I didn't update the HDD file system before,because I think it can instead of NFS,however,I update it too today. From the message,I know I lack modules.tar.gz. I don't know whether it matter my next works.Do you know where to download it?
What the important is I still can not ping my server.I use U-boot1.1.3 ,nor flash mode ,HDD fs to boot MVL5.0 again,the result is same.But I can ping my server in U-boot prompt and in MVL4.0 linux prompt . It seems something wrong in uImage-dm6446,but I confirm I get it from DVSDK2-00-00-22. I make my own kernel in default mode,it still can not ping my server.
I don't what to do next,and puzzled what is wrong.can you give me some more advice again?
To be honest, I have not heard of modules.tar.gz; is this referenced in any of the docs?
With regards to not being able to ping, I am puzzled myself as I am using pre-built kernel binary and can ping my host from my target EVM fine from both u-boot 1.20 and my mv pro 5 environment. What file system are you using? Is it the one that comes under 'momtavista/pro/devkit/arm/v5t_le/target' (per GSG)? If not, try using this file-system.
Hello,Juan
Thank you so much .You always explain all issues definitely and patiently.
As for this problem,I think I neglect an important thing .I use the board buyed from an TI authorized saler,but not TI raw board,and they use some different hardware.so I think the MVL5.0 kernel may not compatible to my board.This maybe my issure's reason.
I am so sorry,Juan.I think I must find it earlier ,but not just ask question.[:$]
mmm, not sure what to advice at this point. Is there a web link (URL) to the board you are using? For the most part, most of our third partied selling boards with our DaVinci parts provide the software for their particular board; have you tried going to them?
There is not URL ,they have not produced that board already.The DVSDK they provide is DVSDK1.1,a very old version,and did not update the DVSDK compatible to the board DM6446. I have connected them,but they have any practical support.
BTW,The company’name is SEED.
I have heard similar feedback on SEED from others. Would you consider getting on of our DM6446 EVMs? It may save you lots of head-aches and we would be able to offer much better support.