[U-Boot] unable to configure eth0 on DM6446 using filesystem

rohan tabish rohan_javed at yahoo.co.uk
Wed Oct 7 13:53:43 CEST 2009


Hye guys 
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 at 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 ethernet works well in the u-boot but it is not working in the kernel.My PHY is SMSC 8700 and i have added support for it using the make menuconfig but stilll i am unale to enable the ethernet. Can anyone tell what is the problem


with regard's
Rohan Tabish

Send instant messages to your online friends http://uk.messenger.yahoo.com 


More information about the U-Boot mailing list