Here's the method I use to bring up our new DM355 based boards. These
commands write a MAC address into the EEPROM of the DM9000.
 
On boot, hit a key to get the u-boot command line. Copy and paste the
following lines, but note you should paste them separately one at a
time, the datasheet requires a delay between setting up a write and
executing it. Although, the delay specified is 500us so it might be OK
to just paste the whole lot in.
 
In bold are the digits that are programmed in for the MAC address. The
bytes are in left-to-right order. You should use your own MAC addresses,
you can get them officially assigned. The ones in this example are ones
I made up for testing! Note that there are restrictions on the format of
the first byte, certain patterns indicate brodcast addresses and stuff.
 
These commands assume the DM9000 is mapped to the same address space as
on the EVM.
 
# write 06:06 as first two bytes of MAC address
mw.b 0x4104000 0C; mw.b 0x4104002 00; mw.b 0x4104000 0d; mw.b 0x4104002
06; mw.b 0x4104000 0e; mw.b 0x4104002 06; mw.b 0x4104000 0b; mw.b
0x4104002 12
# wait 500us here
mw.b 0x4104000 0b; mw.b 0x4104002 0
 
# write 0b:0b as next two bytes of MAC address
mw.b 0x4104000 0C; mw.b 0x4104002 01; mw.b 0x4104000 0d; mw.b 0x4104002
0b; mw.b 0x4104000 0e; mw.b 0x4104002 0b; mw.b 0x4104000 0b; mw.b
0x4104002 12
# wait 500us here
mw.b 0x4104000 0b; mw.b 0x4104002 0
 
# write 01:01 (or whatever) as last two bytes of MAC address
mw.b 0x4104000 0C; mw.b 0x4104002 02; mw.b 0x4104000 0d; mw.b 0x4104002
01; mw.b 0x4104000 0e; mw.b 0x4104002 01; mw.b 0x4104000 0b; mw.b
0x4104002 12
# wait 500us here
mw.b 0x4104000 0b; mw.b 0x4104002 0

--
Jon Povey, Design Engineer
[EMAIL PROTECTED] | +44(0)1280 825983 

 


________________________________

        From:
[EMAIL PROTECTED]
idsp.com
[mailto:[EMAIL PROTECTED]
x.davincidsp.com] On Behalf Of [EMAIL PROTECTED]
        Sent: 16 September 2008 09:24
        To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[email protected]
        Subject: RE: DM355:Unable to boot kernel
        
        


        Hi Phil,
        Your observation is correct.
        Any idea how can go though this problem?
        
        
        Regards,
        Jitendra
        
        
        
        -----Original Message-----
        From: Phil Quiney [mailto:[EMAIL PROTECTED]
        Sent: Tue 9/16/2008 1:35 PM
        To: Deepak Shankar-TLS,Chennai.; Jain, Jitendra
[PROTOOL/RTC/INPU]; [email protected]
        Subject: RE: DM355:Unable to boot kernel
        
        Hi,
        
        The problem is going to be related to this.....
        
        dm9000 Ethernet Driver
        eth%d: Invalid ethernet MAC address.  Please set using ifconfig
        eth0: dm9000 at c7862000,c7864002 IRQ 45 MAC: ff:ff:ff:ff:ff:ff
        
        No amount of unplugging the RJ45 is going to help in this case
;-)
        
        Regards
        
        Phil Q
        
        Phil Quiney, Senior Software Engineer
        Trinity Convergence
        Cambridge Business Park
        Cowley Road
        Cambridge CB4 0WZ, UK
        T: +44(0)1223-435536
        F: +44(0)1223-435560
        www.trinityconvergence.com <http://www.trinityconvergence.com/>
        
        
        
        ________________________________
        
        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Deepak Shankar-TLS,Chennai.
        Sent: 16 September 2008 08:15
        To: [EMAIL PROTECTED];
[email protected]
        Subject: RE: DM355:Unable to boot kernel
        
        
        The DHCPing switches are sometimes close switches or something
happens when we use DHCP - either at the board or at switch.
        When I faced a similar problem I just disconnect and reconnect
the RJ45 and then it works with DHCP.
        
        I may not make sense.. but I have faced a similar problem and it
works after reconnecting
        
        Cheers,
        Deepak
        
        
        
        ________________________________
        
        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
        Sent: Tuesday, September 16, 2008 11:21 AM
        To: [email protected]
        Subject: DM355:Unable to boot kernel
        
        
        
        
        Hi all,
        I am using DM355 based custom board.
        I am able to bootup the kernel using static ip but fail with
DHCP enable.
        
        Logs of kernel bootup message with DHCP enable is as shown
below:
        
        
************************************************************************
************************************************
        
        ## Booting image at 80700000 ...
           Image Name:   Linux-2.6.10_mvl401
           Image Type:   ARM Linux Kernel Image (uncompressed)
           Data Size:    1578624 Bytes =  1.5 MB
           Load Address: 80008000
           Entry Point:  80008000
           Verifying Checksum ... OK
        OK
        
        Starting kernel ...
        
        Linux version 2.6.10_mvl401 ([EMAIL PROTECTED]) (gcc version
3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #1 Thu Sep 4
10:13:41 PDT 2008
        CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
        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
        Machine: DaVinci DM355 EVM
        Memory policy: ECC disabled, Data cache writeback
        DM0350
        Built 1 zonelists
        Kernel command line: console=ttyS0,115200n8 nonitrd rw ip=dhcp
root=/dev/nfs nfsroot=142.102.22.241:/home/davinci/workdir/filesys,
nolock mem=116M eth=00:07:E9:B1:67:B7
        PID hash table entries: 512 (order: 9, 8192 bytes)
        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: 116MB = 116MB total
        Memory: 114176KB available (2746K code, 571K data, 180K init)
        Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
        CPU: Testing write buffer coherency: ok
        spawn_desched_task(00000000)
        desched cpu_callback 3/00000000
        ksoftirqd started up.
        desched cpu_callback 2/00000000
        desched thread 0 started up.
        NET: Registered protocol family 16
        DaVinci: 104 gpio irqs
        Registering platform device 'serial8250.0'. Parent at platform
        Registering platform device 'musb_hdrc'. Parent at platform
        Registering platform device 'nand_davinci.0'. Parent at platform
        Registering platform device 'dm9000.0'. Parent at platform
        Registering platform device 'mmc.0'. Parent at platform
        Registering platform device 'mmc.1'. Parent at platform
        DaVinci I2C DEBUG: 10:12:32 Sep  4 2008
        Registering platform device 'i2c'. Parent at platform
        ch0 default output "COMPOSITE", mode "NTSC"
        VPBE Encoder Initialized
        LogicPD encoder initialized
        SCSI subsystem initialized
        usbcore: registered new driver usbfs
        usbcore: registered new driver hub
        musb_hdrc: version 2.2a/db-0.4.8 [cppi-dma] [host] [debug=0]
        musb_hdrc: ConfigData=0x06 (UTMI-8, dyn FIFOs, SoftConn)
        musb_hdrc: MHDRC RTL version 1.300
        musb_hdrc: USB Host mode controller at c7802000 using DMA, IRQ
12
        musb_hdrc musb_hdrc: new USB bus registered, assigned bus number
1
        hub 1-0:1.0: USB hub found
        hub 1-0:1.0: 1 port detected
        DaVinci I2C WARNING: i2c: NACK detected
        VBUS_ERR
        
        DaVinci I2C WARNING: i2c: NACK detected
        DaVinci I2C WARNING: i2c: NACK detected
        DaVinci I2C WARNING: i2c: NACK detected
        DaVinci I2C WARNING: i2c: NACK detected
        Registering platform device 'dm_spi.0'. Parent at platform
        NetWinder Floating Point Emulator V0.97 (double precision)
        JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
        yaffs Sep  4 2008 10:12:18 Installing.
        Initializing Cryptographic API
        Registering platform device 'davincifb.0'. Parent at platform
        davincifb davincifb.0: dm_osd0_fb: [EMAIL PROTECTED],0 with
framebuffer size 1350KB
        davincifb davincifb.0: dm_vid0_fb: [EMAIL PROTECTED],0 with framebuffer
size 2025KB
        davincifb davincifb.0: dm_osd1_fb: [EMAIL PROTECTED],0 with
framebuffer size 1350KB
        davincifb davincifb.0: dm_vid1_fb: [EMAIL PROTECTED],0 with framebuffer
size 2025KB
        VBUS_ERR
        
        VBUS_ERR
        
        VBUS_ERR
        
        watchdog: TI DaVinci Watchdog Timer: timer margin 64 sec
        Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing
disabled
        Registering platform device 'serial8250'. Parent at platform
        ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
        ttyS1 at MMIO 0x1c20400 (irq = 41) is a 16550A
        ttyS2 at MMIO 0x1e06000 (irq = 14) is a 16550A
        io scheduler noop registered
        io scheduler anticipatory registered
        RAMDISK driver initialized: 1 RAM disks of 32768K size 1024
blocksize
        loop: loaded (max 8 devices)
        dm9000 Ethernet Driver
        eth%d: Invalid ethernet MAC address.  Please set using ifconfig
        eth0: dm9000 at c7862000,c7864002 IRQ 45 MAC: ff:ff:ff:ff:ff:ff
        i2c /dev entries driver
        Linux video capture interface: v1.00
        Registering platform device 'vpfe.1'. Parent at platform
        DaVinci I2C WARNING: i2c: NACK detected
        DaVinci I2C WARNING: i2c: NACK detected
        DaVinci I2C WARNING: i2c: NACK detected
        DaVinci I2C WARNING: i2c: NACK detected
        DaVinci I2C WARNING: i2c: NACK detected
        vpfe vpfe.1: DaVinci v4l2 capture driver V1.0 loaded
        Registering platform device 'DavinciDisplay.1'. Parent at
platform
        Trying to register davinci display video device.
        layer=c715cc00,layer->video_dev=c715cd64
        Trying to register davinci display video device.
        layer=c715ca00,layer->video_dev=c715cb64
        davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
        ipipe major#: 254, minor# 0
        Registering platform device 'dm355_ipipe.2'. Parent at platform
        ipipe driver registered
        af major#: 253, minor# 0
        Registering platform device 'dm355_af.2'. Parent at platform
        aew major#: 252, minor# 0
        Registering platform device 'dm355_aew.2'. Parent at platform
        elevator: using anticipatory as default io scheduler
        nand_davinci nand_davinci.0: Using 4-bit hardware ECC
        NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND
1GiB 3,3V 8-bit)
        2 NAND chips detected
        nand_bbt: ECC error while reading bad block table
        nand_bbt: ECC error while reading bad block table
        Creating 5 MTD partitions on "nand_davinci.0":
        0x00000000-0x001e0000 : "bootloader"
        0x001e0000-0x00200000 : "params"
        0x00200000-0x00600000 : "kernel"
        0x00600000-0x20600000 : "filesystem1"
        0x20600000-0x80000000 : "filesystem2"
        nand_davinci nand_davinci.0: hardware revision: 2.3
        dm_spi.0: davinci SPI Controller driver at 0xc7866000 (irq = 42)
use_dma=0
        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.0:USB HID core driver
        mice: PS/2 mouse device common for all mice
        mmc mmc.0: Supporting 4-bit mode
        mmc mmc.0: Using DMA mode
        mmc mmc.1: Supporting 4-bit mode
        mmc mmc.1: Using DMA mode
        Registering platform device 'davinci-audio.0'. Parent at
platform
        *** aic i2c addr: 64
        *** aic i2c addr: 64
        *** aic i2c addr: 64
        *** aic i2c addr: 64
        *** aic i2c addr: 64
        NET: Registered protocol family 2
        IP: routing cache hash table of 512 buckets, 4Kbytes
        TCP: Hash tables configured (established 8192 bind 16384)
        Initializing XFRM netlink socket
        NET: Registered protocol family 1
        NET: Registered protocol family 10
        IPv6 over IPv4 tunneling driver
        NET: Registered protocol family 17
        eth0: link down
        Sending DHCP requests .<6>eth0: link up, 100Mbps, full-duplex,
lpa 0x45E1
        ..<7>eth0: no IPv6 routers present
        ... timed out!
        IP-Config: Retrying forever (NFS root)...
        eth0: link down
        Sending DHCP requests .<6>eth0: link up, 100Mbps, full-duplex,
lpa 0x45E1
        ..<7>eth0: no IPv6 routers present
        ... timed out!
        IP-Config: Retrying forever (NFS root)...
        eth0: link down
        Sending DHCP requests .<6>eth0: link up, 100Mbps, full-duplex,
lpa 0x45E1
        ..<7>eth0: no IPv6 routers present
        ... timed out!
        IP-Config: Retrying forever (NFS root)...
        eth0: link down
        Sending DHCP requests .<6>eth0: link up, 100Mbps, full-duplex,
lpa 0x45E1
        ..<7>eth0: no IPv6 routers present
        
        
************************************************************************
************************************************
        
        Kindly help me in resolving kernel bootup issue.
        
        Regards,
        Jitendra
        
        
        
        DISCLAIMER:
        
------------------------------------------------------------------------
-----------------------------------------------
        
        The contents of this e-mail and any attachment(s) are
confidential and intended for the named recipient(s) only.
        It shall not attach any liability on the originator or HCL or
its affiliates. Any views or opinions presented in
        this email are solely those of the author and may not
necessarily reflect the opinions of HCL or its affiliates.
        Any form of reproduction, dissemination, copying, disclosure,
modification, distribution and / or publication of
        this message without the prior written consent of the author of
this e-mail is strictly prohibited. If you have
        received this email in error please delete it and notify the
sender immediately. Before opening any mail and
        attachments please check them for viruses and defect.
        
        
------------------------------------------------------------------------
-----------------------------------------------
               
        
        


 
Racelogic is a limited company registered in England. Registered number 2743719 
. 
Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, 
MK18 1TB .
The information contained in this electronic mail transmission is intended by 
Racelogic Ltd for the use of the named individual or entity to which it is 
directed and may contain information that is confidential or privileged. If you 
have received this electronic mail transmission in error, please delete it from 
your system without copying or forwarding it, and notify the sender of the 
error by reply email so that the sender's address records can be corrected. The 
views expressed by the sender of this communication do not necessarily 
represent those of Racelogic Ltd. Please note that Racelogic reserves the right 
to monitor e-mail communications passing through its network
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to