Hi Pontus! Attaching my uboot_new.bin, hope it helps you!by egor.tio - uBoot
I'm only worried about future kernel updates - should I ignore those packages while updating?by egor.tio - uBoot
It finally works! Many thanks to you Bodhi,for you support and patience! here is the last bootlog: U-Boot 2017.07-tld-2-rc1-gead3e3302f-dirty (Sep 13 2021 - 13:54:56 -0700) NETGEAR READYNAS DUO V2 SoC: Kirkwood 88F6282_A1 I2C: ready DRAM: 256 MiB WARNING: Caches not enabled G762 Fan controller: Successfully initialized. Enabled USB 2.0 Power. Enabled USB 3.0 Power. Running HDDby egor.tio - uBoot
Stuck on step 5, the output is not as expected: Erasing 128 Kibyte @ 40af5c00000064 -- 4 % complete Tried to repeat same command - same output. No badblocks were found in dmesg output.by egor.tio - uBoot
So, how to flash the current state to NAND, please?by egor.tio - uBoot
Bodhi, many thanks - it worked like a charm!by egor.tio - uBoot
System seems to be running as before, noticed only that system fan became much louder. Is it controlled by CPU or I can try to find software way?by egor.tio - uBoot
Here is the output: root@readynas:/home/master# mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=124156k,nr_inodes=31039,mode=755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) tmpfs on /run type tmpfs (rw,nosuid,noexec,relaby egor.tio - uBoot
Hooray! I was able to boot debian from HDD! Boot log is here: Sending boot image... 0 % [......................................................................] 99 % [....................................] U-Boot 2017.07-tld-2-rc1-gead3e3302f-dirty (Sep 13 2021 - 13:54:56 -0700) NETGEAR READYNAS DUO V2 SoC: Kirkwood 88F6282_A1 I2C: ready DRAM: 256 MiB WARNING: Caches noby egor.tio - uBoot
I've tried with file copied and with symlink to folder, like you suggested root@readynas:/boot/boot# ls -lat total 7458 drwxr-xr-x 2 root root 1024 Sep 21 11:00 . lrwxrwxrwx 1 root root 27 Sep 21 11:00 dts -> /boot/dtbs/4.9.0-16-marvell -rw-r--r-- 1 root root 5532102 Sep 21 08:30 uInitrd -rw-r--r-- 1 root root 2068944 Sep 21 08:29 uImage drwxr-xr-x 5 root root 1024 Sepby egor.tio - uBoot
We have progress! Now it stops on new point: Broadcast message from root@blackbox (somewhere) (Tue Sep 21 11:23:15 2021): Warning communications lost with UPS NAS / Sending boot image... 0 % [......................................................................] 99 % [....................................]by egor.tio - uBoot
Ok, so in /boot/boot I should have link to dts folder and 2 files - uImage and uInitrd?by egor.tio - uBoot
root@readynas:/home/master# mount sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) udev on /dev type devtmpfs (rw,nosuid,relatime,size=124156k,nr_inodes=31039,mode =755) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmby egor.tio - uBoot
First attempt is a fail: Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 99 % [....................................] U-Boot 2017.07-tld-2-rc1-gead3e3302f-dirty (Sep 13 2021 - 13:54:56 -0700) NETGEAR READYNAS DUO V2 SoC: Kirkwood 88F6282_A1 I2C: ready DRAM: 256 MiB WARNby egor.tio - uBoot
Yes, it sounds great! List by labels command failed, adding output from blkid root@readynas:~# blkid /dev/sdb1: UUID="910dff86-7170-4285-9c4b-d8fc946fae39" TYPE="ext4" PARTLABEL="primary" PARTUUID="ab5fbc39-407d-46e8-a992-8b15694ac102" /dev/sda1: UUID="eaeef350-03ec-46dc-96c6-ccde5b52a0b9" TYPE="ext2" PARTUUID="3778079f-01&qby egor.tio - uBoot
Here is the complete llog Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [................................................by egor.tio - uBoot
Bodhi, thank you for your help! When I've installed Debian on NAS, I was following one article and since all went smooth almost on the first try, I wasn't really worried if the suggested way is the optimal one. NAS was working, until this issue :-) So, please, advise on how to properly place boot parts to not wear out NAND and be able to recover in worst case.by egor.tio - uBoot
I was able to boot, here is complete boot log: Sending boot message. Please reboot the target...| Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [...........................by egor.tio - uBoot
Btw, since I've installed Debian on NAS I was "apt update, upgrade" from time to time. And new Marvell Kernels were installed and written to NAND. Latest now is 4.9.0-16, as you can see from boot log. Is it a bad practice and a possible cause of my issue?by egor.tio - uBoot
Yes, I can boot with that command U-Boot 2017.07-tld-2-rc1-gead3e3302f-dirty (Sep 13 2021 - 13:54:56 -0700) NETGEAR READYNAS DUO V2 SoC: Kirkwood 88F6282_A1 I2C: ready DRAM: 256 MiB WARNING: Caches not enabled G762 Fan controller: Successfully initialized. Enabled USB 2.0 Power. Enabled USB 3.0 Power. Running HDD staggered spin-up... Enabling HDD-0 Power in 1s. Enabling HDD-1by egor.tio - uBoot
Here is the output from kwboot + printenv U-Boot 2017.07-tld-2-rc1-gead3e3302f-dirty (Sep 13 2021 - 13:54:56 -0700) NETGEAR READYNAS DUO V2 SoC: Kirkwood 88F6282_A1 I2C: ready DRAM: 256 MiB WARNING: Caches not enabled G762 Fan controller: Successfully initialized. Enabled USB 2.0 Power. Enabled USB 3.0 Power. Running HDD staggered spin-up... Enabling HDD-0 Power in 1s. Enabliby egor.tio - uBoot
Hi Bodhi, Have 2 questions on your advises: 1. is this command correct setenv mtdparts 'mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-bootenv),0x600000@0x200000(uImage),0x1000000@0x800000(minirootfs),0x6800000@0x1800000(jffs2)' as after issuing it in printenv I see this: ... mtdparts=mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-bootenv),0x600000@0x200by egor.tio - uBoot
Ok, will wait. Thank you!by egor.tio - uBoot
So I should boot from kwboot, stop autoboot, then setenv mainlineLinux yes setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x20by egor.tio - uBoot
here is the output from lsblk: root@debian:~# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 3.8G 0 disk `-sda1 8:1 1 3.8G 0 part / mtdblock0 31:0 0 1M 0 disk mtdblock1 31:1 0 512K 0 disk mtdblock2 31:2 0 512K 0 disk mtdblock3 31:3 0 512K 0 disk mtdblock4 31:4 0 10M 0 disk mtdblock5 31:5 0 10M 0 disk mtdbloby egor.tio - uBoot
Removed hard drives just to be sure and successfully booted in to your custom Debian: READYNAS_DUO_V2> usb start starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... Use USB retry period from the environment: 15 second(s) 1 Storage Device(s) found READYNAS_DUO_V2> usb storage Device 0: Vendor: JetFlby egor.tio - uBoot
If boot from USB will succeed, won't I loose data existing on hard disks?by egor.tio - uBoot
Ok, made rootfs USB from your instrucations. Now trying to boot from it, here is the log from kwboot and printenv output: root@blackbox:/# kwboot -t -B 115200 /dev/ttyUSB0 -b /home/downloads/uboot_new.bin -p Sending boot message. Please reboot the target...| Sending boot image... 0 % [......................................................................] 1 % [.........................by egor.tio - uBoot
Please forgive me for making wrong steps, I'm trying to follow your advises how I can understand them :-) If booting from an USB drive is important step, please advise how to prep it, as uInitrd I found is from debian installer and after booting with kwboot and new uboot.bin you gave, I get Debian Install wizard starting. For now I'm able to login in my Debian installed on a hard diskby egor.tio - uBoot
here is the boot log from kwboot to stopping autoboot: Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] --- cut here --- 99 % [....................................] U-Boot 2017.07-tld-2-rc1-gead3e3302f-dirty (Sep 13 2021 - 13:54:56 -0700) NETGEAR READYNAS DUO V2 SoC: Kirkwoby egor.tio - uBoot