Welcome! Log In Create A New Profile

Advanced

Debian on CISCO ON100-K9

Posted by rayknight 
Re: Debian on CISCO ON100-K9
September 20, 2016 10:07PM
Joey,

ON100_K9> setenv ethact egiga1


is for test 2 :)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
September 20, 2016 10:49PM
yeah there's a bureaucracy between Win 7 > Pogoplug and the storage in between, because Pogo doesn't remember the clipboard from Windows, and I have to make sure whatever file is saved and refreshed from the other side. Sorry about that typo. My heart is fluttering a bit which is mighty bad! I'm too stressed and this isn't the only thing on my mind. Short break under 24 hours.

=========
-= Cloud 9 =-
Re: Debian on CISCO ON100-K9
September 21, 2016 12:29AM
Take it easy! hacking Linux is for fun, there is no dealine or bosses breathing down your neck :)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
September 21, 2016 08:21PM
bodhi Wrote:
-------------------------------------------------------
> Here is build 2.18. This should have both egiga0
> and egiga1 initialized correctly. So please do 2
> tests.
>
> Test 1
>
> Power down completely (unplug power cord). With
> ethernet cable on LAN. Run kwboot. Power up and
> then interrupt serial console,
>
> version
> printenv ethaddr
> printenv ethact
> setenv ipaddr 192.168.178.110
> setenv gatewayip 192.168.178.1
> setenv netmask 255.255.255.0
> mii device
> mii info 0
> mii info 1
> setenv pingr 'for pingstat in 1 2 3 4 5; do; sleep
> 1; ping 192.168.178.1; done'
> run pingr
> ping 8.8.8.8
> mii dump 0 0-5
>
>
> Test 2
>
> Power down completely (unplug power cord). With
> ethernet cable on MON. Run kwboot. Power up and
> then interrupt serial console,
>
> version
> printenv eth1addr
> setenv ethact egiga1
> setenv ipaddr 192.168.178.110
> setenv gatewayip 192.168.178.1
> setenv netmask 255.255.255.0
> mii device
> mii info 0
> mii info 1
> setenv pingr 'for pingstat in 1 2 3 4 5; do; sleep
> 1; ping 192.168.178.1; done'
> run pingr
> ping 8.8.8.8
> mii dump 1 0-5
>

Following is my results. IP address was modified to conform to my network.

Test 1:


U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -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:   Marvell MV88E1310 PHY initialized
egiga0 Waiting for PHY auto negotiation to complete....... done
Marvell MV88E1310 PHY initialized
egiga1 Waiting for PHY auto negotiation to complete................. TIMEOUT !
egiga0, egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv ethaddr
ethaddr=b6:d0:5e:0f:a1:17
ON100_K9> printenv ethact
ethact=egiga0
ON100_K9> setenv ipaddr 192.168.11.15
ON100_K9> setenv gatewayip 192.168.11.1
ON100_K9> setenv netmask 255.255.255.0
ON100_K9> mii device
MII devices: 'egiga0' 'egiga1' 
Current device: 'egiga0'
ON100_K9> mii info 0
PHY 0x00: OUI = 0x5043, Model = 0x29, Rev = 0x00, 1000baseT, FDX
ON100_K9> mii info 1
PHY 0x01: OUI = 0x5043, Model = 0x29, Rev = 0x00,  10baseT, HDX
ON100_K9> setenv pingr 'for pingstat in 1 2 3 4 5; do; sleep 1; ping 192.168.11.1; done'
ON100_K9> run pingr
Using egiga0 device
host 192.168.11.1 is alive
Using egiga0 device
host 192.168.11.1 is alive
Using egiga0 device
host 192.168.11.1 is alive
Using egiga0 device
host 192.168.11.1 is alive
Using egiga0 device
host 192.168.11.1 is alive
ON100_K9> ping 8.8.8.8
Using egiga0 device
host 8.8.8.8 is alive
ON100_K9> mii dump 0 0-5
0.     (1000)                 -- PHY control register --
  (8000:0000) 0.15    =     0    reset
  (4000:0000) 0.14    =     0    loopback
  (2040:0000) 0. 6,13 =   b00    speed selection = 10 Mbps
  (1000:1000) 0.12    =     1    A/N enable
  (0800:0000) 0.11    =     0    power-down
  (0400:0000) 0.10    =     0    isolate
  (0200:0000) 0. 9    =     0    restart A/N
  (0100:0000) 0. 8    =     0    duplex = half
  (0080:0000) 0. 7    =     0    collision test enable
  (003f:0000) 0. 5- 0 =     0    (reserved)

1.     (796d)                 -- PHY status register --
  (8000:0000) 1.15    =     0    100BASE-T4 able
  (4000:4000) 1.14    =     1    100BASE-X  full duplex able
  (2000:2000) 1.13    =     1    100BASE-X  half duplex able
  (1000:1000) 1.12    =     1    10 Mbps    full duplex able
  (0800:0800) 1.11    =     1    10 Mbps    half duplex able
  (0400:0000) 1.10    =     0    100BASE-T2 full duplex able
  (0200:0000) 1. 9    =     0    100BASE-T2 half duplex able
  (0100:0100) 1. 8    =     1    extended status
  (0080:0000) 1. 7    =     0    (reserved)
  (0040:0040) 1. 6    =     1    MF preamble suppression
  (0020:0020) 1. 5    =     1    A/N complete
  (0010:0000) 1. 4    =     0    remote fault
  (0008:0008) 1. 3    =     1    A/N able
  (0004:0004) 1. 2    =     1    link status
  (0002:0000) 1. 1    =     0    jabber detect
  (0001:0001) 1. 0    =     1    extended capabilities

2.     (0141)                 -- PHY ID 1 register --
  (ffff:0141) 2.15- 0 =   321    OUI portion

3.     (0e90)                 -- PHY ID 2 register --
  (fc00:0c00) 3.15-10 =     3    OUI portion
  (03f0:0290) 3. 9- 4 =    41    manufacturer part number
  (000f:0000) 3. 3- 0 =     0    manufacturer rev. number

4.     (01e1)                 -- Autonegotiation advertisement register --
  (8000:0000) 4.15    =     0    next page able
  (4000:0000) 4.14    =     0    (reserved)
  (2000:0000) 4.13    =     0    remote fault
  (1000:0000) 4.12    =     0    (reserved)
  (0800:0000) 4.11    =     0    asymmetric pause
  (0400:0000) 4.10    =     0    pause enable
  (0200:0000) 4. 9    =     0    100BASE-T4 able
  (0100:0100) 4. 8    =     1    100BASE-TX full duplex able
  (0080:0080) 4. 7    =     1    100BASE-TX able
  (0040:0040) 4. 6    =     1    10BASE-T   full duplex able
  (0020:0020) 4. 5    =     1    10BASE-T   able
  (001f:0001) 4. 4- 0 =     1    selector = IEEE 802.3

5.     (cde1)                 -- Autonegotiation partner abilities register --
  (8000:8000) 5.15    =     1    next page able
  (4000:4000) 5.14    =     1    acknowledge
  (2000:0000) 5.13    =     0    remote fault
  (1000:0000) 5.12    =     0    (reserved)
  (0800:0800) 5.11    =     1    asymmetric pause able
  (0400:0400) 5.10    =     1    pause able
  (0200:0000) 5. 9    =     0    100BASE-T4 able
  (0100:0100) 5. 8    =     1    100BASE-X full duplex able
  (0080:0080) 5. 7    =     1    100BASE-TX able
  (0040:0040) 5. 6    =     1    10BASE-T full duplex able
  (0020:0020) 5. 5    =     1    10BASE-T able
  (001f:0001) 5. 4- 0 =     1    selector = IEEE 802.3


ON100_K9>

Test 2:


U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -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:   Marvell MV88E1310 PHY initialized
egiga0 Waiting for PHY auto negotiation to complete................. TIMEOUT !
Marvell MV88E1310 PHY initialized
egiga1 Waiting for PHY auto negotiation to complete....... done
egiga0, egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv eth1addr
eth1addr=a6:1c:1a:49:fe:34
ON100_K9> setenv ethact egiga1
ON100_K9> setenv ipaddr 192.168.11.20
ON100_K9> setenv gatewayip 192.168.11.1
ON100_K9> setenv netmask 255.255.255.0
ON100_K9> mii device
MII devices: 'egiga0' 'egiga1' 
Current device: 'egiga0'
ON100_K9> mii info 0
PHY 0x00: OUI = 0x5043, Model = 0x29, Rev = 0x00,  10baseT, HDX
ON100_K9> mii info 1
PHY 0x01: OUI = 0x5043, Model = 0x29, Rev = 0x00, 1000baseT, FDX
ON100_K9> setenv pingr 'for pingstat in 1 2 3 4 5; do; sleep 1; ping 192.168.11.1; done'
ON100_K9> run pingr
Using egiga1 device
host 192.168.11.1 is alive
Using egiga1 device
host 192.168.11.1 is alive
Using egiga1 device
host 192.168.11.1 is alive
Using egiga1 device
host 192.168.11.1 is alive
Using egiga1 device
host 192.168.11.1 is alive
ON100_K9> ping 8.8.8.8
Using egiga1 device
host 8.8.8.8 is alive
ON100_K9> mii dump 1 0-5
0.     (1000)                 -- PHY control register --
  (8000:0000) 0.15    =     0    reset
  (4000:0000) 0.14    =     0    loopback
  (2040:0000) 0. 6,13 =   b00    speed selection = 10 Mbps
  (1000:1000) 0.12    =     1    A/N enable
  (0800:0000) 0.11    =     0    power-down
  (0400:0000) 0.10    =     0    isolate
  (0200:0000) 0. 9    =     0    restart A/N
  (0100:0000) 0. 8    =     0    duplex = half
  (0080:0000) 0. 7    =     0    collision test enable
  (003f:0000) 0. 5- 0 =     0    (reserved)

1.     (796d)                 -- PHY status register --
  (8000:0000) 1.15    =     0    100BASE-T4 able
  (4000:4000) 1.14    =     1    100BASE-X  full duplex able
  (2000:2000) 1.13    =     1    100BASE-X  half duplex able
  (1000:1000) 1.12    =     1    10 Mbps    full duplex able
  (0800:0800) 1.11    =     1    10 Mbps    half duplex able
  (0400:0000) 1.10    =     0    100BASE-T2 full duplex able
  (0200:0000) 1. 9    =     0    100BASE-T2 half duplex able
  (0100:0100) 1. 8    =     1    extended status
  (0080:0000) 1. 7    =     0    (reserved)
  (0040:0040) 1. 6    =     1    MF preamble suppression
  (0020:0020) 1. 5    =     1    A/N complete
  (0010:0000) 1. 4    =     0    remote fault
  (0008:0008) 1. 3    =     1    A/N able
  (0004:0004) 1. 2    =     1    link status
  (0002:0000) 1. 1    =     0    jabber detect
  (0001:0001) 1. 0    =     1    extended capabilities

2.     (0141)                 -- PHY ID 1 register --
  (ffff:0141) 2.15- 0 =   321    OUI portion

3.     (0e90)                 -- PHY ID 2 register --
  (fc00:0c00) 3.15-10 =     3    OUI portion
  (03f0:0290) 3. 9- 4 =    41    manufacturer part number
  (000f:0000) 3. 3- 0 =     0    manufacturer rev. number

4.     (01e1)                 -- Autonegotiation advertisement register --
  (8000:0000) 4.15    =     0    next page able
  (4000:0000) 4.14    =     0    (reserved)
  (2000:0000) 4.13    =     0    remote fault
  (1000:0000) 4.12    =     0    (reserved)
  (0800:0000) 4.11    =     0    asymmetric pause
  (0400:0000) 4.10    =     0    pause enable
  (0200:0000) 4. 9    =     0    100BASE-T4 able
  (0100:0100) 4. 8    =     1    100BASE-TX full duplex able
  (0080:0080) 4. 7    =     1    100BASE-TX able
  (0040:0040) 4. 6    =     1    10BASE-T   full duplex able
  (0020:0020) 4. 5    =     1    10BASE-T   able
  (001f:0001) 4. 4- 0 =     1    selector = IEEE 802.3

5.     (cde1)                 -- Autonegotiation partner abilities register --
  (8000:8000) 5.15    =     1    next page able
  (4000:4000) 5.14    =     1    acknowledge
  (2000:0000) 5.13    =     0    remote fault
  (1000:0000) 5.12    =     0    (reserved)
  (0800:0800) 5.11    =     1    asymmetric pause able
  (0400:0400) 5.10    =     1    pause able
  (0200:0000) 5. 9    =     0    100BASE-T4 able
  (0100:0100) 5. 8    =     1    100BASE-X full duplex able
  (0080:0080) 5. 7    =     1    100BASE-TX able
  (0040:0040) 5. 6    =     1    10BASE-T full duplex able
  (0020:0020) 5. 5    =     1    10BASE-T able
  (001f:0001) 5. 4- 0 =     1    selector = IEEE 802.3


ON100_K9>


Ray
Re: Debian on CISCO ON100-K9
September 22, 2016 12:28AM
@Ray,

Thanks! results are all good. Proven that the Ethernet activation is done properly.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
September 22, 2016 07:28PM
Hey thanks guys, really :-) Nothing here stressing me except Pogoplug display could be a little easier to see over RDP, and the melatonin was kicking in the other night. My neighbor's Windows situation blindsiding me with three OSs I don't like, that was stressing me. Day of rest successful and Cardio appointment made.

Test 1 LAN

U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -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:   Marvell MV88E1310 PHY initialized
egiga0 Waiting for PHY auto negotiation to complete..... done
Marvell MV88E1310 PHY initialized
egiga1 Waiting for PHY auto negotiation to complete................. TIMEOUT !
egiga0, egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv ethaddr
ethaddr=b6:d0:5e:0f:a1:17
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> mii device
MII devices: 'egiga0' 'egiga1' 
Current device: 'egiga0'
ON100_K9> mii info 0
PHY 0x00: OUI = 0x5043, Model = 0x29, Rev = 0x00, 1000baseT, FDX
ON100_K9> mii info 1
PHY 0x01: OUI = 0x5043, Model = 0x29, Rev = 0x00,  10baseT, HDX
ON100_K9> setenv pingr 'for pingstat in 1 2 3 4 5; do; sleep 1; ping 192.168.178.1; done'
ON100_K9> run pingr
Using egiga0 device

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

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

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

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
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> mii dump 0 0-5
0.     (1000)                 -- PHY control register --
  (8000:0000) 0.15    =     0    reset
  (4000:0000) 0.14    =     0    loopback
  (2040:0000) 0. 6,13 =   b00    speed selection = 10 Mbps
  (1000:1000) 0.12    =     1    A/N enable
  (0800:0000) 0.11    =     0    power-down
  (0400:0000) 0.10    =     0    isolate
  (0200:0000) 0. 9    =     0    restart A/N
  (0100:0000) 0. 8    =     0    duplex = half
  (0080:0000) 0. 7    =     0    collision test enable
  (003f:0000) 0. 5- 0 =     0    (reserved)

1.     (796d)                 -- PHY status register --
  (8000:0000) 1.15    =     0    100BASE-T4 able
  (4000:4000) 1.14    =     1    100BASE-X  full duplex able
  (2000:2000) 1.13    =     1    100BASE-X  half duplex able
  (1000:1000) 1.12    =     1    10 Mbps    full duplex able
  (0800:0800) 1.11    =     1    10 Mbps    half duplex able
  (0400:0000) 1.10    =     0    100BASE-T2 full duplex able
  (0200:0000) 1. 9    =     0    100BASE-T2 half duplex able
  (0100:0100) 1. 8    =     1    extended status
  (0080:0000) 1. 7    =     0    (reserved)
  (0040:0040) 1. 6    =     1    MF preamble suppression
  (0020:0020) 1. 5    =     1    A/N complete
  (0010:0000) 1. 4    =     0    remote fault
  (0008:0008) 1. 3    =     1    A/N able
  (0004:0004) 1. 2    =     1    link status
  (0002:0000) 1. 1    =     0    jabber detect
  (0001:0001) 1. 0    =     1    extended capabilities

2.     (0141)                 -- PHY ID 1 register --
  (ffff:0141) 2.15- 0 =   321    OUI portion

3.     (0e90)                 -- PHY ID 2 register --
  (fc00:0c00) 3.15-10 =     3    OUI portion
  (03f0:0290) 3. 9- 4 =    41    manufacturer part number
  (000f:0000) 3. 3- 0 =     0    manufacturer rev. number

4.     (01e1)                 -- Autonegotiation advertisement register --
  (8000:0000) 4.15    =     0    next page able
  (4000:0000) 4.14    =     0    (reserved)
  (2000:0000) 4.13    =     0    remote fault
  (1000:0000) 4.12    =     0    (reserved)
  (0800:0000) 4.11    =     0    asymmetric pause
  (0400:0000) 4.10    =     0    pause enable
  (0200:0000) 4. 9    =     0    100BASE-T4 able
  (0100:0100) 4. 8    =     1    100BASE-TX full duplex able
  (0080:0080) 4. 7    =     1    100BASE-TX able
  (0040:0040) 4. 6    =     1    10BASE-T   full duplex able
  (0020:0020) 4. 5    =     1    10BASE-T   able
  (001f:0001) 4. 4- 0 =     1    selector = IEEE 802.3

5.     (dde1)                 -- Autonegotiation partner abilities register --
  (8000:8000) 5.15    =     1    next page able
  (4000:4000) 5.14    =     1    acknowledge
  (2000:0000) 5.13    =     0    remote fault
  (1000:1000) 5.12    =     1    (reserved)
  (0800:0800) 5.11    =     1    asymmetric pause able
  (0400:0400) 5.10    =     1    pause able
  (0200:0000) 5. 9    =     0    100BASE-T4 able
  (0100:0100) 5. 8    =     1    100BASE-X full duplex able
  (0080:0080) 5. 7    =     1    100BASE-TX able
  (0040:0040) 5. 6    =     1    10BASE-T full duplex able
  (0020:0020) 5. 5    =     1    10BASE-T able
  (001f:0001) 5. 4- 0 =     1    selector = IEEE 802.3


ON100_K9>


Test 2 MON

U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -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:   Marvell MV88E1310 PHY initialized
egiga0 Waiting for PHY auto negotiation to complete................. TIMEOUT !
Marvell MV88E1310 PHY initialized
egiga1 Waiting for PHY auto negotiation to complete..... done
egiga0, egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv eth1addr
eth1addr=a6:1c:1a:49:fe:34
ON100_K9> setenv ethact egiga1
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> mii device
MII devices: 'egiga0' 'egiga1' 
Current device: 'egiga0'
ON100_K9> mii info 0
PHY 0x00: OUI = 0x5043, Model = 0x29, Rev = 0x00,  10baseT, HDX
ON100_K9> mii info 1
PHY 0x01: OUI = 0x5043, Model = 0x29, Rev = 0x00, 1000baseT, FDX
ON100_K9> setenv pingr 'for pingstat in 1 2 3 4 5; do; sleep 1; ping 192.168.178.1; done'
ON100_K9> run pingr
Using egiga1 device
host 192.168.178.1 is alive
Using egiga1 device
host 192.168.178.1 is alive
Using egiga1 device
host 192.168.178.1 is alive
Using egiga1 device
host 192.168.178.1 is alive
Using egiga1 device
host 192.168.178.1 is alive
ON100_K9> ping 8.8.8.8
Using egiga1 device
host 8.8.8.8 is alive
ON100_K9> mii dump 1 0-5
0.     (1000)                 -- PHY control register --
  (8000:0000) 0.15    =     0    reset
  (4000:0000) 0.14    =     0    loopback
  (2040:0000) 0. 6,13 =   b00    speed selection = 10 Mbps
  (1000:1000) 0.12    =     1    A/N enable
  (0800:0000) 0.11    =     0    power-down
  (0400:0000) 0.10    =     0    isolate
  (0200:0000) 0. 9    =     0    restart A/N
  (0100:0000) 0. 8    =     0    duplex = half
  (0080:0000) 0. 7    =     0    collision test enable
  (003f:0000) 0. 5- 0 =     0    (reserved)

1.     (796d)                 -- PHY status register --
  (8000:0000) 1.15    =     0    100BASE-T4 able
  (4000:4000) 1.14    =     1    100BASE-X  full duplex able
  (2000:2000) 1.13    =     1    100BASE-X  half duplex able
  (1000:1000) 1.12    =     1    10 Mbps    full duplex able
  (0800:0800) 1.11    =     1    10 Mbps    half duplex able
  (0400:0000) 1.10    =     0    100BASE-T2 full duplex able
  (0200:0000) 1. 9    =     0    100BASE-T2 half duplex able
  (0100:0100) 1. 8    =     1    extended status
  (0080:0000) 1. 7    =     0    (reserved)
  (0040:0040) 1. 6    =     1    MF preamble suppression
  (0020:0020) 1. 5    =     1    A/N complete
  (0010:0000) 1. 4    =     0    remote fault
  (0008:0008) 1. 3    =     1    A/N able
  (0004:0004) 1. 2    =     1    link status
  (0002:0000) 1. 1    =     0    jabber detect
  (0001:0001) 1. 0    =     1    extended capabilities

2.     (0141)                 -- PHY ID 1 register --
  (ffff:0141) 2.15- 0 =   321    OUI portion

3.     (0e90)                 -- PHY ID 2 register --
  (fc00:0c00) 3.15-10 =     3    OUI portion
  (03f0:0290) 3. 9- 4 =    41    manufacturer part number
  (000f:0000) 3. 3- 0 =     0    manufacturer rev. number

4.     (01e1)                 -- Autonegotiation advertisement register --
  (8000:0000) 4.15    =     0    next page able
  (4000:0000) 4.14    =     0    (reserved)
  (2000:0000) 4.13    =     0    remote fault
  (1000:0000) 4.12    =     0    (reserved)
  (0800:0000) 4.11    =     0    asymmetric pause
  (0400:0000) 4.10    =     0    pause enable
  (0200:0000) 4. 9    =     0    100BASE-T4 able
  (0100:0100) 4. 8    =     1    100BASE-TX full duplex able
  (0080:0080) 4. 7    =     1    100BASE-TX able
  (0040:0040) 4. 6    =     1    10BASE-T   full duplex able
  (0020:0020) 4. 5    =     1    10BASE-T   able
  (001f:0001) 4. 4- 0 =     1    selector = IEEE 802.3

5.     (dde1)                 -- Autonegotiation partner abilities register --
  (8000:8000) 5.15    =     1    next page able
  (4000:4000) 5.14    =     1    acknowledge
  (2000:0000) 5.13    =     0    remote fault
  (1000:1000) 5.12    =     1    (reserved)
  (0800:0800) 5.11    =     1    asymmetric pause able
  (0400:0400) 5.10    =     1    pause able
  (0200:0000) 5. 9    =     0    100BASE-T4 able
  (0100:0100) 5. 8    =     1    100BASE-X full duplex able
  (0080:0080) 5. 7    =     1    100BASE-TX able
  (0040:0040) 5. 6    =     1    10BASE-T full duplex able
  (0020:0020) 5. 5    =     1    10BASE-T able
  (001f:0001) 5. 4- 0 =     1    selector = IEEE 802.3


ON100_K9>

=========
-= Cloud 9 =-
Re: Debian on CISCO ON100-K9
September 22, 2016 07:46PM
@Joey,

I bet your LAN cable is faulty. Or the port has problem. Did you use the same cable for each test?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
September 22, 2016 09:21PM
bodhi Wrote:
-------------------------------------------------------
> @Joey,
>
> I bet your LAN cable is faulty. Or the port has
> problem. Did you use the same cable for each test?


Yeah the past 2 times I used the same cable. I'll swap with another out of an abundance of caution. Maybe sneak one more Test 1 in, would that be good idea?

Hey bodhi, correct me if I'm wrong speculating, but one difference between Test 1 and 2 is this:
setenv ethact egiga1
One Test lacks the "egiga1" part. I wondered to myself if "egiga0" or something should be there.

Anyway I took my nightly melatonin (which counts down 90 minutes till bedtime) but can do one more test, let me know.

=========
-= Cloud 9 =-
Re: Debian on CISCO ON100-K9
September 22, 2016 09:49PM
JoeyPogoPlugE02 Wrote:
-------------------------------------------------------
> bodhi Wrote:
> --------------------------------------------------
> -----
> > @Joey,
> >
> > I bet your LAN cable is faulty. Or the port has
> > problem. Did you use the same cable for each
> test?
>
>
> Yeah the past 2 times I used the same cable. I'll
> swap with another out of an abundance of caution.
> Maybe sneak one more Test 1 in, would that be good
> idea?
>
> Hey bodhi, correct me if I'm wrong speculating,
> but one difference between Test 1 and 2 is this:
>
> setenv ethact egiga1
>
> One Test lacks the "egiga1" part. I wondered to
> myself if "egiga0" or something should be there.


No, the 1st test is for egiga0 so only LAN needed. The 2nd test is for egiga1 so ony MON needed.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
September 22, 2016 10:35PM
bodhi Wrote:
-------------------------------------------------------
> No, the 1st test is for egiga0 so only LAN
> needed. The 2nd test is for egiga1 so ony MON
> needed.

Thank you kindly for that nugget. Okay, I swapped cable with a virgin Pogoplug Cat5E cable, rebooted everything, and pretty sure same result as before.

Test 1 LAN revisited

U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -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:   Marvell MV88E1310 PHY initialized
egiga0 Waiting for PHY auto negotiation to complete...... done
Marvell MV88E1310 PHY initialized
egiga1 Waiting for PHY auto negotiation to complete................. TIMEOUT !
egiga0, egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv ethaddr
ethaddr=b6:d0:5e:0f:a1:17
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> mii device
MII devices: 'egiga0' 'egiga1' 
Current device: 'egiga0'
ON100_K9> mii info 0t
PHY 0x00: OUI = 0x5043, Model = 0x29, Rev = 0x00, 1000baseT, FDX
ON100_K9> mii info 1
PHY 0x01: OUI = 0x5043, Model = 0x29, Rev = 0x00,  10baseT, HDX
ON100_K9> setenv pingr 'for pingstat in 1 2 3 4 5; do; sleep 1; ping 192.168.178.1; done'
ON100_K9> run pingr
Using egiga0 device

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

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

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

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
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> mii dump 0 0-5
0.     (1000)                 -- PHY control register --
  (8000:0000) 0.15    =     0    reset
  (4000:0000) 0.14    =     0    loopback
  (2040:0000) 0. 6,13 =   b00    speed selection = 10 Mbps
  (1000:1000) 0.12    =     1    A/N enable
  (0800:0000) 0.11    =     0    power-down
  (0400:0000) 0.10    =     0    isolate
  (0200:0000) 0. 9    =     0    restart A/N
  (0100:0000) 0. 8    =     0    duplex = half
  (0080:0000) 0. 7    =     0    collision test enable
  (003f:0000) 0. 5- 0 =     0    (reserved)

1.     (796d)                 -- PHY status register --
  (8000:0000) 1.15    =     0    100BASE-T4 able
  (4000:4000) 1.14    =     1    100BASE-X  full duplex able
  (2000:2000) 1.13    =     1    100BASE-X  half duplex able
  (1000:1000) 1.12    =     1    10 Mbps    full duplex able
  (0800:0800) 1.11    =     1    10 Mbps    half duplex able
  (0400:0000) 1.10    =     0    100BASE-T2 full duplex able
  (0200:0000) 1. 9    =     0    100BASE-T2 half duplex able
  (0100:0100) 1. 8    =     1    extended status
  (0080:0000) 1. 7    =     0    (reserved)
  (0040:0040) 1. 6    =     1    MF preamble suppression
  (0020:0020) 1. 5    =     1    A/N complete
  (0010:0000) 1. 4    =     0    remote fault
  (0008:0008) 1. 3    =     1    A/N able
  (0004:0004) 1. 2    =     1    link status
  (0002:0000) 1. 1    =     0    jabber detect
  (0001:0001) 1. 0    =     1    extended capabilities

2.     (0141)                 -- PHY ID 1 register --
  (ffff:0141) 2.15- 0 =   321    OUI portion

3.     (0e90)                 -- PHY ID 2 register --
  (fc00:0c00) 3.15-10 =     3    OUI portion
  (03f0:0290) 3. 9- 4 =    41    manufacturer part number
  (000f:0000) 3. 3- 0 =     0    manufacturer rev. number

4.     (01e1)                 -- Autonegotiation advertisement register --
  (8000:0000) 4.15    =     0    next page able
  (4000:0000) 4.14    =     0    (reserved)
  (2000:0000) 4.13    =     0    remote fault
  (1000:0000) 4.12    =     0    (reserved)
  (0800:0000) 4.11    =     0    asymmetric pause
  (0400:0000) 4.10    =     0    pause enable
  (0200:0000) 4. 9    =     0    100BASE-T4 able
  (0100:0100) 4. 8    =     1    100BASE-TX full duplex able
  (0080:0080) 4. 7    =     1    100BASE-TX able
  (0040:0040) 4. 6    =     1    10BASE-T   full duplex able
  (0020:0020) 4. 5    =     1    10BASE-T   able
  (001f:0001) 4. 4- 0 =     1    selector = IEEE 802.3

5.     (dde1)                 -- Autonegotiation partner abilities register --
  (8000:8000) 5.15    =     1    next page able
  (4000:4000) 5.14    =     1    acknowledge
  (2000:0000) 5.13    =     0    remote fault
  (1000:1000) 5.12    =     1    (reserved)
  (0800:0800) 5.11    =     1    asymmetric pause able
  (0400:0400) 5.10    =     1    pause able
  (0200:0000) 5. 9    =     0    100BASE-T4 able
  (0100:0100) 5. 8    =     1    100BASE-X full duplex able
  (0080:0080) 5. 7    =     1    100BASE-TX able
  (0040:0040) 5. 6    =     1    10BASE-T full duplex able
  (0020:0020) 5. 5    =     1    10BASE-T able
  (001f:0001) 5. 4- 0 =     1    selector = IEEE 802.3

ON100_K9>

Again, I don't know the details on you and Gravelrash's units, but if you have the inclination to trash these let me know. In a way they're maybe money pits anyway because you'd need SDCards just to use the USB port, and at that stage it'd be for a slow hard drive with swap or just a USB stick with swap.
On the other hand I've got that brand new SanDisk Ultra Fit.

It is a good looking unit though, not make guests ask personal questions when they see you've got a pink Pogoplug LOL :-)

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



Edited 1 time(s). Last edit at 09/22/2016 10:36PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 22, 2016 11:20PM
That's bizzar! I guess perhaps you should use flashlight and look at the port to see if any wire is broken. Ray ran the same test and it works on LAN in Test 1. And your Test 2 and his Test 2 look identical.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
September 22, 2016 11:39PM
bodhi Wrote:
-------------------------------------------------------
> That's bizzar! I guess perhaps you should use
> flashlight and look at the port to see if any wire
> is broken. Ray ran the same test and it works on
> LAN in Test 1. And your Test 2 and his Test 2 look
> identical.

I have to say too, only one Mac Address for sure showed-up in my router. So just now I plugged into LAN and checked what the router sees, and no MAC address mentioned, and LAN network light on the unit lights like it's trying to ping-out, and the red lights are both flashing.
Blink blink
Blink blink
Blink blink
That fast lol

Also my TTY thing is unplugged from the USB cable, but lights are still on. It's still connected to the four pins.
I'd take out the RTC battery but it looks like it needs a trick to do it. I'd think that would either kill it or reinitialize it.
I'll go hide-out at the Off Topic forum LOL Naw it's bedtime. I'll do some intense inspection tomorrow and see if any solder joints are whacked or anything looks out of place.

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



Edited 1 time(s). Last edit at 09/22/2016 11:42PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 23, 2016 01:19PM
Bodhi i could be wrong, but the PuTTY test on Page 8 seems to show both ethernets do work, if I understand that right.

=========
-= Cloud 9 =-
Re: Debian on CISCO ON100-K9
September 23, 2016 01:52PM
Yes, Ray's tests showed both work. But your last test 1 showed eth0 does not:

http://forum.doozan.com/read.php?2,29059,30284#msg-30284

So I thought your network/cable/port has problem. Either that or it's a real SW problem that only shows up in your hardware.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
September 23, 2016 02:15PM
bodhi Wrote:
-------------------------------------------------------
> So I thought your network/cable/port has problem.
> Either that or it's a real SW problem that only
> shows up in your hardware.

May as well review, because after looking at this I suspect it's a contributing factor.

When I get a new uBoot, I place it in usr > local > bin, where it resides next to kwboot. So I only have those two files there.
I then edit this command to reflect name change in uBoot:

./kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2016.05-tld-2.18.on100_k9.mtd0.kwb  -p

Then I copy what is in that command and go to the Bin folder, right-click "Open Terminal Here" and I enter that code and hit it. But now that I look at the code, I wonder if that's got Putty language built in?

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



Edited 1 time(s). Last edit at 09/23/2016 02:18PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 23, 2016 04:10PM
JoeyPogoPlugE02 Wrote:
-------------------------------------------------------
> bodhi Wrote:
> --------------------------------------------------
> -----
> > So I thought your network/cable/port has
> problem.
> > Either that or it's a real SW problem that only
> > shows up in your hardware.
>
> May as well review, because after looking at this
> I suspect it's a contributing factor.
>
> When I get a new uBoot, I place it in usr > local
> > bin, where it resides next to kwboot. So I only
> have those two files there.
> I then edit this command to reflect name change in
> uBoot:
>
>
> ./kwboot  -t -B 115200 /dev/ttyUSB0 -b
> uboot.2016.05-tld-2.18.on100_k9.mtd0.kwb  -p
>
>
> Then I copy what is in that command and go to the
> Bin folder, right-click "Open Terminal Here" and I
> enter that code and hit it. But now that I look at
> the code, I wonder if that's got Putty language
> built in?

It looks fine to me as a command line command.

One other thing, you've mentioned that you have 4 wires connected and when you unplug USB connector, the serial module is still on. Should not connect that 3.3V. Use only 3 wires for TX, RX, and GND.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
September 23, 2016 05:08PM
bodhi Wrote:
-------------------------------------------------------
> One other thing, you've mentioned that you have 4
> wires connected and when you unplug USB connector,
> the serial module is still on. Should not connect
> that 3.3V. Use only 3 wires for TX, RX, and GND.

Great thanks for that. I removed that connector and repeated Test 1 LAN and think I got the exact same result, so maybe that port is burned-out or something.

Test 1 fail repeated without 3v
U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -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:   Marvell MV88E1310 PHY initialized
egiga0 Waiting for PHY auto negotiation to complete..... done
Marvell MV88E1310 PHY initialized
egiga1 Waiting for PHY auto negotiation to complete................. TIMEOUT !
egiga0, egiga1
Hit any key to stop autoboot:  0 
ON100_K9> version

U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -0700)
Cisco ON100_K9
gcc (Debian 4.9.2-10) 4.9.2
GNU ld (GNU Binutils for Debian) 2.25
ON100_K9> printenv ethaddr
ethaddr=b6:d0:5e:0f:a1:17
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> mii device
MII devices: 'egiga0' 'egiga1' 
Current device: 'egiga0'
ON100_K9> mii info 0
PHY 0x00: OUI = 0x5043, Model = 0x29, Rev = 0x00, 1000baseT, FDX
ON100_K9> mii info 1
PHY 0x01: OUI = 0x5043, Model = 0x29, Rev = 0x00,  10baseT, HDX
ON100_K9> setenv pingr 'for pingstat in 1 2 3 4 5; do; sleep 1; ping 192.168.178.1; done'
ON100_K9> run pingr
Using egiga0 device

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

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

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

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.1 is not alive
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> mii dump 0 0-5
0.     (1000)                 -- PHY control register --
  (8000:0000) 0.15    =     0    reset
  (4000:0000) 0.14    =     0    loopback
  (2040:0000) 0. 6,13 =   b00    speed selection = 10 Mbps
  (1000:1000) 0.12    =     1    A/N enable
  (0800:0000) 0.11    =     0    power-down
  (0400:0000) 0.10    =     0    isolate
  (0200:0000) 0. 9    =     0    restart A/N
  (0100:0000) 0. 8    =     0    duplex = half
  (0080:0000) 0. 7    =     0    collision test enable
  (003f:0000) 0. 5- 0 =     0    (reserved)

1.     (796d)                 -- PHY status register --
  (8000:0000) 1.15    =     0    100BASE-T4 able
  (4000:4000) 1.14    =     1    100BASE-X  full duplex able
  (2000:2000) 1.13    =     1    100BASE-X  half duplex able
  (1000:1000) 1.12    =     1    10 Mbps    full duplex able
  (0800:0800) 1.11    =     1    10 Mbps    half duplex able
  (0400:0000) 1.10    =     0    100BASE-T2 full duplex able
  (0200:0000) 1. 9    =     0    100BASE-T2 half duplex able
  (0100:0100) 1. 8    =     1    extended status
  (0080:0000) 1. 7    =     0    (reserved)
  (0040:0040) 1. 6    =     1    MF preamble suppression
  (0020:0020) 1. 5    =     1    A/N complete
  (0010:0000) 1. 4    =     0    remote fault
  (0008:0008) 1. 3    =     1    A/N able
  (0004:0004) 1. 2    =     1    link status
  (0002:0000) 1. 1    =     0    jabber detect
  (0001:0001) 1. 0    =     1    extended capabilities

2.     (0141)                 -- PHY ID 1 register --
  (ffff:0141) 2.15- 0 =   321    OUI portion

3.     (0e90)                 -- PHY ID 2 register --
  (fc00:0c00) 3.15-10 =     3    OUI portion
  (03f0:0290) 3. 9- 4 =    41    manufacturer part number
  (000f:0000) 3. 3- 0 =     0    manufacturer rev. number

4.     (01e1)                 -- Autonegotiation advertisement register --
  (8000:0000) 4.15    =     0    next page able
  (4000:0000) 4.14    =     0    (reserved)
  (2000:0000) 4.13    =     0    remote fault
  (1000:0000) 4.12    =     0    (reserved)
  (0800:0000) 4.11    =     0    asymmetric pause
  (0400:0000) 4.10    =     0    pause enable
  (0200:0000) 4. 9    =     0    100BASE-T4 able
  (0100:0100) 4. 8    =     1    100BASE-TX full duplex able
  (0080:0080) 4. 7    =     1    100BASE-TX able
  (0040:0040) 4. 6    =     1    10BASE-T   full duplex able
  (0020:0020) 4. 5    =     1    10BASE-T   able
  (001f:0001) 4. 4- 0 =     1    selector = IEEE 802.3

5.     (dde1)                 -- Autonegotiation partner abilities register --
  (8000:8000) 5.15    =     1    next page able
  (4000:4000) 5.14    =     1    acknowledge
  (2000:0000) 5.13    =     0    remote fault
  (1000:1000) 5.12    =     1    (reserved)
  (0800:0800) 5.11    =     1    asymmetric pause able
  (0400:0400) 5.10    =     1    pause able
  (0200:0000) 5. 9    =     0    100BASE-T4 able
  (0100:0100) 5. 8    =     1    100BASE-X full duplex able
  (0080:0080) 5. 7    =     1    100BASE-TX able
  (0040:0040) 5. 6    =     1    10BASE-T full duplex able
  (0020:0020) 5. 5    =     1    10BASE-T able
  (001f:0001) 5. 4- 0 =     1    selector = IEEE 802.3

ON100_K9>

If this is ever working, I wouldn't be unhappy with only one LAN port. It's possible many things, maybe I zapped it in between soldering sessions.

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



Edited 1 time(s). Last edit at 09/23/2016 10:15PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 24, 2016 02:08PM
@Joey,
That's strange. Everything looks fine until you ping it. I suspect the HW, but you'd never know, it could be something I've missed in the SW.

@Ray,
Pardon me to ask the obvious question, do you have only RxD, TxD, and GND wires connected?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
September 25, 2016 09:22AM
I suspect Ray hacked the microwave oven and gets a dee-licious Hot Pocket every time it boots up.

=========
-= Cloud 9 =-
Re: Debian on CISCO ON100-K9
September 26, 2016 12:15PM
bodhi Wrote:
-------------------------------------------------------
> @Joey,
> That's strange. Everything looks fine until you
> ping it. I suspect the HW, but you'd never know,
> it could be something I've missed in the SW.
>
> @Ray,
> Pardon me to ask the obvious question, do you have
> only RxD, TxD, and GND wires connected?

RxD, TxD and GND just like I would with any other board with a 3.3V TTL UART.

Ray
Re: Debian on CISCO ON100-K9
September 27, 2016 10:35AM
I have become quite busy. I can only repond to posts. So this ON100 project here is on hold.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 09/27/2016 11:15PM by bodhi.
EDITED
September 27, 2016 10:43PM
-edited- well if nothing else my health checkup went excellent, so apparently doing stuff like this does calm you down a little lol

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



Edited 2 time(s). Last edit at 10/01/2016 09:20PM by JoeyPogoPlugE02.
Re: Debian on CISCO ON100-K9
September 28, 2016 03:37PM
bodhi Wrote:
-------------------------------------------------------
> I have become quite busy. I can only repond to
> posts. So this ON100 project here is on hold.

Can you update your GitHub with your latest work on uboot for this? Or can you send me a diff so that I can play around with it? I'd like to continue as I believe you were very close as both ports work on both of my devices.

Ray
Re: Debian on CISCO ON100-K9
January 12, 2018 12:23AM
I'm attempting to restart work on this system again. Support for booting LEDE was committed back in May of 2017 so I have LEDE successfully installed on one of my units. However LEDE still uses the original uboot and boots from ubifs on the NAND and I would prefer to boot from MMC. The original UBoot doesn't appear to support booting from MMC or from an ext3 file system. Bodhi do you still have access to the changes you previously made when creating the uboot.2016.05-tld-2.18.on100_k9.mtd0.kwb file in this thread? If so could you please provide me with a diff file?

Thanks,
Ray
Re: Debian on CISCO ON100-K9
January 12, 2018 10:05PM
Using kwboot to start the uboot.2016.05-tld-2.18.on100_k9.mtd0.kwb bodhi uploaded previously I was able to boot the Debian 4.12.1 image using the dtb file from LEDE. I was able to dump images from the original NAND, but I get errors when attempting to

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00200000 00200000 "uBoot"
mtd1: 00200000 00200000 "dualboot"
mtd2: 00600000 00200000 "kernel1"
mtd3: 00800000 00200000 "rootfs1"
mtd4: 00600000 00200000 "kernel2"
mtd5: 00800000 00200000 "rootfs2"
mtd6: 1d600000 00200000 "datafs"
mtd7: 00a00000 00200000 "misc"
root@debian:~# flash_erase /dev/mtd0 0 4
flash_erase: error!: /dev/mtd0
             error 13 (Permission denied)
root@debian:~# flash_unlock /dev/mtd0
flash_unlock: error!: could not open: /dev/mtd0
              error 13 (Permission denied)
root@debian:~#

What do I need to do to be able to write the new uboot to NAND?

Ray
Re: Debian on CISCO ON100-K9
January 12, 2018 10:50PM
OK, I solved the problem myself! It was caused by using the original software definition for the mtdparts uboot environment variable. When using a more standard mtdparts definition I was able to flash the uboot and can now boot from an ext4 partition on USB. Still unable to boot from MMC device as uboot doesn't identify any partitions. However if I boot from USB I can then mount the ext4 partition on the SD Card.

Trying to boot from MMC device:
U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   Marvell MV88E1310 PHY initialized
egiga0 Waiting for PHY auto negotiation to complete....... done
Marvell MV88E1310 PHY initialized
egiga1 Waiting for PHY auto negotiation to complete................. TIMEOUT !
egiga0, egiga1
Error: egiga1 address not set.

Hit any key to stop autoboot: 0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: ide_preinit failed
** First descriptor is NOT a primary desc on 0:1 **

MMC rescan: current device # 0 initialized OK

no USB devices available

no IDE devices available
## Unknown partition table type 0
loading envs from mmc 0 ...
** No partition table - mmc 0 **
running scan_disk ...
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: ide_preinit failed
device ide 0:1
** Bad device size - ide 0 **
device ide 1:1
** Bad device size - ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
Scan device mmc
** First descriptor is NOT a primary desc on 0:1 **

MMC rescan: current device # 0 initialized OK
device mmc 0:1
** No partition table - mmc 0 **
device mmc 1:1
MMC Device 1 not found
MMC Device 1 not found
** Bad device mmc 1 **
device mmc 2:1
MMC Device 2 not found
MMC Device 2 not found
** Bad device mmc 2 **
device mmc 3:1
MMC Device 3 not found
MMC Device 3 not found
** Bad device mmc 3 **
loading uImage ...
** Bad device usb 0 **
loading uInitrd ...
** Bad device usb 0 **
loading DTB /boot/dts/kirkwood-on100.dtb ...
** Bad device usb 0 **
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!
ON100_K9>


Booting from USB with MMC device still inserted:
U-Boot 2016.05-tld-2.18 (Sep 20 2016 - 13:37:24 -0700)
Cisco ON100_K9

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
MMC:   kwsdio: 0
In:    serial
Out:   serial
Err:   serial
Net:   Marvell MV88E1310 PHY initialized
egiga0 Waiting for PHY auto negotiation to complete....... done
Marvell MV88E1310 PHY initialized
egiga1 Waiting for PHY auto negotiation to complete................. TIMEOUT !
egiga0, egiga1
Error: egiga1 address not set.

Hit any key to stop autoboot: 10  9  8  7  6  5  4  3  2  1  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed
** First descriptor is NOT a primary desc on 0:1 **

MMC rescan: current device # 0 initialized OK

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	60592384  	45544d62-01	83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
## Unknown partition table type 0
loading envs from mmc 0 ...
** No partition table - mmc 0 **
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 123 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 305 ms (11.9 MiB/s)
loading uInitrd ...
7245696 bytes read in 506 ms (13.7 MiB/s)
loading DTB /boot/dts/kirkwood-on100.dtb ...
11666 bytes read in 941 ms (11.7 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes = 6.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f422000, end 1fb0af40 ... OK
   Loading Device Tree to 1f41c000, end 1f421d91 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Cisco Systems ON100
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499272K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 25016K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000469] Console: colour dummy device 80x30
[    0.000503] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000523] pid_max: default: 32768 minimum: 301
[    0.000707] Security Framework initialized
[    0.000816] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000836] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001671] CPU: Testing write buffer coherency: ok
[    0.002733] Setting up static identity map for 0x100000 - 0x100058
[    0.002977] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.006011] devtmpfs: initialized
[    0.009850] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009878] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.010336] prandom: seed boundary self test passed
[    0.013144] prandom: 100 self tests passed
[    0.013155] pinctrl core: initialized pinctrl subsystem
[    0.014279] NET: Registered protocol family 16
[    0.014696] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.016254] cpuidle: using governor ladder
[    0.016331] cpuidle: using governor menu
[    0.016711] Feroceon L2: Enabling L2
[    0.016754] Feroceon L2: Cache support initialised.
[    0.017066] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.017154] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.020949] No ATAGs?
[    0.028158] vgaarb: loaded
[    0.028428] SCSI subsystem initialized
[    0.028823] usbcore: registered new interface driver usbfs
[    0.028891] usbcore: registered new interface driver hub
[    0.028939] usbcore: registered new device driver usb
[    0.029873] clocksource: Switched to clocksource orion_clocksource
[    0.102842] VFS: Disk quotas dquot_6.6.0
[    0.102926] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.111315] NET: Registered protocol family 2
[    0.112015] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.112087] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.112153] TCP: Hash tables configured (established 4096 bind 4096)
[    0.112230] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.112255] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.112418] NET: Registered protocol family 1
[    0.112797] RPC: Registered named UNIX socket transport module.
[    0.112807] RPC: Registered udp transport module.
[    0.112813] RPC: Registered tcp transport module.
[    0.112818] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.113026] Unpacking initramfs...
[    0.631226] Freeing initrd memory: 7076K
[    0.631347] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.632214] audit: initializing netlink subsys (disabled)
[    0.632662] Initialise system trusted keyrings
[    0.632713] Key type blacklist registered
[    0.632794] audit: type=2000 audit(0.622:1): state=initialized audit_enabled=0 res=1
[    0.632884] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.632946] zbud: loaded
[    0.633767] NFS: Registering the id_resolver key type
[    0.633791] Key type id_resolver registered
[    0.633798] Key type id_legacy registered
[    0.633813] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.633821] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.634007] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.634167] fuse init (API version 7.26)
[    0.634480] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.634689] orangefs_init: module version upstream loaded
[    0.634698] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.559879] random: fast init done
[    4.994747] Key type asymmetric registered
[    4.994763] Asymmetric key parser 'x509' registered
[    4.994828] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.994838] io scheduler noop registered
[    4.994845] io scheduler deadline registered
[    4.994920] io scheduler cfq registered (default)
[    4.996020] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.997437] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.050463] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.050686] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.110459] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.110858] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.111918] console [ttyS0] disabled
[    5.111983] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    5.722090] console [ttyS0] enabled
[    5.732696] loop: module loaded
[    5.736788] nand: Could not find valid ONFI parameter page; aborting
[    5.743251] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xdc
[    5.749630] nand: Hynix NAND 512MiB 3,3V 8-bit
[    5.754116] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.761741] Scanning device for bad blocks
[    5.820928] Bad eraseblock 723 at 0x000005a60000
[    5.825680] Bad eraseblock 725 at 0x000005aa0000
[    5.952628] Bad eraseblock 2332 at 0x000012380000
[    6.091301] Bad eraseblock 4091 at 0x00001ff60000
[    6.096140] Bad eraseblock 4093 at 0x00001ffa0000
[    6.101002] Bad eraseblock 4095 at 0x00001ffe0000
[    6.105735] 4 cmdlinepart partitions found on MTD device orion_nand
[    6.112042] Creating 4 MTD partitions on "orion_nand":
[    6.117202] 0x000000000000-0x000000100000 : "u-boot"
[    6.123182] 0x000000100000-0x000000500000 : "uImage"
[    6.129121] 0x000000500000-0x000002500000 : "rootfs"
[    6.135258] 0x000002500000-0x000020000000 : "data"
[    6.144326] libphy: Fixed MDIO Bus: probed
[    6.149128] libphy: orion_mdio_bus: probed
[    6.161567] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.260908] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 64:00:f1:20:e0:da
[    6.360763] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:00:00:00:00:00
[    6.369592] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.376197] ehci-pci: EHCI PCI platform driver
[    6.380725] ehci-orion: EHCI orion driver
[    6.384917] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.390478] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.398299] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    6.429899] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.436153] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.442994] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.450265] usb usb1: Product: EHCI Host Controller
[    6.455158] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    6.461904] usb usb1: SerialNumber: f1050000.ehci
[    6.467178] hub 1-0:1.0: USB hub found
[    6.471024] hub 1-0:1.0: 1 port detected
[    6.475475] usbcore: registered new interface driver usb-storage
[    6.481840] mousedev: PS/2 mouse device common for all mice
[    6.487910] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    6.494981] i2c /dev entries driver
[    6.499761] hidraw: raw HID events driver (C) Jiri Kosina
[    6.505555] drop_monitor: Initializing network drop monitor service
[    6.512094] NET: Registered protocol family 17
[    6.516629] Key type dns_resolver registered
[    6.521565] registered taskstats version 1
[    6.525677] Loading compiled-in X.509 certificates
[    6.530562] zswap: loaded using pool lzo/zbud
[    6.543713] Key type big_key registered
[    6.555676] Key type encrypted registered
[    6.561066] rtc-mv f1010300.rtc: setting system clock to 2018-01-13 05:30:00 UTC (1515821400)
[    6.573944] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    6.829976] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    7.033306] usb 1-1: New USB device found, idVendor=0930, idProduct=6544
[    7.047970] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.063312] usb 1-1: Product: TransMemory     
[    7.067783] usb 1-1: Manufacturer: TOSHIBA 
[    7.079992] usb 1-1: SerialNumber: 7071BCD10782CF50E2CF8316
[    7.093541] usb-storage 1-1:1.0: USB Mass Storage device detected
[    7.099693] mmc0: host does not support reading read-only switch, assuming write-enable
[    7.102800] mmc0: new high speed SDHC card at address aaaa
[    7.136521] scsi host0: usb-storage 1-1:1.0
[    7.231417] usbcore: registered new interface driver uas
[    7.240032] mmcblk0: mmc0:aaaa ADLCD 29.7 GiB 
[    7.256978]  mmcblk0: p1
Begin: Loading essential drivers ... done.
[    8.212024] scsi 0:0:0:0: Direct-Access     TOSHIBA  TransMemory      1.00 PQ: 0 ANSI: 4
[    8.225124] sd 0:0:0:0: [sda] 60594432 512-byte logical blocks: (31.0 GB/28.9 GiB)
[    8.240510] sd 0:0:0:0: [sda] Write Protect is off
[    8.249478] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.268561]  sda: sda1
[    8.276103] sd 0:0:0:0: [sda] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   17.536071] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.543137] EXT4-fs (sda1): write access will be enabled during recovery
[   25.803089] EXT4-fs (sda1): recovery complete
[   25.812349] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

INIT: version 2.88 booting

[info] Using makefile-style concurrent boot in runlevel S.
[....] Setting hostname to 'debian'...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[   27.629683] kirkwood-pinctrl f1010000.pin-controller: pin PIN31 already requested by f1076000.ethernet-controller; cannot claim for gpio_keys
[ ok 8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[   27.768630] kirkwood-pinctrl f1010000.pin-controller: pin-31 (gpio_keys) status -22
[   27.816340] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   27.948546] kirkwood-pinctrl f1010000.pin-controller: could not request pin 31 (PIN31) from group mpp31  on device f1010000.pin-controller
[   28.012834] marvell-cesa f1030000.crypto: CESA device successfully registered
[   28.013948] orion_wdt: Initial timeout 21 sec
[   28.099619] gpio-keys gpio_keys: Error applying setting, reverse things back
[   28.167005] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   28.217159] gpio-keys: probe of gpio_keys failed with error -22
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[ ok 8[?25h[?0c.
[   29.174896] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14547/1896832 files, 297372/7574048 blocks
[?25l[?1c7[ ok 8[?25h[?0c.
[   29.446793] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   29.797378] random: crng init done
[....] Will now activate lvm and md swap:[?25l[?1c7[ ok 8[?25h[?0cdone.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[ ok 8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[ ok 8[?25h[?0cdone.
 /tmp[?25l[?1c7[ ok 8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[ ok 8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.
[....] Setting kernel variables...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/64:00:f1:20:e0:da
Sending on   LPF/eth0/64:00:f1:20:e0:da
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
[   34.929854] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   39.860152] NET: Registered protocol family 10
[   39.867256] Segment Routing with IPv6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPREQUEST of 192.168.11.239 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.11.239 from 192.168.11.1
DHCPACK of 192.168.11.239 from 192.168.11.1
bound to 192.168.11.239 -- renewal in 17830 seconds.
[?25l[?1c7[ ok 8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[ ok 8[?25h[?0c.

INIT: Entering runlevel: 2

[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1335 (syslogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[ ok 8[?25h[?0c.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[warn8[?25h[?0c (warning).
[....] Starting NTP server: ntpd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1333 (klogd)
[?25l[?1c7[ ok 8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[ ok 8[?25h[?0c.


Debian GNU/Linux 9 debian ttyS0

debian login:

There are however still issues at least with the 4.12.1 kernel as I continue to get the following Kernel panic when doing an 'apt upgrade':

Unpacking libicu57:armel (57.1-6+deb9u1) over (57.1-6) ...
[  427.103177] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[  427.103177] 
[  427.112369] CPU: 0 PID: 1 Comm: init Not tainted 4.12.1-kirkwood-tld-1 #1
[  427.119180] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[  427.125503] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[  427.133296] [<c010ab48>] (show_stack) from [<c01dba9c>] (panic+0xb0/0x250)
[  427.140211] [<c01dba9c>] (panic) from [<c011a3e8>] (do_exit+0x5e0/0xa64)
[  427.146943] [<c011a3e8>] (do_exit) from [<c011bc18>] (do_group_exit+0x4c/0xec)
[  427.154203] [<c011bc18>] (do_group_exit) from [<c0125f1c>] (get_signal+0x5ac/0x658)
[  427.161899] [<c0125f1c>] (get_signal) from [<c010a00c>] (do_signal+0x8c/0x3bc)
[  427.169152] [<c010a00c>] (do_signal) from [<c010a4a4>] (do_work_pending+0x5c/0xd0)
[  427.176755] [<c010a4a4>] (do_work_pending) from [<c0107090>] (slow_work_pending+0xc/0x20)
[  427.184976] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[  427.184976] 
Re: Debian on CISCO ON100-K9
January 13, 2018 03:04AM
I will come back to this thread when Joey wants to revive it.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on CISCO ON100-K9
January 13, 2018 06:31AM
I successfully booted my own kernel image and initrd with bodhi's rootfs from an usb drive, I managed to connect to my wired network and also my wireless network with 2 different usb wifi dongles. But I still do not have a correct .dtb for the Cisco ON100. I have one that does not provide MTD, and an other which has MTD but no Ethernet. I think the kirkwood-db-88f6282.dtb has Ethernet and the kirkwood-ts419-6282.dtb has MTD (with the same uImage).

How can I find a proper .dtb for this cursed but interesting hardware equipment? :)
Re: Debian on CISCO ON100-K9
January 14, 2018 01:34AM
This unit is now supported in the LEDE/OpenWrt trunk @ LEDE/OpenWrt Kirkwood Image Files If you download the imagebuilder you can find the image-kirkwood-on100.dtb file in the build_dir/target-arm_xscale_musl_eabi/linux-kirkwood directory. I believe there to still be issues as I am experiencing Kernel panics whenever there is high I/O on the USB bus.

Ray
Re: Debian on CISCO ON100-K9
January 14, 2018 08:50AM
Thanks, that is a correct dtb, I have mtd* and eth*. I also have experienced kernel panics. My rootfs is on a simple cheap usb drive, almost every apt-get installs end in freeze and file system corruption. As you said, it might be connected to usb usage. I wanted to use the on100 as a simple home server for home automation and netradio (usb sound card aux), I do not need file sharing so rootfs on usb would be sufficient, but if the Linux itself freezes randomly then maybe that project must be cancelled, but I will give it a few more tries. And I have not tried flashing u-boot yet, I should try it before throwing the ON100 into a drawer.
Anyway the trip until being able to boot a Debian on the ON100 was good, I have learnt very much from this forum thread also (thanks, pals!).
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: