Welcome! Log In Create A New Profile

Advanced

Debian on CISCO ON100-K9

Posted by rayknight 
Re: Debian on CISCO ON100-K9
September 05, 2016 06:53PM
nwestfal Wrote:
-------------------------------------------------------
> Off-topic, I know, but is there any way to change
> one's username on this forum? I guess I could
> just create a new account...

No, there is no way to change user name..

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 05, 2016 09:44PM
Please try this 2.7 version.

Test 1: with ethernet cable connected to MON port

Boot with kwboot, interrupt serial console
version
setenv ipaddr <IP address of the ON100>
setenv ethaddr <the MAC address of the MON port>
ping <your router IP>

Test 2: with ethernet cable connected to LAN port

Boot with kwboot, interrupt serial console
version
setenv ipaddr <IP address of the ON100>
setenv ethaddr <the MAC address of the LAN port>
ping <your router IP>

Note that this time we only test egiga0. If either one above works , you can try to test egiga1 on the other port. Remember to set ethact to egiga1 before the ping.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2016.05-tld-2.7.on100_k9.mtd0.kwb (512 KB)
Re: Debian on CISCO ON100-K9
September 05, 2016 10:37PM
Test 1:

U-Boot 2016.05-tld-2.7 (Sep 05 2016 - 16:06:04 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.7 (Sep 05 2016 - 16:06:04 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> setenv ipaddr 192.168.178.111
ON100_K9> setenv ethaddr 64:00:F1:20:FF:B7
ON100_K9> ping 192.168.178.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9>

Test 2:

U-Boot 2016.05-tld-2.7 (Sep 05 2016 - 16:06:04 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.7 (Sep 05 2016 - 16:06:04 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv ethaddr 64:00:F1:20:FF:B6
ON100_K9> ping 192.168.178.1
No link on egiga0
Using egiga1 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9>

My nightly Melatonin is kicking in, so that'll do for tonight. Hope there's something there :-)

=========
-= Cloud 9 =-



Edited 2 time(s). Last edit at 09/05/2016 10:49PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 05, 2016 11:33PM
Thanks for testing Joey!

No, not really :) It seems as though there is no power to the port.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 06, 2016 01:53AM
Is there some differences between the Ethernet chips MV88E1318 (in NSA325) and MV88E1310 (in ON100), unlike what Marvell datasheet claim?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 06, 2016 09:57AM
Hey, I noticed in Joey's boot logs when he booted stock OS:

Intel(R) PRO/1000 Network Driver - version 7.3.21-k3-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2
e1000e: Copyright (c) 1999-2008 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation

Do these have Intel ethernet chipsets?



Edited 1 time(s). Last edit at 09/06/2016 09:58AM by nwestfal.
Re: Debian on CISCO ON100-K9
September 06, 2016 11:07AM
nwestfal Wrote:
-------------------------------------------------------

> Do these have Intel ethernet chipsets?

Woah, good observation! Page 3

=========
-= Cloud 9 =-
Re: Debian on CISCO ON100-K9
September 06, 2016 01:46PM
Maybe the kernel is loading the Intel driver but it's not attached to any actual port. Because just a few lines above that it does load the Marvell driver:

Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Driver ERROR statistics enabled
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o eth0, ifindex = 2, GbE port = 0
     o eth1, ifindex = 3, GbE port = 1
Re: Debian on CISCO ON100-K9
September 06, 2016 04:27PM
nwestfal Wrote:
-------------------------------------------------------
> Maybe the kernel is loading the Intel driver but
> it's not attached to any actual port. Because
> just a few lines above that it does load the
> Marvell driver:
>
>
> Loading Marvell Ethernet Driver:
>   o Cached descriptors in DRAM
>   o DRAM SW cache-coherency
>   o 2 Giga ports supported
>   o Single RX Queue support - ETH_DEF_RXQ=0
>   o Single TX Queue support - ETH_DEF_TXQ=0
>   o TCP segmentation offload (TSO) supported
>   o Large Receive offload (LRO) supported
>   o Receive checksum offload supported
>   o Transmit checksum offload supported
>   o Network Fast Processing (Routing) supported -
> (Disabled)
>   o Driver ERROR statistics enabled
>   o Proc tool API enabled
>   o SKB Reuse supported - (Disabled)
>   o SKB Recycle supported - (Disabled)
>   o Rx descripors: q0=128
>   o Tx descripors: q0=532
>   o Loading network interface(s):
>      o register under mv88fx_eth platform
>      o eth0, ifindex = 2, GbE port = 0
>      o eth1, ifindex = 3, GbE port = 1
>

That appears to be common with the stock firmware on some of the Kirkwood devices as shown in this snippet from the Verbatim MediaShare Mini:

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload enabled
  o Receive checksum offload enabled
  o Transmit checksum offload enabled
  o Network Fast Processing (Routing) supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Proc tool API enabled
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
    o eth0, ifindex = 1, GbE port = 0

Warning: Giga 1 is Powered Off

mvFpRuleDb (cfd14000): 2048 entries, 8192 bytes
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation

Ray
Re: Debian on CISCO ON100-K9
September 06, 2016 04:44PM
Probably just a leftover kernel config for their kernel which was compiled on a different box.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 06, 2016 04:46PM
It bugs me that Marvell said this 1310 is the same as 1318 chip, but the same settings did not work. Need to look deeper in stock u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 06, 2016 07:13PM
I've got a magnifying glass (and bifocals and bright light on a scissor arm) out to try to identify exact ethernet chips, and see this:

Marvel:
88E1310 NNB2 P8U86 30.1
1126 ADS SG


So there's two of those chips and that's what they say. If I misplaced numbers with letters (such as 8 and B, 5 and S - that kind of thing) that's possible but they should be right on whatever it is. Take it away!

=========
-= Cloud 9 =-



Edited 4 time(s). Last edit at 09/06/2016 09:22PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 08, 2016 04:11AM
bodhi Wrote:
-------------------------------------------------------
> It bugs me that Marvell said this 1310 is the same
> as 1318 chip, but the same settings did not work.
> Need to look deeper in stock u-boot.

I think its more to do with CISCO's modifications than anything marvell
Re: Debian on CISCO ON100-K9
September 08, 2016 08:21PM
Will do another version.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 09, 2016 03:23AM
8th perhaps is the charm :) Please try this 2.8 version.

Test 1: with ethernet cable connected to MON port

Boot with kwboot, interrupt serial console
version
setenv ipaddr <IP address of the ON100>
setenv ethaddr <the MAC address of the MON port>
ping <your router IP>

Test 2: with ethernet cable connected to LAN port

Boot with kwboot, interrupt serial console
version
setenv ipaddr <IP address of the ON100>
setenv ethaddr <the MAC address of the LAN port>
ping <your router IP>

Note that this time we only test egiga0. If either one above works , you can try to test egiga1 on the other port. For example, if Test 1 works then it is egiga0. So unplug the cable, and plug in LAN port and try test 3

Test 3:

Boot with kwboot, interrupt serial console
version
setenv ipaddr <IP address of the ON100>
setenv eth1addr <the MAC address of the LAN port>
setenv ethact egiga1
ping <your router IP>

Update:

According to Ray's test, the egiga0 must be the LAN port:
http://forum.doozan.com/read.php?2,29059,29819#msg-29819

So I'd expect Test 2 is more likely to work, if at all.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 09/09/2016 03:30AM by bodhi.
Attachments:
open | download - uboot.2016.05-tld-2.8.on100_k9.mtd0.kwb (512 KB)
Re: Debian on CISCO ON100-K9
September 09, 2016 09:30PM
Test 1

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> setenv ipaddr 192.168.178.111
ON100_K9> setenv ethaddr 64:00:F1:20:FF:B7
ON100_K9> ping 192.168.178.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9>

Test 2

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv ethaddr 64:00:F1:20:FF:B6
ON100_K9> ping 192.168.178.1
No link on egiga0
Using egiga1 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9>

Test 3

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv eth1addr 64:00:F1:20:FF:B6
ON100_K9> setenv ethact egiga1
ON100_K9> ping 192.168.178.1
Using egiga1 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9>

??????

=========
-= Cloud 9 =-



Edited 3 time(s). Last edit at 09/09/2016 10:18PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 09, 2016 10:19PM
Joey,

Just for completeness, do these tests again, but add these 2 setenvs after setenv ipaddr:

setenv ipaddr 192.168.178.110
setenv gatewayip 192.168.178.1
setenv netmask 255.255.255.0

Your Test 2 did not make sense! The cable is in LAN port right?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 09, 2016 10:26PM
Here I reformulate.

Test 1: with ethernet cable connected to MON port

Boot with kwboot, interrupt serial console
version
setenv ipaddr 192.168.178.110
setenv gatewayip 192.168.178.1
setenv netmask 255.255.255.0
setenv ethaddr <the MAC address of the MON port>
printenv
ping 192.168.178.1

Test 2: with ethernet cable connected to LAN port

Boot with kwboot, interrupt serial console
version
setenv ipaddr 192.168.178.110
setenv gatewayip 192.168.178.1
setenv netmask 255.255.255.0
setenv ethaddr <the MAC address of the LAN port>
printenv
ping 192.168.178.1

And post the serial console log.

Update 1:

I'm doing in the code exactly what stock u-boot does now (STRIKE this, there is some porting, not exactly verbatim). So if it does not work, there is something else missing that I can't see without the hardware.

Update 2:

There will be more versions. There is something else I have not tried yet.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 09/09/2016 10:34PM by bodhi.
Re: Debian on CISCO ON100-K9
September 09, 2016 10:42PM
Test 1

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv gatewayip 192.168.178.1
ON100_K9> setenv netmask 255.255.255.0
ON100_K9> setenv ethaddr 64:00:F1:20:FF:B7
ON100_K9> printenv
arcNumber=5083
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; usb stop; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot
bootdelay=10
console=ttyS0,115200
device=0:1
eth1addr=a6:1c:1a:49:fe:34
ethact=egiga0
ethaddr=64:00:F1:20:FF:B7
gatewayip=192.168.178.1
ipaddr=192.168.178.110
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=13DB
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
netmask=255.255.255.0
partition=nand0,2
rootdelay=10
rootfstype=ext2
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=usb start; setenv uenv_loaded 0; for devtype in usb; do for disknum in 0; do run uenv_read_disk; done; done
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 1679/131068 bytes
ON100_K9> ping 192.168.178.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9>

Test 2

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.8 (Sep 09 2016 - 01:13:36 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv gatewayip 192.168.178.1
ON100_K9> setenv netmask 255.255.255.0
ON100_K9> setenv ethaddr 64:00:F1:20:FF:B6
ON100_K9> printenv
arcNumber=5083
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; usb stop; reset
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot
bootdelay=10
console=ttyS0,115200
device=0:1
eth1addr=a6:1c:1a:49:fe:34
ethact=egiga0
ethaddr=64:00:F1:20:FF:B6
gatewayip=192.168.178.1
ipaddr=192.168.178.110
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=13DB
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
netmask=255.255.255.0
partition=nand0,2
rootdelay=10
rootfstype=ext2
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=usb start; setenv uenv_loaded 0; for devtype in usb; do for disknum in 0; do run uenv_read_disk; done; done
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 1679/131068 bytes
ON100_K9> ping 192.168.178.1
No link on egiga0
Using egiga1 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9>

=========
-= Cloud 9 =-



Edited 1 time(s). Last edit at 09/09/2016 10:50PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 09, 2016 10:51PM
Thanks Joey,

ON100_K9> ping 192.168.178.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive

Is encouraging because the link is alive. But strange that MON port is egiga0. In Ray's stock uboot log, LAN is egiga0! perhaps Ray's report was switched MON/LAN.

"ARP Retry count exceeded" might indicate some RGMII settings was wrong.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 09, 2016 11:19PM
bodhi Wrote:
-------------------------------------------------------
> Thanks Joey,

Maybe we can get a discussion on pins here or elsewhere. Shirt pins worked for a while, but that's the only Achilles's heel here. Were it not for that I'd have confidence changing out ethernet cables. The cable I expect is in top shape, they should be new and good quality.

Bottom line, as long as I can get it to boot I'll try what you've got, but there's good lessons to be taken into consideration in the future. Maybe I'll find copper shirt pins and voila! lol

=========
-= Cloud 9 =-
Re: Debian on CISCO ON100-K9
September 10, 2016 04:34AM
Joey,

I forgot to ask: did you observe the fron LED behavior during booting? and did you observe the Ethernet port LED behavior during booting? It would be important. to know both.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 10, 2016 06:28AM
OK. Let's try this version 2.9


Test 1: with ethernet cable connected to MON port

Boot with kwboot, interrupt serial console
version
printenv ethact
setenv ipaddr 192.168.178.110
setenv gatewayip 192.168.178.1
setenv netmask 255.255.255.0
ping 192.168.178.1
ping 8.8.8.8

Test 2: with ethernet cable connected to the LAN port

Boot with kwboot, interrupt serial console
version
printenv ethact
setenv ipaddr 192.168.178.110
setenv gatewayip 192.168.178.1
setenv netmask 255.255.255.0
ping 192.168.178.1
ping 8.8.8.8


And please post the serial console log.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2016.05-tld-2.9.on100_k9.mtd0.kwb (512 KB)
Re: Debian on CISCO ON100-K9
September 10, 2016 10:37AM
I don't see indicator lights near the Ethernet jacks, also I swapped a new ethernet cable.

Test 1

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv ethact
ethact=egiga0
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv gatewayip 192.168.178.1
ON100_K9> setenv netmask 255.255.255.0
ON100_K9> ping 192.168.178.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9> ping 8.8.8.8
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 8.8.8.8 is not alive
ON100_K9>

Test 2

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv ethact
ethact=egiga0
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv gatewayip 192.168.178.1
ON100_K9> setenv netmask 255.255.255.0
ON100_K9> ping 192.168.178.1
No link on egiga0
Using egiga1 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9> ping 8.8.8.8
Using egiga1 device

ARP Retry count exceeded; starting again
ping failed; host 8.8.8.8 is not alive
ON100_K9>

When it works it works.

Hey Bodhi, I could be wrong, but my router auto assigns an IP address, and I wonder if it's conflicting?
What about if I look at the router after booting this with kwboot, note the IP and then "program" the Cisco to the same IP and try from there? See, I already un-checked DHCP when the router assigned an address, but then all it did was re-assign one. Doh, doh doh maybe

=========
-= Cloud 9 =-



Edited 3 time(s). Last edit at 09/10/2016 01:13PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 10, 2016 01:46PM
Test 2 after setting router to auto-assign it to IP you specified:

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv ethact
ethact=egiga0
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv gatewayip 192.168.178.1
ON100_K9> setenv netmask 255.255.255.0
ON100_K9> ping 192.168.178.1
No link on egiga0
Using egiga1 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9> ping 8.8.8.8
Using egiga1 device

ARP Retry count exceeded; starting again
ping failed; host 8.8.8.8 is not alive
ON100_K9>

Test 2 repeated on MON port

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv ethact
ethact=egiga0
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv gatewayip 192.168.178.1
ON100_K9> setenv netmask 255.255.255.0
ON100_K9> ping 192.168.178.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9> ping 8.8.8.8
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 8.8.8.8 is not alive
ON100_K9>

Good to know anyway, and another thing, while I was pinging 8.8.8.8 from the device, I was making sure my web works from another computer, so I'll call it a poor man's quality control :-)

=========
-= Cloud 9 =-



Edited 1 time(s). Last edit at 09/10/2016 02:06PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 10, 2016 03:33PM
Thanks Joey,

According to your Test2, eth0 is the MON port, and the link is alive.


Test 2 repeated on MON port 

Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0

ON100_K9> printenv ethact
ethact=egiga0

ON100_K9> ping 192.168.178.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive

Can you tell:

- what's the behavior of the front LEDs while booting?
- what's the behavior of the Ethernet port LED on Test 2?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 09/10/2016 04:05PM by bodhi.
Re: Debian on CISCO ON100-K9
September 10, 2016 04:07PM
I still have a plan B on this Ethernet bring up problem, depending on what Joey will tell how the LEDs behave.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on CISCO ON100-K9
September 10, 2016 11:47PM
(whew, glad to have made a pass before bedtime).

The circuit board is out of the package so I know which is MON and LAN for sure, but the front panel please consult. What I see is all the lights on but the yellow/red ones are yellow and not blinking. the only blinking is the far right green. When you ping something you know it's thinking or something. The far right green will do little bursts of 3-4 blinks, then wait, then repeat s few times, then several seconds of fast blinking. Seems coherent.

That's it I gotta sleep, let me know any questions and I'll try to fire this up again ASAP.

Oh yeah, if this helps at all, here's the Test 2 using MON:

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
MV88E1310 PHY initialized on egiga0
PHY reset timed out
MV88E1310 PHY initialized on egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.9 (Sep 10 2016 - 03:57:57 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv ethact
ethact=egiga0
ON100_K9> setenv ipaddr 192.168.178.110
ON100_K9> setenv gatewayip 192.168.178.1
ON100_K9> setenv netmask 255.255.255.0
ON100_K9> ping 192.168.178.1
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
ON100_K9> ping 8.8.8.8
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 8.8.8.8 is not alive
ON100_K9>

=========
-= Cloud 9 =-



Edited 1 time(s). Last edit at 09/10/2016 11:50PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 11, 2016 03:32PM
OK then. This is plan B (which I really wanted to get to eventually, but been trusting stock ethernet code too much).

Please try this version 2.10. Do the same test 1 and 2.

And the left port is MON, right port is LAN, looking from the rear edge.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 09/11/2016 03:34PM by bodhi.
Attachments:
open | download - uboot.2016.05-tld-2.10.on100_k9.mtd0.kwb (512 KB)
Re: Debian on CISCO ON100-K9
September 11, 2016 05:26PM
@Gravelrash,

> I think its more to do with CISCO's modifications
> than anything marvell

I think you might be right. I'm switching to a new approach for Ethernet. Version 2.10 above.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: