Re: Debian on Synology RS816 (Armada 385) September 27, 2019 08:34PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) September 27, 2019 08:35PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) September 27, 2019 10:02PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) September 28, 2019 12:31AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) September 28, 2019 02:58PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) September 28, 2019 05:34PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) September 28, 2019 05:47PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) September 28, 2019 06:34PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) September 28, 2019 08:22PM |
Registered: 5 years ago Posts: 257 |
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
setenv ipaddr 192.168.1.19 setenv serverip 192.168.1.20 setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;' setenv load_initrd_addr 0x3000000 setenv load_image_addr 0x02000000 setenv load_image 'echo loading uImage from tftpserver ...; tftpboot $load_image_addr uImage' setenv load_initrd 'echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' setenv bootcmd_exec 'echo Booting Debian . . .; run usb_setup; 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 'run bootcmd_exec; run bootspi' boot
dd if=/dev/mtd0 of=mtd0.stock.rs816 bs=4096k conv=sync dd if=/dev/mtd1 of=mtd1.stock.rs816 bs=4096k conv=syncKeep these somewhere safe!
setenv ipaddr 192.168.1.19 setenv serverip 192.168.1.20 setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;' setenv mtdparts 'mtdparts=spi0.0:896k(u-boot),64k(dtb),7104k(kernel),-(env)' setenv load_initrd_addr 0x3000000 setenv load_image_addr 0x02000000 setenv load_image 'echo loading uImage from tftpserver ...; tftpboot $load_image_addr uImage' setenv load_initrd 'echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' setenv bootcmd_exec 'echo Booting Debian . . .; run usb_setup; 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 'run bootcmd_exec; run bootspi' boot
cat /proc/mtd dev: size erasesize name mtd0: 000e0000 00001000 "u-boot" mtd1: 00010000 00001000 "dtb" mtd2: 006f0000 00001000 "kernel" mtd3: 00020000 00001000 "env"
cd /boot dd if=uImage of=rs816.uImage.mtd2.kwb bs=7104k conv=sync flashcp -v rs816.uImage.mtd2.kwb /dev/mtd2
setenv ipaddr 192.168.1.19 setenv serverip 192.168.1.20 setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;' setenv load_initrd_addr 0x3000000 setenv load_image_addr 0x02000000 setenv mtdparts 'mtdparts=spi0.0:896k(u-boot),64k(dtb),7104k(kernel),-(env)' setenv boot_config_spi 'setenv image_addr_spi 0x0F0000; setenv image_size_spi 0x006f0000; sf probe 0 50000000' setenv load_image_spi 'echo loading uImage from flash ...; sf read $load_image_addr $image_addr_spi $image_size_spi' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"' 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 -' setenv bootcmd 'run bootcmd_exec; run bootspi' saveenv reset
Re: Debian on Synology RS816 (Armada 385) September 29, 2019 03:14AM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) September 29, 2019 06:05PM |
Registered: 5 years ago Posts: 257 |
dd if=/dev/zero of=/dev/sdb bs=1MiB count=50
mkfs.ext4 -L ROOT /dev/sdb1
mount /dev/sdb1 /mnt tar -C /mnt -xjvf Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2 sync
mount -t proc proc /mnt/proc mount --rbind /sys /mnt/sys mount --rbind /dev /mnt/dev chroot /mnt /bin/bash vi /etc/fstab (and anything else you want to do)
cd /boot update-initramfs -u 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 mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.2.9-mvebu-tld-1 -d initrd.img-5.2.9-mvebu-tld-1 uInitrd dd if=uImage of=/dev/sdb bs=1MiB seek=10 dd if=uInitrd of=/dev/sdb bs=1MiB seek=20 exit poweroff
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=ROOT 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_initrd; bootm $load_image_addr $load_initrd_addr' setenv bootcmd 'scsi init; run bootcmd_exec; run bootspi' saveenv reset
Re: Debian on Synology RS816 (Armada 385) September 29, 2019 09:34PM |
Registered: 5 years ago Posts: 257 |
parted /dev/sdb (parted) mklabel msdos (parted) mkpart primary 0% 30GiB (parted) mkpart primary 30Gib 32Gib (parted) set 1 raid on (parted) set 2 raid on
mdadm --create /dev/md0 --level=1 --meta=0.9 --raid-devices=4 /dev/sd[b-e]1 mdadm --create /dev/md1 --level=1 --meta=0.9 --raid-devices=4 /dev/sd[b-e]23.c Create filesystem the RS816 is fine with ext3 or ext4 and mount to /mnt
mkfs.ext4 /dev/md0 mkswap /dev/md1 mount /dev/md0 /mnt swapon /dev/md13.d Extract rootfs to new raid
tar -C /mnt -xjvf Debian-5.1.11-mvebu-tld-1-rootfs-bodhi.tar.bz2 sync3.e chroot into environment and setup your system (mdadm.conf fstab etc)
mount -t proc proc /mnt/proc mount --rbind /sys /mnt/sys mount --rbind /dev /mnt/dev chroot /mnt /bin/bash mdadm --detail --scan >> /etc/mdadm/mdadm.conf vi /etc/fstab (and anything else you want to setup)3.f Update boot images uImage
cd /boot update-initramfs -u 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 exit poweroff
setenv ipaddr 192.168.1.19 setenv serverip 192.168.1.1 setenv mtdparts 'mtdparts=spi0.0:896k(u-boot),64k(dtb),7104k(kernel),-(env)' setenv load_image_addr 0x02000000 setenv load_image 'echo loading uImage from tftpserver ...; tftpboot $load_image_addr uImage' 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; bootm $load_image_addr -' setenv bootcmd 'run bootcmd_exec; run bootspi' boot4.b Check mtd's look right
cat /proc/mtd dev: size erasesize name mtd0: 000e0000 00001000 "u-boot" mtd1: 00010000 00001000 "dtb" mtd2: 006f0000 00001000 "kernel" mtd3: 00020000 00001000 "env"4.c Create & flash images
cd /boot cp -a /boot/zImage-5.2.9-mvebu-tld-1 zImage.fdt cat /boot/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 dd if=uImage of=rs816.uImage.mtd2.kwb bs=7104k conv=sync flashcp -v rs816.uImage.mtd2.kwb /dev/mtd2 poweroff
setenv mtdparts 'mtdparts=spi0.0:896k(u-boot),64k(dtb),7104k(kernel),-(env)' setenv boot_config_spi 'setenv image_addr_spi 0x0F0000; setenv image_size_spi 0x006f0000; sf probe 0 50000000' setenv load_image_spi 'echo loading uImage from flash ...; sf read $load_image_addr $image_addr_spi $image_size_spi' 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 boot_config_spi; run load_image_spi; bootm $load_image_addr -' setenv bootcmd 'run bootcmd_exec; run bootspi' saveenv reset
Re: Debian on Synology RS816 (Armada 385) September 29, 2019 11:43PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) September 30, 2019 01:42AM |
Admin Registered: 13 years ago Posts: 19,107 |
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
setenv ipaddr 192.168.1.19 setenv serverip 192.168.1.20 setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;' setenv load_initrd_addr 0x3000000 setenv load_image_addr 0x02000000 setenv load_image 'echo loading uImage from tftpserver ...; tftpboot $load_image_addr uImage' setenv load_initrd 'echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=20 $mtdparts earlyprintk=serial"' setenv bootcmd_exec 'echo Booting Debian . . .; run usb_setup; 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 'run bootcmd_exec; run bootspi' boot
dd if=/dev/mtd0 of=mtd0.stock.rs816 bs=4096k conv=sync dd if=/dev/mtd1 of=mtd1.stock.rs816 bs=4096k conv=syncKeep these somewhere safe!
setenv ipaddr 192.168.1.19 setenv serverip 192.168.1.20 setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;' setenv mtdparts 'mtdparts=spi0.0:896k(u-boot),64k(dtb),7104k(kernel),-(env)' setenv load_initrd_addr 0x3000000 setenv load_image_addr 0x02000000 setenv load_image 'echo loading uImage from tftpserver ...; tftpboot $load_image_addr uImage' setenv load_initrd 'echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=20 $mtdparts earlyprintk=serial"' setenv bootcmd_exec 'echo Booting Debian . . .; run usb_setup; 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 'run bootcmd_exec; run bootspi' boot
cat /proc/mtd dev: size erasesize name mtd0: 000e0000 00001000 "u-boot" mtd1: 00010000 00001000 "dtb" mtd2: 006f0000 00001000 "kernel" mtd3: 00020000 00001000 "env"
cd /boot dd if=uImage of=rs816.uImage.mtd2.kwb bs=7104k conv=sync flashcp -v rs816.uImage.mtd2.kwb /dev/mtd2
setenv ipaddr 192.168.1.19 setenv serverip 192.168.1.20 setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;' setenv load_initrd_addr 0x3000000 setenv load_image_addr 0x02000000 setenv mtdparts 'mtdparts=spi0.0:896k(u-boot),64k(dtb),7104k(kernel),-(env)' setenv boot_config_spi 'setenv image_addr_spi 0x0F0000; setenv image_size_spi 0x006f0000; sf probe 0 50000000' setenv load_image_spi 'echo loading uImage from flash ...; sf read $load_image_addr $image_addr_spi $image_size_spi' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=20 $mtdparts earlyprintk=serial"' 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 -' setenv bootcmd 'run bootcmd_exec; run bootspi' saveenv reset
Re: Debian on Synology RS816 (Armada 385) September 30, 2019 02:36AM |
Registered: 5 years ago Posts: 257 |
setenv load_image_addr 0x02000000It didn't show up on my test run because its the default anyway.
setenv ipaddr 192.168.1.19 setenv serverip 192.168.1.20 setenv load_initrd_addr 0x3000000
Re: Debian on Synology RS816 (Armada 385) September 30, 2019 07:03AM |
Registered: 5 years ago Posts: 257 |
setenv ipaddr 192.168.1.19 setenv serverip 192.168.1.20 setenv mtdparts 'mtdparts=spi0.0:4m(boot),-(spi-rootfs)' setenv usb_setup 'setenv usbActive 1; setenv usbType 3; usb start;' setenv load_initrd_addr 0x3000000 setenv load_image_addr 0x02000000 setenv load_image 'echo loading uImage from tftpserver ...; tftpboot $load_image_addr uImage' setenv load_initrd 'echo loading uInitrd from tftpserver ...; tftpboot $load_initrd_addr uInitrd' setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootwait $mtdparts earlyprintk=serial"' setenv bootcmd_exec 'echo Booting Debian . . .; run usb_setup; 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 'run bootcmd_exec; run bootspi' boot
cat /proc/mtd dev: size erasesize name mtd0: 00400000 00001000 "boot" mtd1: 00400000 00001000 "spi-rootfs"
flashcp -v mtd0.stock.rs816.kwb /dev/mtd0 flashcp -v mtd1.stock.rs816.kwb /dev/mtd1
setenv mtdparts 'mtdparts=spi0.0:4m(boot),-(spi-rootfs)' setenv bootcmd 'mw 0xf10a2620 0x251;mw 0xf10a2e20 0x251;usb xhciinit; run bootspi' saveenv reset
Re: Debian on Synology RS816 (Armada 385) September 30, 2019 05:21PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) September 30, 2019 05:47PM |
Registered: 5 years ago Posts: 257 |
c. Serial console must be connected during installation. (baud 115200)
Re: Debian on Synology RS816 (Armada 385) September 30, 2019 06:27PM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) September 30, 2019 06:34PM |
Admin Registered: 13 years ago Posts: 19,107 |
Quote
setenv load_image_addr 0x02000000
It didn't show up on my test run because its the default anyway.
Extra boot env's added that are not needed / used are
setenv ipaddr 192.168.1.19
setenv serverip 192.168.1.20
setenv load_initrd_addr 0x3000000
Re: Debian on Synology RS816 (Armada 385) September 30, 2019 08:17PM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) October 01, 2019 12:13AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) October 01, 2019 03:07AM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) October 01, 2019 03:21AM |
Admin Registered: 13 years ago Posts: 19,107 |
setenv set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/md0 rootwait $mtdparts earlyprintk=serial"'
Re: Debian on Synology RS816 (Armada 385) October 01, 2019 04:13AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) October 01, 2019 04:35AM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) October 01, 2019 05:35AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) October 01, 2019 06:27AM |
Registered: 5 years ago Posts: 257 |
Re: Debian on Synology RS816 (Armada 385) October 01, 2019 08:09AM |
Admin Registered: 13 years ago Posts: 19,107 |
Re: Debian on Synology RS816 (Armada 385) October 01, 2019 02:47PM |
Registered: 5 years ago Posts: 257 |