2024.10 U-Boot Kirkwood - Synology DS211 November 18, 2024 09:09PM |
Admin Registered: 13 years ago Posts: 19,102 |
sha256: e671953db45bfb2693f877fbb4da09eaa1c963213074aabb7d42b85905356d6a
uboot.2024.10-tld-1.ds211.kwb uboot.2024.10-tld-1.ds211.environment uboot.2024.10-tld-1.ds211.environment.img
sha256: d110467d3fe0fd2a482f24223b30dfe49da73f4a2f7dd0529f91556e0a656ed9
uboot.2024.10-tld-1.ds211.kwb uboot.2024.10-tld-1.ds211.environment uboot.2024.10-tld-1.ds211.environment.img
dd if=/dev/mtd0 of=mtd0.ds211 conv=sync dd if=/dev/mtd1 of=mtd1.ds211 conv=sync dd if=/dev/mtd2 of=mtd2.ds211 conv=sync dd if=/dev/mtd3 of=mtd3.ds211 conv=sync dd if=/dev/mtd4 of=mtd4.ds211 conv=sync dd if=/dev/mtd5 of=mtd5.ds211 conv=syncAnd copy these files to a persistent storage.
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd1 0x0 0x10000 0x10000
echo "/dev/mtd1 0x0 0x10000 0x10000" > /etc/fw_env.config
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 > current_envs.txtFor most stock OS, there is no fw_printenv. So it's OK if this step fails. Howver, it's important to list the current envs (eg. in serial console) and copy them to a note file (current_envs.txt). This will be used in Step 7.
cd /tmp tar xf uboot.2024.10-tld-1.ds211.bodhi.tar
flashcp -v /tmp/uboot.2024.10-tld-1.ds211.kwb /dev/mtd0Expected output:
Erasing blocks: xxx/xxx (100%) Writing data: 512k/0k (100%) Verifying data: 512k/0k (100%)
flashcp -v uboot.2024.10-tld-1.ds211.environment.img /dev/mtd1Expected output:
Erasing blocks: xxx/xxx (100%) Writing data: 64k/0k (100%) Verifying data: 64k/0k (100%)
fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'For sanity check, list you envs again
fw_printenv
U-Boot 2024.10-tld-1 (Nov 17 2024 ...) Synology DS211
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 20, 2024 09:30PM |
Admin Registered: 13 years ago Posts: 19,102 |
sha256: 819af95eb73cfbf67f683d2423c52086cfa1568b4c781619384f4da9e91a8753
uboot.2024.10-tld-1.ds211.kwb uboot.2024.10-tld-1.ds211.environment uboot.2024.10-tld-1.ds211.environment.img
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 21, 2024 06:18PM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 22, 2024 01:56PM |
Admin Registered: 13 years ago Posts: 19,102 |
sata init sata part
printenv
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 22, 2024 03:45PM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 22, 2024 09:46PM |
Admin Registered: 13 years ago Posts: 19,102 |
sha256: e671953db45bfb2693f877fbb4da09eaa1c963213074aabb7d42b85905356d6a
uboot.2024.10-tld-1.ds211.kwb uboot.2024.10-tld-1.ds211.environment uboot.2024.10-tld-1.ds211.environment.imgOnly the uboot.2024.10-tld-1.ds211.kwb is different from previous version.
dm tree sata init sata part dm tree
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 23, 2024 06:40PM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 25, 2024 10:09PM |
Admin Registered: 13 years ago Posts: 19,102 |
[ 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)I've fixed this problem in mainline u-boot (at least I thought so), but I was using a 4 TB Seagate drive to test with.
Err: Failed to identify SATA device 0
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 26, 2024 03:53AM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 27, 2024 02:03PM |
Admin Registered: 13 years ago Posts: 19,102 |
sha256: 0c4a5153e3a6e153fca7e81cfc26b9c945a86f17fe4b3e6884d051328e56412f uboot.2024.10-tld-1.ds211.bodhi.tar.nov_27
uboot.2024.10-tld-1.ds211.kwb uboot.2024.10-tld-1.ds211.environment.img uboot.2024.10-tld-1.ds211.environment
dm tree sata init sata part dm tree
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 27, 2024 06:45PM |
Registered: 4 weeks ago Posts: 27 |
fsck.ext3: Device or resource busy while trying to open /dev/sda1 Filesystem mounted or opened exclusively by another program? fsck exited with status code 8 failed!
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 28, 2024 01:20AM |
Admin Registered: 13 years ago Posts: 19,102 |
dm tree sata init dm tree sata info sata part ext2ls sata 0:1 /boot setenv devices sata run scan_disk
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 28, 2024 03:46PM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 28, 2024 04:44PM |
Admin Registered: 13 years ago Posts: 19,102 |
> dm tree > sata init > dm tree > > sata info > sata part > ext2ls sata 0:1 /boot > setenv devices sata > run scan_disk >
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 29, 2024 08:37AM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 29, 2024 01:40PM |
Admin Registered: 13 years ago Posts: 19,102 |
setenv devices sata dm tree sata init dm tree sata info sata part ext2ls sata 0:1 / ext2ls sata 0:1 /boot
boot
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 29, 2024 04:30PM |
Registered: 4 weeks ago Posts: 27 |
ext2ls sata 0:1 /Did show some of the folders (but not all), including boot, but when I did
ext2ls sata 0:1 /bootIt didn't list anything. Strange.
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 30, 2024 01:44PM |
Admin Registered: 13 years ago Posts: 19,102 |
setenv devices sata dm tree sata init dm tree sleep 1 # if 1 second does not work, try a longer sleep up to 10 seconds in the next tests sata info sata part ext2ls sata 0:1 / ext2ls sata 0:1 /boot
Re: 2024.10 U-Boot Kirkwood - Synology DS211 November 30, 2024 03:45PM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 01, 2024 02:31PM |
Admin Registered: 13 years ago Posts: 19,102 |
dm tree sata init dm tree sata info sata part ext2ls sata 0:1 / ext2ls sata 0:1 /boot
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 01, 2024 06:17PM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 01, 2024 10:02PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 02, 2024 02:58PM |
Admin Registered: 13 years ago Posts: 19,102 |
sha256: 3d39a2be0fad1fc6a0aa4b709072819c69a67a5e30ed73a66da7810fd3d6199b
uboot.2024.10-tld-1.ds211.kwb uboot.2024.10-tld-1.ds211.environment.img uboot.2024.10-tld-1.ds211.environment
setenv devices sata # this is not necessary, but will make the log less noisy in case you want to boot dm tree sata init dm tree sata info sata part ext2ls sata 0:1 / ext2ls sata 0:1 /boot
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 02, 2024 02:58PM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 02, 2024 03:03PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
Flash drives issues
How to prolong the life of your rootfs USB thumb drive
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 02, 2024 03:05PM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 02, 2024 03:19PM |
Registered: 4 weeks ago Posts: 27 |
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 02, 2024 03:54PM |
Admin Registered: 13 years ago Posts: 19,102 |
S/N: Firmware version: Product model number: Capablity: 0 sectors id[49]: capabilities = 0x0000 id[53]: field valid = 0x0000 id[63]: mwdma = 0x0000 id[64]: pio = 0x0000 id[75]: queue depth = 0x0000 id[76]: sata capablity = 0x0000 id[78]: sata features supported = 0x0000 id[79]: sata features enable = 0x0000 id[80]: major version = 0x0000 id[81]: minor version = 0x0000 id[82]: command set supported 1 = 0x0000 id[83]: command set supported 2 = 0x0000 id[84]: command set extension = 0x0000 id[85]: command set enable 1 = 0x0000 id[86]: command set enable 2 = 0x0000 id[87]: command set default = 0x0000 id[88]: udma = 0x0000 id[93]: hardware reset result = 0x0000
Device 0: Model: Firm: Ser#: Type: Hard Disk Capacity: not available
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 02, 2024 06:53PM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
> 12TB works just fine when rootfs is booted from
> the USB, which makes me think that uboot driver is
> not working well.
Yes.
Re: 2024.10 U-Boot Kirkwood - Synology DS211 December 02, 2024 08:17PM |
Registered: 4 weeks ago Posts: 27 |