Re: Debian on Synology RS816 (Armada 385) May 18, 2019 08:41PM |
Registered: 4 years ago Posts: 257 |
setenv ipaddr 192.168.1.250 setenv serverip 192.168.1.2 setenv load_dtb_addr 0x1000000 setenv load_image_addr 0x02000000 setenv load_image 'echo loading zImage from tftpserver ...; tftpboot $load_image_addr zImage' setenv load_dtb 'echo loading DTB from tftpserver ...; tftpboot $load_dtb_addr armada-385-synology-rs816-v12.dtb' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda2 initrd=/dev/sda1/initrd.img-5.1.2-rj rootdelay=20 $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_dtb; bootz $load_image_addr - $load_dtb_addr' setenv bootcmd 'run bootcmd_exec; run bootspi'
root@debian:~#
Filesystem Size Used Avail Use% Mounted on /dev/root 1.8T 1003M 1.7T 1% / devtmpfs 501M 0 501M 0% /dev tmpfs 101M 1.2M 100M 2% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 201M 0 201M 0% /dev/shm /dev/sda1 88M 28M 54M 35% /boot tmpfs 501M 0 501M 0% /tmp
Module Size Used by sg 32768 0 uio_pdrv_genirq 16384 0 uio 20480 1 uio_pdrv_genirq
Re: Debian on Synology RS816 (Armada 385) May 18, 2019 08:42PM |
Admin Registered: 12 years ago Posts: 17,910 |
Re: Debian on Synology RS816 (Armada 385) May 18, 2019 08:44PM |
Admin Registered: 12 years ago Posts: 17,910 |
> root@debian:~# >>
> Filesystem Size Used Avail Use% Mounted on > /dev/root 1.8T 1003M 1.7T 1% / > devtmpfs 501M 0 501M 0% /dev > tmpfs 101M 1.2M 100M 2% /run > tmpfs 5.0M 0 5.0M 0% /run/lock > tmpfs 201M 0 201M 0% /dev/shm > /dev/sda1 88M 28M 54M 35% /boot > tmpfs 501M 0 501M 0% /tmp >>
> Module Size Used by > sg 32768 0 > uio_pdrv_genirq 16384 0 > uio 20480 1 uio_pdrv_genirq >>
Re: Debian on Synology RS816 (Armada 385) May 18, 2019 10:17PM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 18, 2019 10:35PM |
Admin Registered: 12 years ago Posts: 17,910 |
linux-5.1.2-mvebu-tld-1-rj-1
Re: Debian on Synology RS816 (Armada 385) May 18, 2019 10:39PM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 06:28AM |
Registered: 4 years ago Posts: 257 |
setenv ipaddr 192.168.1.250 setenv serverip 192.168.1.2 setenv load_dtb_addr 0x1000000 setenv load_image_addr 0x02000000 setenv load_image 'echo loading zImage from tftpserver ...; tftpboot $load_image_addr zImage' setenv load_dtb 'echo loading DTB from tftpserver ...; tftpboot $load_dtb_addr armada-385-synology-rs816-v12.dtb' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/md0 rootdelay=20 $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_dtb; bootz $load_image_addr - $load_dtb_addr' setenv bootcmd 'run bootcmd_exec; run bootspi'
root@debian:~#
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 1.8T 0 disk |-sda1 8:1 1 18.6G 0 part | `-md0 9:0 0 18.6G 0 raid1 / |-sda2 8:2 1 1.9G 0 part | `-md1 9:1 0 1.9G 0 raid1 [SWAP] `-sda3 8:3 1 1.8T 0 part `-md2 9:2 0 5.4T 0 raid5 /data sdb 8:16 1 1.8T 0 disk |-sdb1 8:17 1 18.6G 0 part | `-md0 9:0 0 18.6G 0 raid1 / |-sdb2 8:18 1 1.9G 0 part | `-md1 9:1 0 1.9G 0 raid1 [SWAP] `-sdb3 8:19 1 1.8T 0 part `-md2 9:2 0 5.4T 0 raid5 /data sdc 8:32 1 1.8T 0 disk |-sdc1 8:33 1 18.6G 0 part | `-md0 9:0 0 18.6G 0 raid1 / |-sdc2 8:34 1 1.9G 0 part | `-md1 9:1 0 1.9G 0 raid1 [SWAP] `-sdc3 8:35 1 1.8T 0 part `-md2 9:2 0 5.4T 0 raid5 /data sdd 8:48 1 1.8T 0 disk |-sdd1 8:49 1 18.6G 0 part | `-md0 9:0 0 18.6G 0 raid1 / |-sdd2 8:50 1 1.9G 0 part | `-md1 9:1 0 1.9G 0 raid1 [SWAP] `-sdd3 8:51 1 1.8T 0 part `-md2 9:2 0 5.4T 0 raid5 /data mtdblock0 31:0 0 4M 0 disk mtdblock1 31:1 0 4M 0 disk
Filesystem Size Used Avail Use% Mounted on /dev/root 19G 806M 17G 5% / devtmpfs 501M 0 501M 0% /dev tmpfs 101M 1.3M 99M 2% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 582M 0 582M 0% /dev/shm /dev/md2 5.4T 89M 5.1T 1% /data tmpfs 501M 0 501M 0% /tmp
Model: ATA ST2000VN004-2E41 (scsi) Disk /dev/sda: 2000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 20.0GB 20.0GB primary ext4 raid 2 20.0GB 22.0GB 2001MB primary raid 3 22.0GB 2000GB 1978GB primary raid Model: ATA ST2000VN004-2E41 (scsi) Disk /dev/sdb: 2000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 20.0GB 20.0GB primary ext4 raid 2 20.0GB 22.0GB 2001MB primary raid 3 22.0GB 2000GB 1978GB primary raid Model: ATA ST2000VN004-2E41 (scsi) Disk /dev/sdc: 2000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 20.0GB 20.0GB primary ext4 raid 2 20.0GB 22.0GB 2001MB primary raid 3 22.0GB 2000GB 1978GB primary raid Model: ATA ST2000VN004-2E41 (scsi) Disk /dev/sdd: 2000GB Sector size (logical/physical): 512B/4096B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 1049kB 20.0GB 20.0GB primary ext4 raid 2 20.0GB 22.0GB 2001MB primary raid 3 22.0GB 2000GB 1978GB primary raid Error: /dev/mtdblock0: unrecognised disk label Model: Unknown (unknown) Disk /dev/mtdblock0: 4194kB Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags: Model: Linux Software RAID Array (md) Disk /dev/md2: 5935GB Sector size (logical/physical): 512B/4096B Partition Table: loop Disk Flags: Number Start End Size File system Flags 1 0.00B 5935GB 5935GB ext4 Model: Linux Software RAID Array (md) Disk /dev/md0: 20.0GB Sector size (logical/physical): 512B/4096B Partition Table: loop Disk Flags: Number Start End Size File system Flags 1 0.00B 20.0GB 20.0GB ext4 Error: /dev/mtdblock1: unrecognised disk label Model: Unknown (unknown) Disk /dev/mtdblock1: 4194kB Sector size (logical/physical): 512B/512B Partition Table: unknown Disk Flags: Model: Linux Software RAID Array (md) Disk /dev/md1: 1999MB Sector size (logical/physical): 512B/4096B Partition Table: loop Disk Flags: Number Start End Size File system Flags 1 0.00B 1999MB 1999MB linux-swap(v1)
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 06:46AM |
Registered: 4 years ago Posts: 257 |
dev: size erasesize name mtd0: 00400000 00001000 "boot" mtd1: 00400000 00001000 "spi-rootfs"
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd1 0x3E0000 0x10000 0x00001000
CASset=max MALLOC_len=5 MPmode=SMP ata_hdd_detect=syno_hdd_detect=39,39,39,39 ata_hdd_enable=syno_hdd_enable=37,37,37,37 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=run bootcmd_exec; run bootspi bootcmd_auto=stage_boot $boot_order bootcmd_exec=echo Booting Debian . . .; run set_bootargs; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; run load_image; run load_dtb; bootz $load_image_addr - $load_dtb_addr 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:1c:24:27 eth1mtu=1500 eth2addr=00:50:43:1c:1c:27 eth2mtu=1500 eth3addr=00:50:43:24:1c:1c eth3mtu=1500 ethact=egiga0 ethaddr=00:50:43:1c:24:27 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 ipaddr=192.168.1.250 kernel_addr_r=2080000 lcd0_enable=0 lcd0_params=640x480-16@60 lcd_panel=0 limit_dram_size=yes load_dtb=echo loading DTB from tftpserver ...; tftpboot $load_dtb_addr armada-385-synology-rs816-v12.dtb load_dtb_addr=0x1000000 load_image=echo loading zImage from tftpserver ...; tftpboot $load_image_addr zImage load_image_addr=0x02000000 load_initrd=echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd load_initrd_addr=0x3000000 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:27:1c:1c 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 serverip=192.168.1.2 set_bootargs=setenv bootargs "console=ttyS0,115200 root=/dev/md0 rootdelay=20 $mtdparts earlyprintk=serial" 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/md0 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_extra_args=HddHotplug=4 sata_remap=0>4:4>0 syno_hdd_powerup_seq=4 syno_hw_version=RS816 syno_net_if_num=2 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 usb_setup=setenv usbActive 1; setenv usbType 3; usb start; vxworks_en=no yuk_ethaddr=00:00:00:EE:51:81
saveenv reset
-rw-r--r-- 1 richard richard 18K May 17 10:50 armada-385-synology-rs816-v12.dtb -rw-r--r-- 1 richard richard 4.7M May 19 14:35 zImage
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 05:30PM |
Admin Registered: 12 years ago Posts: 17,910 |
Quote
Test 6
4 drive raid1, meta-0.9, mbr, ext4, rootfs including boot on /dev/md0 raid modules compiled in.
Result
root@debian:~#
Quote
bodhi
3. So I think the next test should be the HDD raw sector loading test that we will store all 3 kernel files on the 1st HDD. This should be port SATA0. When it is proven to work, this will be my recommendation for new users who want to install Debian on this box.
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 06:00PM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 06:44PM |
Admin Registered: 12 years ago Posts: 17,910 |
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 06:51PM |
Admin Registered: 12 years ago Posts: 17,910 |
-rw-r--r-- 1 root root 3.2M May 18 18:52 initrd.img-5.1.2-mvebu-tld-1
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 08:23PM |
Registered: 4 years ago Posts: 257 |
dd if=zImage of=/dev/sda bs=1M seek=10 dd if=uInitrd of=/dev/sda bs=1M seek=20
Marvell>> ide read 0x4F00 0x800 0x1800 Warning: Please run 'ide reset' before running other ide commands Marvell>> ide reset Reset IDE: Marvell Serial ATA Adapter no device found
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 08:37PM |
Registered: 4 years ago Posts: 257 |
Quote
bodhi
2. Using RAID, we will need to go back to uInitrd solution. Eventhough in your environment, you can run your own custom built kernel to include mdm, it will not work for linux-5.1.2-mvebu-tld-1 to do that.
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 08:41PM |
Registered: 4 years ago Posts: 125 |
Re: Debian on Synology RS816 (Armada 385) May 19, 2019 08:47PM |
Registered: 4 years ago Posts: 257 |
Marvell>> help ide ide - ide - IDE sub-system Usage: ide reset - reset IDE controller ide info - show available IDE devices ide device [dev] - show or set current device ide part [dev] - print partition table of one or all IDE devices ide read addr blk# cnt ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#' to/from memory address `addr'
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 12:48AM |
Admin Registered: 12 years ago Posts: 17,910 |
mw 0xf10a2620 0x251 mw 0xf10a2e20 0x251
ide reset
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 01:22AM |
Admin Registered: 12 years ago Posts: 17,910 |
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 03:21AM |
Registered: 4 years ago Posts: 257 |
Quote
bodhi
It means the HDD is not initialized. Recall the memory pokes that we removed from the bootcmd? Try
mw 0xf10a2620 0x251 mw 0xf10a2e20 0x251ide reset
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 06:36AM |
Admin Registered: 12 years ago Posts: 17,910 |
md.l f1018100 1 md.l f1018140 1
mw.l f1018140 xxxxxx ide reset
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 07:04AM |
Admin Registered: 12 years ago Posts: 17,910 |
md.l f1018100 1
mw.l f1018100 xxxxxx ide reset
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 07:16AM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 07:27AM |
Admin Registered: 12 years ago Posts: 17,910 |
md.l f1018140 1 f1018140: 00040000
00040000
0 0 0 4 0 0 0 0 0010 0000
mw.l f1018140 00040020
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 07:29AM |
Admin Registered: 12 years ago Posts: 17,910 |
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 07:38AM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 07:40AM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 07:52AM |
Registered: 4 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 08:27AM |
Admin Registered: 12 years ago Posts: 17,910 |
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 05:17PM |
Registered: 4 years ago Posts: 257 |
Quote
Cool :) is that GPIO 15?
Re: Debian on Synology RS816 (Armada 385) May 20, 2019 06:23PM |
Admin Registered: 12 years ago Posts: 17,910 |
md.l f1018100 1 Ouput (address:value) is: f1018100: 00000000
0 0 0 0 0 0 0 0 1000 0000 0000 0000
mw.l f1018100 00080000
ide reset