This version is for Arm routers: RT-AC56U, RT-AC68U, Rt-AC87U, AC-3200...
Mipsel version here
2 - Enter chrooted debian with:
3 - Update Debian
4 - Install necessary packages
5 - Download and install minidlna
6 - Download startup script
7 - Download configuration file
8 - To create startup script we need to exit debian
9 - Add minidlna to chroted services list
10 - Start minidlna from outside debian together with mounted external folder
11 - Go to 192.168.1.1:8200 (this is the default router ip, modify to your router ip if you change it previously) and see how minidlna is creating db, press refresh on your browser for progress.
If all numbers are 0 (zero) after some time, you forget to set the right path to your media folder, read again point 4 from here
If for some reason you don't like default penguin minidlna icon, I compiled a special version of minidlna where you can choose any icon as minidlna logo, thanks @R.L.Horn :)
1 - Enter chrooted debian with:
2 - Stop minidlna
3 - Remove old minidlna db
4 - Open minidlna.conf
Paste after the last line
# PNG image to use for an icon, optionally followed by a hex background
# Background color (hex rgb triplet) for PNG images converted to jpeg.
# Two colors indicate that a checkerboard background, in those colors,
# should be used.
Save with CTRL-O, press ENTER and exit nano with CTRL-X
Some explanations, for ex. put an icon on EXT_DIR in icons folder and name it myicon.png, or any other place, ex. inside debian etc folder, now icon path should look like this "icon=/etc/myicon.png,7f7f7f"
6 - Exit debian
7 - Restart services