yang minghui

MPC8313RDB-REVA4 board with latest linux bsp eth0 not work

Discussion created by yang minghui on Jul 30, 2010
Latest reply on Oct 26, 2010 by jiayin wang
Hello everyone! I use MPC8313RDB-REVA4 board with latest linux bsp MPC8313E_RDB_K26_20081226-LTIB . I have done the step according to AN3947.pdf . But the eth0 doesnt work when I use ping cmd to ping outside with eth1 is down. The flowing is what I have done according to AN3947.pdf. Maybe There are some mistake. Please tell me.Thanks verymuch. And Does everyone has the correct bsp? 1.run ./ltib -m distclean to clean before building 2.run ./ltib -m prep -p kernel-2.6.23-mpc8131erdb_revc.spec to extract the kenel source 3.modify mpc8131redb.dts accroding to AN3947 section 5. I only modify dts file part according to section 5. 4.use dtc to conver dts file to dtb file 5.run ./ltib to get image 6.download the image, use new mpc8131redb.dtb, uboot, uImage, ramdisk, vs2bin, vs7835_load.bin (1)u-boot.bin tftp 100000 u-boot.bin protect off all erase fe000000 fe06ffff cp.b 100000 fe000000 $filesize protect on all (2)uImage tftp 200000 uImage protect off all erase fe100000 fe2fffff cp.b 200000 fe100000 $filesize protect on all (3)ramdisk tftp 1000000 rootfs.ext2.gz.uboot protect off all erase fe300000 fe6fffff cp.b 1000000 fe300000 $filesize protect on all (4)dtb tftp 400000 mpc8313erdb.dtb protect off all erase fe700000 fe70ffff cp.b 400000 fe700000 $filesize protect on all (5)vsc firmwire tftp 100000 vsc2bin protect off all erase fe7f0000 fe7fffff cp.b 100000 fe7fe000 $filesize tftp 100000 vsc7385_load.bin erase fe710000 fe72ffff cp.b 100000 fe710000 $filesize cp.b fe710000 40000 11000 (7) rest board (8)set uboot env setenv bootargs root=/dev/ram console=ttyS0,115200 setenv bootcmd 'cp.b fe710000 40000 11000; go 40004; bootm fe100000 fe300000 fe700000' setenv ethact TSEC1 saveenv (9)The flowing is my uboot env and boot log => printenv ramboot=setenv rootdev /dev/ram;run setbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr nfsboot=setenv rootdev /dev/nfs;run setbootargs;run setipargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr bootdelay=6 baudrate=115200 loads_echo=1 ethaddr=00:E0:0C:00:95:01 eth1addr=00:E0:0C:00:95:02 ipaddr=10.0.0.2 serverip=10.0.0.1 rootpath=/nfs/root/path gatewayip=10.0.0.1 netmask=255.0.0.0 hostname=mpc8313erdb bootfile=uImage loadaddr=200000 netdev=eth1 ethprime=TSEC1 uboot=u-boot.bin tftpflash=tftpboot $loadaddr $uboot; protect off 0xFE000000 +$filesize; erase 0xFE000000 +$filesize; cp.b $loadaddr 0xFE000000 $filesize; protect on 0xFE000000 +$filesize; cmp.b $loadaddr 0xFE000000 $filesize fdtaddr=400000 fdtfile=mpc8313erdb.dtb console=ttyS0 setbootargs=setenv bootargs root=$rootdev rw console=$console,$baudrate $othbootargs setipargs=setenv bootargs nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:smileysurprised:ff root=$rootdev rw console=$console,$baudrate $othbootargs stdin=serial stdout=serial stderr=serial bootargs=root=/dev/ram console=ttyS0,115200 bootcmd=e710000 40000 11000; go 40004; bootm fe100000 fe300000 fe700000 ethact=TSEC1 U-Boot 1.3.0 (Jul 27 2010 - 18:19:31) MPC83XX Reset Status: Software Hard, External/Internal Soft, External/Internal Hard CPU: e300c3, MPC8313E, Rev: 10 at 333.333 MHz, CSB: 166 MHz Board: Freescale MPC8313ERDB I2C: ready DRAM: 128 MB FLASH: 8 MB NAND: 32 MiB In: serial Out: serial Err: serial Net: TSEC0, TSEC1 [PRIME] Hit any key to stop autoboot: 0 Unknown command 'e710000' - try 'help' ## Starting application at 0x00040004 ... VSC7385 Version = 0x273850e9 Value in IRAM matches binary, total bytes 0x2000 loaded ## Application terminated, rc = 0x0 ## Booting image at fe100000 ... Image Name: Linux-2.6.23 Created: 2010-07-27 10:47:54 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1617263 Bytes = 1.5 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## Loading RAMDisk Image at fe300000 ... Image Name: uboot ext2 ramdisk rootfs Created: 2010-07-27 10:49:50 UTC Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 3528702 Bytes = 3.4 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Booting using the fdt at 0xfe700000 Loading Ramdisk to 07bdb000, end 07f387fe ... OK Loading Device Tree to 007fc000, end 007fefff ... OK Using MPC8313 RDB machine description Linux version 2.6.23 (xiaobingjian@xiaobingjian-desktop) (gcc version 4.1.2) #1 Tue Jul 27 18:47:42 CST 2010 Found initrd at 0xc7bdb000:0xc7f387fe console [udbg0] enabled setup_arch: bootmem mpc8313_rdb_setup_arch() Found MPC83xx PCI host bridge at 0x00000000e0008500. Firmware bus number: 0->0 arch: exit Zone PFN ranges: DMA 0 -> 32768 Normal 32768 -> 32768 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 32768 Built 1 zonelists in Zone order. Total pages: 32512 Kernel command line: root=/dev/ram console=ttyS0,115200 IPIC (128 IRQ sources) at fdef9700 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: 122876k/131072k available (3188k kernel code, 8052k reserved, 148k data, 94k bss, 152k init) Mount-cache hash table entries: 512 NET: Registered protocol family 16 PCI: Probing PCI hardware Generic PHY: Registered new driver SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb 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 checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 3445k freed JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc. io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 18) is a 16550A console handover: boot [udbg0] -> real [ttyS0] serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 19) is a 16550A RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize loop: module loaded Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI Copyright (c) 1999-2006 Intel Corporation. Gianfar MII Bus: probed eth0: Gianfar Ethernet Controller Version 1.3-skbr, 00:e0:0c:00:95:01 GFAR: SKB Handler initialized at CPU#0(max=32) eth0: MTU = 1500 (frame size=1526, truesize=1800) eth0: Running with NAPI enabled eth0: 64/64 RX/TX BD ring size eth1: Gianfar Ethernet Controller Version 1.3-skbr, 00:e0:0c:00:95:02 GFAR: SKB Handler initialized at CPU#0(max=32) eth1: MTU = 1500 (frame size=1526, truesize=1800) eth1: Running with NAPI enabled eth1: 64/64 RX/TX BD ring size e100: Intel(R) PRO/100 Network Driver, 3.5.23-k4-NAPI e100: Copyright(c) 1999-2006 Intel Corporation Marvell 88E1101: Registered new driver Marvell 88E1112: Registered new driver Marvell 88E1111: Registered new driver Marvell 88E1145: Registered new driver Fixed MDIO Bus: probed nor: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0040 nor: CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. RedBoot partition parsing not available physmap-flash nor: Using OF partition information Creating 5 MTD partitions on "nor": 0x00000000-0x00100000 : "U-Boot" 0x00100000-0x00300000 : "Kernel" 0x00300000-0x00700000 : "Ramdisk" 0x00700000-0x00780000 : "DTB" 0x00780000-0x00800000 : "JFFS2" Freescale eLBC NAND Driver (C) 2006-2007 Freescale NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit) Scanning device for bad blocks fsl-elbc fsl-elbc.0: Using OF partition information Creating 6 MTD partitions on "nand": 0x00000000-0x00100000 : "U-Boot-NAND" 0x00100000-0x00900000 : "JFFS2-NAND" 0x00900000-0x00d00000 : "Ramdisk-NAND" 0x00d00000-0x01d00000 : "Reserve-NAND" 0x01d00000-0x01f00000 : "Kernel-NAND" 0x01f00000-0x02000000 : "DTB-NAND" mpc83xx_spi.0: MPC83xx SPI Controller driver at 0xc9066000 (irq = 21) usbmon: debugfs is not available fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 fsl-ehci fsl-ehci.0: irq 38, io base 0xe0023000 fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. i2c /dev entries driver rtc-ds1307 0-0068: rtc core: registered ds1339 as rtc0 WDT driver for MPC83xx initialized. mode:reset timeout=65535 (25 seconds) mmc_spi spi28672.0: SD/MMC host mmc0, no DMA, no WP, no poweroff TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 rtc-ds1307 0-0068: setting the system clock to 2001-06-17 18:00:41 (992800841) RAMDISK: Compressed image found at block 0 VFS: Mounted root (ext2 filesystem) readonly. Freeing unused kernel memory: 152k init Setting the hostname to mpc8313erdb Mounting filesystems Running sysctl Setting up networking on loopback device: Setting up networking on eth0: Adding static route for default gateway to 192.168.1.1: Setting nameserver to 192.168.1.1 in /etc/resolv.conf: Setting up networking on eth1: Adding static route for default gateway to 192.168.1.1: Setting nameserver to 192.168.1.1 in /etc/resolv.conf: Starting inetd:

Outcomes