Dockstar salvage May 23, 2020 08:24AM |
Registered: 4 years ago Posts: 10 |
Re: Dockstar salvage May 23, 2020 09:10AM |
Registered: 7 years ago Posts: 373 |
Re: Dockstar salvage May 23, 2020 02:06PM |
Registered: 4 years ago Posts: 10 |
Re: Dockstar salvage May 23, 2020 03:37PM |
Registered: 4 years ago Posts: 10 |
U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16) U-Boot code: 00600000 -> 0067FFF0 BSS: -> 00690D60 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 128MB DRAM Total size 128MB 16bit width Flash: 0 kB Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:256 MB CPU : Marvell Feroceon (Rev 1) CLOUD ENGINES BOARD: REDSTONE:1.0 Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME], egiga1 Hit any key to stop autoboot: 0 NAND read: device 0 offset 0x100000, size 0x300000 Reading data from 0x3ff800 -- 100% complete. 3145728 bytes read: OK ## Booting image at 00800000 ... Image Name: Linux-2.6.22.18 Created: 2009-08-31 23:31:05 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1976384 Bytes = 1.9 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... Bad Data CRC CE>> CE>> setenv ipaddr 169.254.120.6 CE>> setenv netmask 255.255.0.0 CE>> setenv serverip 169.254.120.1 CE>> ping 169.254.120.3 Using egiga0 device ping failed; host 169.254.120.3 is not alive CE>> ping $(serverip) Using egiga0 device host 169.254.120.1 is alive CE>>
Re: Dockstar salvage May 23, 2020 04:54PM |
Registered: 10 years ago Posts: 226 |
Re: Dockstar salvage May 23, 2020 06:17PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
I would like to re-use as a network backup & monitoring server (since it is such a neat compact low-power unit), and would appreciate your advice on how feasible it would be to get it loaded with Debian or similar,
U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16)
Re: Dockstar salvage May 24, 2020 04:18AM |
Registered: 4 years ago Posts: 10 |
CE>> setenv bootargs_root root=/dev/sda1 rootdelay=10 rootfstype=ext3
CE>> setenv robin usb start CE>> run robin Unknown command 'usb' - try 'help'
Re: Dockstar salvage May 24, 2020 06:00AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Dockstar salvage May 24, 2020 04:34PM |
Admin Registered: 13 years ago Posts: 18,997 |
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10' setenv usb_boot 'mw 0x800000 0 1; ext2load usb 0:1 0x800000 /boot/uImage; if ext2load usb 0:1 0x2100000 /boot/uInitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi' setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset' printenvand then
boot
Re: Dockstar salvage May 25, 2020 03:24AM |
Registered: 4 years ago Posts: 10 |
CE>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10' CE>> setenv usb_boot 'mw 0x800000 0 1; ext2load usb 0:1 0x800000 /boot/uImage; if ext2load usb 0:1 0x2100000 /boot/uInitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi' ** Too many args (max. 16) ** Unknown command 'setenv' - try 'help' CE>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' CE>> setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset' CE>> CE>> printenv baudrate=115200 loads_echo=0 ipaddr=169.254.254.253 rootpath=/mnt/ARM_FS/ netmask=255.255.0.0 run_diag=yes console=console=ttyS0,115200 CASset=min MALLOC_len=1 ethprime=egiga0 ethmtu=1500 usb0Mode=host nandEcc=1bit ethact=egiga0 ethaddr=00:10:75:1A:C1:34 cesvcid=925RLLVQG3B3BV9ND63NR4REKW ceserialno=2GEP1DDS ceboardver=REDSTONE:1.0 serverip=169.254.120.1 bootargs_root=root=/dev/sda1 rootdelay=10 rootfstype=ext3 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=3 disaMvPnp=no bootargs=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext3 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 usb_boot=mw 0x800000 0 1; ext2load usb 0:1 0x800000 /boot/uImage; if ext2load usb 0:1 0x2100000 usb_bootcmd=run usb_set_bootargs; run usb_boot bootcmd=usb start; run usb_bootcmd; usb stop; reset Environment size: 1027/131068 bytes CE>> CE>> boot Unknown command 'usb' - try 'help' ** Block device usb 0 not supported Unknown command 'if' - try 'help' Unknown command 'usb' - try 'help' U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16) U-Boot code: 00600000 -> 0067FFF0 BSS: -> 00690D60 Soc: 88F6281 A0 (DDR2) CPU running @ 1200Mhz L2 running @ 400Mhz SysClock = 400Mhz , TClock = 200Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 .. ... ( usual boot from 0x800000 , ending in Bad Data CRC ) .. .. .. CE>> setenv usb_boot1 'mw 0x800000 0 1; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd' CE>> setenv usb_boot2 ' bootm 0x800000 0x2100000 ' CE>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot1; run usb_boot2' CE>> CE>> boot Unknown command 'usb' - try 'help' ** Block device usb 0 not supported ** Block device usb 0 not supported ## Booting image at 00800000 ... Bad Magic Number Unknown command 'usb' - try 'help' U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16) .. ... ( usual boot from 0x800000 , ending in Bad Data CRC
Re: Dockstar salvage May 25, 2020 04:32AM |
Admin Registered: 13 years ago Posts: 18,997 |
helpSee what commands it provides.
Re: Dockstar salvage May 25, 2020 08:37AM |
Registered: 4 years ago Posts: 10 |
CE>> help ? - alias for 'help' base - print or set address offset boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootext2 dev:boot_part1,boot_part2 addr boot_image linux_dev_name bootm - boot application image from memory bootp - boot image via network using BootP/TFTP protocol bubt - Burn an image on the Boot Nand Flash. chpart - change active partition cmp - memory compare cmpm - Compare Memory cp - memory copy cpumap - Display CPU memory mapping settings. crc32 - checksum calculation date - get/set/reset date & time dclk - Display the MV device CLKs. dhcp - invoke DHCP client to obtain IP/boot params diskboot- boot from IDE device echo - echo args to console eeprom - EEPROM sub-system erase - erase FLASH memory ext2load- load binary file from a Ext2 filesystem ext2ls - list files in a directory (default /) fi - Find value in the memory. flinfo - print FLASH memory information fsinfo - print information about filesystems fsload - load binary file from a filesystem image g - start application at cached address 'addr'(default addr 0x40000) go - start application at address 'addr' help - print online help icrc32 - checksum calculation ide - IDE sub-system iloop - infinite loop on address range imd - i2c memory display imm[.b, .s, .w, .l] - i2c memory modify (auto-incrementing) imw - memory write (fill) inm - memory modify (constant address) iprobe - probe to discover valid I2C chip addresses ir - reading and changing MV internal register values. loop - infinite loop on address range ls - list files in a directory (default /) map - Diasplay address decode windows md - memory display me - PCI master enable mm - memory modify (auto-incrementing) mp - map PCI BAR mtdparts- define flash/nand partitions mtest - simple RAM test mv_diag - perform board diagnostics mw - memory write (fill) nand - NAND sub-system nboot - boot from NAND device nbubt - Burn a boot loader image on the Boot Nand Flash. nm - memory modify (constant address) pci - list and access PCI Configuration Space phyRead - Read PCI-E Phy register pciePhyWrite - Write PCI-E Phy register phyRead - Read Phy register phyWrite - Write Phy register ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables protect - enable or disable FLASH write protection rarpboot- boot image via network using RARP/TFTP protocol reset - Perform RESET of the CPU resetenv - Return all environment variable to default. run - run commands in an environment variable saveenv - save environment variables to persistent storage se - PCI Slave enable setenv - set environment variables sflash - read, write or erase the external SPI Flash. sg - scanning the PHYs status sp - Scan PCI bus. tftpboot- boot image via network using TFTP protocol version - print monitor version CE>>
Re: Dockstar salvage May 25, 2020 04:53PM |
Admin Registered: 13 years ago Posts: 18,997 |
setenv serverip 192.168.0.100 setenv ipaddr 192.168.0.101 setenv tftp_load 'tftpboot 0x800000 uImage; tftpboot 0x2100000 uInitrd' setenv tftp_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10' setenv tftp_boot 'mw 0x800000 0 1; run tftp_load; bootm 0x800000 0x2100000' setenv tftp_bootcmd 'run tftp_set_bootargs; run tftp_boot' setenv bootcmd 'run tftp_bootcmd; reset' printenvand then
boot
Re: Dockstar salvage May 26, 2020 04:40AM |
Registered: 4 years ago Posts: 10 |
CE>> setenv tftp_load 'tftpboot 0x800000 uImage; tftpboot 0x2100000 uInitrd' CE>> setenv tftp_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10' CE>> setenv tftp_boot 'mw 0x800000 0 1; run tftp_load; bootm 0x800000 0x2100000' CE>> setenv tftp_bootcmd 'run tftp_set_bootargs; run tftp_boot' CE>> setenv bootcmd 'run tftp_bootcmd; reset' CE>> printenv baudrate=115200 loads_echo=0 ipaddr=192.168.13.13 rootpath=/mnt/ARM_FS/ netmask=255.255.255.0 run_diag=yes console=console=ttyS0,115200 CASset=min MALLOC_len=1 ethprime=egiga0 ethmtu=1500 usb0Mode=host nandEcc=1bit ethact=egiga0 ethaddr=00:10:75:1A:C1:34 cesvcid=925RLLVQG3B3BV9ND63NR4REKW ceserialno=2GEP1DDS ceboardver=REDSTONE:1.0 serverip=192.168.13.1 bootargs_root=root=/dev/sda1 rootdelay=10 rootfstype=ext3 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=3 disaMvPnp=no bootargs=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext3 tftp_load=tftpboot 0x800000 uImage; tftpboot 0x2100000 uInitrd tftp_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 tftp_boot=mw 0x800000 0 1; run tftp_load; bootm 0x800000 0x2100000 tftp_bootcmd=run tftp_set_bootargs; run tftp_boot bootcmd=run tftp_bootcmd; reset Environment size: 1045/131068 bytes CE>> CE>> boot Using egiga0 device TFTP from server 192.168.13.1; our IP address is 192.168.13.99 Filename 'uImage'. Load address: 0x800000 Loading: ################################################################# ################################################################# ...snip.. ################################################################# ############################################################ done Bytes transferred = 4963680 (4bbd60 hex) Using egiga0 device TFTP from server 192.168.13.1; our IP address is 192.168.13.99 Filename 'uInitrd'. Load address: 0x2100000 Loading: ################################################################# ################################################################# ..snip ################################################################# ############# done Bytes transferred = 9713936 (943910 hex) ## Booting image at 00800000 ... Image Name: Linux-5.2.9-kirkwood-tld-1 Created: 2019-08-25 2:22:31 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4963616 Bytes = 4.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-5.2.9-kirkwood-tld-1 Created: 2019-08-25 2:22:50 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9713872 Bytes = 9.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Error: invalid dtb and unrecognized/unsupported machine ID r1=0x0000020f, r2=0x00000100 r2[]=05 00 00 00 01 00 41 54 00 00 00 00 00 00 00 00 Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
Re: Dockstar salvage May 26, 2020 04:51AM |
Admin Registered: 13 years ago Posts: 18,997 |
For the Dockstar the command above isQuote
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync
If your Linux box does not have mkimage, then install it
apt-get install u-boot-tools
cat dts/kirkwood-dockstar.dtb >> zImage.fdt
Re: Dockstar salvage May 26, 2020 12:27PM |
Registered: 4 years ago Posts: 10 |
Re: Dockstar salvage May 26, 2020 02:20PM |
Registered: 4 years ago Posts: 10 |
U-Boot 2017.07-tld-1 (Oct 24 2017 - 22:32:36 -0700) Seagate FreeAgent DockStar SoC: Kirkwood 88F6281_A0 DRAM: 128 MiB WARNING: Caches not enabled NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... Use USB retry period from the environment: 15 second(s) 1 Storage Device(s) found Unknown command 'ide' - try 'help' Unknown command 'mmc' - try 'help' Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 8064 15125184 c9904ef6-01 83 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** Unknown command 'ide' - try 'help' Unknown command 'mmc' - try 'help' running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 692 ms (0 Bytes/s) Found bootable drive on usb 0 loading uImage ... 4973738 bytes read in 1015 ms (4.7 MiB/s) loading uInitrd ... 9713936 bytes read in 963 ms (9.6 MiB/s) loading DTB ... ** No boot file defined ** ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.2.9-kirkwood-tld-1 Created: 2020-05-24 7:44:14 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4973674 Bytes = 4.7 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-5.2.9-kirkwood-tld-1 Created: 2019-08-25 2:22:50 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9713872 Bytes = 9.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Loading Ramdisk to 071cc000, end 07b0f8d0 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. ....
Re: Dockstar salvage May 26, 2020 07:19PM |
Admin Registered: 13 years ago Posts: 18,997 |
> U-Boot 2017.07-tld-1 (Oct 24 2017 - 22:32:36
> -0700)
> Seagate FreeAgent DockStar
>
> SoC: Kirkwood 88F6281_A0
> DRAM: 128 MiB
> WARNING: Caches not enabled
> NAND: 256 MiB
> In: serial
> Out: serial
> Err: serial
> Net: egiga0
> 88E1116 Initialized on egiga0
> Hit any key to stop autoboot: 0
> starting USB...
> USB0: USB EHCI 1.00
> scanning bus 0 for devices... 3 USB Device(s)
> found
> scanning usb for storage devices...
> Use USB retry period from the environment: 15
> second(s)
> 1 Storage Device(s) found
> Unknown command 'ide' - try 'help'
> Unknown command 'mmc' - try 'help'
>
> Partition Map for USB device 0 -- Partition
> Type: DOS
>
> Part Start Sector Num Sectors UUID
> Type
> 1 8064 15125184
> c9904ef6-01 83
>
> ## Unknown partition table type 0
>
> ## Unknown partition table type 0
>
> ## Unknown partition table type 0
>
> ## Unknown partition table type 0
>
> ## Unknown partition table type 0
>
> ## Unknown partition table type 0
> loading envs from usb 0 ...
> ** File not found /boot/uEnv.txt **
> Unknown command 'ide' - try 'help'
> Unknown command 'mmc' - try 'help'
> running scan_disk ...
> Scan device usb
> device usb 0:1
> 1 bytes read in 692 ms (0 Bytes/s)
> Found bootable drive on usb 0
> loading uImage ...
> 4973738 bytes read in 1015 ms (4.7 MiB/s)
> loading uInitrd ...
> 9713936 bytes read in 963 ms (9.6 MiB/s)
> loading DTB ...
> ** No boot file defined **
> ## Booting kernel from Legacy Image at 00800000
> ...
> Image Name: Linux-5.2.9-kirkwood-tld-1
> Created: 2020-05-24 7:44:14 UTC
> Image Type: ARM Linux Kernel Image
> (uncompressed)
> Data Size: 4973674 Bytes = 4.7 MiB
> Load Address: 00008000
> Entry Point: 00008000
> Verifying Checksum ... OK
> ## Loading init Ramdisk from Legacy Image at
> 01100000 ...
> Image Name: initramfs-5.2.9-kirkwood-tld-1
> Created: 2019-08-25 2:22:50 UTC
> Image Type: ARM Linux RAMDisk Image (gzip
> compressed)
> Data Size: 9713872 Bytes = 9.3 MiB
> Load Address: 00000000
> Entry Point: 00000000
> Verifying Checksum ... OK
> Loading Kernel Image ... OK
> Loading Ramdisk to 071cc000, end 07b0f8d0 ...
> OK
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
> ....
>
cd /boot cp -a uImage uImage.dockstar.dtb cp -a uImage.orig uImage
fw_setenv dtb_file=/boot/dts/kirkwood-dockstar.dtb
sync shutdown -r now