UART Booting HowTo for Selected Kirkwood Devices May 06, 2012 02:49PM |
Registered: 13 years ago Posts: 501 |
md ff00003cIf you see
ff00003c: 00000111it is v1.11, and if you see
ff00003c: 00000121it has v 1.21.
./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.uartpogoMobile-MMC-mtdparts-NoUSB.kwb
./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.goflexnet-IDEpatched-netconsoleON.kwb -p
davygravy@bitbaker64:~/Desktop/kwboot-tool/$ ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.goflexnet-IDEpatched-netconsoleONdefault.kwb -p Sending boot message. Please reboot the target.../ Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] ... 95 % [......................................................................] 97 % [......................................................................] 99 % [....................................] [Type Ctrl-\ + c to quit] U-Boot 2011.12 (Apr 27 2012 - 23:06:45) Seagate GoFlexNet SoC: Kirkwood 88F6281_A1 DRAM: 128 MiB WARNING: Caches not enabled NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Using egiga0 device
KWBOOT(1) KWBOOT(1) NAME kwboot - Boot Marvell Kirkwood SoCs over a serial link. SYNOPSIS kwboot [-b image] [-p] [-t] [-B baudrate] [TTY] DESCRIPTION The kwboot program boots boards based on Marvell's Kirkwood platform over their integrated UART. Boot image files will typically contain a second stage boot loader, such as U-Boot. The image file must conform to Marvell's BootROM firmware image format (kwbimage), created using a tool such as .B mkimage. Following power-up or a system reset, system BootROM code polls the UART for a brief period of time, sensing a hand‐ shake message which initiates an image upload. This program sends this boot message until it receives a positive acknowledgement. The image is transfered using Xmodem. Additionally, this program implements a minimal terminal mode, which can be used either standalone, or entered immedi‐ ately following boot image transfer completion. This is often useful to catch early boot messages, or to manually interrupt a default boot procedure performed by the second-stage loader. OPTIONS -b image Handshake; then upload file image over TTY. Note that for the encapsulated boot code to be executed, image must be of type "UART boot" (0x69). Boot images of different types, such as backup images of vendor firmware downloaded from flash memory (type 0x8B), will not work (or not as expected). See -p for a workaround. This mode writes handshake status and upload progress indication to stdout. -p In combination with -b, patches the header in image prior to upload, to "UART boot" type. This option attempts on-the-fly conversion of some none-UART image types, such as images which were originally formatted to be stored in flash memory. Conversion is performed in memory. The contents of image will not be altered. -t Run a terminal program, connecting standard input and output to TTY. If used in combination with -b, terminal mode is entered immediately following a successful image upload. If standard I/O streams connect to a console, this mode will terminate after receiving 'ctrl-\' followed by 'c' from console input. -B baudrate Adjust the baud rate on TTY. Default rate is 115200. SEE ALSO mkimage(1) AUTHORS Daniel Stodden <daniel.stodden@gmail.com> 2012-05-02 KWBOOT(1)
openstoraU
Re: UART Booting HowTo for Selected Kirkwood Devices May 07, 2012 03:49AM |
Tip: If you have an 88F6281 revision A0 CPU: 1. Power down the Stora. 2. Prepare picocom by hitting C+a C+e, then entering the u-boot uart filename BUT DON'T PRESS RETURN. 3. Press the Stora power button and count 1000, 2000, 3000. 4. Hit enter in picocom. 5. Success. Works for me 99% of the time now. Suspect bootROM 1.21 waits to see if another bb11223344556677 comes around before declaring the uart boot process dead. So it is possible, but it doesn't work in quite the same way as later CPUs.
Re: UART Booting HowTo for Selected Kirkwood Devices May 07, 2012 05:18PM |
Registered: 13 years ago Posts: 501 |
> Tip: If you have an 88F6281 revision A0 CPU: > > 1. Power down the Stora. > 2. Prepare picocom by hitting C+a C+e, then > entering the u-boot uart filename BUT DON'T PRESS > RETURN. > 3. Press the Stora power button and count 1000, > 2000, 3000. > 4. Hit enter in picocom. > 5. Success. > > Works for me 99% of the time now. Suspect bootROM > 1.21 waits to see if another bb11223344556677 > comes around before declaring the uart boot > process dead. > > So it is possible, but it doesn't work in quite > the same way as later CPUs. >
Quote
justnine from www.openstora.com/phpBB3//viewtopic.php?t=1211
Works for me 99% of the time now. Suspect bootROM 1.21 waits to see if another bb11223344556677 comes around before declaring the uart boot process dead.
So it is possible, but it doesn't work in quite the same way as later CPUs.
edit: I have bootROM 1.11. And after a quick nand erase 0x0 0x2000, the device is back to refusing to boot.
Re: UART Booting HowTo for Selected Kirkwood Devices June 15, 2012 11:20AM |
Registered: 12 years ago Posts: 378 |
Re: UART Booting HowTo for Selected Kirkwood Devices November 04, 2012 10:14AM |
Registered: 12 years ago Posts: 56 |
Re: UART Booting HowTo for Selected Kirkwood Devices November 05, 2012 04:29AM |
Registered: 13 years ago Posts: 78 |
ksw
Re: UART Booting HowTo for Selected Kirkwood Devices January 22, 2013 12:11PM |
ksw
Re: UART Booting HowTo for Selected Kirkwood Devices January 24, 2013 09:51AM |
Greg Langford
Re: UART Booting HowTo for Selected Kirkwood Devices August 19, 2013 03:48PM |
Fma965
Re: UART Booting HowTo for Selected Kirkwood Devices October 14, 2013 09:58AM |
YoYo
Re: UART Booting HowTo for Selected Kirkwood Devices October 14, 2013 01:00PM |
Re: UART Booting HowTo for Selected Kirkwood Devices October 15, 2013 03:30PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: UART Booting HowTo for Selected Kirkwood Devices December 27, 2013 05:02PM |
Registered: 10 years ago Posts: 3 |
Re: UART Booting HowTo for Selected Kirkwood Devices January 03, 2014 02:40PM |
Registered: 10 years ago Posts: 3 |
Re: UART Booting HowTo for Selected Kirkwood Devices January 04, 2014 03:36AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: UART Booting HowTo for Selected Kirkwood Devices January 04, 2014 10:51AM |
Registered: 10 years ago Posts: 3 |
Re: UART Booting HowTo for Selected Kirkwood Devices January 04, 2014 11:23AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: UART Booting HowTo for Selected Kirkwood Devices July 26, 2014 09:53PM |
Registered: 11 years ago Posts: 165 |
Re: UART Booting HowTo for Selected Kirkwood Devices July 27, 2014 03:26AM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: UART Booting HowTo for Selected Kirkwood Devices July 27, 2014 08:30AM |
Registered: 11 years ago Posts: 165 |
Re: UART Booting HowTo for Selected Kirkwood Devices July 27, 2014 02:49PM |
Admin Registered: 13 years ago Posts: 18,898 |
./kwboot-tool/kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2014.07-tld-1.pogo_v4.mtd0.kwb -p
Re: UART Booting HowTo for Selected Kirkwood Devices December 28, 2014 07:03PM |
Registered: 9 years ago Posts: 24 |
Re: UART Booting HowTo for Selected Kirkwood Devices January 06, 2015 09:45AM |
Registered: 9 years ago Posts: 50 |
# kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2013.10-tld-1.nsa325.uart.kwb -p Sending boot message. Please reboot the target...- Sending boot image... 0 % [......................................................................] 2 % [......................................................................] 5 % [......................................................................] 8 % [......................................................................] 11 % [......................................................................] 14 % [......................................................................] 17 % [......................................................................] 20 % [......................................................................] 22 % [......................................................................] 25 % [......................................................................] 28 % [......................................................................] 31 % [......................................................................] 34 % [......................................................................] 37 % [......................................................................] 40 % [......................................................................] 43 % [......................................................................] 45 % [......................................................................] 48 % [......................................................................] 51 % [......................................................................] 54 % [......................................................................] 57 % [......................................................................] 60 % [......................................................................] 63 % [......................................................................] 65 % [......................................................................] 68 % [......................................................................] 71 % [......................................................................] 74 % [......................................................................] 77 % [......................................................................] 80 % [......................................................................] 83 % [......................................................................] 85 % [......................................................................] 88 % [......................................................................] 91 % [......................................................................] 94 % [......................................................................] 97 % [................................................................] [Type Ctrl-\ + c to quit] U-Boot 2013.10-tld-1 (Aug 29 2014 - 22:07:26) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_?? DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: egiga0 Warning: failed to set MAC address MV88E1318 PHY initialized on egiga0 NSA325>
Re: UART Booting HowTo for Selected Kirkwood Devices February 17, 2015 08:33AM |
Registered: 9 years ago Posts: 17 |
[ovp@hp7 kwboot-tool]$ ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2014.07-tld-2.sheevaplug.mtd0.kwb -p Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 6 % [......................................................................] 8 % [......................................................................] 10 % [......................................................................] 11 % [......................................................................] 13 % [......................................................................] 15 % [......................................................................] 17 % [......................................................................] 18 % [......................................................................] 20 % [......................................................................] 22 % [......................................................................] 23 % [......................................................................] 25 % [......................................................................] 27 % [......................................................................] 29 % [......................................................................] 30 % [......................................................................] 32 % [......................................................................] 34 % [......................................................................] 35 % [......................................................................] 37 % [......................................................................] 39 % [......................................................................] 41 % [......................................................................] 42 % [......................................................................] 44 % [......................................................................] 46 % [......................................................................] 47 % [......................................................................] 49 % [......................................................................] 51 % [......................................................................] 53 % [......................................................................] 54 % [......................................................................] 56 % [......................................................................] 58 % [......................................................................] 59 % [......................................................................] 61 % [......................................................................] 63 % [......................................................................] 64 % [......................................................................] 66 % [......................................................................] 68 % [......................................................................] 70 % [......................................................................] 71 % [......................................................................] 73 % [......................................................................] 75 % [......................................................................] 76 % [......................................................................] 78 % [......................................................................] 80 % [......................................................................] 82 % [......................................................................] 83 % [......................................................................] 85 % [......................................................................] 87 % [......................................................................] 88 % [......................................................................] 90 % [......................................................................] 92 % [......................................................................] 94 % [......................................................................] 95 % [......................................................................] 97 % [......................................................................] 99 % [....................................] [Type Ctrl-\ + c to quit] U-Boot 2014.07-tld-2 (Dec 20 2014 - 20:20:31) Marvell-Sheevaplug SoC: Kirkwood 88F6281_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: egiga0 PHY reset timed out 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Marvell>> printenv arcNumber=2097 baudrate=115200 bootcmd=run bootcmd_uenv; run bootcmd_usb; 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 ethact=egiga0 ethaddr=b6:d0:5e:0f:a1:17 led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 rootdelay=10 rootfstype=ext2 set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x810000 uenv_load=usb start; ide reset; setenv uenv_loaded 0; for devtype in usb ide; 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: 1372/131068 bytes Marvell>> help ? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootm - boot application image from memory bootp - boot image via network using BOOTP/TFTP protocol bootz - boot Linux zImage image from memory chpart - change active partition cmp - memory compare coninfo - print console devices and information cp - memory copy crc32 - checksum calculation dhcp - boot image via network using DHCP/TFTP protocol echo - echo args to console editenv - edit environment variable env - environment handling commands ext2load- load binary file from a Ext2 filesystem ext2ls - list files in a directory (default /) ext4load- load binary file from a Ext4 filesystem ext4ls - list files in a directory (default /) fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) fdt - flattened device tree utility commands fsinfo - print information about jffs filesystems fsload - load binary file from a jffs filesystem image fsls - list jffs files in a directory (default /) go - start application at address 'addr' gpio - query and control gpio pins help - print command description/usage iminfo - print header information for application image imxtract- extract a part of a multi-image itest - return true/false on integer compare loadb - load binary file over serial line (kermit mode) loads - load S-Record file over serial line loadx - load binary file over serial line (xmodem mode) loady - load binary file over serial line (ymodem mode) loop - infinite loop on address range md - memory display mii - MII utility commands mm - memory modify (auto-incrementing address) mtdparts- define flash/nand partitions mw - memory write (fill) nand - NAND sub-system nboot - boot from NAND device nfs - boot image via network using NFS protocol nm - memory modify (constant address) ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables reset - Perform RESET of the CPU run - run commands in an environment variable saveenv - save environment variables to persistent storage setenv - set environment variables sleep - delay execution for some time source - run script from memory tftpboot- boot image via network using TFTP protocol ubi - ubi commands ubifsload- load file from an UBIFS filesystem ubifsls - list files in a directory ubifsmount- mount UBIFS volume ubifsumount- unmount UBIFS volume usb - USB sub-system usbboot - boot from USB device version - print monitor, compiler and linker version Marvell>>
Re: UART Booting HowTo for Selected Kirkwood Devices February 17, 2015 12:12PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: UART Booting HowTo for Selected Kirkwood Devices February 25, 2015 11:51AM |
Registered: 9 years ago Posts: 7 |
Re: UART Booting HowTo for Selected Kirkwood Devices February 25, 2015 12:13PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: UART Booting HowTo for Selected Kirkwood Devices February 25, 2015 12:41PM |
Registered: 9 years ago Posts: 7 |
Re: UART Booting HowTo for Selected Kirkwood Devices February 25, 2015 12:52PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: UART Booting HowTo for Selected Kirkwood Devices February 25, 2015 12:59PM |
Registered: 9 years ago Posts: 7 |