Fixed
Created: Dec 2, 2014
Updated: Dec 3, 2018
Resolved Date: Dec 29, 2014
Found In Version: 6.0
Fix Version: 6.0.0.17
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP - Async
Wind River Linux 6.0.0.0 cav-octeon3 console
cav-octeon3 login: root
Password:
root@cav-octeon3:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1128 (1.1 KiB) TX bytes:1128 (1.1 KiB)
root@cav-octeon3:~# cat /proc/cmdline
bootoctlinux 0x20000000 coremask=0xffffff00 root=/dev/sda1 rw ip=128.224.178.63:128.224.165.20:128.224.178.1:255.255.255.0:octeon:eth0:off console=ttyS0,115200
root@cav-octeon3:~# ifconfig eth0 128.224.178.63/23 up
eth0: 1000 Mbps Full duplex, port 3072
root@cav-octeon3:~# PP2:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP3:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP7:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP2:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP1:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP0:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP0:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP0:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP1:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP0:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP4:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP2:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP0:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP7:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP0:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP1:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP2:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP0:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP0:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP1:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP0:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP1:~CONSOLE-> Received 0 byte packet. Sending to Linux.
PP2:~CONSOLE-> Received 0 byte packet. Sending to Linux.
root@cav-octeon3:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:b7:10:db:e7
inet addr:128.224.178.63 Bcast:128.224.179.255 Mask:255.255.254.0
inet6 addr: fe80::20f:b7ff:fe10:dbe7/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2202 errors:0 dropped:1422 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:282849 (276.2 KiB) TX bytes:20096 (19.6 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:21 errors:0 dropped:0 overruns:0 frame:0
TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1576 (1.5 KiB) TX bytes:1576 (1.5 KiB)
root@cav-octeon3:~#
root@cav-octeon3:~# route add default dev eth0
root@cav-octeon3:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 eth0
128.224.178.0 * 255.255.254.0 U 0 0 0 eth0
root@cav-octeon3:~#
root@cav-octeon3:~# ping 128.224.165.20
PING 128.224.165.20 (128.224.165.20) 56(84) bytes of data.
From 128.224.178.63 icmp_seq=1 Destination Host Unreachable
From 128.224.178.63 icmp_seq=2 Destination Host Unreachable
From 128.224.178.63 icmp_seq=3 Destination Host Unreachable
^C
--- 128.224.165.20 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3006ms
pipe 3
root@cav-octeon3:~#
root@cav-octeon3:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP AUI BNC MII FIBRE ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Link detected: yes
root@cav-octeon3:~# ethtool -i eth0
driver: octeon-ethernet
version: 2.0
firmware-version:
bus-info: Builtin
supports-statistics: no
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no
root@cav-octeon3:~#
1. export CAVIUM_SDK_ROOT=/OCTEON-SDK
2. export OCTEON_MODEL=OCTEON_CN68XX
3. /wrlinux-6/wrlinux/configure --enable-board=cav-octeon3 --enable-kernel=preempt-rt --enable-rootfs=glibc-std --enable-multilib=lib32 --with-layer=wr-bsps/cav-octeon3/wr-cavium-simple-exec --enable-reconfig=yes --enable-parallel-pkgbuilds=35 --enable-jobs=35 --with-rcpl-version=0
4. adjustments kernel configure
make -C build linux-windriver.menuconfig
CONFIG_CAVIUM_RESERVE32=256.
CONFIG_CAVIUM_OCTEON_USER_MEM_PER_PROCESS=y
5 make fs
6. tftp 0x20000000 vlm-boards/21157/kernel
7. bootoctlinux $(loadaddr) coremask=0xffffff00 root=/dev/sda1 rw mem=0 ip=128.224.178.63:128.224.165.20:128.224.178.1:255.255.255.0:octeon:eth0:off
8. tftp 20800000 vlm-boards/21157/cav-octeon3/cav-octeon3-linux-filter-cvmx_n32_proprietary
9. bootoct 20800000 coremask=0xff endbootargs linux-filter 0xc00
10. ifconfig eth0 128.224.178.63/23 up
11. route add default dev eth0
12. ping 128.224.165.20