aboutsummaryrefslogtreecommitdiff
path: root/package/utils/dns320l-mcu/Makefile
Commit message (Collapse)AuthorAge
* dns320l-mcu: fix compilation with GCC14Zoltan HERPAI2025-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump version to fix compiling with GCC14. This fixes the following compile problem: ``` dns320l-daemon.c: In function 'main': dns320l-daemon.c:740:18: error: implicit declaration of function 'isprint' [-Wimplicit-function-declaration] 740 | else if (isprint (optopt)) | ^~~~~~~ dns320l-daemon.c:50:1: note: include '<ctype.h>' or provide a declaration of 'isprint' 49 | #include "dns320l-daemon.h" +++ |+#include <ctype.h> 50 | dns320l-daemon.c:799:5: error: implicit declaration of function 'umask' [-Wimplicit-function-declaration] 799 | umask(0); | ^~~~~ dns320l-daemon.c:864:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 864 | return; | ^~~~~~ dns320l-daemon.c:691:5: note: declared here 691 | int main(int argc, char *argv[]) | ^~~~ ``` Link: https://github.com/openwrt/openwrt/pull/18688 Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* dns320l-mcu: Fix compilation with GCC 14Hauke Mehrtens2025-05-03
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following compile problem: ``` dns320l-daemon.c: In function 'main': dns320l-daemon.c:740:18: error: implicit declaration of function 'isprint' [-Wimplicit-function-declaration] 740 | else if (isprint (optopt)) | ^~~~~~~ dns320l-daemon.c:50:1: note: include '<ctype.h>' or provide a declaration of 'isprint' 49 | #include "dns320l-daemon.h" +++ |+#include <ctype.h> 50 | dns320l-daemon.c:799:5: error: implicit declaration of function 'umask' [-Wimplicit-function-declaration] 799 | umask(0); | ^~~~~ dns320l-daemon.c:864:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 864 | return; | ^~~~~~ dns320l-daemon.c:691:5: note: declared here 691 | int main(int argc, char *argv[]) | ^~~~ ``` Link: https://github.com/openwrt/openwrt/pull/18688 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* dns320l-mcu: bump to 2024-10-27Zoltan HERPAI2024-10-28
| | | | | | | | | Improve support for power button handling. d9a2878 - Use /sys/class/gpio/mcu_power for monitoring the MCU power line 02b6005 - Use "halt" instead of "shutdown" Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* dns320l-mcu: Mark as nonshared to build in step 1Hauke Mehrtens2024-07-30
| | | | | | | | | | | Mark the package as nonshared to build it in the target specific build step 1 of the build bots instead of the architecture generic build step 2. In the build step 2 it may be left out if we build it using a different target. Fixes: 8619d7af67c2 ("kirkwood: add D-Link DNS-320L support") Link: https://github.com/openwrt/openwrt/pull/16031 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kirkwood: add D-Link DNS-320L supportZoltan HERPAI2024-06-01
Dual-slot NAS based on Marvell Kirkwood. Specifications: - Marvell 88F6702 @1GHz - 256Mb RAM - 128Mb NAND - 1x GbE LAN (Marvell 88E1318R) - 1x USB 2.0 - 2x SATA - Weltrend WT69P3 ("supervisor" MCU chip) - Serial on J2 (115200,8n1) - Newer bootROM so kwboot-ing via serial is possible Notes: - The Weltrend MCU is controlled by the package added in utils/dns320l-mcu. - The original MAC address is stored in the "mini firmware" image's first 17 bytes. - Compared to the original MTD layout, the uImage+rootfs are now stored in a common ubi partition. Installation: 1. Serial console - Connect your levelshifter to the serial console on J2 (refer to the wiki page for pinout) 2. Update u-boot - Download the u-boot.kwb image for the device - Powercycle the NAS - Run "kwboot -b u-boot-dns320l/u-boot.kwb /dev/ttyUSB0 -p" - Connect to the serial console with minicom - tftp 0x0800000 u-boot-dns320l/u-boot.kwb (Please note that "PHY reset timed out" seems to be customary on kirkwood devices, the egiga0 interface works regardless.) - nand erase 0x0 100000 - nand write 0x0800000 0x0 0x100000 - reset 3. Install OpenWrt - Boot up the initramfs image - tftpboot 0x800000 openwrt-kirkwood-generic-dlink_dns320l-initramfs-uImage; bootm 0x800000 - Download the sysupgrade image and perform sysupgrade Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu> Reviewed-by: Pawel Dembicki <paweldembicki@gmail.com>