Skip to content

Instantly share code, notes, and snippets.

@tangrs
Created November 19, 2021 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tangrs/c3e6bd13b849d5a5bcf9d338550427fe to your computer and use it in GitHub Desktop.
Save tangrs/c3e6bd13b849d5a5bcf9d338550427fe to your computer and use it in GitHub Desktop.
// SPDX-License-Identifier: GPL-2.0
/*
* Andrew Lunn <andrew@lunn.ch>
* Ben Peddell <klightspeed@killerwolves.net>
*
*/
/dts-v1/;
#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"
#include "kirkwood-synology.dtsi"
/ {
model = "Synology DS212j v10, v20";
compatible = "synology,ds212jv10", "synology,ds212jv20",
"marvell,kirkwood";
memory {
device_type = "memory";
reg = <0x00000000 0x8000000>;
};
chosen {
bootargs = "console=ttyS0,115200n8";
stdout-path = &uart0;
};
gpio-fan-150-32-35 {
status = "okay";
};
gpio-leds-hdd-21-2 {
status = "okay";
};
regulators-hdd-29 {
status = "okay";
};
};
&s35390a {
status = "okay";
};
@Ykidia
Copy link

Ykidia commented Feb 20, 2023

Came from here: https://blog.tangrs.id.au/2021/11/19/running-debian-on-a-synology-ds212j/

  1. Any kind of initramfs not needed at all. We can totally disable it in kernel settings.
  2. We have to make an uImage, it is possible at least for kernels before 6.0. uImage is a compressed kernel image with a decompressor inside, so bootloader don't bother about it at all.
  3. For now, I want to run on the DS-212j latest possible Linux (Debian, for example, perhaps with kernel 6.2 or at least 5.15). But if I will find fast method to recover it to manufacturer's state, I'll do that, and then the device will gone...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment