Welcome! Log In Create A New Profile

Advanced

Issues with Cisco ON100 booting

Posted by itsanarse 
Issues with Cisco ON100 booting
May 11, 2018 04:12AM
Hi,

First post here so sorry if I seem vague.

I've been working on getting OpenWRT running on my Cisco ON100 which is a Marvell Kirkwood based device.

I'll preface this by saying my experience with this stuff is lacking, the only other device kind of like this I've messed with was a PC Engines AMD Geode box that I wanted to use for the same purpose.

I got it all working, booted into OpenWRT and then for whatever reason I issued
nand erase
Can't remember why! But then I did
reset

And nothing happened, now I'm stuck with a device that doesn't boot. I get Power and both LAN and MON Link/ACT lights on solid.

I fired up my ThinkPad with Debian on it and tried kwboot, following the progress bodhi made in 2016 with the u-boot KWB files and managed to get it to boot over the UART.

Great! So then what did I do wrong? Wiped the partitions from the NAND. I was pretty tired at this point.

I have no idea why I've done this but I have a tendency to break things after they're all working.

Could anyone assist? I think I could sort this by writing someone's NAND dump from a ON100.

Thanks,

EDIT: May be worth noting I remember it finding a bad block on the NAND, that's probably why I ran the erase command



Edited 1 time(s). Last edit at 05/11/2018 04:32AM by itsanarse.
Re: Issues with Cisco ON100 booting
May 11, 2018 04:30AM
itsanarse,

> I fired up my ThinkPad with Debian on it and tried
> kwboot, following the progress bodhi made in 2016
> with the u-boot KWB files and managed to get it to
> boot over the UART.

Great! meaning you only need a good nanddump from somebody to unbrick it.

I don't have the NAND dump saved for this device, I guess rayknight or joey still have this device. Perhaps they can help you.

My Cisco ON100 has been on the shelf too long :) I don't know when I will resurrect this project (I have bought a bad unit and not sure if it will even boot up anymore). I kind of lost interest in this since Joey stopped.

Let's see if these gentlement can help you and we'll go from there.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Issues with Cisco ON100 booting
May 11, 2018 04:43AM
Thanks bodhi, your work has been much appreciated. Hopefully those guys can chime in

My other idea was if I can partition the NAND again and somehow flash your 2.18 uboot maybe that'd work?
Re: Issues with Cisco ON100 booting
May 11, 2018 04:49AM
itsanarse Wrote:
-------------------------------------------------------
> Thanks bodhi, your work has been much appreciated.
> Hopefully those guys can chime in
>
> My other idea was if I can partition the NAND
> again and somehow flash your 2.18 uboot maybe
> that'd work?

I'm not sure. 2.18 version might have been close to working. I'll have to look at my notes for this box and see what was still not working. Or perhaps it was just a case of I was burned out and shelved this project.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Issues with Cisco ON100 booting
May 11, 2018 04:57AM
Yeah I think the LEDs need some tweaking (MON and LAN link/act lights were on when no cable connected but act light seems to flash fine when connected). Both NICs worked and got addresses.

DHCP command seems to work but didn't set gateway as I could ping local devices but not public IPs



Edited 1 time(s). Last edit at 05/11/2018 04:58AM by itsanarse.
Re: Issues with Cisco ON100 booting
May 11, 2018 05:08AM
itsanarse Wrote:
-------------------------------------------------------
> Yeah I think the LEDs need some tweaking (MON and
> LAN link/act lights were on when no cable
> connected but act light seems to flash fine when
> connected).

LED is really not that important. But it can be fixed eventually.

> Both NICs worked and got addresses.

Now that was great! I remember that was the last issue and we have fixed it apparently.


> DHCP command seems to work but didn't set gateway
> as I could ping local devices but not public IPs

Did you set the u-boot envs like this (assuming your router is 192.168.0.1, and your Ciso is 192.168.0.100):

setenv ipaddr 192.168.0.100
setenv dnsip 192.168.0.1
setenv gatewayip 192.168.0.1
setenv netmask 255.255.255.0

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Issues with Cisco ON100 booting
May 11, 2018 05:20AM
bodhi Wrote:
-------------------------------------------------------
> Did you set the u-boot envs like this (assuming
> your router is 192.168.0.1, and your Ciso is
> 192.168.0.100):
>
>
> setenv ipaddr 192.168.0.100
> setenv dnsip 192.168.0.1
> setenv gatewayip 192.168.0.1
> setenv netmask 255.255.255.0
>

Well the DHCP server will send this info in the acknowledgement message so I didn't bother to set it manually, I should do that then?

Just thought I'd mention the LED behaviour anyway :)
Re: Issues with Cisco ON100 booting
May 11, 2018 04:36PM
itsanarse,

> Well the DHCP server will send this info in the
> acknowledgement message so I didn't bother to set
> it manually, I should do that then?

When testing DHCP I usually do and then remove the envs one by one until I see they are populated OK by DHCP.

> Just thought I'd mention the LED behaviour anyway
> :)

:) Thanks.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Issues with Cisco ON100 booting
May 13, 2018 04:26AM
I'll see what it's doing then with DHCP

I fired it up again Friday night and found that when I ran
mtdparts
all the partitions were still there.
But I deleted them so I don't know if that's possible?
Re: Issues with Cisco ON100 booting
May 13, 2018 04:10PM
itsanarse,

>
> I fired it up again Friday night and found that
> when I ran
> mtdparts
> 
all the partitions were still there.
> But I deleted them so I don't know if that's
> possible?

The mtdparts "still there" because you run the new u-boot with kwboot. If a NAND partition was erased then nothing is on it. Do you have the original bootlog that you can post here? And do you have the UART bootlog that you can post too?

Let's wait for a few days to see anybody will post their mtd0 dump.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Issues with Cisco ON100 booting
May 13, 2018 06:48PM
I'll have to dig around a see if I can find the backup u-boot partition I have. I haven't done anything with my units for a while and can't recall the final state, but I did have debian installed on one of the units but every time I accessed a disk on the USB bus the kernel crashed!

Ray
Re: Issues with Cisco ON100 booting
May 14, 2018 03:10PM

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................. TIMEOUT !
egiga0, egiga1
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

no USB devices available
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!
stopping USB..
resetting ...

That's what I get when I run
./kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2016.05-tld-2.18.on100_k9.mtd0.kwb -p

And then when I run mtdparts
ON100_K9> mtdparts     

device nand0 <orion_nand>, # parts = 9
 #: name		size		offset		mask_flags
 0: uboot               0x00100000	0x00000000	0
 1: stock_uboot_env     0x00080000	0x00100000	0
 2: key_store           0x00080000	0x00180000	0
 3: info                0x00080000	0x00200000	0
 4: etc                 0x00a00000	0x00280000	0
 5: kernel_1            0x00a00000	0x00c80000	0
 6: rootfs1             0x02fc0000	0x01680000	0
 7: kernel_2            0x00a00000	0x04640000	0
 8: rootfs2             0x02fc0000	0x05040000	0

active partition: nand0,2 - (key_store) 0x00080000 @ 0x00180000

defaults:
mtdids  : none
mtdparts: none
ON100_K9>

When I have the serial hooked up and turn on the device, nothing happens so I can't post a log of that.

Does this mean anything to you?
Re: Issues with Cisco ON100 booting
May 14, 2018 04:59PM
itsanarse

> And then when I run mtdparts
> ON100_K9> mtdparts     
> 
> device nand0 <orion_nand>, # parts = 9
>  #: name		size		offset		mask_flags
>  0: uboot               0x00100000	0x00000000	0
>  1: stock_uboot_env     0x00080000	0x00100000	0
>  2: key_store           0x00080000	0x00180000	0
>  3: info                0x00080000	0x00200000	0
>  4: etc                 0x00a00000	0x00280000	0
>  5: kernel_1            0x00a00000	0x00c80000	0
>  6: rootfs1             0x02fc0000	0x01680000	0
>  7: kernel_2            0x00a00000	0x04640000	0
>  8: rootfs2             0x02fc0000	0x05040000	0
> 
> active partition: nand0,2 - (key_store) 0x00080000
> @ 0x00180000
> 
> defaults:
> mtdids  : none
> mtdparts: none
> ON100_K9> 
>
>
> Does this mean anything to you?

Yes. It means that mtdparts structure is defined correctly by the new u-boot. But it does not mean there is any content in them.

kwboot, plug in a USB drive and dump these mtds at the prompt, they will show all nulls if you've erased them.

> When I have the serial hooked up and turn on the
> device, nothing happens so I can't post a log of
> that.
>

Of course, nothing happend because mtd0 was erased, so there is no u-boot image stored there.


The bottom line is you need to restore original mtd0, Or try to boot into Debian with the new u-boot which started by kwboot.

Perhaps you should just forget about stock and work on booting into Debian. I'll come back to show you how.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Issues with Cisco ON100 booting
May 14, 2018 07:21PM
I guess my question is, how do I write the uboot to the nand?

Here's what I get when I follow a command i found on the internet, all f's:
ON100_K9> nand dump 0
Page 00000000 dump:
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff
OOB:
	ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff
	ff ff ff ff ff ff ff ff
ON100_K9>



Edited 1 time(s). Last edit at 05/14/2018 07:22PM by itsanarse.
Re: Issues with Cisco ON100 booting
May 14, 2018 11:34PM
itsanarse,

Here is an example in our forum Wiki thread:
https://forum.doozan.com/read.php?2,23630


Quote

Booting Debian on Pogoplug

How to set up U-Boot for booting in multiple drives configuration
Backup and Restore NAND mtds
UART Booting HowTo for Selected Kirkwood Devices
Migrating from Arch to Debian?
How to boot new Debian rootfs using stock u-boot tftp - Pogo E02
How to boot new Debian rootfs on USB using stock u-boot - NSA325


Section B

Quote

B. How to restore NAND in Serial Console:
==================================


The ON-100 mtdsparts definition is different from the Pogo V4 in the example. So we'll need to adjust the instruction a little bit

Copy the u-boot image to the top folder of a EXT3 USB drive. Plug in and power up, interrupt serial console, and

usb start
ext2load usb 0:1 0x800000 /uboot.2016.05-tld-2.18.on100_k9.mtd0.kwb
nand erase 0x0 0x80000
nand write.e 0x800000 0x0 0x80000

After this, do a reset to see the new u-boot starts and it means your box is unbricked. There is no need for the original mtd anymore.

reset

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



Edited 1 time(s). Last edit at 05/14/2018 11:37PM by bodhi.
Re: Issues with Cisco ON100 booting
May 15, 2018 02:35PM
That has worked! Thank you lots

I will try and figure out how to proceed with openWRT and also give Debian a try

If you'd like to start working with an ON100 again let me know if you want me to test anything :)
Re: Issues with Cisco ON100 booting
May 15, 2018 03:09PM
itsanarse Wrote:
-------------------------------------------------------
> That has worked! Thank you lots
>
> I will try and figure out how to proceed with
> openWRT and also give Debian a try
>
> If you'd like to start working with an ON100 again
> let me know if you want me to test anything :)

Cool!

To get rid of this error

*** Warning - bad CRC, using default environment

Post your output of

printenv

If they looks OK, then you can save it

saveenv

After that, the envs are just like other Kirkwood u-boot I've released. Same location, and can be accessed/modified the same way.

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



Edited 1 time(s). Last edit at 05/15/2018 05:02PM by bodhi.
Re: Issues with Cisco ON100 booting
May 22, 2018 06:42AM
Thanks a lot, my plan for this week was to have a play with the device on the night but so far I've not got round to it
Re: Issues with Cisco ON100 booting
May 24, 2018 02:32PM
Hit any key to stop autoboot:  0
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=64:00:F1:21:17:3F
ethact=egiga0
ethaddr=64:00:F1:21:17:3E
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=13DB
mainlineLinux=yes
mtddevname=key_store
mtddevnum=2
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)
partition=nand0,2
rootdelay=10
rootfstype=ext2
serverip=192.168.0.25
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: 1665/131068 bytes

There's the output, looks pretty basic to me coming from the original Cisco one

Not sure about the bootargs, would you be able to explain that to me?

EDIT: Further to the above, I've gone to try openWRT again and it's having issues writing:
ON100_K9> tftpboot ${loadaddr} openwrt-kirkwood-cisco_on100-initramfs-uImage ; nand erase 0x200000 0x600000 ; nand write ${loadaddr} 0x200000 0x600000
Using egiga0 device
TFTP from server 192.168.0.25; our IP address is 192.168.0.51
Filename 'openwrt-kirkwood-cisco_on100-initramfs-uImage'.
Load address: 0x800000
Loading: #################################################################
         #################################################################
         #################################################################
         ##############################
         529.3 KiB/s
done
Bytes transferred = 3297006 (324eee hex)

NAND erase: device 0 offset 0x200000, size 0x600000
Erasing at 0x7e0000 -- 100% complete.
OK

NAND write: device 0 offset 0x600000, size 0x1fa00000
NAND write to offset 600000 failed -5
 0 bytes written: ERROR
ON100_K9>



Edited 1 time(s). Last edit at 05/24/2018 03:13PM by itsanarse.
Re: Issues with Cisco ON100 booting
May 24, 2018 04:15PM
itsanarse,

First, please always post the whole log (from u-boot banner), don't excerpt. I need to see the log verbatim to see the problem!

> There's the output, looks pretty basic to me
> coming from the original Cisco one

No, these envs are not from Ciso stock, they are from my built u-boot.

Looks like your NAND might have real problem. But it's hard to tell from the partial plog.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Issues with Cisco ON100 booting
May 24, 2018 05:06PM
Yeah that's what I meant... After seeing the stock Cisco one it's quite a short list!

I excerpted because I messed my typing up prior, I will have another go tomorrow.


Thanks
Re: Issues with Cisco ON100 booting
May 24, 2018 05:57PM
itsanarse,

While you are at it, find out if OpenWrt kernel is FDT, and if it is, try to find the DTB file that they are using in booting this box (or the DTS source file). This will get you more flexibility (i.e. you can boot Debian with it).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Issues with Cisco ON100 booting
May 24, 2018 06:18PM
Nevermind. I've just recalled LeggoMyEggo told me this box can be boot with kirkwood-guruplug-server-plus.dtb. It might not have everything supported, but he has successul booted and run this box with that DTB.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Issues with Cisco ON100 booting
June 03, 2018 11:08PM
The current patch that OpenWrt uses to add dtb support for the Cisco ON100 to the Linux 4.14 kernel is located at ON100 DTB support patch
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: