Skip to content

ramips: mt7620: add support for Dlink DAP-1620-A2 - #17020

Closed
sendurai wants to merge 1 commit into
openwrt:mainfrom
sendurai:dap1620a2
Closed

sendurai wants to merge 1 commit into
openwrt:mainfrom
sendurai:dap1620a2

Conversation

@sendurai

Copy link
Copy Markdown

Hello,

Add support for D-Link DAP-1620-A2 device.

A bit older device, but nevertheless has a decent hardware (64/8 and both 2.4 & 5). The firmware package needs to be pushed to device through U-Boot serial port and can't be done through Web UI, since the recovery occupies the second part of NAND. Can add the details to the wiki page once the code is merged and compiled.

Waiting for OpenWrt based compile of image. Anyways added the OpenWrt boot log to the wiki already. Available here:
https://openwrt.org/inbox/toh/d-link/d-link_dap-1620

Made few updates based on previous comment as noted below. Any further questions, please let me know.
#16911
#17002

Thanks

@github-actions github-actions Bot added the target/ramips pull request/issue for ramips target label Nov 19, 2024
@sendurai
sendurai marked this pull request as ready for review November 19, 2024 21:48
@sendurai
sendurai force-pushed the dap1620a2 branch 2 times, most recently from ebc9ef3 to ca176db Compare November 20, 2024 00:13
@github-actions github-actions Bot added the target/imagebuilder pull request/issue for imagebuilder target label Nov 21, 2024
Add support for DAP-1620 Revision A hardware. The original firmware has dual image, one primary and another for recovery. This version supports using only single image due to size limitations. Recovery and restore can be done using the U-Boot menu on device startup (serial port) and writing the image using option 2. Full backup of the Nand is recommended before installing in case the original partitions are to be restored in future. Full details will be updated in device wiki page.

Signed-off-by: Senthil Durairaj <[email protected]>

imagebuilder: fix APK package_depends support

Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>

imagebuilder: fix OPKG package_whatdepends support

Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>

ramips: mt7620: add support for Dlink DAP-1620-A2

Add support for DAP-1620 Revision A hardware. The original firmware has dual image, one primary and another for recovery. This version supports using only single image due to size limitations. Recovery and restore can be done using the U-Boot menu on device startup (serial port) and writing the image using option 2. Full backup of the Nand is recommended before installing in case the original partitions are to be restored in future. Full details will be updated in device wiki page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target/imagebuilder pull request/issue for imagebuilder target target/ramips pull request/issue for ramips target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants