Re: UART Booting HowTo for Selected Kirkwood Devices
May 13, 2021 07:56AM
MAybe a kwboot option can/needs to be set?
  -b <image>: boot <image> with preamble (Kirkwood, Armada 370/XP)
  -p: patch <image> to type 0x69 (uart boot)
  -D <image>: boot <image> without preamble (Dove)
  -d: enter debug mode
  -a: use timings for Armada XP
  -q <req-delay>:  use specific request-delay
  -s <resp-timeo>: use specific response-timeout
  -o <block-timeo>: use specific xmodem block timeout

  -t: mini terminal

  -B <baud>: set baud rate
Re: UART Booting HowTo for Selected Kirkwood Devices
May 13, 2021 04:08PM
AleXSR700,


Quote
bodhi
When you see the "xmodem: Protocol error", do the following:

- Make sure the serial wires are far from the power cord (to avoid interference).

- Run with the image uboot.2017.07-tld-1.nsa325.mtd0.kwb as I mentioned on the other thread.

- When you see the protocol error, recall the kwboot command and immediately execute that. Repeat this quickly, as many time as needed.

Run this command:
kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: UART Booting HowTo for Selected Kirkwood Devices
May 14, 2021 02:07AM
So, I wanted to give my feedback and hopefully this will help others in the future also.

Situation:
USB sticks were not recognized. TFTP did not work. kwboot did not work.

Then came a recommendation by Mijzelf to check if the 5V for the USB was actually being supplied properly. So I added an active USB Hub in between so the USB stick was already powered externally and not through the board.
And it worked!

So, if anybody has the same issue with USB sticks not being recognized or files not being readable, try an active USB hub.

In addition I found that I could not use the same USB stick to flash uboot and the actual OpenWRT. It just would not work. I need to reboot with a different USB stick (no rebooting with the same USB stick did not fix it).
And then it worked.
I tried on my second NSA325v2 using the second USB stick first. Same picture. I had to use two USB sticks in whatever order. The system just wanted two sticks even though both had the same files and same worked.

Anyhow, long story short: THANK YOU ALLLLLL!!!!!!!!!!!!!!!!!!

OpenWRT is now installed and next I need to figure out why I do not have a built in file browser in OpenWRT and then install one to check if the drives are read properly.

Summary:
Use an active USB hub and have two USB sticks prepared ;-)
Re: UART Booting HowTo for Selected Kirkwood Devices
March 14, 2023 09:17AM
phewwww... that was close. While unpacking from moving, I found a box of Kirkwood devices, and there was a boxed/stock GoFlexHome... I was worried that I would not be able to flash it anymore.

Luckily, @bodhi has the good uboots, and Debian actually has u-boot-tools (with kwboot!) all ready to go. Other than my subpar soldering skills, it was pretty much a breeze.

davidpurdy@MacProDebian:~/Downloads$ kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.goflexhome.mtd0.kwb -p
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
...
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:21:31 -0700)
Seagate GoFlex Home

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
GoFlexHome>

Just needed to adjust environment variables a bit, prep a usb stick w/ a rescue image and uboot (bin and env), and "Bob's your uncle"! Everything worked, straight out of the box, except for my soldering. [could NOT get TX to work in the serial connection, but I just had a very bad contact...eventually got it connected ]

Lessons for the day: Document everything and keep good notes. Use adequate lighting when soldering! ;^)

=====================================================
Re: UART Booting HowTo for Selected Kirkwood Devices
March 14, 2023 01:09PM
> Just needed to adjust environment variables a bit,
> prep a usb stick w/ a rescue image and uboot (bin
> and env), and "Bob's your uncle"!

Nice :) and good to see you posting davygravy!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: UART Booting HowTo for Selected Kirkwood Devices
August 27, 2024 03:27AM
Quote

md ff00003c
in stock U-Boot on HP t5325 returns all zeros and kwboot stuck at
Quote

Sending boot message. Please reboot the target....
Nothing happens on box(not even stock U-Boot starts)
I can successfully interact with default U-Boot and my TTL>USB is Prolific PL2303



Edited 1 time(s). Last edit at 08/27/2024 03:30AM by uLumia.
Re: UART Booting HowTo for Selected Kirkwood Devices
August 27, 2024 05:13AM
uLumia,

>
Quote

md ff00003c
in stock U-Boot on HP
> t5325 returns all zeros and kwboot stuck at
>
Quote

Sending boot message. Please reboot the
> target....
Nothing happens on box(not even
> stock U-Boot starts)

Post your kwboot command

> I can successfully interact with default U-Boot
> and my TTL>USB is Prolific PL2303

That means the parameters for baud rate... are correct.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: UART Booting HowTo for Selected Kirkwood Devices
August 27, 2024 05:38AM
Quote

kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.t5325.mtd0.kwb -p
Same as in thread about modern U-Boot for t5325
Also if execute kwboot while in stock U-Boot there is some data, and i can press Enter and U-Boot wil say its unknown command



Edited 1 time(s). Last edit at 08/27/2024 05:40AM by uLumia.
Re: UART Booting HowTo for Selected Kirkwood Devices
August 27, 2024 05:50AM
uLumia Wrote:
-------------------------------------------------------
>
Quote

kwboot -t -B 115200 /dev/ttyUSB0 -b
> uboot.2017.07-tld-1.t5325.mtd0.kwb -p
> Same as in
> thread
> about modern U-Boot for t5325

> Also if execute kwboot while in stock U-Boot there
> is some data, and i can press Enter and U-Boot wil
> say its unknown command


Data is
Quote

�"3DUfw�Df�Ufw�"3DUfw�"3DUfw�"3DUfw�"3DUfw"3DUfw�"3DUfw�"3DUfw�"3DUfw3"Dw�"DU"fw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3f�"DU�"3DUfw�Uw�"�fw�"3DUfw�"3DUffwDf�"3DU"w"�"3DUfw�"3DUfw�3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�DUf3U�3DUfw�"DUw�"3DUfw�"Uw�"3DUfw"3DUfw�"3DUfw�"3DUfw�"3DU�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DU�"Dw3wfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3D3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DU
repeated only once, when enter is pressed this data repeats
Also lights on TTL>USB are blinking more actively then when not in stock U-Boot



Edited 1 time(s). Last edit at 08/27/2024 05:51AM by uLumia.
Re: UART Booting HowTo for Selected Kirkwood Devices
August 28, 2024 12:33AM
uLumia,

> > Also if execute kwboot while in stock U-Boot
> there
> > is some data, and i can press Enter and U-Boot
> wil
> > say its unknown command
>
>
> Data is
>
Quote

�"3DUfw�Df�Ufw�"3DUfw�"3DUfw�"3DUfw�"3DUfw"3DUfw�"3DUfw�"3DUfw�"3DUfw3"Dw�"DU"fw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3f�"DU�"3DUfw�Uw�"�fw�"3DUfw�"3DUffwDf�"3DU"w"�"3DUfw�"3DUfw�3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�DUf3U�3DUfw�"DUw�"3DUfw�"Uw�"3DUfw"3DUfw�"3DUfw�"3DUfw�"3DU�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DU�"Dw3wfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DUfw�"3D3DUfw�"3DUfw�"3DUfw�"3DUfw�"3DU
> repeated only once, when enter is pressed this
> data repeats

It's normal to see these chars when stock u-boot is running and kwboot is trying to handshake.

Please post the normal serial boot log (from u-boot banner until it stops booting).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: UART Booting HowTo for Selected Kirkwood Devices
August 28, 2024 12:52AM
Quote

picocom v3.1

port is : /dev/ttyUSB0
flowcontrol : none
baudrate is : 115200
parity is : none
databits are : 8
stopbits are : 1
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
hangup is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv -E
imap is :
omap is :
emap is : crcrlf,delbs,
logfile is : none
initstring : none
exit_after is : not set
exit is : no

Type [C-a] [C-h] to see available commands
Terminal ready

_ _ .____
| |_| | | _ \
| _ | | (_))
| |-| | | |
|_| |_| |_| ..
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__|
** LOADER **
** BOARD: DB-88F6281A-BP LE

U-Boot 1.1.4 (Jan 8 2010 - 14:03:56) MIC version : 3.4.19-16

U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CD4E0

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 256MB
DRAM CS[1] base 0x10000000 size 256MB
DRAM Total size 512MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
[1024kB@f8000000] Flash: 1 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
Net: egiga0 [PRIME], egiga1
Hit any key to stop autoboot: 0

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
Device 0 @ 0 0:
Model: SM22 Firm: I052 Ser#: (03)5526888-20080228
Type: Hard Disk
Capacity: 463.6 MB = 0.4 GB (949536 x 512)


1888432 bytes read
Checking Button Status: off
Checking GotoWOL Status: off
## Booting image at 00200000 ...
Image Name: Linux-2.6.22.18-2-armel
Created: 2009-11-17 18:35:01 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1888368 Bytes = 1.8 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux......................................................................................................................... done, booting the kernel.
Output to serial not enabled in stock ThinPro
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: