Re: UART Booting HowTo for Selected Kirkwood Devices September 06, 2016 03:50PM |
Admin Registered: 13 years ago Posts: 18,843 |
Re: UART Booting HowTo for Selected Kirkwood Devices September 06, 2016 04:34PM |
Admin Registered: 13 years ago Posts: 18,843 |
run bootcmd_uenv setenv dtb_file '/boot/dts/kirkwood-pogoplug_v4.dtb' boot
mike
Re: UART Booting HowTo for Selected Kirkwood Devices September 07, 2016 04:44AM |
flash_erase /dev/mtd0 0 4 nandwrite /dev/mtd0 uboot.2016.05-tld-1.pogo_v4.mtd0.kwb flash_erase /dev/mtd0 0xc0000 1 nandwrite -s 786432 /dev/mtd0 uboot.2014.07-tld-1.environment.img uboot.2016.05-tld-1.environment.img fw_setenv arcNumber 3960 fw_setenv machid F78 fw_setenv usb_rootfstype ext3 fw_setenv mtdparts 'mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)' fw_setenv bootcmd 'run bootcmd_uenv; boot; reset'
Re: UART Booting HowTo for Selected Kirkwood Devices September 07, 2016 01:22PM |
Admin Registered: 13 years ago Posts: 18,843 |
fw_setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset'
mike
Re: UART Booting HowTo for Selected Kirkwood Devices September 09, 2016 04:21AM |
mv /boot/uEnv.txt /boot/uEnv.bak fw_setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset' reboot... and led was blinking green then appeared orange and pogo couldn't boot.
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 ethact=egiga0 ethaddr=52:3b:20:9c:11:51 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb_addr=0x1c00000 load_initrd_addr=0x1100000 load_uimage_addr=0x800000 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 preboot_nc=run if_netconsole start_netconsole scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi usb_ready_retry=15 mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) arcNumber=3960 machid=F78 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset dtb_file=/boot/kirkwood-pogoplug_v4.dtb ipaddr=192.168.0.10 serverip=192.168.0.3 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; preboot=run if_netconsole start_netconsole
dtb_file=/boot/dts/kirkwood-pogoplug_v4.dtb
Re: UART Booting HowTo for Selected Kirkwood Devices September 09, 2016 04:38AM |
Admin Registered: 13 years ago Posts: 18,843 |
fw_setenv dtb_file '/boot/dts/kirkwood-pogoplug_v4.dtb'
apt-get install picocom
mike
Re: UART Booting HowTo for Selected Kirkwood Devices September 12, 2016 04:33AM |
Re: UART Booting HowTo for Selected Kirkwood Devices November 20, 2016 10:01AM |
Registered: 7 years ago Posts: 1 |
Re: UART Booting HowTo for Selected Kirkwood Devices April 19, 2017 07:29AM |
Registered: 7 years ago Posts: 67 |
Re: UART Booting HowTo for Selected Kirkwood Devices October 31, 2017 04:42PM |
Registered: 8 years ago Posts: 88 |
root@PogoV4Debian:/temp# ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.pogo_v4.mtd0.kwb -p
Sending boot image... 0 % [......................................................................] 1 % [......................................................................] ... 97 % [......................................................................] 99 % [....................................] [Type Ctrl-\ + c to quit]
Pogov4> printenv arcNumber=3960 bootcmd=run bootcmd_usb; run bootcmd_mmc; run bootcmd_sata; run bootcmd_pogo; reset bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide mmc disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-pogo_e02.dtb ethact=egiga0 ethaddr=00:25:31:06:25:fd if_netconsole=ping $serverip ipaddr=192.168.0.231 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_initrd_addr=0x1100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage load_uimage_addr=0x800000 machid=F78 mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root) partition=nand0,2 preboot_nc=run if_netconsole start_netconsole scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; 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 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_ready_retry=15 usb_rootfstype=ext3 Environment size: 2904/131068 bytes Pogov4>
Pogov4> boot ## Error: "bootcmd_usb" not defined ## Error: "bootcmd_mmc" not defined ## Error: "bootcmd_sata" not defined ## Error: "bootcmd_pogo" not defined resetting ... U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:41:47 -0700) Pogoplug V4 SoC: Kirkwood 88F6192_A1 DRAM: 128 MiB WARNING: Caches not enabled NAND: 128 MiB MMC: kwsdio: 0 In: serial Out: serial Err: serial Net: egiga0 Hit any key to stop autoboot: 0 Pogov4>
Re: UART Booting HowTo for Selected Kirkwood Devices October 31, 2017 06:18PM |
Admin Registered: 13 years ago Posts: 18,843 |
> root@PogoV4Debian:/temp# ./kwboot -t -B 115200 > /dev/ttyUSB0 -b > uboot.2017.07-tld-1.pogo_v4.mtd0.kwb -p > [Type Ctrl-\ + c to quit]
Re: UART Booting HowTo for Selected Kirkwood Devices October 31, 2017 06:37PM |
Registered: 8 years ago Posts: 88 |
> > root@PogoV4Debian:/temp# ./kwboot -t -B 115200 > > /dev/ttyUSB0 -b > > uboot.2017.07-tld-1.pogo_v4.mtd0.kwb -p > > > [Type Ctrl-\ + c to quit] >>
Re: UART Booting HowTo for Selected Kirkwood Devices October 31, 2017 07:01PM |
Admin Registered: 13 years ago Posts: 18,843 |
> > > root@PogoV4Debian:/temp# ./kwboot -t -B > 115200 > > > /dev/ttyUSB0 -b > > > uboot.2017.07-tld-1.pogo_v4.mtd0.kwb -p > > > > > [Type Ctrl-\ + c to quit] > >> >
Re: UART Booting HowTo for Selected Kirkwood Devices August 27, 2019 11:54AM |
Registered: 9 years ago Posts: 9 |
Rik Bignell
Re: UART Booting HowTo for Selected Kirkwood Devices April 07, 2020 03:34PM |
Re: UART Booting HowTo for Selected Kirkwood Devices April 07, 2020 05:40PM |
Admin Registered: 13 years ago Posts: 18,843 |
DS414 Marvell Armada XP MV78230 Dual Core 2 Yes Armadaxp DDR3 1 GB
Re: UART Booting HowTo for Selected Kirkwood Devices April 23, 2020 12:46PM |
Registered: 4 years ago Posts: 2 |
Jake
Re: UART Booting HowTo for Selected Kirkwood Devices January 23, 2021 04:38PM |
Quote
Bodhi
And here is how you boot the Pogo Mobile (it is different from other Kirkwood boxes, a little bit flaky):
- Start kwboot on a different Linux box ....
- Power up the Pogo V4/Mobile.
- Within 1-2 seconds when the spinning | starts slowing down (but not too soon), Control-C to abort kwboot, and recall the command, execute kwboot again.
- Repeatedly run kwboot this way for a few times, it will handshake successfully eventually.
Re: UART Booting HowTo for Selected Kirkwood Devices January 23, 2021 04:52PM |
Admin Registered: 13 years ago Posts: 18,843 |
Re: UART Booting HowTo for Selected Kirkwood Devices May 12, 2021 05:06AM |
Registered: 3 years ago Posts: 20 |
[91387.374689] usb 1-1.3: Detected FT232RL [91387.379766] usb 1-1.3: FTDI USB Serial Device converter now attached to ttyUSB0 pi@pi:~/Downloads/kwboot-tool $ ls -la total 5664 drwxr-xr-x 2 pi pi 4096 May 12 09:03 . drwxr-xr-x 3 pi pi 4096 May 12 08:47 .. -rw-r--r-- 1 pi pi 4063232 May 12 08:51 18.bin -rwxrwxrwx 1 pi pi 15604 May 12 09:03 kwboot -rw-r--r-- 1 pi pi 569104 May 12 08:51 uboot.bin -rw-r--r-- 1 pi pi 569168 May 12 08:51 uboot.img -rw-r--r-- 1 pi pi 569620 May 12 08:51 uboot.kwb pi@pi:~/Downloads/kwboot-tool $ ./kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.kwb bash: ./kwboot: No such file or directory pi@pi:~/Downloads/kwboot-tool $
Re: UART Booting HowTo for Selected Kirkwood Devices May 12, 2021 07:53AM |
Registered: 7 years ago Posts: 370 |
Re: UART Booting HowTo for Selected Kirkwood Devices May 12, 2021 10:55AM |
Registered: 3 years ago Posts: 20 |
pi@pi:~/Downloads $ kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.kwb -p Sending boot message. Please reboot the target...\ Sending boot image... 0 % [+xmodem: Protocol error pi@pi:~/Downloads $Did I do something wrong or does it only work with special uboot versions?
__ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: DB-88F6282A-BP LE U-Boot 1.1.4 (Jul 18 2013 - 10:47:29) Marvell version: 3.5.9 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6282 A1CPU running @ 1600Mhz L2 running @ 533Mhz SysClock = 533Mhz , TClock = 200Mhz DRAM (DDR3) CAS Latency = 7 tRP = 8 tRAS = 24 tRCD=8 DRAM CS[0] base 0x00000000 size 512MB DRAM Total size 512MB 16bit width Addresses 10M - 0M are saved for the U-Boot usage. Mem malloc Initialization (10M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Kernel address is 0xc80000. Streaming disabled Write allocate disabled USB 0: host mode [BlueDBG] reseting SoC Pex[0] 0 ... PEX 0: PCI Express Root Complex Interface PEX interface detected Link X1 [BlueDBG] reseting SoC Pex[1] 0 ... [BlueDBG] reseting SoC Pex[1] 1 ... [BlueDBG] reseting SoC Pex[1] 2 ... [BlueDBG] reseting SoC Pex[1] 3 ... [BlueDBG] reseting SoC Pex[1] 4 ... [BlueDBG] reseting SoC Pex[1] 5 ... [BlueDBG] reseting SoC Pex[1] 6 ... [BlueDBG] reseting SoC Pex[1] 7 ... [BlueDBG] reseting SoC Pex[1] 8 ... [BlueDBG] reseting SoC Pex[1] 9 ... [BlueDBG] reseting SoC Pex[1] 10 ... PEX 1: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 2 1 0 NAND read: device 0 offset 0xc80000, size 0xa00000 Bad block at 0xc80000 in erase block from 0xc80000 will be skipped Reading data from 0xca0000 -- 0% complete. Reading data from 0xcb9800 -- 1% complete. Reading data from 0xcd3000 -- 2% complete. Reading data from 0xcec800 -- 3% complete.and so on
Reading data from 0x169f800 -- 100% complete. 10485760 bytes read: OK ## Booting image at 02000000 ... Image Name: Linux-2.6.31.8 Created: 2016-05-02 6:32:03 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5796204 Bytes = 5.5 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK Starting kernel ... Uncompressing Linux................................................................................................................................................................................................................................................................................ done, booting the kernel. Linux version 2.6.31.8 (root@BuildMachine) (gcc version 4.3.2 (sdk3.3-ct-ng-1.4.1) ) #2 Mon May 2 14:31:47 CST 2016 CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977 CPU: VIVT data cache, VIVT instruction cache Machine: Feroceon-KW Using UBoot passing parameters structure Memory policy: ECC disabled, Data cache writeback
Re: UART Booting HowTo for Selected Kirkwood Devices May 12, 2021 03:38PM |
Admin Registered: 13 years ago Posts: 18,843 |
Re: UART Booting HowTo for Selected Kirkwood Devices May 12, 2021 09:08PM |
Registered: 3 years ago Posts: 20 |
Re: UART Booting HowTo for Selected Kirkwood Devices May 12, 2021 10:17PM |
Admin Registered: 13 years ago Posts: 18,843 |
apt-get install picocomand then
picocom --b 115200 --f n --p n --d 8 /dev/ttyUSB0And then power up the NSA325.
Re: UART Booting HowTo for Selected Kirkwood Devices May 13, 2021 02:46AM |
Registered: 3 years ago Posts: 20 |
Re: UART Booting HowTo for Selected Kirkwood Devices May 13, 2021 04:39AM |
Registered: 3 years ago Posts: 20 |
Re: UART Booting HowTo for Selected Kirkwood Devices May 13, 2021 05:19AM |
Admin Registered: 13 years ago Posts: 18,843 |
Re: UART Booting HowTo for Selected Kirkwood Devices May 13, 2021 05:24AM |
Admin Registered: 13 years ago Posts: 18,843 |
Quote
I can see that the NSA325v2 receives the kwboot command because the screen immediately goes hyroglyphical in picocom.
Re: UART Booting HowTo for Selected Kirkwood Devices May 13, 2021 06:31AM |
Registered: 3 years ago Posts: 20 |
pi@pi:~/Downloads $ kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.kwb -p Sending boot message. Please reboot the target...\and not do anything anymore. Even after 30 min, nothing. So it seems to have reached a point at which the NAS is finished listening or has performed whatever boot it was trying to perform.