Re: Debian on Synology RS816 (Armada 385) December 31, 2020 06:05PM |
Registered: 9 years ago Posts: 44 |
Marvell>> printenv CASset=max MALLOC_len=5 MPmode=SMP ata_hdd_enable=syno_hdd_enable=15 autoload=no baudrate=115200 boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr bootargs= bootargs_dflt=$console $nandEcc $mtdparts_lgcy $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:Armada38x:eth0:none bootargs_root=root=/dev/nfs rw bootcmd=mw 0xf10a2620 0x251;mw 0xf10a2e20 0x251;usb xhciinit; run bootspi 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 $console $nandEcc $mtdparts_lgcy $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootm $loadaddr; bootdelay=3 bootftp=run syno_bootargs;tftpboot $loadaddr_kernel $file_kernel;tftpboot $loadaddr_rootfs $file_rootfs;sf probe; sf read $loadaddr_dt $spi_pt_addr_dt $spi_pt_size_dt;fdt addr $loadaddr_dt;bootm $loadaddr_kernel $loadaddr_rootfs $loadaddr_dt; bootspi=run syno_bootargs;sf probe 0 50000000;sf read $loadaddr_kernel $spi_pt_addr_kernel $spi_pt_size_kernel;sf read $loadaddr_rootfs $spi_pt_addr_rootfs $spi_pt_size_rootfs;sf read $loadaddr_dt $spi_pt_addr_dt $spi_pt_size_dt;bootm $loadaddr_kernel $loadaddr_rootfs $loadaddr_dt; cacheShare=no clean_env=sf probe; sf erase $spi_pt_addr_env $spi_pt_size_env; console=console=ttyS0,115200 device_partition=0:1 disaMvPnp=no eeeEnable=no enaClockGating=no enaCpuStream=no enaFPU=yes enaMonExt=no enaWrAllo=no eth1addr=00:50:43:78:0b:26 eth1mtu=1500 eth2addr=00:50:43:78:c6:26 eth2mtu=1500 eth3addr=00:50:43:0b:c6:78 eth3mtu=1500 ethact=egiga0 ethaddr=00:50:43:c6:0b:26 ethmtu=1500 ethprime=egiga0 fdt_addr=2040000 fdt_skip_update=yes fdtaddr=0x1000000 fdtfile=armada-38x.dtb file_flash=armada38x/flash.bin file_kernel=armada38x/uImage file_rootfs=armada38x/rd.bin file_uboot=armada38x/uboot.bin ide_path=/ image_name=uImage initrd_high=8000000 initrd_name=uInitrd kernel_addr_r=2080000 lcd0_enable=0 lcd0_params=640x480-16@60 lcd_panel=0 limit_dram_size=yes loadaddr=0x02000000 loadaddr_dt=0x1000000 loadaddr_kernel=0x2000000 loadaddr_rootfs=0x3000000 loads_echo=0 mtdids=spi0=spi_flash mtdparts=mtdparts=spi0.0:4m(boot),-(spi-rootfs) mtdparts_lgcy=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:c6:78 netbsd_en=no 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/ run_script=no sata_delay_reset=0 sata_dma_mode=yes script_addr_r=3000000 script_name=boot.scr sd_detection_dat3=no spi_pt_addr_dt=0x0E0000 spi_pt_addr_env=0x7e0000 spi_pt_addr_kernel=0x0F0000 spi_pt_addr_rootfs=0x3C0000 spi_pt_size_dt=0x010000 spi_pt_size_env=0x010000 spi_pt_size_kernel=0x2D0000 spi_pt_size_rootfs=0x410000 standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts_lgcy root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000; stderr=serial stdin=serial stdout=serial syno_boot_dev=/dev/sda1 syno_bootargs=setenv bootargs console=ttyS0,115200 ip=off initrd=$loadaddr_rootfs root=$syno_boot_dev rw $syno_extra_args syno_hw_version=$syno_hw_version hd_power_on_seq=$syno_hdd_powerup_seq ihd_num=$syno_hdd_powerup_seq netif_num=$syno_net_if_num $ata_hdd_detect $ata_hdd_enable flash_size=8 syno_hdd_powerup_seq=1 syno_hw_version=DS116 syno_net_if_num=1 upd_flash=setenv tftpfile $file_flash; tftpboot $loadaddr $tftpfile; if test $? -eq 0; then echo "This may take a while, please be patient..."; sf probe; sf erase 0 +$filesize; sf write $loadaddr 0 $filesize; echo "\ Flash Update Done"; fi; upd_kernel=setenv tftpfile $file_kernel; mw.b $loadaddr 0xFF $spi_pt_size_kernel; tftpboot $loadaddr $tftpfile; if test $? -eq 0; then sf probe; sf erase $spi_pt_addr_kernel $spi_pt_size_kernel; sf write $loadaddr $spi_pt_addr_kernel $spi_pt_size_kernel; echo "\ Kernel Update Done"; fi; upd_rootfs=setenv tftpfile $file_rootfs; mw.b $loadaddr 0xFF $spi_pt_size_rootfs; tftpboot $loadaddr $tftpfile; if test $? -eq 0; then sf probe; sf erase $spi_pt_addr_rootfs +$filesize; sf write $loadaddr $spi_pt_addr_rootfs $filesize; echo "\ Rootfs Update Done"; fi; upd_uboot=setenv tftpfile $file_uboot; tftpboot $loadaddr $tftpfile; if test $? -eq 0; then sf probe; sf erase 0 +$filesize; sf write $loadaddr 0 $filesize; echo "\ Uboot Update Done"; fi; usb0Mode=host usbActive=0 usbType=2 vxworks_en=no yuk_ethaddr=00:00:00:EE:51:81 Environment size: 5631/65532 bytes
root@debian:/# 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@debian:/#
Re: Debian on Synology RS816 (Armada 385) December 31, 2020 06:14PM |
Registered: 9 years ago Posts: 44 |
root@debian:~# fdisk /dev/sdb Welcome to fdisk (util-linux 2.33.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x6e5f77a4. Command (m for help): g Created a new GPT disklabel (GUID: 7004DF3A-A8B9-534A-9967-87A85CCB7697). Command (m for help): n Partition number (1-128, default 1): First sector (2048-62533262, default 2048): 102400 Last sector, +/-sectors or +/-size{K,M,G,T,P} (102400-62533262, default 62533262): Created a new partition 1 of type 'Linux filesystem' and of size 29.8 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read parti[ 295.530662][ T3075] sdb: sdb1 tion table. Syncing disks. root@debian:~#
Re: Debian on Synology RS816 (Armada 385) December 31, 2020 06:21PM |
Registered: 9 years ago Posts: 44 |
root@debian:/# cd /media/sdb1/boot root@debian:/media/sdb1/boot# dd if=uImage of=/dev/sdb bs=1MiB seek=10 4+1 records in 4+1 records out 5075485 bytes (5.1 MB, 4.8 MiB) copied, 0.0292306 s, 174 MB/s root@debian:/media/sdb1/boot# dd if=uInitrd of=/dev/sdb bs=1MiB seek=20 9+1 records in 9+1 records out 9488618 bytes (9.5 MB, 9.0 MiB) copied, 0.0482732 s, 197 MB/s root@debian:/media/sdb1/boot# sync root@debian:/# umount /media/sdb1 root@debian:/# e2fsck /dev/sdb1 e2fsck 1.44.5 (15-Dec-2018) rootfs: clean, 24099/1954064 files, 341006/7803857 blocks root@debian:/#
[....] Starting OpenBSD Secure Shell server: sshd
Re: Debian on Synology RS816 (Armada 385) January 01, 2021 04:01PM |
Admin Registered: 13 years ago Posts: 18,997 |
> [....] Starting OpenBSD Secure Shell server: sshd >
Re: Debian on Synology RS816 (Armada 385) January 01, 2021 08:14PM |
Admin Registered: 13 years ago Posts: 18,997 |
dd if=/dev/zero of=/dev/sdb bs=1MiB count=50
Command (m for help): g Command (m for help): n Partition number (1-128, default 1): First sector (2048-62533262, default 2048): 102400 Last sector, +/-sectors or +/-size{K,M,G,T,P} (102400-62533262, default 62533262): Command (m for help): w
mkfs.ext3 -L rootfs /dev/sdb1
mount /dev/sdb1 /media/sdb1
cd /media/sdb1
tar -xjf Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2
sync
cd /media/sdb1/boot
cp -a zImage-5.2.9-mvebu-tld-1 zImage.fdt
cat dts/armada-385-synology-rs816.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-mvebu-tld-1 -d zImage.fdt uImage
sync
cd /media/sdb1/boot dd if=uImage of=/dev/sdb bs=1MiB seek=10 dd if=uInitrd of=/dev/sdb bs=1MiB seek=20 sync
setenv load_image_addr 0x02000000 setenv load_initrd_addr 0x3000000 setenv load_image 'echo loading uImage from raw HDD ...; scsi device 0; scsi read $load_image_addr 0x5000 0x2F00' setenv load_initrd 'echo loading uInitrd from raw HDD ...; scsi device 0; scsi read $load_initrd_addr 0xA000 0x4F00' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run load_image; run load_initrd; bootm $load_image_addr $load_initrd_addr' setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
setenv bootcmd 'mw.l f1018100 00008000; scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
boot
shutdown -r now
setenv load_image_addr 0x02000000 setenv load_initrd_addr 0x3000000 setenv load_image 'echo loading uImage from raw HDD ...; scsi device 0; scsi read $load_image_addr 0x5000 0x2F00' setenv load_initrd 'echo loading uInitrd from raw HDD ...; scsi device 0; scsi read $load_initrd_addr 0xA000 0x4F00' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run load_image; run load_initrd; bootm $load_image_addr $load_initrd_addr' setenv bootcmd 'scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
setenv bootcmd 'mw.l f1018100 00008000; scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
saveenv reset
Re: Debian on Synology RS816 (Armada 385) January 01, 2021 08:37PM |
Admin Registered: 13 years ago Posts: 18,997 |
salahuddin
Re: Debian on Synology RS816 (Armada 385) July 17, 2021 09:13AM |
setenv bootcmd 'mw.l f1018100 00008000; scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
Re: Debian on Synology RS816 (Armada 385) July 17, 2021 03:03PM |
Admin Registered: 13 years ago Posts: 18,997 |
> setenv bootcmd 'mw.l f1018100 00008000; scsi init; > run bootcmd_exec; echo Booting Stock OS ...; run > bootspi' >>
salahuddin
Re: Debian on Synology RS816 (Armada 385) July 17, 2021 06:43PM |
setenv bootcmd 'mw.l f1018100 00008000; sleep 10; scsi init; run bootcmd_exec; echo Booting Stock OS ...; run bootspi'
salahuddin
Re: Debian on Synology RS816 (Armada 385) July 18, 2021 03:59AM |
2-GND, 4-TX, 6-RX
2-GND, 4-RXD, 6-TXD
# screen /dev/ttyUSB1 115200
Re: Debian on Synology RS816 (Armada 385) July 18, 2021 04:43PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
My NAS HDD is quite slow. So, I had to add sleep before scsi init.
I was trying to use bootdelay environment variable but could not make it work.
ls -l /sys/class/leds
salahuddin
Re: Debian on Synology RS816 (Armada 385) July 18, 2021 05:38PM |
Re: Debian on Synology RS816 (Armada 385) July 19, 2021 05:02AM |
Admin Registered: 13 years ago Posts: 18,997 |
echo default-on > /sys/class/leds/rs816:green:sata1/triggerand
echo none > /sys/class/leds/rs816:green:sata1/trigger
echo ide-disk1 > /sys/class/leds/rs816:green:sata1/trigger
Re: Debian on Synology RS816 (Armada 385) July 19, 2021 11:40AM |
Registered: 3 years ago Posts: 6 |
Re: Debian on Synology RS816 (Armada 385) July 20, 2021 12:58PM |
Registered: 3 years ago Posts: 6 |
Re: Debian on Synology RS816 (Armada 385) July 20, 2021 04:36PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Synology RS816 (Armada 385) July 21, 2021 01:40PM |
Registered: 3 years ago Posts: 6 |
raw HDD address range of "uInitrd" exceed the limit
setenv load_initrd 'echo loading uInitrd from raw HDD ...; scsi device 0; scsi read $load_initrd_addr 0xA000 0x4F00'
setenv load_initrd 'echo loading uInitrd from raw HDD ...; scsi device 0; scsi read $load_initrd_addr 0xA000 0x6F00'
Re: Debian on Synology RS816 (Armada 385) July 21, 2021 09:58PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Synology RS816 (Armada 385) July 23, 2021 04:45PM |
Registered: 3 years ago Posts: 6 |
Re: Debian on Synology RS816 (Armada 385) July 23, 2021 05:45PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Synology RS816 (Armada 385) July 23, 2021 06:47PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
important to get device tree you can get pre-build dtb from kernel 5.2 from doozan forum or compile yourself.
Quote
important to get device tree you can get pre-build dtb from kernel 5.2 from the tarbal linux-5.12.6-mvebu-tld-1-bodhi.tar.bz2 at doozan forum or compile yourself.
Quote
configure and build custom kernel
$ cp ../config-5.12.6-mvebu-tld-1 .config
$ make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- menuconfig
$ make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- bindeb-pkg
CONFIG_LOCALVERSION="-mvebu-tld-1"
CONFIG_LOCALVERSION="-mvebu-tld-1-salahuddin-1"
Re: Debian on Synology RS816 (Armada 385) July 24, 2021 10:09AM |
Registered: 3 years ago Posts: 6 |
Re: Debian on Synology RS816 (Armada 385) December 15, 2021 05:08PM |
Registered: 2 years ago Posts: 10 |
BootROM 1.08 Booting from SPI flash High speed PHY - Version: 2.1.2 (COM-PHY-V20) Update PEX Device ID 0x67100 High speed PHY - Ended Successfully DDR3 Training Sequence - Ver 4.5.0 DDR3 Training Sequence - Ended Successfully Status = MV_OK BootROM: Image checksum verification PASSED __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** LOADER ** U-Boot 2011.12-SYNO-add48c3-2013-07-18 (Jul 18 2013 - 16:45:54) Marvell version: v2011.12 2013_Q1.2 Board: SYNO-DS213j-BP SoC: MV6710 A1 CPU: Marvell PJ4B v7 UP (Rev 1) LE CPU @ 1200 [MHz] L2 @ 600 [MHz] TClock @ 200 [MHz] DDR @ 600 [MHz] DDR 16Bit Width, FastPath Memory Access DRAM: 512 MiB Map: Code: 0x1ff0a000:0x1ffa1ed8 BSS: 0x1ffefca0 Stack: 0x1f9f9ef8 Heap: 0x1f9fa000:0x1ff0a000 MMC: MRVL_MMC: 0 SF: Detected M25P64 with page size 64 KiB, total 8 MiB *** Warning - bad CRC, using default environment PEX 0.0(0): Detected No Link. PEX 0.1(1): Detected No Link. FPU not initialized USB 0: Host Mode USB 1: Host Mode Modules/Interfaces Detected: PEX0 (Lane 0) SATA0 (Lane 2) SATA1 (Lane 3) SGMII0 Phy module (Lane 1) Synology Model: DS213j Fan Status: Good Net: egiga0 [PRIME] Press Ctrl+C to abort autoboot in 3 second ## Booting kernel from Legacy Image at f40c0000 ... Image Name: Linux-3.2.40 Created: 2021-07-01 6:31:28 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2160360 Bytes = 2.1 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... Bad Data CRC ERROR: can't get kernel image! Marvell>> setenv ipaddr 192.168.1.19 Marvell>> setenv serverip 192.168.1.42 Marvell>> setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;' Marvell>> setenv load_initrd_addr 0x3000000 Marvell>> setenv load_image_addr 0x02000000 Marvell>> setenv mtdparts 'mtdparts=spi0.0:896k(u-boot),64k(dtb),7104k(kernel),-(env)' Marvell>> setenv boot_config_spi 'setenv image_addr_spi 0x0F0000; setenv image_size_spi 0x006f0000; sf probe 0 50000000' Marvell>> setenv load_image_spi 'echo loading uImage from flash ...; sf read $load_image_addr $image_addr_spi $image_size_spi' Marvell>> setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"' Marvell>> setenv bootcmd_exec 'echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run boot_config_spi; run load_image_spi; bootm $load_image_addr -' Marvell>> setenv bootcmd 'run bootcmd_exec; run bootspi' Marvell>> saveenv Saving Environment to SPI Flash... SF: Detected M25P64 with page size 64 KiB, total 8 MiB Erasing SPI flash....Writing to SPI flash.....done Marvell>> reset resetting ... Marvell>> BootROM 1.08 Booting from SPI flash High speed PHY - Version: 2.1.2 (COM-PHY-V20) Update PEX Device ID 0x67100 High speed PHY - Ended Successfully DDR3 Training Sequence - Ver 4.5.0 DDR3 Training Sequence - Ended Successfully Status = MV_OK BootROM: Image checksum verification PASSED __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** LOADER ** U-Boot 2011.12-SYNO-add48c3-2013-07-18 (Jul 18 2013 - 16:45:54) Marvell version: v2011.12 2013_Q1.2 Board: SYNO-DS213j-BP SoC: MV6710 A1 CPU: Marvell PJ4B v7 UP (Rev 1) LE CPU @ 1200 [MHz] L2 @ 600 [MHz] TClock @ 200 [MHz] DDR @ 600 [MHz] DDR 16Bit Width, FastPath Memory Access DRAM: 512 MiB Map: Code: 0x1ff0a000:0x1ffa1ed8 BSS: 0x1ffefca0 Stack: 0x1f9f9ef8 Heap: 0x1f9fa000:0x1ff0a000 MMC: MRVL_MMC: 0 SF: Detected M25P64 with page size 64 KiB, total 8 MiB PEX 0.0(0): Detected No Link. PEX 0.1(1): Detected No Link. FPU not initialized USB 0: Host Mode USB 1: Host Mode Modules/Interfaces Detected: PEX0 (Lane 0) SATA0 (Lane 2) SATA1 (Lane 3) SGMII0 Phy module (Lane 1) Synology Model: DS213j Fan Status: Good Net: egiga0 [PRIME] Press Ctrl+C to abort autoboot in 3 second Booting Debian ... SF: Detected M25P64 with page size 64 KiB, total 8 MiB loading uImage from flash ... ## Booting kernel from Legacy Image at 02000000 ... Image Name: Linux-5.13.8-mvebu-tld-1 Created: 2021-12-15 21:46:41 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5233120 Bytes = 5 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... Bad Data CRC ERROR: can't get kernel image! ## Error: "bootspi" not defined Marvell>>
Marvell>> printenv CASset=min MALLOC_len=5 autoload=no baudrate=115200 boot_config_spi=setenv image_addr_spi 0x0F0000; setenv image_size_spi 0x006f0000; sf probe 0 50000000 bootargs=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=spi0.0:896k(u-boot),64k(dtb),7104k(kernel),-(env) earlyprintk=serial bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none bootargs_root=root=/dev/nfs rw bootcmd=run bootcmd_exec; run bootspi bootcmd_exec=echo Booting Debian ...; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run boot_config_spi; run load_image_spi; bootm $load_image_addr - bootdelay=3 cacheShare=no console=console=ttyS0,115200 disL2Cache=yes disaMvPnp=no eeeEnable=no enaAutoRecovery=yes enaClockGating=no enaFPU=no enaWrAllo=no eth1addr=00:50:43:02:00:00 eth1mtu=1500 ethact=egiga0 ethaddr=00:50:43:02:02:00 ethmtu=1500 ethprime=egiga0 fdt_skip_update=yes image_addr_spi=0x0F0000 image_name=uImage image_size_spi=0x006f0000 initrd_high=0xffffffff initrd_name=uInitrd ipaddr=192.168.1.19 load_image_addr=0x02000000 load_image_spi=echo loading uImage from flash ...; sf read $load_image_addr $image_addr_spi $image_size_spi load_initrd_addr=0x3000000 loadaddr=0x02000000 loads_echo=0 mtdparts=mtdparts=spi0.0:896k(u-boot),64k(dtb),7104k(kernel),-(env) mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500 mv_pon_addr=00:50:43:00:00:02 netbsd_en=no netmask=255.255.255.0 netretry=no pcieTune=no pexMode=rc pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm pxefile_addr_r=3100000 rcvrip=169.254.100.100 rootpath=/srv/oneiric sata_delay_reset=0 sata_dma_mode=yes serverip=192.168.1.42 setL2CacheWT=no set_bootargs=setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial" standalone=fsload 0x2000000 $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000; stderr=serial stdin=serial stdout=serial usb0Mode=host usb1Mode=host usb2Mode=device usbActive=1 usb_setup=setenv usbActive 1; setenv usbType 3; usb start; vxworks_en=no yuk_ethaddr=00:00:00:EE:51:81 Environment size: 2250/65532 bytes
Re: Debian on Synology RS816 (Armada 385) December 15, 2021 10:54PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Synology RS816 (Armada 385) December 16, 2021 01:24AM |
Registered: 2 years ago Posts: 10 |
Marvell>> setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;' Marvell>> run usb_setup (Re)start USB... USB: Active port: 1 Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 1 USB Device(s) found scanning bus for storage devices... 0 Storage Device(s) found Marvell>> ext2ls usb 0 / ** Block device usb 0 not supported Marvell>> ext2ls usb 1 ** Block device usb 0 not supported
Re: Debian on Synology RS816 (Armada 385) December 16, 2021 01:30AM |
Admin Registered: 13 years ago Posts: 18,997 |
setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;'
setenv usbType 3 setenv usbType 2Depending on the box, you might not have USB 3.0.
Re: Debian on Synology RS816 (Armada 385) December 16, 2021 01:40AM |
Registered: 2 years ago Posts: 10 |
Re: Debian on Synology RS816 (Armada 385) December 16, 2021 10:24PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian on Synology RS816 (Armada 385) December 17, 2021 02:49AM |
Registered: 2 years ago Posts: 10 |
dd if=/dev/mtd0 of=mtd0.stock.ds213j bs=4096k conv=sync dd if=/dev/mtd1 of=mtd1.stock.ds213j bs=4096k conv=sync dd if=/dev/mtd2 of=mtd2.stock.ds213j bs=4096k conv=sync dd if=/dev/mtd3 of=mtd3.stock.ds213j bs=4096k conv=sync dd if=/dev/mtd4 of=mtd4.stock.ds213j bs=4096k conv=sync dd if=/dev/mtd5 of=mtd5.stock.ds213j bs=4096k conv=sync
root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 000c0000 00001000 "RedBoot" mtd1: 002d0000 00001000 "zImage" mtd2: 00440000 00001000 "rd.gz" mtd3: 00010000 00001000 "vendor" mtd4: 00010000 00001000 "RedBoot config" mtd5: 00010000 00001000 "FIS directory"
dd if=mtd0.stock.ds213j of=mtd0.stock.ds213j.trunc bs=1 count=768k dd if=mtd1.stock.ds213j of=mtd1.stock.ds213j.trunc bs=1 count=2880k dd if=mtd2.stock.ds213j of=mtd2.stock.ds213j.trunc bs=1 count=4352k dd if=mtd3.stock.ds213j of=mtd3.stock.ds213j.trunc bs=1 count=64k dd if=mtd4.stock.ds213j of=mtd4.stock.ds213j.trunc bs=1 count=64k dd if=mtd5.stock.ds213j of=mtd5.stock.ds213j.trunc bs=1 count=64k
setenv mtdparts 'mtdparts=spi0.0:768k(RedBoot),2880k(zImage),4358k(rd.gz),64k(vendor),64k(Redboot config),-(FIS directory)'
flashcp -v mtd0.stock.ds213j.trunc /dev/mtd0 flashcp -v mtd1.stock.ds213j.trunc /dev/mtd1 flashcp -v mtd2.stock.ds213j.trunc /dev/mtd2 flashcp -v mtd3.stock.ds213j.trunc /dev/mtd3 flashcp -v mtd4.stock.ds213j.trunc /dev/mtd4 flashcp -v mtd5.stock.ds213j.trunc /dev/mtd5
Re: Debian on Synology RS816 (Armada 385) January 24, 2022 06:13PM |
Registered: 2 years ago Posts: 10 |