Dear all,
I get a problem when I try to boot our ROACH2 via netboot. The complete log
message dumped on minicom during the boot procedure is reported at the end
of this email.
The same board successfully booted in the previous machine, so I'm pretty
sure that the problem depends on the new machine configuration, but, to
date, I'm not able to fix the problem by myself.

The part where the boot fails is the following:

[    4.444359] Sending DHCP requests .., OK
[    7.232802] IP-Config: Got DHCP answer from 192.168.40.1, my address is
192.168.40.93
[    7.240947] IP-Config: Complete:
[    7.244206]      device=eth0, hwaddr=02:44:01:02:08:25,
ipaddr=192.168.40.93, mask=255.255.255.0, gw=255.255.255.255
[    7.254765]      host=192.168.40.93, domain=, nis-domain=(none)
[    7.260669]      bootserver=192.168.40.1, rootserver=192.168.40.1,
rootpath=/home/nfs/roach2/current,nolock
[    7.270209]      nameserver0=192.168.40.1
[    7.283258] VFS: Mounted root (nfs filesystem) readonly on device 0:11.
[    7.290904] Freeing unused kernel memory: 300K (805a8000 - 805f3000)
[    7.298537] Starting init: /sbin/init exists but couldn't execute it
(error -5)
[    7.308506] Starting init: /bin/sh exists but couldn't execute it (error
-5)
[    7.315635] Kernel panic - not syncing: No working init found.  Try
passing init= option to kernel. See Linux Documentation/init.txt for.
[    7.328715] CPU: 0 PID: 1 Comm: swapper Not tainted
3.16.0-saska-03675-g1c70ffc #3
[    7.336250] Call Trace:
[    7.338716] [bf86de70] [80006bc0] show_stack+0x10c/0x1c0 (unreliable)
[    7.345176] [bf86dec0] [8041410c] dump_stack+0x24/0x34
[    7.350311] [bf86ded0] [80411d20] panic+0xd0/0x234
[    7.355107] [bf86df30] [80001f00] kernel_init+0xf0/0x108
[    7.360426] [bf86df40] [8000d470] ret_from_kernel_thread+0x5c/0x64

The netboot procedure stops here but I do not understand the reason because
both /sbin/init and /bin/sh are in the right place (I've downloaded the nfs
image available on github, git clone git://
github.com/ska-sa/roach2_nfs_uboot).
The tftp, dnsmasq and nfs service seam configured in the proper way.

Some infos about the system we are using:
OS: Scientific Linux release 7.0 (Nitrogen)
tftp: tftp-hpa 5.2, with readline
dnsmasq: Dnsmasq version 2.66
nfs: NFSv4, NFSv3, NFSv2 (NFSv4 disabled)

The file system where the directory /home/nfs/roach2/current is located is
xfs.

In /var/log/messages i get the following message

Feb  6 16:46:15 holmes0 dnsmasq-dhcp[21918]: DHCPDISCOVER(em2)
02:44:01:02:08:25
Feb  6 16:46:15 holmes0 dnsmasq-dhcp[21918]: DHCPOFFER(em2) 192.168.40.93
02:44:01:02:08:25
Feb  6 16:46:15 holmes0 dnsmasq-dhcp[21918]: DHCPREQUEST(em2) 192.168.40.93
02:44:01:02:08:25
Feb  6 16:46:15 holmes0 dnsmasq-dhcp[21918]: DHCPACK(em2) 192.168.40.93
02:44:01:02:08:25
Feb  6 16:46:15 holmes0 rpc.mountd[32469]: authenticated mount request from
192.168.40.93:1010 for /home/nfs/roach2/debian_stable_devel (/home/nfs)


I would be grateful for any help you are able to provide,

best,

ag.






U-Boot 2011.06-rc2-00000-g2694c9d-dirty (Dec 04 2013 - 20:58:06)

CPU:   AMCC PowerPC 440EPx Rev. A at 533.333 MHz (PLB=133 OPB=66 EBC=66)
       No Security/Kasumi support
       Bootstrap Option C - Boot ROM Location EBC (16 bits)
       32 kB I-Cache 32 kB D-Cache
Board: ROACH2
I2C:   ready
DRAM:  512 MiB
Flash: 128 MiB
In:    serial
Out:   serial
Err:   serial
CPLD:  2.1
USB:   Host(int phy)
SN:    ROACH2.2 batch=D#8#37 software fixups match
MAC:   02:44:01:02:08:25
DTT:   1 is 28 C
DTT:   2 is 26 C
Net:   ppc_4xx_eth0
Sensors Config
type run netboot to boot via dhcp+tftp+nfs
type run soloboot to run from flash independent of network

Hit any key to stop autoboot:  0
Waiting for PHY auto negotiation to complete.... done
ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0)
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 28
*** Unhandled DHCP Option in OFFER/ACK: 28
DHCP client bound to address 192.168.40.93
Using ppc_4xx_eth0 device
TFTP from server 192.168.40.1; our IP address is 192.168.40.93
Filename 'uImage'.
Load address: 0x4000000
Loading: #################################################################
         #################################################################
         #################################################################
         ############
done
Bytes transferred = 3034268 (2e4c9c hex)
## Booting kernel from Legacy Image at 04000000 ...
   Image Name:   Linux-3.16.0-saska-03675-g1c70ff
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    3034204 Bytes = 2.9 MiB
   Load Address: 00700000
   Entry Point:  007010c4
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
CPU clock-frequency <- 0x1fca0550 (533MHz)
CPU timebase-frequency <- 0x1fca0550 (533MHz)
/plb: clock-frequency <- 7f28154 (133MHz)
/plb/opb: clock-frequency <- 3f940aa (67MHz)
/plb/opb/ebc: clock-frequency <- 3f940aa (67MHz)
/plb/opb/serial@ef600300: clock-frequency <- 54c563 (6MHz)
/plb/opb/serial@ef600400: clock-frequency <- 54c563 (6MHz)
/plb/opb/serial@ef600500: clock-frequency <- 54c563 (6MHz)
/plb/opb/serial@ef600600: clock-frequency <- 54c563 (6MHz)
Memory <- <0x0 0x0 0x3ffff000> (1023MB)
ethernet0: local-mac-address <- 02:44:01:02:08:25

zImage starting: loaded at 0x00700000 (sp: 0x1fe22b38)
Allocating 0x6db8a8 bytes for kernel ...
gunzipping (0x00000000 <- 0x0070f000:0x00d5f1c8)...done 0x63fa80 bytes

Linux/PowerPC load: console=ttyS0,115200 root=/dev/nfs
rootpath=192.168.40.1:/home/nfs/roach2/current,nolock ip=dhcp
Finalizing device tree... flat tree at 0xd6c160
[    0.000000] roach2: claiming matching platform
[    0.000000] Using PowerPC 44x Platform machine description
[    0.000000] Linux version 3.16.0-saska-03675-g1c70ffc (rijandn@r2d2)
(gcc version 4.6.1 20110627 (prerelease) (GCC) ) #3 Tue Aug 26 08:54
[    0.000000] bootconsole [udbg0] enabled
setup_arch: bootmem
arch: exit
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00000000-0x3fffefff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x3fffefff]
[    0.000000] MMU: Allocated 1088 bytes of context maps for 255 contexts
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 260095
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nfs
rootpath=192.168.40.1:/home/nfs/roach2/current,nolock ip=dhcp
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288
bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144
bytes)
[    0.000000] Sorting __ex_table...
[    0.000000] Memory: 1032440K/1048572K available (4180K kernel code, 308K
rwdata, 1600K rodata, 300K init, 622K bss, 16132K reserved)
[    0.000000] Kernel virtual memory layout:
[    0.000000]   * 0xfffdf000..0xfffff000  : fixmap
[    0.000000]   * 0xfde00000..0xfe000000  : consistent mem
[    0.000000]   * 0xfddfe000..0xfde00000  : early ioremap
[    0.000000]   * 0xc1000000..0xfddfe000  : vmalloc & ioremap
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:512 nr_irqs:512 16
[    0.000000] UIC0 (32 IRQ sources) at DCR 0xc0
[    0.000000] UIC1 (32 IRQ sources) at DCR 0xd0
[    0.000000] UIC2 (32 IRQ sources) at DCR 0xe0
[    0.000024] clocksource: timebase mult[1e00000] shift[24] registered
[    0.006378] pid_max: default: 32768 minimum: 301
[    0.011314] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.017902] Mountpoint-cache hash table entries: 2048 (order: 1, 8192
bytes)
[    0.025747] ftrace: allocating 14770 entries in 44 pages
[    0.072857] regulator-dummy: no parameters
[    0.079809] NET: Registered protocol family 16
[    0.084849] cpuidle: using governor ladder
[    0.088959] cpuidle: using governor menu

[    0.103122] SCSI subsystem initialized
[    0.108234] Switched to clocksource timebase
[    0.128612] NET: Registered protocol family 2
[    0.134340] TCP established hash table entries: 8192 (order: 3, 32768
bytes)
[    0.141545] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.148028] TCP: Hash tables configured (established 8192 bind 8192)
[    0.154540] TCP: reno registered
[    0.157806] UDP hash table entries: 512 (order: 1, 8192 bytes)
[    0.163582] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
[    0.170139] NET: Registered protocol family 1
[    0.175213] RPC: Registered named UNIX socket transport module.
[    0.181140] RPC: Registered udp transport module.
[    0.185748] RPC: Registered tcp transport module.
[    0.190412] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.203310] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.209505] audit: initializing netlink subsys (disabled)
[    0.214943] audit: type=2000 audit(0.179:1): initialized
[    0.234930] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.242216] NFS: Registering the id_resolver key type
[    0.247389] Key type id_resolver registered
[    0.251573] Key type id_legacy registered
[    0.255601] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[    0.262655] ROMFS MTD (C) 2007 Red Hat, Inc.
[    0.267276] msgmni has been set to 2016
[    0.274965] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 253)
[    0.282558] io scheduler noop registered
[    0.286503] io scheduler deadline registered (default)
[    0.292099] io scheduler cfq registered
[    0.296362] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    0.307722] console [ttyS0] disabled
[    0.331553] serial8250.0: ttyS0 at MMIO 0x1ef600300 (irq = 16, base_baud
= 347222) is a 16550A
[    0.340190] console [ttyS0] enabled
[    0.340190] console [ttyS0] enabled
[    0.347148] bootconsole [udbg0] disabled
[    0.347148] bootconsole [udbg0] disabled
[    0.375529] serial8250.0: ttyS1 at MMIO 0x1ef600400 (irq = 17, base_baud
= 347222) is a 16550A
[    0.404797] serial8250.0: ttyS2 at MMIO 0x1ef600500 (irq = 18, base_baud
= 347222) is a 16550A
[    0.433930] serial8250.0: ttyS3 at MMIO 0x1ef600600 (irq = 19, base_baud
= 347222) is a 16550A
[    0.443044] roach2_fpga: ROACH2 FPGA Access driver
[    0.447929] roach2:  major 252
[    0.451143] Virtex 5 family
[    0.454050] roach2_fpga 1d0000000.fpga: ROACH2 FPGA driver
[    0.459541] roach2_fpga 1d0000000.fpga: check
parameters,addr:0x1d0000000,size:0x8000000
[    0.472995] roach2_fpga 1d0000000.fpga: ioremap 1d0000000 to c1080000
with size 8000000
[    0.481222] roach2_fpga 1d0000000.fpga: ioremap 1c0100000 to c9100000
with size 200000
[    0.489230] roach2_fpga 1d0000000.fpga: char devices successfully
registered
[    0.504078] brd: module loaded
[    0.511845] loop: module loaded
[    0.521992] 1f8000000.nor_flash: Found 1 x16 devices at 0x0 in 16-bit
bank. Manufacturer ID 0x000001 Chip ID 0x002801
[    0.532659] Amd/Fujitsu Extended Query Table at 0x0040
[    0.537823]   Amd/Fujitsu Extended Query version 1.3.
[    0.542890] number of CFI chips: 1
[    0.547107] 6 ofpart partitions found on MTD device 1f8000000.nor_flash
[    0.553804] Creating 6 MTD partitions on "1f8000000.nor_flash":
[    0.559731] 0x000000000000-0x000000400000 : "kernel"
[    0.565794] 0x000000400000-0x000004400000 : "rootfs"
[    0.571916] 0x000004400000-0x000007400000 : "userfs"
[    0.578069] 0x000007400000-0x000007f00000 : "v6bitstream"
[    0.584803] 0x000007f40000-0x000007f80000 : "ubootenv"
[    0.591086] 0x000007f80000-0x000008000000 : "uboot"
[    0.597391] tun: Universal TUN/TAP device driver, 1.6
[    0.602529] tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
[    0.608871] PPC 4xx OCP EMAC driver, version 3.54
[    0.614261] MAL v2 /plb/mcmal, 2 TX channels, 2 RX channels
[    0.620394] ZMII /plb/opb/emac-zmii@ef600d00 initialized
[    0.626020] RGMII /plb/opb/emac-rgmii@ef601000 initialized with MDIO
support
[    0.633662] /plb/opb/emac-rgmii@ef601000: input 0 in RGMII mode
[    0.641419] eth0: EMAC-0 /plb/opb/ethernet@ef600e00, MAC
02:44:01:02:08:25
[    0.648378] eth0: found Marvell 88E1111 Ethernet PHY (0x01)
[    0.654074] PPP generic driver version 2.4.2
[    0.659110] mousedev: PS/2 mouse device common for all mice
[    0.665500] input: roach2chassis as /devices/virtual/input/input0
[    0.672597] i2c /dev entries driver
[    0.685254] ibm-iic 1ef600700.i2c: using standard (100 kHz) mode
[    0.691847] ibm-iic 1ef600800.i2c: using standard (100 kHz) mode
[    0.698177] ad7414 0-004c: chip found
[    0.703044] ad7414 0-004e: chip found
[    1.525004] max6650 0-0048: Fan voltage is set to 12V.
[    1.530219] max6650 0-0048: Prescaler is set to 4.
[    1.541579] max6650 0-004b: Fan voltage is set to 12V.
[    1.546791] max6650 0-004b: Prescaler is set to 4.
[    1.558112] max6650 0-001b: Fan voltage is set to 12V.
[    1.563328] max6650 0-001b: Prescaler is set to 4.
[    1.574632] max6650 0-001f: Fan voltage is set to 12V.
[    1.579848] max6650 0-001f: Prescaler is set to 4.
[    1.590999] ipip: IPv4 over IPv4 tunneling driver
[    1.596768] TCP: cubic registered
[    1.600110] Initializing XFRM netlink socket
[    1.604531] NET: Registered protocol family 17
[    1.609255] Key type dns_resolver registered
[    1.614274] registered taskstats version 1
[    1.619103] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    1.626935] eth0: link is down
[    3.824516] eth0: link is up, 1000 FDX, pause enabled
[    3.844336] Sending DHCP requests .., OK
[    6.112780] IP-Config: Got DHCP answer from 192.168.40.1, my address is
192.168.40.93
[    6.120923] IP-Config: Complete:
[    6.124183]      device=eth0, hwaddr=02:44:01:02:08:25,
ipaddr=192.168.40.93, mask=255.255.255.0, gw=255.255.255.255
[    6.134743]      host=192.168.40.93, domain=, nis-domain=(none)
[    6.140647]      bootserver=192.168.40.1, rootserver=192.168.40.1,
rootpath=/home/nfs/roach2/current,nolock
[    6.150187]      nameserver0=192.168.40.1
[    6.162802] VFS: Mounted root (nfs filesystem) readonly on device 0:11.
[    6.170443] Freeing unused kernel memory: 300K (805a8000 - 805f3000)
[    6.178098] Starting init: /sbin/init exists but couldn't execute it
(error -5)
[    6.188447] Starting init: /bin/sh exists but couldn't execute it (error
-5)
[    6.195570] Kernel panic - not syncing: No working init found.  Try
passing init= option to kernel. See Linux Documentation/init.txt for.
[    6.208649] CPU: 0 PID: 1 Comm: swapper Not tainted
3.16.0-saska-03675-g1c70ffc #3
[    6.216185] Call Trace:
[    6.218651] [bf86de70] [80006bc0] show_stack+0x10c/0x1c0 (unreliable)
[    6.225110] [bf86dec0] [8041410c] dump_stack+0x24/0x34
[    6.230246] [bf86ded0] [80411d20] panic+0xd0/0x234
[    6.235041] [bf86df30] [80001f00] kernel_init+0xf0/0x108
[    6.240360] [bf86df40] [8000d470] ret_from_kernel_thread+0x5c/0x64
[    6.246532] Rebooting in 180 seconds..




-- 
------------------------------------------------
Andrea Giachero, Postdoctoral Researcher
University and INFN of Milano Bicocca
Physics Department G. Occhialini
Piazza della Scienza 3, I-20126, Milano - Italy
[email protected]
[email protected]
[email protected]
tel: +39 02 6448 2456
tel: +39 0862 437 724 (LNGS)
web: giachero.mib.infn.it
     bit.ly/139sqHE
------------------------------------------------

Reply via email to