Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
beb2e25
DNR-322L rev A: first build (#180)
claude Nov 18, 2026
3ab6cd1
check-initrd-address: knows the DNR-322L
claude Nov 18, 2026
09fb95d
Merge branch 'fix/firmware-note-i18n' into feature/dnr322l
claude Nov 18, 2026
7b69431
Merge branch 'fix/firmware-note-i18n' into feature/dnr322l
claude Nov 18, 2026
f628e83
Initramfs address: what is in use at 0x800000 is the kernel itself
claude Nov 19, 2026
948d51a
Merge remote-tracking branch 'origin/main' into feature/dnr322l
claude Nov 19, 2026
6993676
Merge main (0.3.0-beta.14 released): the DNR-322L moves to 0.3.0-beta.15
claude Nov 19, 2026
53a1980
DNR-322L: test the 70 MB partition and the 32 MiB volume (review)
claude Nov 20, 2026
4d91b37
Merge remote-tracking branch 'origin/main' into feature/dnr322l
claude Nov 20, 2026
256d479
Merge remote-tracking branch 'origin/main' into feature/dnr322l
claude Nov 20, 2026
4f2f91e
Merge main into feature/dnr322l; DNR-322L moves to 0.3.0-beta.16
claude Nov 21, 2026
eca6c05
DEVICES: the DNR-322L's magnifier button is the USB button (as in Alt-F)
claude Nov 21, 2026
f48b843
DEVICES: the DNR-322L rev A has no USB button (D-Link manual)
claude Nov 21, 2026
0a5987a
DNR-322L: installation and rescue mode blink the power LED
claude Nov 21, 2026
65de823
DEVICES: two DNR-322L versions – this build is for rev A only
claude Nov 21, 2026
656f26d
Merge main (#197) into feature/dnr322l
claude Nov 21, 2026
145ab6d
Merge main (#199–#204) into feature/dnr322l; the DNR-322L as a devtes…
claude Nov 24, 2026
6a32247
check-initrd-address: read the model also from a -devtest file name
claude Nov 24, 2026
5852816
Merge main (#205) into feature/dnr322l
claude Nov 24, 2026
741484e
Merge main (#206) into feature/dnr322l
claude Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pre-releases for test devices only.

- **Style "Glass".** A third look next to Classic dark and light: *System → Appearance → Style*. The same pages, elements, sizes and corners – only the material changes: translucent, blurred panes over a soft aurora background, in a slate dark and a misty light theme (neither black nor white), with all eight accent colours (raised where needed so small accent text stays readable). It covers the classic and the desktop view and the login page; users with web access can pick their own style. Web apps follow it through the app SDK (`data-style="glass"` on `<html>`, a glass variant of `/_shareos/theme.css`). UCI: `shareos.ui.style` (`classic` | `glass`).
- *Run first-time setup again* moved from the top of *System → General* to its own panel **SETUP WIZARD** under *System → Power & Reset*, with a note that it only shows the wizard again and deletes nothing.
- **DNR-322L rev A: first build, as a devtest image** ([#180](https://github.com/UniqueDroid/ShareOS/issues/180)) – `ShareOS-<ver>-DNR-322L-rev-Ax-devtest.bin` and `.sysupgrade.tar`, from the build of the pull request, not in the release. The board of the DNS-320 rev A sold as a video recorder: own device tree (flash layout read from a DNR-322L A2: system partition 70 MB, the NUUO partition after it is left alone), own D-Link signature, the installer accepts the 70 MB partition and gives the system 32 MB of it instead of 48. As a devtest image root keeps the password `shareos` (no claiming) and the box offers its device info at `http://<box>/deviceinfo`. **Not tried on hardware yet** – a first test should have a serial console at hand, see `docs/DEVICES.md`. The front has no USB LED, so installation and rescue mode blink the power LED.
- **Devtest images for new models.** A model that is being added is built as `ShareOS-<version>-<model>-devtest.*` until it is tested (status `devtest` in `post-image.sh`, `BOARD_DEVTEST` in `board.sh`): root keeps the password `shareos` instead of being claimed with a button – the buttons of a new model are not known yet – and the overview and the messages say so. The release build refuses such files, so they only come from the build of a pull request. See [docs/DEVICES.md](docs/DEVICES.md#devtest-image-the-first-image-for-a-new-model).
- **Device info** (`http://<box>/deviceinfo`, admins, on every model; not in the menu): everything needed to add a model – flash partitions, CPU, memory, device tree, LEDs, sensors, buttons, GPIOs, serial ports, I2C, USB, network, the U-Boot environment (read only) and the kernel log – as a text file to download or copy. MAC addresses and serial numbers are masked for public issues unless asked for. The same report in the rescue system: `shareos-deviceinfo`.

Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Tags/releases are created by Jan; prepare the release text and the `CHANGELOG.md` section.
- **Every release updates the docs** – see `docs/RELEASE.md` (CHANGELOG, README status/features, TESTEN/TESTING, ENTWICKLUNG/DEVELOPMENT).
- Photos for the docs: strip EXIF/GPS and blur serial-number stickers before committing.
- Tests: `tests/` (host: test-update, test-net, test-flash-bin, test-boards, test-rescue, test-raid-wait, test-smart, test-bootlog, test-power, test-notify, test-zabbix-items, test-printer, test-ups, test-ddns, test-mcu-temp, test-mcu-alarm, test-file-jobs, test-ca and test-signature (mbedtls/uci of the firmware through qemu-arm-static, see build.yml), check-acl.py, check-i18n.py; ARM emulator with sudo: run-stack-qemu --check, test-users, test-storage, test-cloud-paperless, test-apps, test-firstinstall, test-transmission, test-media, test-dlna, test-vpn, test-tailscale, test-autobrr, test-syncthing, test-zabbix, test-dnsfilter – these nine need `make sysapps-pack`, test-snapshots, test-sysperms). UI work: `tests/mock-ubus.py`; app SDK in Chromium: `node tests/sdk-storage.js`, desktop view: `node tests/ui-desktop.js` (Playwright). ucode plugin: `tests/check-ucode-order.py` (no hoisting in ucode). Static analysis: `tests/static-analysis.sh` (ShellCheck, ESLint, unused code; `--report` with warnings and complexity) must pass; CodeQL runs on GitHub (`codeql.yml`).
- Tests: `tests/` (host: test-update, test-net, test-flash-bin, test-boards, test-install-ubi, test-rescue, test-raid-wait, test-smart, test-bootlog, test-power, test-notify, test-zabbix-items, test-printer, test-ups, test-ddns, test-mcu-temp, test-mcu-alarm, test-file-jobs, test-ca and test-signature (mbedtls/uci of the firmware through qemu-arm-static, see build.yml), check-acl.py, check-i18n.py; ARM emulator with sudo: run-stack-qemu --check, test-users, test-storage, test-cloud-paperless, test-apps, test-firstinstall, test-transmission, test-media, test-dlna, test-vpn, test-tailscale, test-autobrr, test-syncthing, test-zabbix, test-dnsfilter – these nine need `make sysapps-pack`, test-snapshots, test-sysperms). UI work: `tests/mock-ubus.py`; app SDK in Chromium: `node tests/sdk-storage.js`, desktop view: `node tests/ui-desktop.js` (Playwright). ucode plugin: `tests/check-ucode-order.py` (no hoisting in ucode). Static analysis: `tests/static-analysis.sh` (ShellCheck, ESLint, unused code; `--report` with warnings and complexity) must pass; CodeQL runs on GitHub (`codeql.yml`).
- Never `rm -rf` a chroot that still has mounts below it (it would delete the host's /dev).
- Apps live in the separate repository UniqueDroid/ShareOS-Apps.
- **Everything in the repository and on GitHub is English** – code, comments, UI texts, docs (except the German counterparts in docs/), issue/PR/review replies, release texts, CHANGELOG. Name UI elements by their English names (*Services*, ASLEEP – never *Dienste*, SCHLÄFT).
Expand Down
62 changes: 62 additions & 0 deletions board/dlink/dns320l/dts/kirkwood-dnr322l.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Device Tree file for D-Link DNR-322L rev Ax
*
* The board of the DNS-320 rev A ("2 Bay NAS REV-A1": same SoC, LEDs,
* buttons, fan, temperature through the second serial port) sold as a
* network video recorder. What differs is the flash layout: the system
* partition "image" is 70 MB instead of 102 MB, a partition for the NUUO
* software follows it, and the last partitions are where the DNS-320L has
* them. After Alt-F's kirkwood-dnr322l-a.dts; the layout was read from a
* DNR-322L A2 (/proc/mtd under Alt-F 1.0.1, issue #180).
* The memory size from U-Boot (ATAGs) wins anyway – that box reports 256 MB.
*/

#include <arm/marvell/kirkwood-dns320.dts>

/ {
model = "D-Link DNR-322L-rev-Ax NAS";
compatible = "dlink,dnr-322l-a", "dlink,dns-320-a1", "dlink,dns-320",
"dlink,dns-kirkwood", "marvell,kirkwood-88f6281",
"marvell,kirkwood";

/* "memory", not "memory@0": the node of kirkwood-dns320.dts has that
* name, so this replaces it instead of adding a second one */
memory {
device_type = "memory";
reg = <0x00000000 0x10000000>; /* 256 MB */
};
};

&nand {
/* the layout of kirkwood-dnskw.dtsi from "image" on is not this box's */
/delete-node/ partition@b00000;
/delete-node/ partition@7100000;
/delete-node/ partition@7b00000;

partition@b00000 {
label = "image";
reg = <0x0b00000 0x4600000>;
};

partition@6f00000 {
label = "mini firmware";
reg = <0x6f00000 0xa00000>;
};

partition@7900000 {
label = "config";
reg = <0x7900000 0x500000>;
};

partition@7e00000 {
label = "my-dlink";
reg = <0x7e00000 0x200000>;
};

/* last, so that the numbers are those of Alt-F (mtd7) */
partition@5100000 {
label = "nuuo package";
reg = <0x5100000 0x1e00000>;
};
};
2 changes: 1 addition & 1 deletion board/dlink/dns320l/initramfs/init
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ exec </dev/console >/dev/console 2>&1
# which box: LED names and release file names (/usr/lib/shareos/board.sh)
. /usr/lib/shareos/board.sh
board_detect
LED=$BOARD_LED_USB
LED=${BOARD_LED_INSTALL:-$BOARD_LED_USB}

CMDLINE=$(cat /proc/cmdline)
log() { echo "shareos-init: $*"; }
Expand Down
8 changes: 5 additions & 3 deletions board/dlink/dns320l/initramfs/usr/sbin/shareos-firstinstall
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ UBOOT_MAX=3145728
. /usr/lib/shareos/board.sh
board_detect
FWNAME=${BOARD_FWNAME:-$SHAREOS_FWNAME}
# the LED that blinks while this runs (the power LED on boxes without a USB LED)
FI_LED=${BOARD_LED_INSTALL:-$BOARD_LED_USB}
VERSION=$SHAREOS_VERSION

# messages go to stderr (the console): stdout of some functions is a result
Expand All @@ -53,8 +55,8 @@ cleanup() { umount $SRC 2>/dev/null; }
mtd_by_name() { sed -n "s/^\(mtd[0-9]*\):.*\"$1\"\$/\1/p" /proc/mtd; }

led_busy() {
L=/sys/class/leds/$BOARD_LED_USB
led "$BOARD_LED_USB" timer
L=/sys/class/leds/$FI_LED
led "$FI_LED" timer
[ -e $L/delay_on ] && echo 120 > $L/delay_on && echo 120 > $L/delay_off
}

Expand Down Expand Up @@ -217,7 +219,7 @@ main() {
shareos-install-ubi rootfs.squashfs --yes || fail "installing the system failed"
sync
log "ShareOS $newver installed – restarting"
led "$BOARD_LED_USB" none
led "$FI_LED" none
return 0
}

Expand Down
12 changes: 8 additions & 4 deletions board/dlink/dns320l/initramfs/usr/sbin/shareos-install-ubi
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ N=${MTD#mtd}
SIZE=$(sed -n "s/^$MTD: \([0-9a-f]*\) .*/\1/p" ${SHAREOS_PROC_MTD:-/proc/mtd})
# 0x06400000: DNS-320L, DNS-320 rev B (100 MB, my-dlink follows); 0x06600000: DNS-325
# (102 MB, seen on a rev A1) and, from Alt-F's device trees (kirkwood-dnskw.dtsi),
# DNS-320 rev A (not seen on hardware yet).
# DNS-320 rev A (not seen on hardware yet). 0x04600000: DNR-322L (70 MB, the NUUO
# partition follows; /proc/mtd of a DNR-322L A2, #180).
case "$SIZE" in
06400000|06600000) ;;
*) die "unexpected size 0x$SIZE of 'image' (expected 0x06400000 or 0x06600000), refusing" ;;
06400000|06600000|04600000) ;;
*) die "unexpected size 0x$SIZE of 'image' (expected 0x06400000, 0x06600000 or 0x04600000), refusing" ;;
esac

# get the image
Expand All @@ -60,8 +61,11 @@ esac
LEN=$(wc -c < "$FILE")
echo "rootfs image: $LEN bytes"

# rootfs volume size: image + room for growth, 48 MiB minimum
# rootfs volume size: image + room for growth, 48 MiB minimum – 32 MiB on the
# 70 MB partition of the DNR-322L, so that about as much is left for
# rootfs_data (settings, web apps)
VOL=$((48 * 1024 * 1024))
[ "$SIZE" != 04600000 ] || VOL=$((32 * 1024 * 1024))
[ $LEN -lt $VOL ] || VOL=$(( (LEN / 1048576 + 8) * 1048576 ))

# the running system must not use the partition
Expand Down
27 changes: 17 additions & 10 deletions board/dlink/dns320l/post-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ DNS-320L-rev-Ax kirkwood-dns320l 0 8 11 1 1 6 0x00800000 release
DNS-320-rev-Bx kirkwood-dns320b 0 8 12 1 1 5 0x00800000 release
DNS-320-rev-Ax kirkwood-dns320 0 8 7 2 0 4 0x01000000 release
DNS-325-rev-Ax kirkwood-dns325 0 8 5 2 0 3 0x01000000 release
DNR-322L-rev-Ax kirkwood-dnr322l 1 8 2 1 1 8 0x01000000 devtest
"

KVER=$(sed -n 's/^BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="\(.*\)"/\1/p' "$BR2_CONFIG")
Expand All @@ -45,16 +46,22 @@ KVER=$(sed -n 's/^BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="\(.*\)"/\1/p' "$BR2_CON
[ -s "$B/rootfs.squashfs" ] || { echo "post-image: rootfs.squashfs missing"; exit 1; }

# Load address of the initramfs (last column of MODELS): the stock U-Boot reads
# the ramdisk partition to 0xf00000 and copies it here before it starts the
# kernel. 0x800000 is what Alt-F uses and what the DNS-320L has booted with.
# On the DNS-325 it is inside memory that is in use: the kernel prints
# "INITRD: ... overlaps in-use memory region - disabling initrd", finds no
# /init and panics in a reboot loop. 0x1000000 booted from flash on a DNS-325
# rev A1. The DNS-320 rev A (88F6281 and U-Boot of the DNS-325 family) showed
# the same reboot loop with 0x800000 (#96), so it gets 0x1000000 too; the
# DNS-320 rev B (board of the DNS-320L) keeps 0x800000 until tried (a wrong
# address means a reboot loop that needs a serial console). The kernel is the same everywhere, so what is in
# use at 0x800000 depends on the board or its U-Boot (not found yet).
# the ramdisk partition to 0xf00000 ("nand read.e 0xf00000 0x600000 0x300000;
# bootm 0xa00000 0xf00000") and bootm copies it to the load address of its
# header before it starts the kernel. 0x800000 is what Alt-F uses on every
# model – its kernel (4.4) is 4.9 MB unpacked and ends at 0x4d9200. Ours is
# 9.3 MB unpacked (6.18.58: 0x8000..0x957980, with BSS about 0x9a0000): it
# covers 0x800000 itself. A ramdisk there is inside the kernel: "INITRD:
# 0x00800000+... overlaps in-use memory region - disabling initrd", no /init,
# panic, reboot loop (DNS-325; DNS-320 rev A in #96). 0x1000000 is above the
# kernel and above the room its decompressor takes behind it (to about
# 0xc00000) and booted from flash on a DNS-325 rev A1 and a DNS-320 rev A. The
# DNR-322L (U-Boot 3.4.14, the family of those two) gets it too. Should the
# unpacked kernel ever grow by about 4 MB more, 0x1000000 is too low as well.
# The DNS-320L has booted with 0x800000 and this very kernel, so its U-Boot
# (3.6.0) cannot be putting the ramdisk there – concluded, not measured; it
# and the DNS-320 rev B (same board) keep 0x800000 until someone has looked
# (a wrong address means a reboot loop that needs a serial console).
# Only the header differs: the data of the initramfs is the same for all.

check_size() {
Expand Down
20 changes: 18 additions & 2 deletions board/dlink/dns320l/rootfs-overlay/usr/lib/shareos/board.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# sets the BOARD_* variables from the device-tree model. One system image
# serves all models; everything that differs between them is described here.
#
# BOARD_ID short name: dns320l, dns320b, dns320a, dns325, dns327l, unknown
# BOARD_ID short name: dns320l, dns320b, dns320a, dnr322l, dns325, dns327l, unknown
# BOARD_NAME for people
# BOARD_FWNAME name in the release files: ShareOS-<version>-<fwname>.bin
# BOARD_SIG signature of D-Link firmware files for this box (dns323-fw)
Expand All @@ -24,6 +24,8 @@
# power cut (set at boot), empty: the MCU does it / none
# BOARD_LED_STATUS LED for the status setting (heartbeat/on/off)
# BOARD_LED_USB LED for USB activity and the reset/rescue feedback
# BOARD_LED_INSTALL LED that blinks during the first installation and in
# rescue mode; empty: BOARD_LED_USB
# BOARD_LED_DISK1, BOARD_LED_DISK2 disk LEDs (left, right)
# BOARD_LED_POWER power LED; empty: driven by the MCU (/tmp/sys/power_led)
# BOARD_RAM_SMALL 1 on boxes with 128 MB RAM
Expand Down Expand Up @@ -62,6 +64,20 @@ board_detect() {
BOARD_LED_STATUS=dns325:white:usb BOARD_LED_USB=dns325:red:usb
BOARD_LED_DISK1=dns325:red:l_hdd BOARD_LED_DISK2=dns325:red:r_hdd
BOARD_LED_POWER=dns325:white:power ;;
*DNR-322L*)
# the board of the DNS-320 rev A as a video recorder: 256 MB RAM, a
# smaller system partition, a partition for the NUUO software
BOARD_ID=dnr322l BOARD_NAME="D-Link DNR-322L rev A" BOARD_FWNAME=DNR-322L-rev-Ax
BOARD_SIG=DNR-322 BOARD_MODEL=DNR-322L BOARD_CONTROL=mcu-temp BOARD_RTC=kernel
BOARD_POWER_BACK=gpiochip1:5
BOARD_LED_STATUS=dns320:blue:usb BOARD_LED_USB=dns320:orange:usb
BOARD_LED_DISK1=dns320:orange:l_hdd BOARD_LED_DISK2=dns320:orange:r_hdd
BOARD_LED_POWER=dns320:blue:power
# the front has the power and disk LEDs only (D-Link manual): installation
# and rescue mode blink the power LED
BOARD_LED_INSTALL=dns320:blue:power
# being added: root / shareos, device info (#180)
BOARD_DEVTEST=1 ;;
*DNS-320*)
BOARD_ID=dns320a BOARD_NAME="D-Link DNS-320 rev A" BOARD_FWNAME=DNS-320-rev-Ax
BOARD_SIG=DNS323D1 BOARD_MODEL=DNS-320 BOARD_CONTROL=mcu-temp BOARD_RTC=kernel
Expand All @@ -85,7 +101,7 @@ board_detect() {
# all variables as KEY=value lines (for /tmp/sys/board.env and shareos-boardinfo)
board_env() {
for v in ID NAME FWNAME SIG MODEL CONTROL RTC POWER_BUTTON POWER_BACK \
LED_STATUS LED_USB LED_DISK1 LED_DISK2 LED_POWER RAM_SMALL TESTED DEVTEST; do
LED_STATUS LED_USB LED_INSTALL LED_DISK1 LED_DISK2 LED_POWER RAM_SMALL TESTED DEVTEST; do
eval "printf 'BOARD_%s=\"%s\"\n' $v \"\$BOARD_$v\""
done
}
Expand Down
2 changes: 1 addition & 1 deletion configs/shareos_dns320l_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ BR2_LINUX_KERNEL_XZ=y
BR2_LINUX_KERNEL_DTS_SUPPORT=y
# one kernel for the Kirkwood models, a zImage with appended DTB per model
# (post-image.sh makes a .bin per model)
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_SHAREOS_PATH)/board/dlink/dns320l/dts/kirkwood-dns320l.dts $(BR2_EXTERNAL_SHAREOS_PATH)/board/dlink/dns320l/dts/kirkwood-dns320b.dts"
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="$(BR2_EXTERNAL_SHAREOS_PATH)/board/dlink/dns320l/dts/kirkwood-dns320l.dts $(BR2_EXTERNAL_SHAREOS_PATH)/board/dlink/dns320l/dts/kirkwood-dns320b.dts $(BR2_EXTERNAL_SHAREOS_PATH)/board/dlink/dns320l/dts/kirkwood-dnr322l.dts"
BR2_LINUX_KERNEL_INTREE_DTS_NAME="marvell/kirkwood-dns320 marvell/kirkwood-dns325"
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y

Expand Down
25 changes: 23 additions & 2 deletions docs/DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ temperature sensor, buttons, LEDs, power-off) is described per model in
| DNS-320 rev B | `ShareOS-<ver>-DNS-320-rev-Bx.*` | 128 MB | built, **testers wanted** |
| DNS-325 rev A | `ShareOS-<ver>-DNS-325-rev-Ax.*` | 256 MB | **partly tested** (rev A1, see below), more testers wanted |
| DNS-320 rev A | `ShareOS-<ver>-DNS-320-rev-Ax.*` | 128 MB | **partly tested** (rev A1 with 0.3.0-beta.9: installed, web interface; temperature and fan control with the fix of 0.3.0-beta.11, [#163](https://github.com/UniqueDroid/ShareOS/issues/163)), more testers wanted – up to 0.2.0-beta.16 it restarts in a loop after flashing (initramfs address, [#96](https://github.com/UniqueDroid/ShareOS/issues/96)); use 0.2.0-beta.17 or newer |
| DNR-322L | – | 128 MB | planned |
| DNR-322L rev A | `ShareOS-<ver>-DNR-322L-rev-Ax-devtest.*` | 256 MB | **devtest image** (root / shareos, device info, see below) from the build of the pull request, **not tried on hardware** ([#180](https://github.com/UniqueDroid/ShareOS/issues/180)) – the board of the DNS-320 rev A as a video recorder; system partition 70 MB, the NUUO partition is left alone. Front (D-Link manual): power button, power and disk LEDs and a USB port for a UPS – **no USB button** – once it is released, a new box is claimed with a short press (under 5 s) of the reset button on the back; the devtest image needs no claiming. There is no USB LED: the first installation and rescue mode blink the **power LED** (fast while installing, slowly in rescue mode). There is a second version, the DNR-322L **rev B** (case like a DNS-320L, a magnifier button on the front). Its board is not known yet – probably the one of the DNS-320L. This build is for rev A only (the rev is on the label underneath): **do not flash it on a rev B**. A boot log of a rev B (serial console or Alt-F's `dmesg`) would show what it needs. A first test needs a serial console at hand (see below) |
| DNS-327L | – | 512 MB | planned (own kernel and flash layout) |

Not possible: DNS-323, DNS-321, DNS-343 (64 MB RAM, 8 MB flash).
Expand Down Expand Up @@ -48,7 +48,28 @@ of the fix for 0.2.0-beta.9).
| LEDs | `dns320l:*` | `dns325:*` | `dns320:*` |
| D-Link signature | `DNS320L` / `DNS320B` | `DNS-325` | `DNS323D1` |

One kernel serves all four: post-image appends the model's device tree to the
The DNR-322L rev A is the DNS-320 rev A in every row; its signature is
`DNR-322`, and its flash is laid out differently (`image` 70 MB, then
`nuuo package` 30 MB, `mini firmware`, `config`, `my-dlink` where the
DNS-320L has them).

**A model nobody has started yet:** if the kernel starts but cannot find its
initramfs (the address the stock U-Boot copies it to, last column of `MODELS`
in `post-image.sh`), it panics and restarts in a loop – U-Boot only falls
back to the D-Link rescue system when the kernel *image* is damaged, not
when the kernel fails later. Such a loop is ended through a serial console
(start from RAM, flash again). So the first test of a model wants a serial
console at hand; that is how the DNS-325 and the DNS-320 rev A were sorted
out ([#96](https://github.com/UniqueDroid/ShareOS/issues/96)).
What goes wrong there is known by now: the unpacked ShareOS kernel is 9.3 MB
and reaches from 0x8000 past 0x800000, the address Alt-F puts its initramfs
at (its kernel ends at 0x4d9200). U-Boot of the 3.4 series (DNS-325, DNS-320
rev A, DNR-322L) copies the initramfs to the address in its header, so
0x800000 lands inside the kernel; these models get 0x1000000. Starting the
build from RAM over TFTP takes the same path as starting from flash and tests
the address without writing anything.

One kernel serves all of them: post-image appends the model's device tree to the
kernel (the stock U-Boot passes none) and writes a `.bin` with the model's
signature. Initramfs and system are the same; the box finds its model in the
device tree at boot (`shareos-boardinfo`).
Expand Down
Loading
Loading