Skip to content

ipq40xx: add support for Asus Lyra Mini (MAP-AC1300) - #13571

Closed
sbeach92 wants to merge 3 commits into
openwrt:mainfrom
sbeach92:ASUS-LYRA-MINI-MAP1300
Closed

sbeach92 wants to merge 3 commits into
openwrt:mainfrom
sbeach92:ASUS-LYRA-MINI-MAP1300

Conversation

@sbeach92

Copy link
Copy Markdown

Hardware
CHIPSET: IPQ4018 + QCA8072
LAN: 2x 1G
FLASH: GD5F1GQ4X 128 MiB + MX25L165D 2 MiB
RAM: 256 MiB
IO: Reset + WPS button
LED: Single Bright RGB led
POWER: 5V 2A

Flash layout similar to other asus brand routers.

Mac adresses extarcted from same mtd adress.

Orginal -> Openwrt
ath0 2C:FD:A1:8D:80:B8 -> phy0-ap0 2C:FD:A1:8D:80:B8
ath1 2C:FD:A1:8D:80:BA -> phy1-ap0 2C:FD:A1:8D:80:BA
br0 2C:FD:A1:8D:80:B9 -> eth0 2C:FD:A1:8D:80:B9
eth0 2C:FD:A1:8D:80:B9 -> wan 2C:FD:A1:8D:80:B9
eth1 2C:FD:A1:8D:80:BB -> br-lan 2C:FD:A1:8D:80:BB
eth2 2C:FD:A1:8D:80:B9 -> lan 2C:FD:A1:8D:80:BB

Status:
Lan ports: Configured as oem port closer to power jack as wan and other as lan
Wlan: radio1@5Ghz 300 Mbps trouhgput. [email protected] 50Mbps troughput
Led: works
Buttons: reset works, wps untested.

Installation:

  1. Reset device to orginal settings and enable ssh, set username and password: admin/password
  2. Upload openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb
    scp openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb [email protected]:/tmp
  3. ssh to router:
    ssh [email protected]
  4. run in router:
    mtd-write -d linux -i /tmp/openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb
  5. Reboot with command or with powercycling device
  6. OpenWrt should boot and is ready after sort brust of flashing blue light
  7. wget/scp openwrt-ipq40xx-generic-asus_map-ac1300-squashfs-sysupgrade.bin to /tmp dir of device
    scp openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb [email protected]:/tmp
  8. ssh to OpenWrt device.
    ssh [email protected]
    9.run command:
    sysupgrade -n /tmp/openwrt-ipq40xx-generic-asus_map-ac2200-squashfs-sysupgrade.bin
  9. After reboot OpenWrt is installed to device.

@github-actions github-actions Bot added kernel pull request/issue with Linux kernel related changes target/ipq40xx pull request/issue for ipq40xx target labels Sep 29, 2023


flash@0 {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this newline

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not done

@sbeach92
sbeach92 marked this pull request as draft September 30, 2023 17:43
@sbeach92
sbeach92 marked this pull request as ready for review October 2, 2023 17:04
@robimarko

Copy link
Copy Markdown
Contributor

Please squash the changes

@sbeach92
sbeach92 force-pushed the ASUS-LYRA-MINI-MAP1300 branch from efd1bf8 to 6d058c8 Compare October 3, 2023 16:16
@github-actions github-actions Bot added target/ipq806x pull request/issue for ipq806x target core packages pull request/issue for core (in-tree) packages target/mediatek pull request/issue for mediatek target target/realtek pull request/issue for realtek target target/sifiveu pull request/issue for sifiveu target labels Oct 3, 2023
@sbeach92
sbeach92 marked this pull request as draft October 3, 2023 16:20
@github-actions github-actions Bot removed target/ipq806x pull request/issue for ipq806x target core packages pull request/issue for core (in-tree) packages target/mediatek pull request/issue for mediatek target target/realtek pull request/issue for realtek target target/sifiveu pull request/issue for sifiveu target labels Oct 3, 2023
@sbeach92
sbeach92 force-pushed the ASUS-LYRA-MINI-MAP1300 branch from f51115c to 7700c4c Compare October 3, 2023 16:48
@github-actions github-actions Bot added target/ipq806x pull request/issue for ipq806x target core packages pull request/issue for core (in-tree) packages target/mediatek pull request/issue for mediatek target target/realtek pull request/issue for realtek target target/sifiveu pull request/issue for sifiveu target and removed target/ipq806x pull request/issue for ipq806x target core packages pull request/issue for core (in-tree) packages labels Oct 3, 2023
@sbeach92

sbeach92 commented Dec 5, 2023

Copy link
Copy Markdown
Author

Hmm this rebasing and trying to recover from it went big to south 😅

@raenye

raenye commented Dec 5, 2023 •

Copy link
Copy Markdown
Contributor

Rebase -i is your friend.
Drop all merges.
Reorder lines if needed.

@raenye

raenye commented Dec 7, 2023

Copy link
Copy Markdown
Contributor

Could be a useful comment for you too: #13877 (comment)

@sbeach92

sbeach92 commented Dec 7, 2023

Copy link
Copy Markdown
Author

Could be a useful comment for you too: #13877 (comment)

Learnt that hard way. Allso learned that clicking sometething like resolve conflict is doing same merge. And now i have to learn how to reopen pullreguest as i have commits in my branch but they are out of sync of this PR.

@sbeach92

sbeach92 commented Dec 7, 2023

Copy link
Copy Markdown
Author

I really can't figure out how to reopen this pullreguest as my pull -f results does not showup on this pullreguest.

@robimarko

Copy link
Copy Markdown
Contributor

You need to force push your changes and then just click reopen in GH web ui

@sbeach92

sbeach92 commented Dec 7, 2023 •

Copy link
Copy Markdown
Author

You need to force push your changes and then just click reopen in GH web ui

I tried many times but that seemed not to be a option to do even with these instructions.
https://openwrt.org/docs/guide-developer/working-with-github-pr#reopen_closed_pr

But now i can?

Edit: I indeed had onetime opportunity to press comment and reopen, but PR seems to stays closed.
No new commits in "ASUS-LYRA-MINI-MAP1300"

@robimarko

Copy link
Copy Markdown
Contributor

Oh, this is something new for me, did not know that they require no changes in order to reopen.

@raenye

raenye commented Dec 8, 2023

Copy link
Copy Markdown
Contributor

No new commits in "ASUS-LYRA-MINI-MAP1300\

That seems to be the problem - there are no commits in the PR. I think you need to have some changes in the forced-push branch and then reopen.

@DragonBluep

Copy link
Copy Markdown
Contributor

Please try:
git push -f origin 08e8e181dc4cff48ad6a59260ee7d7957849a3d3:ASUS-LYRA-MINI-MAP1300

@sbeach92

sbeach92 commented Dec 8, 2023 •

Copy link
Copy Markdown
Author

Please try: git push -f origin 08e8e181dc4cff48ad6a59260ee7d7957849a3d3:ASUS-LYRA-MINI-MAP1300

git push -f origin 08e8e181dc4cff48ad6a59260ee7d7957849a3d3:ASUS-LYRA-MINI-MAP1300
Enumerating objects: 3846, done.
Counting objects: 100% (3846/3846), done.
Delta compression using up to 2 threads
Compressing objects: 100% (997/997), done.
Writing objects: 100% (2163/2163), 963.66 KiB | 15.30 MiB/s, done.
Total 2163 (delta 1571), reused 1525 (delta 1054)
remote: Resolving deltas: 100% (1571/1571), completed with 813 local objects.
To https://github.com/sbeach92/openwrt.git
 + c9e804d1ca...08e8e181dc 08e8e181dc4cff48ad6a59260ee7d7957849a3d3 -> ASUS-LYRA-MINI-MAP1300 (forced update)

I have tried this many times, but seems that somehow push -f wont show up in this PR, even PR links back to my branch, there is no link back to this PR. I leave my branch to this state, but im not holding my breath that this will solve this problem.

@sbeach92

sbeach92 commented Dec 8, 2023 •

Copy link
Copy Markdown
Author

Now i again have button to do reopen, but will it work?

Edit: Reopen and comment just added comment

@DragonBluep

DragonBluep commented Dec 8, 2023 •

Copy link
Copy Markdown
Contributor

Now i again have button to do reopen, but will it work?

Edit: Reopen and comment just added comment

Try to add another new commit and push it again.

git checkout ASUS-LYRA-MINI-MAP1300 
git reset --hard 08e8e181dc4cff48ad6a59260ee7d7957849a3d3
echo test > ./test
git add -f ./test
git commit -m test
git push

@sbeach92

sbeach92 commented Dec 8, 2023

Copy link
Copy Markdown
Author

Now i again have button to do reopen, but will it work?
Edit: Reopen and comment just added comment

Try to add another new commit and push it again.

git checkout ASUS-LYRA-MINI-MAP1300 
git reset --hard 08e8e181dc4cff48ad6a59260ee7d7957849a3d3
echo test > ./test
git add -f ./test
git commit -m test
git push
user@distro:~/openwrt_asus/openwrt$ git checkout ASUS-LYRA-MINI-MAP1300 
Already on 'ASUS-LYRA-MINI-MAP1300'
Your branch and 'origin/ASUS-LYRA-MINI-MAP1300' have diverged,
and have 7 and 1 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)
user@distro:~/openwrt_asus/openwrt$ git reset --hard 08e8e181dc4cff48ad6a59260ee7d7957849a3d3
HEAD is now at 08e8e181dc ipq40xx: Split map-ac2200 and rt-ac42u .dts to common .dtsi
user@distro:~/openwrt_asus/openwrt$ echo test > ./test
user@distro:~/openwrt_asus/openwrt$ git add -f ./test
user@distro:~/openwrt_asus/openwrt$ git commit -m test
[ASUS-LYRA-MINI-MAP1300 319bd4cc81] test
 1 file changed, 1 insertion(+)
 create mode 100644 test
user@distro:~/openwrt_asus/openwrt$ git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 2 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 275 bytes | 11.00 KiB/s, done.
Total 3 (delta 1), reused 1 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/sbeach92/openwrt.git
   08e8e181dc..319bd4cc81  ASUS-LYRA-MINI-MAP1300 -> ASUS-LYRA-MINI-MAP1300

@robimarko

Copy link
Copy Markdown
Contributor

Great, now you can squash everything

@sbeach92

Copy link
Copy Markdown
Author

As they share things, Map-ac2200 needs same corrections to its dts as this pullreguest have.

So can I split original device, make corrections and still use pullreguest ipq40xx: Add support for Asus Lyra Mini but with seperate commit?

If they share stuff commonly then make a commit that splits out the original device into DTSI+DTS and then just leverage that in new device commit.

As they share things, Map-ac2200 needs same corrections to its dts as this pullreguest have.

So can I split original device, make corrections and still use pullreguest ipq40xx: Add support for Asus Lyra Mini but with seperate commit?

Great, now you can squash everything

So i squash commits that splits DTS and corrections that are made to MAP-AC2200 ?

@robimarko

Copy link
Copy Markdown
Contributor

Wait, I took another look.

Why are MAP-AC2200 changes in this PR?

@sbeach92

sbeach92 commented Dec 13, 2023 •

Copy link
Copy Markdown
Author

Wait, I took another look.

Why are MAP-AC2200 changes in this PR?

  1. I'm not sure if they need separete PR:s and you answer tells about separate commits. I tried to ask clarification
  2. As i have MAP-AC2200 device in hand i made corrections which could be there because of split.
  3. I was thinking that if more than one commit per PR is possible i could do other fixes allso.
  4. Point 3. makes sens to me as i learned that you cant have deppend PRs

@sbeach92

Copy link
Copy Markdown
Author

Could be a useful comment for you too: #13877 (comment)

And eventually this was the fix, atleast renaming branch

@robimarko

Copy link
Copy Markdown
Contributor
  1. I'm not sure if they need separete PR:s and you answer tells about separate commits. I tried to ask clarification
  2. As i have MAP-AC2200 device in hand i made corrections which could be there because of split.
  3. I was thinking that if more than one commit per PR is possible i could do other fixes allso.
  4. Point 3. makes sens to me as i learned that you cant have deppend PRs

Of course that more than 1 commit is allowed in a PR, that's the whole point of a PR.
But you want to do one thing as the focus of the PR.

Let me ask one question, is MAP-AC2200 working fine now or are those fixes required?

@sbeach92

Copy link
Copy Markdown
Author
  1. I'm not sure if they need separete PR:s and you answer tells about separate commits. I tried to ask clarification
  2. As i have MAP-AC2200 device in hand i made corrections which could be there because of split.
  3. I was thinking that if more than one commit per PR is possible i could do other fixes allso.
  4. Point 3. makes sens to me as i learned that you cant have deppend PRs

Of course that more than 1 commit is allowed in a PR, that's the whole point of a PR. But you want to do one thing as the focus of the PR.

Let me ask one question, is MAP-AC2200 working fine now or are those fixes required?

It is working fine, exept maybe missing BDF for QCA9888, allso seemsto be decsribed here: #13604

Comment thread target/linux/ipq40xx/image/generic.mk Resolved
@robimarko

Copy link
Copy Markdown
Contributor

Can you please rebase this, I will give it another review and merge if ready

Split qcom-ipq4019-rt-ac42u.dts to qcom-ipq4019-asus.dtsi
Splir qcom-ipq4019-map-ac2200.dts to qcom-ipq4019-asus.dtsi and qcom-ipq401x-map-acxx00.dtsi

Converted manually overridden labels to ones that exsists in qcom-ipq2019.dtsi

Signed-off-by: Erkki Hietaranta <[email protected]>
Split qcom-ipq4018-rt-ac58u.dts to qcom-ipq4018-asus.dtsi and qcom-ipq-rt-ac58u.dts
Converted manualy overridden labels to ones that exsist in qcom-ipq4019.dtsi

Signed-off-by: Erkki Hietaranta <[email protected]>
Hardware
CHIPSET: IPQ4018 + QCA8072
LAN: 2x 1G
FLASH: GD5F1GQ4X 128 MiB + MX25L165D 2 MiB
RAM: 256 MiB
IO: Reset + WPS button
LED: Single Bright RGB led
POWER: 5V 2A

Flash layout similar to other asus brand routers.
Mac adresses extarcted from same mtd adress.
Created common .dtsi files as similar devices.

Orginal -> Openwrt
ath0 2C:FD:A1:8D:80:B8 -> phy0-ap0 2C:FD:A1:8D:80:B8
ath1 2C:FD:A1:8D:80:BA -> phy1-ap0 2C:FD:A1:8D:80:BA
br0  2C:FD:A1:8D:80:B9 -> br-lan   2C:FD:A1:8D:80:B9
eth0 2C:FD:A1:8D:80:B9 -> lan      2C:FD:A1:8D:80:B9
eth1 2C:FD:A1:8D:80:BB -> wan      2C:FD:A1:8D:80:BB

Status:
Lan ports: Configured as oem port closer to power jack as wan and other as lan
Wlan: radio1@5Ghz 300 Mbps trouhgput. [email protected] 50Mbps troughput
Led: works
Buttons: reset works, wps untested.

Installation:

1.  Reset device to orginal settings and enable ssh, set username and password: admin/password
2.  Upload openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb
    scp openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb [email protected]:/tmp
3.  ssh to router:
    ssh [email protected]
4.  run in router:
    mtd-write -d linux -i /tmp/openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb
5.  Reboot with command or with powercycling device
6.  OpenWrt should boot and is ready after sort brust of flashing blue light
7.  wget/scp openwrt-ipq40xx-generic-asus_map-ac1300-squashfs-sysupgrade.bin to /tmp dir of device
    scp openwrt-ipq40xx-generic-asus_map-ac1300-initramfs-uImage.itb [email protected]:/tmp
8.  ssh to OpenWrt device.
    ssh [email protected]
9.  run in router:
    sysupgrade -n /tmp/openwrt-ipq40xx-generic-asus_map-ac2200-squashfs-sysupgrade.bin
10. After reboot OpenWrt is installed to device.

Signed-off-by: Erkki Hietaranta <[email protected]>
@sbeach92

Copy link
Copy Markdown
Author

Please squash the changes

Does this need something?

@robimarko

Copy link
Copy Markdown
Contributor

Now that there is NVMEM on UBI support, please use that instead of scripts for MAC setting

@Djfe

Djfe commented Oct 30, 2025

Copy link
Copy Markdown
Contributor

@robimarko this device was just merged, could you close this older pr please? :)

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

Labels

kernel pull request/issue with Linux kernel related changes target/ipq40xx pull request/issue for ipq40xx target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants