Hi I'm Laiyu Zhang.
I encounted a problem about Network is unreachable during ROACH boot. My ROACH board can boot smoothly and connected to Testing server very well several days ago.I can download .bof file and communicate it with Python script. But today,it arise a "Network is unreachable" error when the boot process was completed. Because I also use ROACH2 board to do some tests using same Testing server. My testing server is Ubuntu14.04.06LTS. Every time,when I changed to different board I replace three files: etc/network/interface, /etc/dnsmasq.conf, /etc/exports. I found it can work well both to ROACH and ROACH2. Now,ROACH2 can be started from my testing server using netboot. RAOCH2 can got IP address,network is ok. Kernel is 3.16.0-saska-03675-g1c70ffc. When I run netboot on ROACH,the echo is different from what I got on ROACH2. The Kernel is Linux roach 2.6.25-svn2382-dirty3 same to the result of mmc boot. I don't know why ROACH's network is unreachable. I had replaced those files relate to network in the testing server. I got some warning message but I do not know how to solve it. Anyone had meet the same problem,please give me some suggestion. Thank you! ---------------------------------------------------------------------------------------------------------------------------------------------------------- List is the boot process: (1) reboot (2) printenv (3) boot ------------------------------------------------------------------------------------------------------------------------------------------------------- boot --------------------------------------------------------------------------------------------------------------------------------------------------------- roach:/# reboot Broadcast message from root@roach (ttyS0) (Thu Jan 1 01:45:30 1970): The system is going down for reboot NOW! INIT: Sending pStopping periodic command scheduler: crond failed! Stopping internet superserver: inetd. Stopping OpenBSD Secure Shell server: sshdstart-stop-daemon: open pidfile /var/run/sshd.pid: Stale NFS f) Stopping NTP server: ntpdstart-stop-daemon: open pidfile /var/run/ntpd.pid: Stale NFS file handle (Stale) failed! rm: cannot remove `/var/run/ntpd.pid': Stale NFS file handle Saving the system clock.. klogd: klogd: no process killed stopping syslogd: stopping Asking all remaining processes to terminate...done. Killing all remaining processes...done. Deconfiguring network interfaces...ifdown: failed to open statefile /etc/network/run/ifstate: Stale NFS e failed. Cleaning up ifupdown.... Unmounting temporary filesystems...done. Deactivating swap...done. Unmounting local filesystems...done. Will now restart. Restarting system. System Hardware Reset U-Boot 2008.10-svn3231 (Jul 15 2010 - 14:58:38) CPU: AMCC PowerPC 440EPx Rev. A at 533.333 MHz (PLB=133, OPB=66, EBC=66 MHz) No Security/Kasumi support Bootstrap Option C - Boot ROM Location EBC (16 bits) 32 kB I-Cache 32 kB D-Cache Board: Roach I2C: ready DTT: 1 FAILED INIT DRAM: (spd v1.3) dram: notice: ecc ignored 1 GB FLASH: 64 MB USB: Host(int phy) Device(ext phy) Net: ppc_4xx_eth0 Roach Information Serial Number: 040221 Monitor Revision: 10.1.1843 CPLD Revision: 8.0.1588 type run netboot to boot via dhcp+tftp+nfs type run soloboot to run from flash without network type run mmcboot to boot using filesystem on mmc/sdcard type run usbboot to boot using filesystem on usb type run bit to run tests Hit any key to stop autoboot: 0 => printenv bootdelay=10 baudrate=115200 loads_echo= preboot=run initboot hostname=roach init_eeprom=echo Programming EEPROM for configuration H;imw 0x52 0.1 87; imw 0x52 1.1 78; imw 0x52 2.1 51 bit=report clear;check serial-output echo serial check;check cpld-probe roachcpld;mw.l 0x201000 0 400; ct kernel_addr=0xfc000000 partitions=physmap-flash.0:1792k(linux),256k@0x1c0000(fdt),8192k@0x200000(root),54656k@0xa00000(usr),2560 boot=bootm ${kernel_addr} bootargs=console=ttyS0,115200 mtdparts=physmap-flash.0:1792k(linux),256k@0x1c0000(fdt),8192k@0x200000(ro2 yget=loady 0x200000 update=protect off 0xfffa0000 0xffffffff;era 0xfffa0000 0xffffffff;cp.b 0x200000 0xfffa0000 ${filesize};f soloboot=setenv bootargs console=ttyS0,115200 mtdparts=${partitions} root=/dev/mtdblock2; bootm 0xfc00000 usbboot=setenv bootargs console=ttyS0,115200 mtdparts=${partitions} rootdelay=8 root=/dev/sda1; bootm 0x0 netboot=dhcp 0x400000; setenv bootargs console=ttyS0,115200 mtdparts=${partitions} root=${rootpath} ip=d0 newuboot=cp.b 0xfffa0000 0x200000 0x60000; run yget update newkernel=run yget; era 0xfc000000 0xfc1bffff; cp.b 0x200000 0xfc000000 0x1c0000 newroot=run yget; era 0xfc200000 0xfc9fffff; cp.b 0x200000 0xfc200000 ${filesize} initboot=echo; echo type run netboot to boot via dhcp+tftp+nfs; echo type run soloboot to run from fo clearenv=erase 0xfff60000 0xfff9ffff mmcboot=setenv bootargs console=ttyS0,115200 mtdparts=${partitions} root=b301 rw rootdelay=1; bootm 0xfc0 ethaddr=02:00:00:04:02:21 ethact=ppc_4xx_eth0 bootcmd=run mmcboot netdev=eth1 mem=1048552k ver=U-Boot 2008.10-svn3231 (Jul 15 2010 - 14:58:38) Environment size: 3141/8187 bytes => boot WARNING: adjusting available memory to 30000000 ## Booting kernel from Legacy Image at fc000000 ... Image Name: Linux-2.6.25-svn2382-dirty3 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1399105 Bytes = 1.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK id mach(): done MMU:enter MMU:hw init MMU:mapin MMU:setio MMU:exit setup_arch: enter setup_arch: bootmem ocp: exit arch: exit Linux version 2.6.25-svn2382-dirty3 (marc@seif) (gcc version 4.0.0 (DENX ELDK 4.0 4.0.0)) #23 Tue Nov 109 AMCC PowerPC 440EPx Roach Platform Zone PFN ranges: DMA 0 -> 262143 Normal 262143 -> 262143 Movable zone start PFN for each node early_node_map[1] active PFN ranges 0: 0 -> 262143 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096 Kernel command line: console=ttyS0,115200 mtdparts=physmap-flash.0:1792k(linux),256k@0x1c0000(fdt),8192k1 PID hash table entries: 4096 (order: 12, 16384 bytes) console [ttyS0] enabled Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 1036416k available (2092k kernel code, 728k data, 132k init, 0k highmem) Mount-cache hash table entries: 512 BORPH version CVS-$Revision: 1.10 $ Initialized net_namespace: 152 bytes NET: Registered protocol family 16 PCI: Probing PCI hardware 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: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 6, 262144 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered hwrtype_roach version CVS-$Revision: 1.1 $ registered JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc. io scheduler noop registered (default) Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled serial8250: ttyS0 at MMIO 0x0 (irq = 0) is a 16550A serial8250: ttyS1 at MMIO 0x0 (irq = 1) is a 16550A serial8250: ttyS2 at MMIO 0x0 (irq = 35) is a 16550A serial8250: ttyS3 at MMIO 0x0 (irq = 36) is a 16550A brd: module loaded PPC 4xx OCP EMAC driver, version 3.54 mal0: initialized, 2 TX channels, 2 RX channels rgmii0: input 0 in RGMII mode eth0: emac0, MAC 02:00:00:04:02:21 eth0: found Generic MII PHY (0x1e) rgmii0: input 1 in RGMII mode emac1: can't find PHY! tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky <m...@qualcomm.com> Driver 'sd' needs updating - please use bus_type methods physmap platform flash device: 04000000 at fc000000 physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank Amd/Fujitsu Extended Query Table at 0x0040 physmap-flash.0: 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. mtd: bad character after partition (f) 6 cmdlinepart partitions found on MTD device physmap-flash.0 Creating 6 MTD partitions on "physmap-flash.0": 0x00000000-0x001c0000 : "linux" 0x001c0000-0x00200000 : "fdt" 0x00200000-0x00a00000 : "root" 0x00a00000-0x03f60000 : "usr" 0x03f60000-0x03fa0000 : "env" 0x03fa0000-0x04000000 : "uboot" ppc-soc-ehci ppc-soc-ehci.0: PPC-SOC EHCI ppc-soc-ehci ppc-soc-ehci.0: new USB bus registered, assigned bus number 1 ppc-soc-ehci ppc-soc-ehci.0: irq 26, io mem 0xe0000300 ppc-soc-ehci ppc-soc-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 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: PPC-SOC EHCI usb usb1: Manufacturer: Linux 2.6.25-svn2382-dirty3 ehci_hcd usb usb1: SerialNumber: PPC-SOC EHCI Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. i2c /dev entries driver IBM IIC driver v2.1 ibm-iic0: using standard (100 kHz) mode ibm-iic1: using standard (100 kHz) mode rmon: found Roach Monitor - Rev 10.1.1843 rmon_sensors: initialized 23 sensors rmon 0-000f: rtc core: registered rmon as rtc0 roach_mmc: Roach MMC/SD driver rmmc: initialized mmc TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 17 rmmc: performing card initialization RPC: Registered udp transport module. RPC: Registered tcp transport module. rmon 0-000f: setting system clock to 1970-01-01 02:08:05 UTC (7685) Waiting 1sec before mounting root device... mmc0: new SD card at address aaaa mmcblk0: mmc0:aaaa SD02G 1931264KiB mmcblk0: p1 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Freeing unused kernel memory: 132k init INIT: version 2.86 booting Activating swap...done. Setting the system clock.. Cleaning up ifupdown.... Loading kernel modules...FATAL: Could not load /lib/modules/2.6.25-svn2382-dirty3/modules.dep: No such fy Loading device-mapper support. Checking file systems...fsck 1.40-WIP (14-Nov-2006) done. Setting kernel variables...done. Mounting local filesystems...done. Activating swapfile swap...done. find: ./sshd.pid: Stale NFS file handle find: ./motd: Stale NFS file handle find: ./ntpd.pid: Stale NFS file handle rm: cannot remove `./sshd.pid': Stale NFS file handle rm: cannot remove `./motd': Stale NFS file handle rm: cannot remove `./ntpd.pid': Stale NFS file handle * bootclean: Failure cleaning /var/run. Setting up networking.../etc/rcS.d/S39ifupdown: line 85: /etc/network/run/ifstate: Stale NFS file handle * Failure initializing /etc/network/run/ifstate failed! Configuring network interfaces...ifup: failed to open statefile /etc/network/run/ifstate: Stale NFS filee failed. find: ./sshd.pid: Stale NFS file handle find: ./motd: Stale NFS file handle find: ./ntpd.pid: Stale NFS file handle rm: cannot remove `./sshd.pid': Stale NFS file handle rm: cannot remove `./motd': Stale NFS file handle rm: cannot remove `./ntpd.pid': Stale NFS file handle * bootclean: Failure cleaning /var/run. /etc/rcS.d/S55bootmisc.sh: line 43: /var/run/motd: Stale NFS file handle /etc/rcS.d/S55bootmisc.sh: line 44: /var/run/motd: Stale NFS file handle mv: accessing `/var/log//dmesg.1.gz': Stale NFS file handle chown: failed to get attributes of `/var/log/dmesg': Stale NFS file handle chmod: failed to get attributes of `/var/log/dmesg': Stale NFS file handle /etc/rcS.d/S55bootmisc.sh: line 50: /var/log/dmesg: Stale NFS file handle chgrp: cannot access `/var/log/dmesg': Stale NFS file handle rm: cannot remove `/var/lib/urandom/random-seed': Stale NFS file handle INIT: Entering runlevel: 2 1 Jan 02:08:13 ntpdate[477]: no servers can be used, exiting Starting OpenBSD Secure Shell server: sshdstart-stop-daemon: open pidfile /var/run/sshd.pid: Stale NFS f) Starting NTP server: ntpdstart-stop-daemon: open pidfile /var/run/ntpd.pid: Stale NFS file handle (Stale) failed! tcpborphserver: starting SIOCADDRT: Network is unreachable Debian GNU/Linux 4.0 roach ttyS0 roach login: Cheers! >------------------------------------------------------------------------ ZHANG Laiyu Phone(China) 010-88236415 Cellphone(China) 13681385567 E-mail: zhan...@ihep.ac.cn Address: 19B Yuquan Road,Shijingshan District,Beijing,China Department: Center for Particle Astrophysics Office: Astrophysics Building 205 Institute of High Energy Physics, CAS web: http://www.ihep.cas.cn >------------------------------------------------------------------------ -- You received this message because you are subscribed to the Google Groups "casper@lists.berkeley.edu" group. To unsubscribe from this group and stop receiving emails from it, send an email to casper+unsubscr...@lists.berkeley.edu. To view this discussion on the web visit https://groups.google.com/a/lists.berkeley.edu/d/msgid/casper/2ed7cebe.fdd.16b69161efa.Coremail.zhangly%40ihep.ac.cn.