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.

unable to configure eth0 onDM6646

i am trying to put linux on my custom board DM6446.I am done with the UBL,U-BOOT ,uImage(kernel) and the filesystem.
Have refrred the busybox as my file system.I am using the open source code from git.Here is what i get

## Booting kernel from Legacy Image at 80000000 ...                             
   Image Name:   Linux-2.6.31-rc5-davinci1                                      
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    1542436 Bytes =  1.5 MB                                        
   Load Address: 80008000                                                       
   Entry Point:  80008000                                                       
   Verifying Checksum ... OK                                                    
   Loading Kernel Image ... OK                                                  
OK                                                                              
                                                                                
Starting kernel ...                                                             
                                                                                
Uncompressing Linux..............................................................
Linux version 2.6.31-rc5-davinci1 (root@localhost.localdomain) (gcc version 4.2.9
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177                   
CPU: VIVT data cache, VIVT instruction cache                                    
Machine: DaVinci DM644x EVM                                                     
Memory policy: ECC disabled, Data cache writeback                               
DaVinci dm6446a variant 0x1                                                     
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 30480      
Kernel command line: console=ttyS0,115200n8 root=/dev/ram0 rw initrd=0x81600000,M
PID hash table entries: 512 (order: 9, 2048 bytes)                              
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: 108116KB available (2856K code, 300K data, 124K init, 0K highmem)       
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1         
NR_IRQS:229                                                                     
Console: colour dummy device 80x30                                              
Calibrating delay loop... 147.86 BogoMIPS (lpj=739328)                          
Mount-cache hash table entries: 512                                             
CPU: Testing write buffer coherency: ok                                         
DaVinci: 71 gpio irqs                                                           
NET: Registered protocol family 16                                              
WARNING: both IDE and Flash are enabled, but they share AEMIF pins.             
        Disable IDE for NAND/NOR support.                                       
MUX: Setting register HPIEN_DISABLE                                             
           PINMUX0 (0x00000000) = 0x80000c1f -> 0x80000c1f                      
MUX: initialized ATAEN                                                          
MUX: Setting register ATAEN                                                     
           PINMUX0 (0x00000000) = 0x80000c1f -> 0x80020c1f                      
MUX: initialized HDIREN                                                         
MUX: Setting register HDIREN                                                    
           PINMUX0 (0x00000000) = 0x80020c1f -> 0x80030c1f                      
MUX: initialized MCBSP                                                          
MUX: Setting register MCBSP                                                     
           PINMUX1 (0x00000004) = 0x00000081 -> 0x00000481                      
bio: create slab <bio-0> at 0                                                   
pcf857x: probe of 1-0038 failed with error -121                                 
pcf857x: probe of 1-0039 failed with error -121                                 
pcf857x: probe of 1-003a failed with error -121                                 
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                                               
Trying to unpack rootfs image as initramfs...                                   
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 10240K                                                   
msgmni has been set to 231                                                      
io scheduler noop registered                                                    
io scheduler anticipatory registered (default)                                  
Setting Up Clocks for DM420 OSD                                                 
Console: switching to colour frame buffer device 90x30                          
fb0: dm_osd0_fb frame buffer device                                             
fb1: dm_vid0_fb frame buffer device                                             
fb2: dm_osd1_fb frame buffer device                                             
fb3: dm_vid1_fb frame buffer device                                             
Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled                        
Platform driver 'serial8250' needs updating - please use dev_pm_ops             
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 MEM1c20400 IRQ42
serial8250 serial8250.0: unable to register port at index 2 (IO0 MEM1c20800 IRQ42
brd: module loaded                                                              
at24 1-0050: 32768 byte 24c256 EEPROM (writable)                                
davinci_emac_probe: using random MAC addr: 9a:c3:b8:e1:ad:db                    
emac-mii: probed                                                                
Fixed MDIO Bus: probed                                                          
Platform driver 'smc91x' needs updating - please use dev_pm_ops                 
Platform driver 'smc911x' needs updating - please use dev_pm_ops                
dm9000 Ethernet Driver, V1.31                                                   
Platform driver 'dm9000' needs updating - please use dev_pm_ops                 
console [netcon0] enabled                                                       
netconsole: network logging started                                             
i2c /dev entries driver                                                         
TCP cubic registered                                                            
NET: Registered protocol family 17                                              
RPC: Registered udp transport module.                                           
RPC: Registered tcp transport module.                                           
Clocks: disable unused uart1                                                    
Clocks: disable unused uart2                                                    
Clocks: disable unused ide                                                      
Clocks: disable unused asp0                                                     
Clocks: disable unused mmcsd                                                    
Clocks: disable unused spi                                                      
Clocks: disable unused usb                                                      
Clocks: disable unused vlynq                                                    
Clocks: disable unused pwm0                                                     
Clocks: disable unused pwm1                                                     
Clocks: disable unused pwm2                                                     
Clocks: disable unused timer1                                                   
RAMDISK: ext2 filesystem found at block 0                                       
RAMDISK: Loading 7000KiB [1 disk] into ram disk... done.                        
VFS: Mounted root (ext2 filesystem) on device 1:0.                              
Freeing init memory: 124K                                                       
                                                                                
    System initialization...                                                    
                                                                                
    Hostname       : OMAP3EVM                                                   
    Filesystem     : v1.0.0                                                     
                                                                                
                                                                                
    Kernel release : Linux 2.6.31-rc5-davinci1                                  
    Kernel version : #1 PREEMPT Mon Oct 5 09:45:44 PKT 2009                     
                                                                                
 Mounting /proc             : [SUCCESS]                                         
 Mounting /sys              : [SUCCESS]                                         
 Mounting /dev              : [SUCCESS]                                         
 Mounting /dev/pts          : [SUCCESS]                                         
 Enabling hot-plug          : [SUCCESS]                                         
 Populating /dev            : [SUCCESS]                                         
 Mounting other filesystems : [SUCCESS]                                         
 Starting syslogd           : [SUCCESS]                                         
 Starting telnetd           : [SUCCESS]                                         
                                                                                
System initialization complete.                                                 
                                                                                
Please press Enter to activate this console.
# ifconfig -a                                                                   
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00                         
          BROADCAST MULTICAST  MTU:1500  Metric:1                               
          RX packets:0 errors:0 dropped:0 overruns:4294967295 frame:4294967291  
          TX packets:0 errors:0 dropped:0 overruns:4294967295 carrier:4294967295
          collisions:4294967293 txqueuelen:1000                                 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                
          Interrupt:13                                                          
                                                                                
lo        Link encap:Local Loopback                                             
          LOOPBACK  MTU:16436  Metric:1                                         
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:0                                             
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 
# ifconfig eth0 up
eth0: no PHY found                                            
                                                                                
ifconfig: SIOCSIFFLAGS: Operation not permitted

# ifconfig eth0 up
net eth0: DaVinci EMAC: request_irq() failed                  
ifconfig: SIOCSIFFLAGS: Device or resource busy   

 ifconfig eth0 up                                                              
kernel BUG at include/linux/netdevice.h:439!                                    
                                                                                
Unable to handle kernel NULL pointer dereference at virtual address 00000000    
pgd = c1660000                                                                  
[00000000] *pgd=86668031, *pte=00000000, *ppte=00000000                         
Internal error: Oops: 817 [#1] PREEMPT                                          
Modules linked in:                                                              
CPU: 0    Not tainted  (2.6.31-rc5-davinci1 #1)                                 
PC is at __bug+0x20/0x2c                                                        
LR is at preempt_schedule+0x48/0x64                                             
pc : [<c002b3b0>]    lr : [<c024c9e4>]    psr: 60000013                         
sp : c70dbdc0  ip : c70dbd00  fp : c70dbdcc                                     
r10: c704a800  r9 : c704a800  r8 : c704aac0                                     
r7 : 00000001  r6 : 00000001  r5 : 00000000  r4 : c66dda80                      
r3 : 00000000  r2 : c70da000  r1 : c706a320  r0 : 00000033                      
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user               
Control: 0005317f  Table: 81660000  DAC: 00000015                               
Process ifconfig (pid: 857, stack limit = 0xc70da270)                           
Stack: (0xc70dbdc0 to 0xc70dc000)                                               
bdc0: c70dbe1c c70dbdd0 c0191e24 c002b3a0 c704a800 c704a800 c005695c c00568ac   
bde0: 00000000 00000000 c704aa08 c704aa08 c0056984 c704a800 c704a830 c0260c8c   
be00: 00001002 bee95950 c704a800 c70d630c c70dbe3c c70dbe20 c01ce43c c0191a44   
be20: c01c9c48 c704a800 00000041 00001043 c70dbe5c c70dbe40 c01cc63c c01ce388   
be40: 00000001 00000000 c70dbe78 c70d6300 c70dbec4 c70dbe60 c0210fcc c01cc5b4   
be60: 00008914 00000000 30687465 00000000 00000000 00000000 001b1043 001b46a4   
be80: 001b4708 001b4740 001b1043 001b46a4 001b4708 001b4740 001b4708 c66ddd80   
bea0: 00008914 bee95950 c66ddd80 00000003 c70da000 0019273c c70dbed4 c70dbec8   
bec0: c0211a6c c0210d18 c70dbef4 c70dbed8 c01bdab4 c02119bc c66ddd80 c66ddd80   
bee0: bee95950 00008914 c70dbf14 c70dbef8 c00a1eb4 c01bd8dc c70dbf1c c66ddd80   
bf00: c6d9e028 bee95950 c70dbf7c c70dbf18 c00a2558 c00a1e8c c01bc0d0 c0095a68   
bf20: c0262488 c0034c18 c6d9e000 00000000 c70dbf5c c70dbf40 c0092808 c0034c18   
bf40: 00000000 00000003 c6d9e000 00000119 c70dbf84 c70dbf60 c01bc16c 00000003   
bf60: bee95950 00008914 c0027fe4 c70da000 c70dbfa4 c70dbf80 c00a25f8 c00a2018   
bf80: c01bcab0 00000000 00192574 00000004 00000000 00000036 00000000 c70dbfa8   
bfa0: c0027e60 c00a25c8 00192574 00000004 00000003 00008914 bee95950 00192574   
bfc0: 00192574 00000004 00000000 00000036 00000000 0000005c 0019273c bee95950   
bfe0: bee95ebc bee95928 0000b75c 0000903c 20000010 00000003 cf68a77a 3fd5190e   
Backtrace:                                                                      
[<c002b390>] (__bug+0x0/0x2c) from [<c0191e24>] (emac_dev_open+0x3f0/0xc50)     
[<c0191a34>] (emac_dev_open+0x0/0xc50) from [<c01ce43c>] (dev_open+0xc4/0x128)  
[<c01ce378>] (dev_open+0x0/0x128) from [<c01cc63c>] (dev_change_flags+0x98/0x170)
 r6:00001043 r5:00000041 r4:c704a800                                            
[<c01cc5a4>] (dev_change_flags+0x0/0x170) from [<c0210fcc>] (devinet_ioctl+0x2c4)
 r7:c70d6300 r6:c70dbe78 r5:00000000 r4:00000001                                
[<c0210d08>] (devinet_ioctl+0x0/0x6b0) from [<c0211a6c>] (inet_ioctl+0xc0/0xf0) 
[<c02119ac>] (inet_ioctl+0x0/0xf0) from [<c01bdab4>] (sock_ioctl+0x1e8/0x248)   
[<c01bd8cc>] (sock_ioctl+0x0/0x248) from [<c00a1eb4>] (vfs_ioctl+0x38/0x98)     
 r6:00008914 r5:bee95950 r4:c66ddd80                                            
[<c00a1e7c>] (vfs_ioctl+0x0/0x98) from [<c00a2558>] (do_vfs_ioctl+0x550/0x5b0)  
 r6:bee95950 r5:c6d9e028 r4:c66ddd80                                            
[<c00a2008>] (do_vfs_ioctl+0x0/0x5b0) from [<c00a25f8>] (sys_ioctl+0x40/0x64)   
 r9:c70da000 r8:c0027fe4 r6:00008914 r5:bee95950 r4:00000003                    
[<c00a25b8>] (sys_ioctl+0x0/0x64) from [<c0027e60>] (ret_fast_syscall+0x0/0x2c) 
 r7:00000036 r6:00000000 r5:00000004 r4:00192574                                
Code: e1a01000 e59f000c eb004704 e3a03000 (e5833000)                            
---[ end trace fd18f3f6111d678d ]---                                            
Segmentation fault 


when i do ifconfig eth0 up first tym it displays the first message.if i do it again displays the second message device busy.if do it third time it says bug in kernel as shown in the above log can anyone tell how to resolve this issue.the second time it says device or resource busy.I don't know why it is saying so.

I am able to use the ethernet from u-boot and able to download the kernel image and the file system image to ram using it.Anyone knw what is this problem.

with regard's
Rohan Tabish

  • This is likely a problem with the kernel not having proper support for ethernet.  Once the kernel boots, it re-initializes hardware resources so u-boot capabilities no longer apply.

    The fact that your network capabilities seem to work in u-boot (I am guessing TFTP and other capabilities) is a great sign that your hardware is likely good.  Now you need to make sure that your Linux kernel software has proper support built-in.  Where did you get the Linux kernel?  Are you using our DM6446 EVM from Spectrum Digital or did you build your own EVM with perhaps a different EMAC PHY?  By default, the Linux kernel we provide with our DVSDK is designed for our EVM and has ethernet enabled by default.

  • The source that i am using is open source from git i have selected davinci_all_defconfig and after that i opened Device Drivers--->Network device support--->Ethernet(10 or 100Mbit)

     

     --- Ethernet (10 or 100Mbit)                                                        
                    -*-   Generic Media Independent Interface device support                             
                    < >   ASIX AX88796 NE2000 clone support                                           
                    <*>   SMC 91C9x/91C1xxx support                                                       
                    <*>   TI DaVinci EMAC Support                                                        
                    <*>   DM9000 support                                                                  
                    (4)     DM9000 maximum debug level                                                   
                     [ ]     Force simple NSR based PHY polling                                           
                    < >   OpenCores 10/100 Mbps Ethernet MAC support                                     

                    < >   SMSC LAN911[5678] support      

                   <*>   SMSC LAN911x/LAN921x families embedded ethernet support                  
                    < >   Dave ethernet support (DNET)                                                  
                    < >   Broadcom 440x/47xx ethernet support             

                    < >   Micrel KSZ8842                                                     

    here i selected SMSC LAN 911x/LAN921x families embedded ethernet support.

    but i still get the same error can you please tell what problem it can be is it still not able to load the ethernet driver.by the way my LAN is SMSC LAN 8700

  • Hi,

    Have  you selected PHY driver in the network driver configuration?
    --- Network device support
     -*-   PHY Device support and infrastructure  --->
      <*>   Drivers for SMSC PHYs

    Regards,
    Chaithrika

  • yes i  have enabled the driver for SMSC PHY's

    have you noted the second message it says Devices or resource busy.

     

     

     

    ## Booting kernel from Legacy Image at 80000000 ...                              
       Image Name:   Linux-2.6.31-rc5-davinci1                                       
       Image Type:   ARM Linux Kernel Image (uncompressed)                           
       Data Size:    1485668 Bytes =  1.4 MB                                         
       Load Address: 80008000                                                        
       Entry Point:  80008000                                                        
       Verifying Checksum ... OK                                                     
       Loading Kernel Image ... OK                                                   
    OK                                                                               
                                                                                     
    Starting kernel ...                                                              
                                                                                     
    Uncompressing Linux...............................................................
    Linux version 2.6.31-rc5-davinci1 (root@localhost.localdomain) (gcc version 4.2.29
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177                    
    CPU: VIVT data cache, VIVT instruction cache                                     
    Machine: DaVinci DM644x EVM                                                      
    Memory policy: ECC disabled, Data cache writeback                                
    DaVinci dm6446a variant 0x1                                                      
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 30480       
    Kernel command line: console=ttyS0,115200n8 root=/dev/ram0 rw initrd=0x81600000,1M
    PID hash table entries: 512 (order: 9, 2048 bytes)                               
    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: 108244KB available (2732K code, 295K data, 124K init, 0K highmem)        
    SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1          
    NR_IRQS:229                                                                      
    Console: colour dummy device 80x30                                               
    Calibrating delay loop... 147.86 BogoMIPS (lpj=739328)                           
    Mount-cache hash table entries: 512                                              
    CPU: Testing write buffer coherency: ok                                          
    DaVinci: 71 gpio irqs                                                            
    NET: Registered protocol family 16                                               
    WARNING: both IDE and Flash are enabled, but they share AEMIF pins.              
            Disable IDE for NAND/NOR support.                                        
    MUX: Setting register HPIEN_DISABLE                                              
               PINMUX0 (0x00000000) = 0x80000c1f -> 0x80000c1f                       
    MUX: initialized ATAEN                                                           
    MUX: Setting register ATAEN                                                      
               PINMUX0 (0x00000000) = 0x80000c1f -> 0x80020c1f                       
    MUX: initialized HDIREN                                                          
    MUX: Setting register HDIREN                                                     
               PINMUX0 (0x00000000) = 0x80020c1f -> 0x80030c1f                       
    MUX: initialized MCBSP                                                           
    MUX: Setting register MCBSP                                                      
               PINMUX1 (0x00000004) = 0x00000081 -> 0x00000481                       
    bio: create slab <bio-0> at 0                                                    
    pcf857x: probe of 1-0038 failed with error -121                                  
    pcf857x: probe of 1-0039 failed with error -121                                  
    pcf857x: probe of 1-003a failed with error -121                                  
    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                                                
    Trying to unpack rootfs image as initramfs...                                    
    rootfs image is not initramfs (junk in compressed archive); looks like an initrd 
    Freeing initrd memory: 10240K                                                    
    msgmni has been set to 231                                                       
    io scheduler noop registered                                                     
    io scheduler anticipatory registered (default)                                   
    Setting Up Clocks for DM420 OSD                                                  
    Console: switching to colour frame buffer device 90x30                           
    fb0: dm_osd0_fb frame buffer device                                              
    fb1: dm_vid0_fb frame buffer device                                              
    fb2: dm_osd1_fb frame buffer device                                              
    fb3: dm_vid1_fb frame buffer device                                              
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled                         
    Platform driver 'serial8250' needs updating - please use dev_pm_ops              
    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 MEM1c20400 IRQ412
    serial8250 serial8250.0: unable to register port at index 2 (IO0 MEM1c20800 IRQ422
    brd: module loaded                                                               
    at24 1-0050: 32768 byte 24c256 EEPROM (writable)                                 
    davinci_emac_probe: using random MAC addr: 3a:d1:79:bc:b0:a3                     
    emac-mii: probed                                                                 
    Platform driver 'smc911x' needs updating - please use dev_pm_ops                 
    console [netcon0] enabled                                                        
    netconsole: network logging started                                              
    i2c /dev entries driver                                                          
    TCP cubic registered                                                             
    NET: Registered protocol family 17                                               
    RPC: Registered udp transport module.                                            
    RPC: Registered tcp transport module.                                            
    Clocks: disable unused uart1                                                     
    Clocks: disable unused uart2                                                     
    Clocks: disable unused ide                                                       
    Clocks: disable unused asp0                                                      
    Clocks: disable unused mmcsd                                                     
    Clocks: disable unused spi                                                       
    Clocks: disable unused usb                                                       
    Clocks: disable unused vlynq                                                     
    Clocks: disable unused pwm0                                                      
    Clocks: disable unused pwm1                                                      
    Clocks: disable unused pwm2                                                      
    Clocks: disable unused timer1                                                    
    RAMDISK: ext2 filesystem found at block 0                                        
    RAMDISK: Loading 7000KiB [1 disk] into ram disk... done.                         
    VFS: Mounted root (ext2 filesystem) on device 1:0.                               
    Freeing init memory: 124K                                                        
                                                                                     
        System initialization...                                                     
                                                                                     
        Hostname       : OMAP3EVM                                                    
        Filesystem     : v1.0.0                                                      
                                                                                     
                                                                                     
        Kernel release : Linux 2.6.31-rc5-davinci1                                   
        Kernel version : #2 PREEMPT Wed Oct 7 14:30:51 PKT 2009                      
                                                                                     
     Mounting /proc             : [SUCCESS]                                          
     Mounting /sys              : [SUCCESS]                                          
     Mounting /dev              : [SUCCESS]                                          
     Mounting /dev/pts          : [SUCCESS]                                          
     Enabling hot-plug          : [SUCCESS]                                          
     Populating /dev            : [SUCCESS]                                          
     Mounting other filesystems : [SUCCESS]                                          
     Starting syslogd           : [SUCCESS]                                          
     Starting telnetd           : [SUCCESS]                                          
                                                                                     
    System initialization complete.                                                  
                                                                                     
    Please press Enter to activate this console. if^H                                
    # ifconfig eth0                                                                  
    eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00                          
              BROADCAST MULTICAST  MTU:1500  Metric:1                                
              RX packets:0 errors:0 dropped:0 overruns:4294967295 frame:4294967291   
              TX packets:0 errors:0 dropped:0 overruns:4294967295 carrier:4294967295 
              collisions:4294967293 txqueuelen:1000                                  
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)                                 
              Interrupt:13                                                           
                                                                                     
    # ifconfig eth0 up                                                               
    eth0: no PHY found                                                               
    ifconfig: SIOCSIFFLAGS: Operation not permitted                                  
    # ifconfig eth0 upnet eth0: DaVinci EMAC: request_irq() failed                   
    ifconfig: SIOCSIFFLAGS: Device or resource busy                                  
    # ifconfig eth0 up                                                               
    kernel BUG at include/linux/netdevice.h:439!                                     
                                                                                     
    Unable to handle kernel NULL pointer dereference at virtual address 00000000     
    pgd = c74d8000                                                                   
    [00000000] *pgd=866da031, *pte=00000000, *ppte=00000000                          
    Internal error: Oops: 817 [#1] PREEMPT                                           
    Modules linked in:                                                               
    CPU: 0    Not tainted  (2.6.31-rc5-davinci1 #2)                                  
    PC is at __bug+0x20/0x2c                                                         
    LR is at preempt_schedule+0x48/0x64                                              
    pc : [<c002b3b0>]    lr : [<c02338a4>]    psr: 60000013                          
    sp : c707bdc0  ip : c707bd00  fp : c707bdcc                                      
    r10: c704a800  r9 : c704a800  r8 : c704aac0                                      
    r7 : 00000001  r6 : 00000001  r5 : 00000000  r4 : c17e3780                       
    r3 : 00000000  r2 : c707a000  r1 : c70d8000  r0 : 00000033                       
    Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user                
    Control: 0005317f  Table: 874d8000  DAC: 00000015                                
    Process ifconfig (pid: 813, stack limit = 0xc707a270)                            
    Stack: (0xc707bdc0 to 0xc707c000)                                                
    bdc0: c707be1c c707bdd0 c0191bac c002b3a0 c704a800 c704a800 c005695c c00568ac    
    bde0: 00000000 00000000 c704aa08 c704aa08 c0056984 c704a800 c704a830 c0247b24    
    be00: 00001002 bea59950 c704a800 c70d130c c707be3c c707be20 c01b86b8 c01917cc    
    be20: c01b3ec4 c704a800 00000041 00001043 c707be5c c707be40 c01b68b8 c01b8604    
    be40: 00000001 00000000 c707be78 c70d1300 c707bec4 c707be60 c01fb248 c01b6830    
    be60: 00008914 00000000 30687465 00000000 00000000 00000000 001b1043 001b46a4    
    be80: 001b4708 001b4740 001b1043 001b46a4 001b4708 001b4740 001b4708 c17e3180    
    bea0: 00008914 bea59950 c17e3180 00000003 c707a000 0019273c c707bed4 c707bec8    
    bec0: c01fbce8 c01faf94 c707bef4 c707bed8 c01a7d30 c01fbc38 c17e3180 c17e3180    
    bee0: bea59950 00008914 c707bf14 c707bef8 c00a1eb4 c01a7b58 c707bf1c c17e3180    
    bf00: c6d9e028 bea59950 c707bf7c c707bf18 c00a2558 c00a1e8c c01a634c c0095a68    
    bf20: c0248328 c0034c18 c6d9e000 00000000 c707bf5c c707bf40 c0092808 c0034c18    
    bf40: 00000000 00000003 c6d9e000 00000119 c707bf84 c707bf60 c01a63e8 00000003    
    bf60: bea59950 00008914 c0027fe4 c707a000 c707bfa4 c707bf80 c00a25f8 c00a2018    
    bf80: c01a6d2c 00000000 00192574 00000004 00000000 00000036 00000000 c707bfa8    
    bfa0: c0027e60 c00a25c8 00192574 00000004 00000003 00008914 bea59950 00192574    
    bfc0: 00192574 00000004 00000000 00000036 00000000 0000005c 0019273c bea59950    
    bfe0: bea59ebc bea59928 0000b75c 0000903c 20000010 00000003 00000053 00000020    
    Backtrace:                                                                       
    [<c002b390>] (__bug+0x0/0x2c) from [<c0191bac>] (emac_dev_open+0x3f0/0xc50)      
    [<c01917bc>] (emac_dev_open+0x0/0xc50) from [<c01b86b8>] (dev_open+0xc4/0x128)   
    [<c01b85f4>] (dev_open+0x0/0x128) from [<c01b68b8>] (dev_change_flags+0x98/0x170)
     r6:00001043 r5:00000041 r4:c704a800                                             
    [<c01b6820>] (dev_change_flags+0x0/0x170) from [<c01fb248>] (devinet_ioctl+0x2c4/)
     r7:c70d1300 r6:c707be78 r5:00000000 r4:00000001                                 
    [<c01faf84>] (devinet_ioctl+0x0/0x6b0) from [<c01fbce8>] (inet_ioctl+0xc0/0xf0)  
    [<c01fbc28>] (inet_ioctl+0x0/0xf0) from [<c01a7d30>] (sock_ioctl+0x1e8/0x248)    
    [<c01a7b48>] (sock_ioctl+0x0/0x248) from [<c00a1eb4>] (vfs_ioctl+0x38/0x98)      
     r6:00008914 r5:bea59950 r4:c17e3180                                             
    [<c00a1e7c>] (vfs_ioctl+0x0/0x98) from [<c00a2558>] (do_vfs_ioctl+0x550/0x5b0)   
     r6:bea59950 r5:c6d9e028 r4:c17e3180                                             
    [<c00a2008>] (do_vfs_ioctl+0x0/0x5b0) from [<c00a25f8>] (sys_ioctl+0x40/0x64)    
     r9:c707a000 r8:c0027fe4 r6:00008914 r5:bea59950 r4:00000003                     
    [<c00a25b8>] (sys_ioctl+0x0/0x64) from [<c0027e60>] (ret_fast_syscall+0x0/0x2c)  
     r7:00000036 r6:00000000 r5:00000004 r4:00192574                                 
    Code: e1a01000 e59f000c eb004704 e3a03000 (e5833000)                             
    ---[ end trace ca5f422e054d7d28 ]---                                             
    Segmentation fault 

    #

     

    still get the same error.Can anyone tell what the hell is going on i am able to use my ethernet phy in u-boot. if i disable the 'TI support for Davinci EMAC' then at

    ifconfig eth0

    i get no such device

    regard's

    Rohan

  • Have you noticed another thing my eth0 devices driver does not gets up in the kernel boot messages

     

     

    Regard's

    Rohan Tabish

  • this is definitely not good.  Perhaps your kernel configuration is not properly enabling ethernet driver or the driver does not support the ethernet hardware present very well.

  • It    The phy_mask info from the EMAC  platform data does not match the address of the PHY device.
    You may want to check with phy_mask value of 0xffffffff to see if the PHY device is detected.