Hi Joao,The DNR-326 is also hardware identical (same board)
the same as DNS-320/DNR-322L. Can you possibly build a firmware that can be flashed with DNR-326 webui?
I tried to upload your 1.0.1 and the DNR-326 webui wont take it.I am on firmware 2.0
product_id=1;custom_id=8;model_id=3;sub_id=1;NewVersion=1;signature="DNR-322";
product_id=1;custom_id=8;model_id=2;sub_id=1;NewVersion=1;signature="DNR-322";
On Friday, 8 May 2020 05:58:19 UTC+1, Jackson Chan wrote:Hi Joao,The DNR-326 is also hardware identical (same board)How have you checked that? Do you have good pictures and circuit board eatched labels describing it?
the same as DNS-320/DNR-322L. Can you possibly build a firmware that can be flashed with DNR-326 webui?Yes, it is possible. From the log you sent they seems to be compatible, but if they are not you will brick your box.Do you have a serial adapter soldered in the box? That is the most secure route to take, booting Alt-F from a USB device without flashing it; if all runs OK than it can be flashed.
I tried to upload your 1.0.1 and the DNR-326 webui wont take it.I am on firmware 2.0D-Link has fw 2.7 available. Alt-F has no NVR specific software nor D-Link specific software.
I have downloaded their v2.7 from http://files.dlink.com.au/products/DNR-326/REV_A/Firmware/Firmware_v2.70B06/ and its fw signature says that it is a DNR-322:product_id=1;custom_id=8;model_id=3;sub_id=1;NewVersion=1;signature="DNR-322";while the DNR-322L says:product_id=1;custom_id=8;model_id=2;sub_id=1;NewVersion=1;signature="DNR-322";
I bet it is and would read the MAC# correctly.
IFMAC=$(nanddump -ql 2048 /dev/mtd4 | grep -E '..(:..){5}')
If you can build me a firmware I can test it out. I am still fairly comfortable in playing around with hardware.
Or, where is the hex offset in the firmware where it set the model_id? maybe the easiest way is to hex the model id and I can try to flash it. I dont know how the flash routine check for compatible images but I suspect the firmware can be hex edited to get around it?
From the info you gave me, I have changed the model ID here from 02 to 03 and I can confirm that it is working with my converted DNR-326. It pulls the right MAC address which starts with CC:B2:55 and it mean this is address is from DLINK.
You are right that it is now being recognized as a DNR-322L. I actually want it to be recognized as DNS-320 again(I want to get rid of all the 322/326 stuff that was part of the abandoned projects). Should I just hex edit a Alt-f 1.0 DNS-320 bin to match 02 or 03 model id and repeat this? (But I saw that there were 2 fixes for 1.0 to go to 1.01, maybe something need to be done the other direction?)
Do I have a faulty sensor or it wasnt read correctly? Or do I just have very hot disk (Hitachi HUS724030ALE641) ?
The box just shutdown by itself when it was trying to resync. Now I have powered it back on and saw this. Will it poweroff when overheat? Is there a setting somewhere for this?
I'd guess running rsync caused a temporary rise in the system temperature that exceeded the thresholds set in Services > System > sysctrl > Configure.--
Do I have a faulty sensor or it wasnt read correctly? The box just shutdown by itself when it was trying to resync. Now I have powered it back on and saw this.
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/8036f8a5-4beb-4015-8478-7bf37e16189b%40googlegroups.com.
From the info you gave me, I have changed the model ID here from 02 to 03 and I can confirm that it is working with my converted DNR-326.
A number of years ago, I changed the board from DNS-320 into DNR-326 by cross flashing the firmware. I went from DNS-320, into DNR-322L, then finally into DNR-326
It pulls the right MAC address which starts with CC:B2:55 and it mean this is address is from DLINK.
You are right that it is now being recognized as a DNR-322L. I actually want it to be recognized as DNS-320 again(I want to get rid of all the 322/326 stuff that was part of the abandoned projects). Should I just hex edit a Alt-f 1.0 DNS-320 bin to match 02 or 03 model id and repeat this? (But I saw that there were 2 fixes for 1.0 to go to 1.01, maybe something need to be done the other direction?)
product_id=0;custom_id=8;model_id=7;sub_id=2;NewVersion=0;signature="DNS323D1";
product_id=0;custom_id=8;
model_id=c;
sub_id=1;
NewVersion=1;
signature="DNS320B";
...
Next header at 52908524: dir=/mnt/HD_a4/install file=DNR-322L-nuuo_package
A number of years ago, I changed the board from DNS-320 into DNR-326 by cross flashing the firmware. I went from DNS-320, into DNR-322L, then finally into DNR-326So you don't actually have a DNR-326 box/board, right? You have a DNS-320. Which rev? I guess rev-A1. There are two HW (hardware board) versions, rev-A1 and rev-B1, and their circuit boards are quite different. It happens that the DNS-320L-rev-Ax board is the *same* board as the DNS-320-rev-Bx (apart the amount of memory). They were compared by visual inspection including the matching etched circuit board description.They are so different that fan/temperature/led/power-button/poweron/poweroff activation, etc, are different. They use the same SOC, and that enables one to run *some* apps designed for the other. But that does not means all apps, and some might be crucial.In general, you might very likely brick a box by flashing fw that was not designed for it (circuit board).
A number of years ago, I changed the board from DNS-320 into DNR-326 by cross flashing the firmware. I went from DNS-320, into DNR-322L, then finally into DNR-326So you don't actually have a DNR-326 box/board, right? You have a DNS-320. Which rev? I guess rev-A1. There are two HW (hardware board) versions, rev-A1 and rev-B1, and their circuit boards are quite different. It happens that the DNS-320L-rev-Ax board is the *same* board as the DNS-320-rev-Bx (apart the amount of memory). They were compared by visual inspection including the matching etched circuit board description.They are so different that fan/temperature/led/power-button/poweron/poweroff activation, etc, are different. They use the same SOC, and that enables one to run *some* apps designed for the other. But that does not means all apps, and some might be crucial.In general, you might very likely brick a box by flashing fw that was not designed for it (circuit board).Correct. I have the DNS-320 rev A1.
The DNR-326 and DNR-322 have 256mb ram and the DNS-320revA has 128mb ram. The difference between the DNR-326 and DNR-322L is that the DNR-322L is crippled in software that only allow it to connect to dlink ip camera and DNR-326 support others.
Which one do you want? Do you have a site so I can upload them?
On Thursday, May 14, 2020 at 12:02:40 AM UTC+8, João Cardoso wrote:Which one do you want? Do you have a site so I can upload them?DNR-322L_FIRMWARE_1.50_BETA.zip and DNR322L_FW_V1.10b02.zip sounds good.I dont have a site. Can you put them in some googledrive?
https://drive.google.com/file/d/1cF4O1QVpop-FvVkBpVA6hwcoPgX8lq-k/view?usp=sharing, https://drive.google.com/file/d/1po_Ql04O9biAbaRVu4LbVAgDxqjFbU-b/view?usp=sharing I will delete them in a couple of hours.
I think to remember that initial DNR-322L fw didn't had the 'nuuo_package', and later had a fw extra section (not handled by Alt-F) that creates it, at expenses of the 'image' partition size. On the 320L a 'my-dlink' partition appears at the end (it might contain box-related credentials for the D-Link cloud service). The network MAC is in the initial 2048 bytes of the 'image' partition, and moving/resizing partitions might overwrite it.
https://drive.google.com/file/d/1cF4O1QVpop-FvVkBpVA6hwcoPgX8lq-k/view?usp=sharing, https://drive.google.com/file/d/1po_Ql04O9biAbaRVu4LbVAgDxqjFbU-b/view?usp=sharing I will delete them in a couple of hours.Thanks I have downloaded it.
I think to remember that initial DNR-322L fw didn't had the 'nuuo_package', and later had a fw extra section (not handled by Alt-F) that creates it, at expenses of the 'image' partition size. On the 320L a 'my-dlink' partition appears at the end (it might contain box-related credentials for the D-Link cloud service). The network MAC is in the initial 2048 bytes of the 'image' partition, and moving/resizing partitions might overwrite it.I remembered in the dnr-322L firmware there is a user space bin (i cannot remember the filename but it was provided by dlink) that can be used to re-write the mac address into the correct place, that's what I did after cross flashing from DNS-320 into DNR-322L before.
Is marvell-cesa working on the DNS-320 with Alt-f 1.0?
On Thursday, 14 May 2020 05:29:12 UTC+1, Jackson Chan wrote:https://drive.google.com/file/d/1cF4O1QVpop-FvVkBpVA6hwcoPgX8lq-k/view?usp=sharing, https://drive.google.com/file/d/1po_Ql04O9biAbaRVu4LbVAgDxqjFbU-b/view?usp=sharing I will delete them in a couple of hours.Thanks I have downloaded it.RemovedI think to remember that initial DNR-322L fw didn't had the 'nuuo_package', and later had a fw extra section (not handled by Alt-F) that creates it, at expenses of the 'image' partition size. On the 320L a 'my-dlink' partition appears at the end (it might contain box-related credentials for the D-Link cloud service). The network MAC is in the initial 2048 bytes of the 'image' partition, and moving/resizing partitions might overwrite it.I remembered in the dnr-322L firmware there is a user space bin (i cannot remember the filename but it was provided by dlink) that can be used to re-write the mac address into the correct place, that's what I did after cross flashing from DNS-320 into DNR-322L before.That's not difficult to do, just use 'nanddump' to dump the initial 2048 bytes of mtd4 (mini-firmware) into a file, then 'sed' it to replace the MAC pattern, 'flash_erase' the first 2048 bytes (hmmm, better use the eraseblock size), and 'nandwrite' the modified copy to mtd4. I had to do it once as I accidentally erased mtd4. At init time, in /etc/init.d/rcS, the MAC is read using:# MAC is stored in /dev/mtd4, configure eth0IFMAC=$(nanddump -ql 2048 /dev/mtd4 | grep -E '..(:..){5}')if test -n "$IFMAC"; thenifconfig eth0 hw ether $IFMACfiAre you a linux experienced user? With hardware knowledge?
But mtd4 also contains a recovery system, so to preserve it is advisable to have a backup of the whole mtd4.Under certain circumstances, the u-boot boot loader loads and runs a kernel and initrd from mtd4. That minimum system presents the user with a simple webUI able to re-flash the box. That happened once to me, but I was not able to successfully load and run that recovery system directlty from within u-boot. Knowing more about this process could be helpful and an interesting project.Is marvell-cesa working on the DNS-320 with Alt-f 1.0?I suppose so, I don't own one myself. It's not working on the DNS-323 (and possibly also not on the DNS-321, which has the same SOC architecture). But openssl is not using it, so no hw accelerated ssh/sshd/hhtps is available; only device mapper is using it (cryptsetup). And marvell-cesa only supports some "old" ciphers and hashes.
On the other side, 'kexec' is working on the DNS-323/321 and not on other boxes. And I know why (L2 cache not disabled) but I can't fix nor find a fix for it.