Re: Debian on Synology DS211 November 19, 2024 05:57PM |
Admin Registered: 14 years ago Posts: 19,612 |
Re: Debian on Synology DS211 November 20, 2024 03:02PM |
Admin Registered: 14 years ago Posts: 19,612 |
Re: Debian on Synology DS211 November 20, 2024 04:01PM |
Registered: 6 months ago Posts: 53 |
[ 638.325500] ata2: link is slow to respond, please be patient (ready=0) [ 642.385518] ata2: SRST failed (errno=-16) [ 648.365503] ata2: link is slow to respond, please be patient (ready=0) [ 649.835513] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 649.844839] ata2.00: supports DRM functions and may not be fully accessible [ 649.852573] ata2.00: ATA-10: ST12000NM0127, G006, max UDMA/133 [ 649.860574] ata2.00: 23437770752 sectors, multi 0: LBA48 NCQ (depth 31/32) [ 649.902322] ata2.00: Features: Trust [ 649.911162] ata2.00: supports DRM functions and may not be fully accessible [ 649.922670] ata2.00: configured for UDMA/133 [ 649.929053] scsi 1:0:0:0: Direct-Access ATA ST12000NM0127 G006 PQ: 0 ANSI: 5 [ 649.950875] sd 1:0:0:0: [sdb] 23437770752 512-byte logical blocks: (12.0 TB/10.9 TiB) [ 649.965619] sd 1:0:0:0: Attached scsi generic sg1 type 0 [ 649.973779] sd 1:0:0:0: [sdb] 4096-byte physical blocks [ 649.986057] sd 1:0:0:0: [sdb] Write Protect is off [ 649.991618] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00 [ 649.991700] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 650.024126] sd 1:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes [ 650.148809] sdb: sdb1 [ 650.152362] sd 1:0:0:0: [sdb] Attached SCSI disk [ 665.305516] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 665.317090] ata1.00: ATA-8: APPLE HDD HTS541010A9E632, JA0AB5N0, max UDMA/133 [ 665.324981] ata1.00: 1953525168 sectors, multi 16: LBA48 NCQ (depth 31/32) [ 665.338560] ata1.00: configured for UDMA/133 [ 665.344002] scsi 0:0:0:0: Direct-Access ATA APPLE HDD HTS541 B5N0 PQ: 0 ANSI: 5 [ 665.366373] sd 0:0:0:0: [sdc] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB) [ 665.374792] sd 0:0:0:0: [sdc] 4096-byte physical blocks [ 665.381177] sd 0:0:0:0: Attached scsi generic sg2 type 0 [ 665.401146] sd 0:0:0:0: [sdc] Write Protect is off [ 665.413484] sd 0:0:0:0: [sdc] Mode Sense: 00 3a 00 00 [ 665.413619] sd 0:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 665.435708] sd 0:0:0:0: [sdc] Preferred minimum I/O size 4096 bytes [ 665.535090] sdc: sdc1 [ 665.538693] sd 0:0:0:0: [sdc] Attached SCSI disk
Re: Debian on Synology DS211 November 20, 2024 05:11PM |
Admin Registered: 14 years ago Posts: 19,612 |
> [ 638.325500] ata2: link is slow to respond, > please be patient (ready=0) > [ 642.385518] ata2: SRST failed (errno=-16) > [ 648.365503] ata2: link is slow to respond, > please be patient (ready=0) > [ 649.835513] ata2: SATA link up 3.0 Gbps > (SStatus 123 SControl F300) > [ 649.844839] ata2.00: supports DRM functions and > may not be fully accessible > [ 649.852573] ata2.00: ATA-10: ST12000NM0127, > G006, max UDMA/133 > [ 649.860574] ata2.00: 23437770752 sectors, multi > 0: LBA48 NCQ (depth 31/32) > [ 649.902322] ata2.00: Features: Trust > [ 649.911162] ata2.00: supports DRM functions and > may not be fully accessible > [ 649.922670] ata2.00: configured for UDMA/133 > [ 649.929053] scsi 1:0:0:0: Direct-Access ATA > ST12000NM0127 G006 PQ: 0 ANSI: 5 > [ 649.950875] sd 1:0:0:0: [sdb] 23437770752 > 512-byte logical blocks: (12.0 TB/10.9 TiB) > [ 649.965619] sd 1:0:0:0: Attached scsi generic > sg1 type 0 > [ 649.973779] sd 1:0:0:0: [sdb] 4096-byte > physical blocks > [ 649.986057] sd 1:0:0:0: [sdb] Write Protect is > off > [ 649.991618] sd 1:0:0:0: [sdb] Mode Sense: 00 3a > 00 00 > [ 649.991700] sd 1:0:0:0: [sdb] Write cache: > enabled, read cache: enabled, doesn't support DPO > or FUA > [ 650.024126] sd 1:0:0:0: [sdb] Preferred minimum > I/O size 4096 bytes > [ 650.148809] sdb: sdb1 > [ 650.152362] sd 1:0:0:0: [sdb] Attached SCSI > disk > [ 665.305516] ata1: SATA link up 3.0 Gbps > (SStatus 123 SControl F300) > [ 665.317090] ata1.00: ATA-8: APPLE HDD > HTS541010A9E632, JA0AB5N0, max UDMA/133 > [ 665.324981] ata1.00: 1953525168 sectors, multi > 16: LBA48 NCQ (depth 31/32) > [ 665.338560] ata1.00: configured for UDMA/133 > [ 665.344002] scsi 0:0:0:0: Direct-Access ATA > APPLE HDD HTS541 B5N0 PQ: 0 ANSI: 5 > [ 665.366373] sd 0:0:0:0: [sdc] 1953525168 > 512-byte logical blocks: (1.00 TB/932 GiB) > [ 665.374792] sd 0:0:0:0: [sdc] 4096-byte > physical blocks > [ 665.381177] sd 0:0:0:0: Attached scsi generic > sg2 type 0 > [ 665.401146] sd 0:0:0:0: [sdc] Write Protect is > off > [ 665.413484] sd 0:0:0:0: [sdc] Mode Sense: 00 3a > 00 00 > [ 665.413619] sd 0:0:0:0: [sdc] Write cache: > enabled, read cache: enabled, doesn't support DPO > or FUA > [ 665.435708] sd 0:0:0:0: [sdc] Preferred minimum > I/O size 4096 bytes > [ 665.535090] sdc: sdc1 > [ 665.538693] sd 0:0:0:0: [sdc] Attached SCSI > disk >>
Re: Debian on Synology DS211 November 20, 2024 10:28PM |
Admin Registered: 14 years ago Posts: 19,612 |
Re: Debian on Synology DS211 April 21, 2025 06:45PM |
Registered: 6 months ago Posts: 53 |
U-Boot 2024.10-tld-1 (Dec 02 2024 - 12:37:41 -0800) Synology DS211 SoC: Kirkwood 88F6282_A0 DRAM: 256 MiB Core: 17 devices, 12 uclasses, devicetree: separate Loading Environment from SPIFlash... SF: Detected m25p32 with page size 256 Bytes, erase size 64 KiB, tB OK
root@debian:~# fw_printenv baudrate=115200 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset bootcmd_exec=if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb console=ttyS0,115200 device=0:1 devices=usb sata disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-ds211.dtb ethaddr=EA:37:F4:FB:17:D5 if_netconsole=ping $serverip ipaddr=10.0.0.27 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_initrd_addr=0x2100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage load_uimage_addr=0x800000 mtdparts=mtdparts=spi0.0:512K(u-boot),64K@768K(u-boot-env),3M@1M(data) ncip=10.0.0.195 preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb reset; sleep 1; usb reset"; setenv scan_sata "sata init"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=10.0.0.195 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootfstype=ext4 rootdelay=10 $mtdparts $custom_paras start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin serial,nc; setenv stdout serial,nc; setenv stderr serial,nc stderr=serial,nc stdin=serial,nc stdout=serial,nc uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=echo Initializing devices...; setenv init_usb "usb reset; sleep 1; usb reset"; setenv init_sata sata init; setenv init_mmc mmc rescan; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done; uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi root@debian:~#
Re: Debian on Synology DS211 April 21, 2025 09:56PM |
Admin Registered: 14 years ago Posts: 19,612 |
> U-Boot 2024.10-tld-1 (Dec 02 2024 - 12:37:41 > -0800) > Synology DS211 > > SoC: Kirkwood 88F6282_A0 > DRAM: 256 MiB > Core: 17 devices, 12 uclasses, devicetree: > separate > Loading Environment from SPIFlash... SF: Detected > m25p32 with page size 256 Bytes, erase size 64 > KiB, tB > OK >
setenv reset_serial 'echo Reset console to serial...; setenv stderr serial; setenv stdin serial; setenv stdout serial' run reset_serial
Re: Debian on Synology DS211 April 22, 2025 07:19PM |
Registered: 6 months ago Posts: 53 |
Re: Debian on Synology DS211 April 22, 2025 07:44PM |
Admin Registered: 14 years ago Posts: 19,612 |
Quote
This u-boot currently can boot USB rootfs. When booting with USB rootfs, both bays can host large disks (e.g. 3TB or 12TB). Booting SATA rootfs is limited to the upper bay, and capacity <= 2TB disk).
Re: Debian on Synology DS211 April 22, 2025 08:16PM |
Registered: 6 months ago Posts: 53 |
ivan@strelac ~ $ sudo kwboot -t -B 115200 /dev/ttyUSB0 -b /home/ivan/tools/os/linux/ds211/backup/u-boot-DS211_533ddr3x8cs0size512_flash.bin -p kwboot version 2025.04 Detected kwbimage v0 with SPI boot signature Patching image boot signature to UART Sending boot message. Please reboot the target.../ Sending boot image header (512 bytes)... 25 % [.... ] Done Sending boot image data (469728 bytes)... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 7 % [......................................................................] 9 % [......................................................................] 11 % [......................................................................] 13 % [......................................................................] 15 % [......................................................................] 17 % [......................................................................] 19 % [......................................................................] 21 % [......................................................................] 22 % [......................................................................] 24 % [......................................................................] 26 % [......................................................................] 28 % [......................................................................] 30 % [......................................................................] 32 % [......................................................................] 34 % [......................................................................] 36 % [......................................................................] 38 % [......................................................................] 40 % [......................................................................] 41 % [......................................................................] 43 % [......................................................................] 45 % [......................................................................] 47 % [......................................................................] 49 % [......................................................................] 51 % [......................................................................] 53 % [......................................................................] 55 % [......................................................................] 57 % [......................................................................] 59 % [......................................................................] 61 % [......................................................................] 62 % [......................................................................] 64 % [......................................................................] 66 % [......................................................................] 68 % [......................................................................] 70 % [......................................................................] 72 % [......................................................................] 74 % [......................................................................] 76 % [......................................................................] 78 % [......................................................................] 80 % [......................................................................] 82 % [......................................................................] 83 % [......................................................................] 85 % [......................................................................] 87 % [......................................................................] 89 % [......................................................................] 91 % [......................................................................] 93 % [......................................................................] 95 % [......................................................................] 97 % [......................................................................] 99 % [.............................. ] Done Finishing transfer [Type Ctrl-\ + c to quit] __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** LOADER ** ** MARVELL BOARD: Synology Disk Station LE U-Boot 1.1.4 (Dec 6 2018 - 00:23:15) Marvell version: 3.5.3 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 0068B3D4 Soc: 88F6282 A0 CPU running @ 1600Mhz L2 running @ 533Mhz SysClock = 533Mhz , TClock = 200Mhz DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7 DRAM CS[0] base 0x00000000 size 512MB DRAM Total size 512MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done Using default environment [4096kB@f8000000] Flash: 4 MB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. PEX 1: interface detected no Link. Synology Model: DS211 Fan Status: Good Net: egiga0 [PRIME], egiga1 Hit any key to stop autoboot: 0 ## Booting image at f8080000 ... Image Name: Linux-2.6.32.12 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1553596 Bytes = 1.5 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... Bad Data CRC Marvell>> setenv ipaddr 10.0.0.27; setenv serverip 10.0.0.195; setenv netmask 255.255.255.0; setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' Marvell>> mw 0x800000 0 1; tftpboot 0x800000 os/linux/ds211/uImage; tftpboot 0x2100000 os/linux/ds211/uInitrd; printenv; bootm 0x800000 0x2100000 Using egiga0 device TFTP from server 10.0.0.195; our IP address is 10.0.0.27 Filename 'os/linux/ds211/uImage'. Load address: 0x800000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ########################################## done Bytes transferred = 5871096 (5995f8 hex) Using egiga0 device TFTP from server 10.0.0.195; our IP address is 10.0.0.27 Filename 'os/linux/ds211/uInitrd'. Load address: 0x2100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############################ done Bytes transferred = 5797335 (5875d7 hex) bootcmd=bootm F8080000 F8280000 baudrate=115200 loads_echo=0 rootpath=/mnt/ARM_FS/ run_diag=yes stdin=serial stdout=serial stderr=serial console=console=ttyS0,115200 mtdparts=spi_flash:0x80000@0(uboot)ro,0x300000@0x100000(root) mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes MALLOC_len=1 ethprime=egiga0 netbsd_en=no vxworks_en=no bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; lcd0_enable=0 lcd0_params=640x480-16@60 bootdelay=3 disaMvPnp=no ethaddr=00:50:43:3c:3b:5d ethmtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host pcieTune=no pcieTune1=no ethact=egiga0 bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial filesize=5875d7 fileaddr=2100000 netmask=255.255.255.0 ipaddr=10.0.0.27 serverip=10.0.0.195 Environment size: 1144/4092 bytes ## Booting image at 00800000 ... Image Name: Linux-6.11.6-kirkwood-tld-1 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5871032 Bytes = 5.6 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-6.11.6-kirkwood-tld-1 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5797271 Bytes = 5.5 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Error: invalid dtb and unrecognized/unsupported machine ID r1=0x00000b3c, 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: Debian on Synology DS211 April 22, 2025 10:34PM |
Admin Registered: 14 years ago Posts: 19,612 |
cd /media/sdb1/boot cp -a zImage-6.11.6-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-ds112-v10j.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.11.6-kirkwood-tld-1 -d zImage.fdt uImage syncNote that you should still have uImage.orig in this /boot directory, which you will need to switch to when you reboot with the new u-boot already flashed.
ivan@strelac ~ $ sudo kwboot -t -B 115200 /dev/ttyUSB0 -b /home/ivan/tools/os/linux/ds211/backup/u-boot-DS211_533ddr3x8cs0size512_flash.bin -p- interrupt countdown
setenv mtdparts 'mtdparts=spi0.0:512K(u-boot),64K@768K(u-boot-env),3M@1M(data)'and also adjust the bootargs to include $mtdparts
setenv ipaddr 10.0.0.27; setenv serverip 10.0.0.195; setenv netmask 255.255.255.0; setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs $mtdparts rootdelay=10 earlyprintk=serial'And then continue booting like you did with tftp.
Quote
cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
cat /sys/class/mtd/mtd0/offset /sys/class/mtd/mtd1/offset
0
786432
fw_printenv
Quote
6. Flash default u-boot envs image
Be extra careful with the next command, you should see output that look like below. If there is error, then do not reboot, post your problem here so we can help.
Write the envs image
flashcp -v uboot.2024.10-tld-1.ds211.environment.img /dev/mtd1
Expected output:
Erasing blocks: xxx/xxx (100%)
Writing data: 64k/0k (100%)
Verifying data: 64k/0k (100%)
Re: Debian on Synology DS211 April 23, 2025 05:30PM |
Registered: 6 months ago Posts: 53 |
Quote
bodhi
cat dts/kirkwood-ds112-v10j.dtb >> zImage.fdt
Starting kernel ... Error: invalid dtb and unrecognized/unsupported machine ID r1=0x00000b3c, 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: Debian on Synology DS211 April 23, 2025 06:17PM |
Admin Registered: 14 years ago Posts: 19,612 |
>Quote
bodhi
> cat dts/kirkwood-ds112-v10j.dtb >> zImage.fdt
>
cd /media/sdb1/boot cp -a zImage-6.11.6-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-ds112-v10j.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.11.6-kirkwood-tld-1 -d zImage.fdt uImage
> Starting kernel ... > > > Error: invalid dtb and unrecognized/unsupported > machine ID
Re: Debian on Synology DS211 April 23, 2025 08:49PM |
Registered: 6 months ago Posts: 53 |
Re: Debian on Synology DS211 April 23, 2025 09:36PM |
Admin Registered: 14 years ago Posts: 19,612 |
Re: Debian on Synology DS211 April 23, 2025 10:16PM |
Admin Registered: 14 years ago Posts: 19,612 |
Quote
cat dts/kirkwood-ds112-v10j.dtb >> zImage.fdt
Re: Debian on Synology DS211 April 24, 2025 04:48AM |
Registered: 6 months ago Posts: 53 |
Re: Debian on Synology DS211 April 24, 2025 08:24PM |
Registered: 6 months ago Posts: 53 |
root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 00080000 00010000 "u-boot" mtd1: 00010000 00010000 "u-boot-env" mtd2: 00300000 00010000 "data" root@debian:~# cat /sys/class/mtd/mtd0/offset /sys/class/mtd/mtd1/offset 0 786432 root@debian:~# fw_printenv Cannot read environment, using default Cannot read default environment from file root@debian:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 root@debian:~#
DS211> printenv baudrate=115200 bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset bootcmd_exec=if run load_uimage; then; if run load_initrd; then if run load_dtb; then bootm $load_uimagi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb console=ttyS0,115200 device=0:1 devices=usb sata disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-ds211.dtb ethaddr=2a:ef:31:d6:85:db fdtcontroladdr=fb6d7b0 if_netconsole=ping $serverip load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd load_initrd_addr=0x2100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage load_uimage_addr=0x800000 mtdparts=mtdparts=spi0.0:512K(u-boot),64K@768K(u-boot-env),3M@1M(data) preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3; do; sleep 1; if run if_netconsole; then setenv nc_i scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb reset; sleep 1; usb reset"; see set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_paras start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin serial,nc; setenv stdout seri; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize uenv_init_devices=echo Initializing devices...; setenv init_usb "usb reset; sleep 1; usb reset"; setenv; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disk; uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type $disk_number:1 $uei ver=U-Boot 2024.10-tld-1 (Dec 02 2024 - 12:37:41 -0800)\ Synology DS211 Environment size: 2888/65532 bytes DS211>
Re: Debian on Synology DS211 April 24, 2025 10:24PM |
Admin Registered: 14 years ago Posts: 19,612 |
> root@debian:~# cat /etc/fw_env.config > # MTD device name Device offset Env. size Flash > sector size Number of sectors > /dev/mtd0 0xc0000 0x20000 0x20000
Quote
1.a U-Boot envs config
It should be defined as followed in your /etc/fw_env.config
cat /etc/fw_env.config
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd1 0x0 0x10000 0x10000
If you don't have /etc/fw_env.config file in your system then go ahead and create this file:
echo "/dev/mtd1 0x0 0x10000 0x10000" > /etc/fw_env.config
Re: Debian on Synology DS211 April 25, 2025 10:59PM |
Admin Registered: 14 years ago Posts: 19,612 |
Quote
Booted to it, then run "apt-get update; apt-get upgrade", and then followed the procedure on the same topic to install Latest released kernel: linux-6.13.8-kirkwood-tld-1-bodhi.tar.bz2 (25 Mar 2025).
Then booted to it. Is this the right process the update and upgrade? Do I just run "apt-get update; apt-get upgrade" and keep an eye for "update-initramfs"? And when you release a new kernel then just follow the procedure to upgrade to it?
dateIf the system time is OK, execute each command separately. You'd want to see the apt-get update completes successfully.
apt-get update apt-get upgradeThen check the initramfs.
ls -larth /boot
Re: Debian on Synology DS211 May 03, 2025 05:53AM |
Registered: 6 months ago Posts: 53 |
dm tree sata init sata part dm treeIs here attached as DS210j-console-log-with-uboot-sata-commands.03.05.2025.txt
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-6.13.8-kirkwood-tld-1 -d initrd.img-6.13.8-kirkwood-tld-1 uInitrdto generate new uInitrd.
Re: Debian on Synology DS211 May 03, 2025 01:58PM |
Admin Registered: 14 years ago Posts: 19,612 |
Re: Debian on Synology DS211 May 03, 2025 02:41PM |
Admin Registered: 14 years ago Posts: 19,612 |