My Cloud Gen2 u-boot January 24, 2020 09:46AM |
Registered: 9 years ago Posts: 47 |
Re: My Cloud Gen2 u-boot January 24, 2020 01:03PM |
Admin Registered: 13 years ago Posts: 19,007 |
printenv boot
cat /proc/mtd cat /etc/fw_env.config fw_printenv
Re: My Cloud Gen2 u-boot January 24, 2020 01:54PM |
Registered: 9 years ago Posts: 47 |
Re: My Cloud Gen2 u-boot January 24, 2020 02:05PM |
Admin Registered: 13 years ago Posts: 19,007 |
Re: My Cloud Gen2 u-boot January 24, 2020 02:50PM |
Registered: 9 years ago Posts: 47 |
Re: My Cloud Gen2 u-boot January 24, 2020 05:14PM |
Registered: 9 years ago Posts: 47 |
BootROM - 1.51 Booting from SPI flash General initialization - Version: 1.0.0 High speed PHY - Version: 0.1.1 (COM-PHY-V20) USB2 UTMI PHY initialized succesfully USB2 UTMI PHY initialized succesfully High speed PHY - Ended Successfully DDR3 Training Sequence - Ver 5.7.1 DDR3 Training Sequence - Run with PBS. DDR3 Training Sequence - Ended Successfully BootROM: Image checksum verification PASSED ** LOADER ** U-Boot 2013.01_v1.03 (Nov 20 2014 - 16:39:45) Marvell version: 2014_T2.0p3 Board: WD_Glacier_DB-88F6720-V2 SoC: MV88F6720 Rev A0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 800 [MHz] L2 @ 400 [MHz] TClock @ 200 [MHz] DDR @ 534 [MHz] DDR 16Bit Width, FastPath Memory Access, DLB Enabled DRAM: 512 MiB Map: Code:0x1fed6000:0x1ff92c90 BSS:0x1ffefa20 Stack:0x1f9c5f20 Heap:0x1f9c6000:0x1fed6000 SF: Detected MX25L8006E with page size 64 KiB, total 1 MiB *** Warning - bad CRC, using default environment PCI-e 0: Detected No Link. PCI-e 1: Detected No Link. SF: Detected MX25L8006E with page size 64 KiB, total 1 MiB ### Loading Firmware from USB 3.0 Disk ### USB2.0 0: Host Mode USB2.0 1: Device Mode USB3.0 0: Host Mode Board configuration detected: GE-PHY-0 on MAC0 SERDES configuration: Lane #0: PCIe0 Lane #1: PCIe1 Lane #2: SATA0 Lane #3: USB3 Net: egiga0 [PRIME] *** ERROR: ping address not given Hit any key to stop autoboot: 1 0 (Re)start USB... USB0: Port (usbActive) : 0Interface (usbType = 3) : USB XHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found ** Bad device usb 0 ** ** Bad device usb 0 ** ## Booting image at 00a00000 ... ### Loading Firmware from USB 2.0 Disk ### (Re)start USB... USB0: Port (usbActive) : 1Interface (usbType = 2) : USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found ** Bad device usb 0 ** ** Bad device usb 0 ** ## Booting image at 00a00000 ... ### Loading Firmware from Disk ### Reset IDE: Marvell Serial ATA Adapter Integrated Sata device found Device 0 @ 0 0: Model: WDC WD800JD-22JNC0 Firm: 05.01C05 Ser#: WD-WCAM9A844714 Type: Hard Disk Capacity: 76319.0 MB = 74.5 GB (156301488 x 512) 3635207 bytes read in 130 ms (26.7 MiB/s) 2679902 bytes read in 102 ms (25.1 MiB/s) ## Booting image at 00a00000 ... ## Booting kernel from Legacy Image at 00a00000 ... Image Name: armada-375-wdmc-gen2 Created: 2018-01-08 8:40:26 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3635143 Bytes = 3.5 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 00f00000 ... Image Name: Ramdisk Created: 2016-05-22 11:44:54 UTC Image Type: ARM Linux RAMDisk Image (lzma compressed) Data Size: 2679838 Bytes = 2.6 MiB Load Address: 00e00000 Entry Point: 00e00000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ...fw_printenv shows
fw_printenv Warning: Bad CRC, using default environment bootcmd=run distro_bootcmd bootdelay=2 baudrate=115200 stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vidconsole ethaddr=00:00:11:22:33:44 eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ipaddr=1.2.3.4 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi boot_prefixes=/ /boot/ boot_scripts=boot.scr.uimg boot.scr boot_script_dhcp=boot.scr.uimg boot_targets=host1 host0 boot_syslinux_conf=extlinux/extlinux.conf boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf} scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done bootcmd_host1=setenv devnum 1; run host_boot bootcmd_host0=setenv devnum 0; run host_boot distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done bootm_size=0x10000000 kernel_addr_r=0x1000000 fdt_addr_r=0xc00000 ramdisk_addr_r=0x2000000 scriptaddr=0x1000 pxefile_addr_r=0x2000
root@wdmc:~# dd if=/dev/mtd0 bs=64K skip=15 |hexdump -C 00000000 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| *
SF: Detected MX25L8006E with page size 64 KiB, total 1 MiB *** Warning - bad CRC, using default environment PCI-e 0: Detected No Link. PCI-e 1: Detected No Link. SF: Detected MX25L8006E with page size 64 KiB, total 1 MiB ### Loading Firmware from USB 3.0 Disk ### USB2.0 0: Host Mode USB2.0 1: Device Mode USB3.0 0: Host Mode Board configuration detected: GE-PHY-0 on MAC0 SERDES configuration: Lane #0: PCIe0 Lane #1: PCIe1 Lane #2: SATA0 Lane #3: USB3 Net: egiga0 [PRIME] *** ERROR: ping address not given Hit any key to stop autoboot: 1 0 Marvell>> printenv CASset=max MALLOC_len=5 MPmode=SMP autoload=no baudrate=115200 boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr bootargs=root=/dev/ram console=ttyS0,115200 bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel bootargs_end=:10.4.50.254:255.255.255.0:Armada375:eth0:none bootargs_root=root=/dev/nfs rw bootcmd=usb reset; fatload usb 0:1 0xa00000 /boot/uImage; fatload usb 0:1 0xf00000 /boot/uRamdisk; bootm 0xa00000 0xf00000 bootcmd_auto=stage_boot $boot_order bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr; bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr; bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000; bootdelay=1 cacheShare=no console=console=ttyS0,115200 device_partition=0:1 disL2Cache=yes disL2Prefetch=yes disaMvPnp=no eeeEnable=no enaClockGating=no enaCpuStream=no enaDCPref=yes enaFPU=yes enaICPref=yes enaMonExt=no enaWrAllo=no eth1addr=00:50:43:00:02:23 eth1mtu=1500 eth2addr=00:50:43:00:00:23 eth2mtu=1500 eth3addr=00:50:43:02:00:00 eth3mtu=1500 ethact=egiga0 ethaddr=00:50:43:00:02:23 ethmtu=1500 ethprime=egiga0 fdt_addr=2040000 fdt_skip_update=no fdtaddr=0x1000000 fdtfile=armada-375-db.dtb ide_path=/ image_name=uImage initrd_name=uInitrd ipaddr=2.76.78.201 kernel_addr_r=2080000 lcd0_enable=0 lcd0_params=640x480-16@60 lcd_panel=0 loadaddr=0x02000000 loads_echo=0 mtdids=spi0=spi_flash mtdparts=mtdparts=spi_flash:4m(boot),-(spi-rootfs) mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500 mv_pon_addr=00:50:43:23:00:00 netbsd_en=no netmask=255.0.0.0 netretry=no pcieTune=no pexMode=RC pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm pxefile_addr_r=3100000 ramdisk_addr_r=2880000 rootpath=/srv/nfs/ sata_delay_reset=0 sata_dma_mode=yes script_addr_r=3000000 script_name=boot.scr serverip=192.168.1.1 setL2CacheWT=no standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000; stderr=serial stdin=serial stdout=serial usb0Mode=host usbActive=0 usbType=3 vxworks_en=no yuk_ethaddr=00:00:00:EE:51:81 Environment size: 3077/65532 bytesif i set MAC and serial number, u-boot complains on CRC
fw_setenv user osa Warning: Bad CRC, using default environmentenvs are set successfully
fw_printenv bootcmd=run distro_bootcmd bootdelay=2 baudrate=115200 stdin=serial,cros-ec-keyb,usbkbd stdout=serial,vidconsole stderr=serial,vidconsole ethaddr=00:00:11:22:33:44 eth1addr=00:00:11:22:33:45 eth3addr=00:00:11:22:33:46 eth5addr=00:00:11:22:33:47 ipaddr=1.2.3.4 host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi boot_prefixes=/ /boot/ boot_scripts=boot.scr.uimg boot.scr boot_script_dhcp=boot.scr.uimg boot_targets=host1 host0 boot_syslinux_conf=extlinux/extlinux.conf boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf} scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done bootcmd_host1=setenv devnum 1; run host_boot bootcmd_host0=setenv devnum 0; run host_boot distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done bootm_size=0x10000000 kernel_addr_r=0x1000000 fdt_addr_r=0xc00000 ramdisk_addr_r=0x2000000 scriptaddr=0x1000 pxefile_addr_r=0x2000 user=osaNow, uboot can merge some of this envs
SF: Detected MX25L8006E with page size 64 KiB, total 1 MiB MAC addr: 00:90:A9:E9:64:60 ### Loading Firmware from USB 3.0 Disk ### USB2.0 0: Host Mode USB2.0 1: Device Mode USB3.0 0: Host Mode Board configuration detected: GE-PHY-0 on MAC0 SERDES configuration: Lane #0: PCIe0 Lane #1: PCIe1 Lane #2: SATA0 Lane #3: USB3 Net: egiga0 [PRIME] *** ERROR: ping address not given Hit any key to stop autoboot: 2 0 Marvell>> printenv CASset=max MALLOC_len=5 MPmode=SMP autoload=no baudrate=115200 boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr} boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf} boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr boot_prefixes=/ /boot/ boot_script_dhcp=boot.scr.uimg boot_scripts=boot.scr.uimg boot.scr boot_syslinux_conf=extlinux/extlinux.conf boot_targets=host1 host0 bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel bootargs_end=:10.4.50.254:255.255.255.0:Armada375:eth0:none bootargs_root=root=/dev/nfs rw bootcmd=usb reset; fatload usb 0:1 0xa00000 /boot/uImage; fatload usb 0:1 0xf00000 /boot/uRamdisk; bootm 0xa00000 0xf00000 bootcmd_auto=stage_boot $boot_order bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr; bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr; bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot bootcmd_host0=setenv devnum 0; run host_boot bootcmd_host1=setenv devnum 1; run host_boot bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000; bootdelay=2 bootm_size=0x10000000 cacheShare=no console=console=ttyS0,115200 device_partition=0:1 disL2Cache=yes disL2Prefetch=yes disaMvPnp=no distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done eeeEnable=no enaClockGating=no enaCpuStream=no enaDCPref=yes enaFPU=yes enaICPref=yes enaMonExt=no enaWrAllo=no eth1addr=00:00:11:22:33:45 eth1mtu=1500 eth2addr=00:50:43:ee:86:26 eth2mtu=1500 eth3addr=00:00:11:22:33:46 eth3mtu=1500 eth5addr=00:00:11:22:33:47 ethact=egiga0 ethaddr=00:90:A9:E9:64:60 ethmtu=1500 ethprime=egiga0 fdt_addr=2040000 fdt_addr_r=0xc00000 fdt_skip_update=no fdtaddr=0x1000000 fdtfile=armada-375-db.dtb host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi ide_path=/ image_name=uImage initrd_name=uInitrd ipaddr=1.2.3.4 kernel_addr_r=0x1000000 lcd0_enable=0 lcd0_params=640x480-16@60 lcd_panel=0 loadaddr=0x02000000 mtdids=spi0=spi_flash mtdparts=mtdparts=spi_flash:4m(boot),-(spi-rootfs) mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500 mv_pon_addr=00:50:43:26:86:ee netbsd_en=no netretry=no pcieTune=no pexMode=RC pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm pxefile_addr_r=0x2000 ramdisk_addr_r=0x2000000 sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi sata_delay_reset=0 sata_dma_mode=yes scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done; scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done script_addr_r=3000000 script_name=boot.scr scriptaddr=0x1000 scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi setL2CacheWT=no standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000; stderr=serial stdin=serial stdout=serial usb0Mode=host usbActive=0 usbType=3 user=osa virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi vxworks_en=no yuk_ethaddr=00:00:00:EE:51:81 Environment size: 5002/65532 bytes
fw_setenv bootargs 'root=/dev/sda3 console=ttyS0,115200'it will overwrite bootargs and will be persistent - i need it to boot debian without initrd
root@wdmc:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00010000 "u-boot" root@wdmc:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xf0000 0x10000 0x10000 1
Re: My Cloud Gen2 u-boot January 24, 2020 07:55PM |
Admin Registered: 13 years ago Posts: 19,007 |
SF: Detected MX25L8006E with page size 64 KiB, total 1 MiB *** Warning - bad CRC, using default environment
Re: My Cloud Gen2 u-boot January 28, 2020 07:25AM |
Registered: 9 years ago Posts: 47 |
Re: My Cloud Gen2 u-boot January 28, 2020 12:28PM |
Admin Registered: 13 years ago Posts: 19,007 |
Re: My Cloud Gen2 u-boot January 31, 2020 06:21PM |
Registered: 9 years ago Posts: 47 |
Re: My Cloud Gen2 u-boot February 01, 2020 04:00PM |
Admin Registered: 13 years ago Posts: 19,007 |
Re: My Cloud Gen2 u-boot June 23, 2020 08:42AM |
Registered: 4 years ago Posts: 4 |
BootROM - 1.51 Booting from SPI flash BootROM: Bad header at offset D4000000 BootROM: Bad header at offset D4200000 BootROM: Bad header at offset D4400000 BootROM: Bad header at offset D4600000 BootROM: Bad header at offset D4800000 BootROM: Bad header at offset D4A00000 BootROM: Bad header at offset D4C00000 BootROM: Bad header at offset D4E00000 Trying Uart
Re: My Cloud Gen2 u-boot June 23, 2020 04:45PM |
Admin Registered: 13 years ago Posts: 19,007 |
BootROM - 1.51 Booting from SPI flash BootROM: Bad header at offset D4000000 BootROM: Bad header at offset D4200000 BootROM: Bad header at offset D4400000 BootROM: Bad header at offset D4600000 BootROM: Bad header at offset D4800000 BootROM: Bad header at offset D4A00000 BootROM: Bad header at offset D4C00000 BootROM: Bad header at offset D4E00000 Trying Uart
Re: My Cloud Gen2 u-boot June 23, 2020 04:55PM |
Admin Registered: 13 years ago Posts: 19,007 |
Quote
I have another WD My Cloud Gen2, but (for now) not with a serial connection. I can use dd to get the content of the flash. I also found the GPL code WD released, however this only cotains a u-boot.bin without any source code. However I did find the source code on the Marvell git. It also explains that the U-Boot alone is not enough. The git however contains the source code for this extra part as far as I can see. It is probably also present in the found u-boot.bin because binwalk doesn't recognize it as a U-Boot image.
Re: My Cloud Gen2 u-boot June 24, 2020 03:46AM |
Registered: 4 years ago Posts: 4 |
Quote
bodhi
You don't need a flash programmer.
Quote
bodhi
You only need to boot with kwboot using serial console.
Quote
bodhi
Either your backup mtd0
Quote
bodhi
For modern u-boot, there is an SPL that used with u-boot proper. But for older Marvell u-boot, there is no need for SPL. That u-boot.bin is the older version.
BootROM - 1.51 Booting from SPI flash General initialization - Version: 1.0.0 High speed PHY - Version: 0.1.1 (COM-PHY-V20) USB2 UTMI PHY initialized succesfully USB2 UTMI PHY initialized succesfully High speed PHY - Ended Successfully DDR3 Training Sequence - Ver 5.7.1 DDR3 Training Sequence - Run with PBS. DDR3 Training Sequence - Ended Successfully BootROM: Image checksum verification PASSED ** LOADER ** U-Boot 2013.01_v1.03 (Nov 20 2014 - 16:39:45) Marvell version: 2014_T2.0p3
Re: My Cloud Gen2 u-boot June 24, 2020 04:53AM |
Admin Registered: 13 years ago Posts: 19,007 |
Re: My Cloud Gen2 u-boot June 24, 2020 08:15AM |
Registered: 4 years ago Posts: 4 |
Quote
bodhi
If it has SPL then it is not stock u-boot. Only modern u-boot for this box has SPL and u-boot images (the 1st part is SPL which contains the training code and u-boot is the 2nd part).
Quote
bodhi
Yes. Does not hurt to try kwboot that.
Re: My Cloud Gen2 u-boot June 24, 2020 04:32PM |
Admin Registered: 13 years ago Posts: 19,007 |
Re: My Cloud Gen2 u-boot June 25, 2020 05:10AM |
Registered: 4 years ago Posts: 4 |
Quote
bodhi
they both should be able to work with kwboot.
root@wdmc-archief:~# nanddump -f wdmc_2tb_mtd0.bin /dev/mtd0 ECC failed: 0 ECC corrected: 0 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 65536, page size 1, OOB size 0 Dumping data starting at 0x00000000 and ending at 0x00100000...
root@wdmc-archief:~# md5sum wdmc_2tb_mtd* 8bb401517964db08dc4ab9b7de519676 wdmc_2tb_mtd0.bin 8bb401517964db08dc4ab9b7de519676 wdmc_2tb_mtd0.dd 8bb401517964db08dc4ab9b7de519676 wdmc_2tb_mtdblock0.dd
Re: My Cloud Gen2 u-boot June 25, 2020 06:01AM |
Admin Registered: 13 years ago Posts: 19,007 |
Re: My Cloud Gen2 u-boot June 25, 2020 04:55PM |
Admin Registered: 13 years ago Posts: 19,007 |