is now displayed and is not going away even after an hour.
Output of ps is
PID USER COMMAND
1 root init
2 root [kthreadd]
3 root [ksoftirqd/0]
5 root [kworker/0:0H]
7 root [khelper]
8 root [writeback]
9 root [bioset]
10 root [kblockd]
11 root [ata_sff]
12 root [khubd]
13 root [md]
14 root [rpciod]
16 root [kswapd0]
17 root [fsnotify_mark]
18 root [nfsiod]
19 root [crypto]
32 root [scsi_eh_0]
33 root [scsi_eh_1]
34 root [kworker/u2:1]
36 root [kworker/u2:3]
43 root [deferwq]
103 root [loop0]
262 root [kworker/0:1H]
352 root [kworker/0:2]
401 root [jbd2/sda3-8]
403 root [ext4-dio-unwrit]
409 root [bioset]
410 root [md0_raid1]
493 root [jbd2/md0-8]
498 root [ext4-dio-unwrit]
579 root udhcpc -R -b -p /var/run/udhcpc.eth0.pid -i eth0 -r 192.168.1.92
750 root inetd
809 root [jbd2/sda4-8]
810 root [ext4-dio-unwrit]
848 root [jbd2/sdb3-8]
849 root [ext4-dio-unwrit]
1471 root [jbd2/sdb4-8]
1472 root [ext4-dio-unwrit]
2356 root /bin/sh --
3304 root [kworker/0:1]
3969 root dropbear -i
3970 root -sh
3982 root ps
I had a similar problem on my DNS-323 but followed the instructions in the post "Upgrading RC3 to RC4 is stuck, not sure how to safely kill the operation"
and that worked perfectly. However, in that post Joao specifically has this warning about that method (using dns323-fw and dd):
"This procedure applies to the DNS-321/323 ONLY and IS NOT suitable for the DNS-320/320L/325"
Any suggestions on what I should do?
I followed the instructions for upgrade, i.e.
- rebooted
- saved settings
- used Flash It to apply upgrade
The warningDon't poweroff or reboot the box until instructed to do it!
If you suspect that something went wrong,
you can try to upgrade again after stopping all running processes.
is now displayed and is not going away even after an hour.
Alt-F-0.1RC4.1, kernel 3.10.32Alt-F-0.1RC4.1, initrd
I had a similar problem on my DNS-323 but followed the instructions in the post "Upgrading RC3 to RC4 is stuck, not sure how to safely kill the operation"
and that worked perfectly. However, in that post Joao specifically has this warning about that method (using dns323-fw and dd):
"This procedure applies to the DNS-321/323 ONLY and IS NOT suitable for the DNS-320/320L/325"
Thanks for the quick response.
"Did the "kernel/rootfs/sqimage: erasing... flashing... verifiyng.. messages ever appeared?"
No, just the Firmware Updater page with the red text "Don't poweroff or reboot..."What browser was you using at the time?
Latest Firefox on Fedora 21What does the commandsdd if=/dev/mtd1 ibs=32 skip=1 count=1 2> /dev/null | grep -o 'Alt-F.*'
Alt-F-0.1RC4.1, kernel 3.10.32
dd if=/dev/mtd2 ibs=32 skip=1 count=1 2> /dev/null | grep -o 'Alt-F.*'Alt-F-0.1RC4, initrd
sqimage_size=14860288;
I'm DEFINITELY not going to either reboot or use the instructions for the DNS-323. I've already "bricked" one of my DNS-323's with this exact problem and rebooted (did not find your excellent instructions at the time.
I will try flashing again from the same browser session.
On Sunday, February 15, 2015 at 5:02:15 PM UTC, Chris Archer wrote:
Thanks for the quick response.
"Did the "kernel/rootfs/sqimage: erasing... flashing... verifiyng.. messages ever appeared?"
No, just the Firmware Updater page with the red text "Don't poweroff or reboot..."What browser was you using at the time?
Latest Firefox on Fedora 21What does the commandsdd if=/dev/mtd1 ibs=32 skip=1 count=1 2> /dev/null | grep -o 'Alt-F.*'
Alt-F-0.1RC4.1, kernel 3.10.32
So the flash started...
dd if=/dev/mtd2 ibs=32 skip=1 count=1 2> /dev/null | grep -o 'Alt-F.*'Alt-F-0.1RC4, initrd
but didn't finish.You might also use the following commanddd if=/dev/mtd3 ibs=32 skip=0 count=1 2> /dev/nullwhich shows for RC4.1
sqimage_size=14860288;
Those signatures occur at the flash partition start.You might want to watch the System Log and Kernel Log (errors will most likely appear in the kernel log) to watch for NAND/mtd/mtdblock errors.
I'm DEFINITELY not going to either reboot or use the instructions for the DNS-323. I've already "bricked" one of my DNS-323's with this exact problem and rebooted (did not find your excellent instructions at the time.
I will try flashing again from the same browser session.
Better use another browser; at least clear its cache first. The flashing does not change the current running system, you can continue using it.As the kernel flash at least started (the dd command shows RC4.1 in the kernel) the "Kernel Erasing... Flashing... Verifying" message should have appeared in the browser. Or it might be a buffering/flushing script issue if the message stopped in its middle.
Still no luck.
dd if=/dev/mtd3 ibs=32 skip=0 count=1 2> /dev/null
sqimage_size=15110144;
Tried using Google Chrome (after clearing cache) with same end result. No other messages/output other than Firmware Updater page with "Don't poweroff or reboot..."
Sorry for the stupid question, but how do I
watch the System Log and Kernel Log (errors will most likely appear in the kernel log) to watch for NAND/mtd/mtdblock errors
BTW, running the update punts my ssh login, and although I can currently view the web interface the shares on the DNS-325 are unavailable.
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
When I tried the Kernel Log, I got:
Syslog is disabled, enable at 'System Services'
In System Services, all services are stopped.
news, cron, sysctrl, quota and syslog are enabled.
Chris.
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
Found it, and as mentioned in an earlier reply this repeats in the Kernel Log:EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
[root@DNS-325]# rcsyslog startStarting syslogd: OK.Starting klogd: OK.
[root@DNS-325]# dmesg |tailmd1: unknown partition tablemv643xx_eth_port mv643xx_eth_port.0 eth0: link downkjournald starting. Commit interval 5 secondsEXT3-fs (md1): using internal journalEXT3-fs (md1): mounted filesystem with ordered data modemv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabledusbcore: registered new interface driver usblpEXT4-fs (sdb3): mounted filesystem with ordered data mode. Opts: (null)mv643xx_eth_port mv643xx_eth_port.0 eth0: link downmv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[root@DNS-325]# cat /proc/mtddev: size erasesize namemtd0: 00100000 00020000 "u-boot"mtd1: 00500000 00020000 "uImage"mtd2: 00500000 00020000 "ramdisk"mtd3: 06600000 00020000 "image"mtd4: 00a00000 00020000 "mini firmware"mtd5: 00500000 00020000 "config"
[root@DNS-325]# nandtest /dev/mtd1 -kECC corrections: 0ECC failures : 0Bad blocks : 1BBT blocks : 0Bad block at 0x000e0000004e0000: checking...Finished pass 1 successfully
Thanks for the update.
[root@DOT]# dmesg | tail
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs (sda3): error count: 9311
EXT4-fs (sda3): initial error at 1423986727: __ext4_new_inode:741
EXT4-fs (sda3): last error at 1423986837: __ext4_new_inode:741
EXT4-fs (sdb3): error count: 9311
EXT4-fs (sdb3): initial error at 1423986837: __ext4_new_inode:741
EXT4-fs (sdb3): last error at 1423986942: __ext4_new_inode:741
Remained the same after each test. BTW, I ran 'badblocks /dev/sdb' and it came up empty. Running 'badblocks /dev/sda' but I suspect it won't show anything either.
[root@DNS-325]# cat /tmp/board DNS-325-A1A2
[root@DNS-325]# echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/ffp/bin:/ffp/sbin
[root@DNS-325]# which flash_erase nandwrite nandtest
/usr/sbin/flash_erase
/usr/sbin/nandwrite
/usr/sbin/nandtest
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/ffp/bin:/ffp/sbin
# change dir to /tmp
[root@DNS-325]# cd /tmp
# get the fw file. This example and the next commands are for the DNS-325 and for RC4.1, adapt where necessary
[root@DNS-325]# wget http://downloads.sourceforge.net/project/alt-f/Releases/0.1RC4.1/Alt-F-0.1RC4.1-DNS-325-rev-A1A2.bin
# notice the fw size in the 5th column
[root@DNS-325]# ls -l Alt-F-0.1RC4.1-DNS-325-rev-A1A2.bin
-rwx------ 1 root root 19721700 Feb 16 18:15 Alt-F-0.1RC4.1-DNS-325-rev-A1A2.bin
# extract the fw components
[root@DNS-325]# dns323-fw -s Alt-F-0.1RC4.1-DNS-325-rev-A1A2.bin product_id=0;custom_id=8;model_id=5;sub_id=2;NewVersion=0;signature="DNS-325";
sig_num=3 header=128 Next_offset=0ko=128 kl=1803556 kr=0 kc=3429078352 next=1803684io=1803684 il=3055680 ir=0 ic=3844963483 next=4859364so=4859364 sl=14862336 sr=0 sc=1273201637 next=19721700do=19721700 dl=0 dr=0 dc=0 next=19721700filesz=19721700 compsz=19721700
signature is "DNS-325"kernel saved, checksum is OK.initramfs saved, checksum is OK.sqimage saved, checksum is OK.defaults saved, checksum is OK.
# notice the files size and names in the 5th and 9th column
[root@DNS-325]# ls -l kernel initramfs sqimage
-rwx------ 1 root root 3055680 Feb 16 20:22 initramfs
-rwx------ 1 root root 1803556 Feb 16 20:22 kernel
-rwx------ 1 root root 14862336 Feb 16 20:22 sqimage
# free some space
[root@DNS-325]# rm Alt-F-0.1RC4.1-DNS-325-rev-A1A2.bin
# kernel is mtd1, its filename is named kernel, its size is 1803556
fdev=mtd1
fname=kernel
fsz=1803556
# now lets erase, flash, read and verify the kernel
[root@DNS-325]# flash_erase /dev/$fdev 0 0; echo status1=$?
Erasing 128 Kibyte @ c0000 -- 15 % complete flash_erase: Skipping bad block at 000e0000Erasing 128 Kibyte @ 4e0000 -- 100 % complete
status1=0
[root@DNS-325]# nandwrite -p /dev/$fdev $fname; echo status2=$?
Writing data to block 0 at offset 0x0Writing data to block 1 at offset 0x20000Writing data to block 2 at offset 0x40000Writing data to block 3 at offset 0x60000Writing data to block 4 at offset 0x80000Writing data to block 5 at offset 0xa0000Writing data to block 6 at offset 0xc0000Writing data to block 7 at offset 0xe0000Bad block at e0000, 1 block(s) from e0000 will be skippedWriting data to block 8 at offset 0x100000Writing data to block 9 at offset 0x120000Writing data to block 10 at offset 0x140000Writing data to block 11 at offset 0x160000Writing data to block 12 at offset 0x180000Writing data to block 13 at offset 0x1a0000Writing data to block 14 at offset 0x1c0000status2=0
[root@DNS-325]# nanddump -l $fsz -f flash-dump /dev/$fdev; echo status3=$?
ECC failed: 0ECC corrected: 0Number of bad blocks: 1Number of bbt blocks: 0Block size 131072, page size 2048, OOB size 64Dumping data starting at 0x00000000 and ending at 0x001b8524...status3=0
[root@DNS-325]# dd if=flash-dump bs=$fsz count=1 | cmp $fname; echo status4=$?
1+0 records in1+0 records out1803556 bytes (1.7MB) copied, 0.098394 seconds, 17.5MB/sstatus4=0
[root@DNS-325]# rm flash-dump
# rootfs is mtd2, its filename is named initramfs, its size is 3055680
fdev=mtd2fname=initramfsfsz=3055680
flash_erase /dev/$fdev 0 0; echo status1=$?
nandwrite -p /dev/$fdev $fname; echo status2=$?
nanddump -l $fsz -f flash-dump /dev/$fdev; echo status3=$?
dd if=flash-dump bs=$fsz count=1 | cmp $fname; echo status4=$?
rm flash-dump
# sqimage is mtd3, its filename is named sqimage, its size is 14862336
fdev=mtd3fname=sqimagefsz=14862336
flash_erase /dev/$fdev 0 0; echo status1=$?nandwrite -p /dev/$fdev $fname; echo status2=$?nanddump -l $fsz -f flash-dump /dev/$fdev; echo status3=$?dd if=flash-dump bs=$fsz count=1 | cmp $fname; echo status4=$?rm flash-dump
wget http://downloads.sourceforge.net/project/alt-f/Releases/0.1RC4.1/Alt-F-0.1RC4.1-DNS-325-rev-A1A2.bin
rm Alt-F-0.1RC4.1-DNS-325-rev-A1A2.bin to free up space
Step C
fdev=mtd1
fname=kernel
fsz=1803556
flash_erase /dev/$fdev 0 0; echo status1=$?
Erasing 128 Kibyte @ 4e0000 -- 100 % complete
status1=0
On Monday, February 16, 2015 at 5:06:44 PM UTC, Chris Archer wrote:Thanks for the update.
[root@DOT]# dmesg | tail
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs (sda3): error count: 9311
EXT4-fs (sda3): initial error at 1423986727: __ext4_new_inode:741
EXT4-fs (sda3): last error at 1423986837: __ext4_new_inode:741
EXT4-fs (sdb3): error count: 9311
EXT4-fs (sdb3): initial error at 1423986837: __ext4_new_inode:741
EXT4-fs (sdb3): last error at 1423986942: __ext4_new_inode:741
There are errors on the ext4 filesystem at sda3 and sdb3. That is a different issue that you have to correct latter by using fsck.
Remained the same after each test. BTW, I ran 'badblocks /dev/sdb' and it came up empty. Running 'badblocks /dev/sda' but I suspect it won't show anything either.
badblocks diagnose problems at the hardware level, the errors are at the filesystem level -- they can or not be related. But again, that is a separate issue. And... where did you get 'badblocks' from? ffp?
It worked!
Rebooted and status shows sdb3 is being checked, and Firmware Update page shows:
The box is currently running Alt-F 0.1RC4.1 with kernel 3.10.32, and flashed with Alt-F-0.1RC4.1, initrd.
THANK YOU, THANK YOU, a million times THANK YOU for the patient, detailed explanation.
It is HUGELY appreciated by me, and I hope it's useful to others.
In case I did not say it before, THANK YOU!
Chris.
ls -l /Alt-F/usr/www/cgi-bin/f*
ls: /Alt-F/usr/www/cgi-bin/f*: No such file or directory
My web UI also looks "strange" compared to the old web UI. Font is bigger. I'll attach a screen shot. This has been true on all flashed boxes, both the DNS-323 and DNS-325
I (or someone else) now only need to create a Wiki page on this subject, essentially copying/using my instructions on "How to flash the firmware for the DNS-320/320L/325 from the command line", "How the test the flash memory for DNS-320/320L/325 the from the command line", and "How to flash the firmware for the DNS-321/323 from the command line".
I can volunteer to do that. What Wiki software, where is it hosted?
On Monday, February 16, 2015 at 5:06:44 PM UTC, Chris Archer wrote:Thanks for the update.
[root@DOT]# dmesg | tail
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs error (device sdb3): __ext4_new_inode:741: comm cp: reserved inode found cleared - inode=1
EXT4-fs (sda3): error count: 9311
EXT4-fs (sda3): initial error at 1423986727: __ext4_new_inode:741
EXT4-fs (sda3): last error at 1423986837: __ext4_new_inode:741
EXT4-fs (sdb3): error count: 9311
EXT4-fs (sdb3): initial error at 1423986837: __ext4_new_inode:741
EXT4-fs (sdb3): last error at 1423986942: __ext4_new_inode:741
There are errors on the ext4 filesystem at sda3 and sdb3. That is a different issue that you have to correct latter by using fsck.
Remained the same after each test. BTW, I ran 'badblocks /dev/sdb' and it came up empty. Running 'badblocks /dev/sda' but I suspect it won't show anything either.
badblocks diagnose problems at the hardware level, the errors are at the filesystem level -- they can or not be related. But again, that is a separate issue. And... where did you get 'badblocks' from? ffp?
In the following sections the status=0 line shown that the command had success; any value other than 0 means that an error occurred and you should not reboot the box.Any messages other than the ones shown might also mean that an error has occurred.You might also run the 'dmesg|tail' command to see if any kernel error occurred during the last executed command.