New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ramips: Add support for HooToo TM05 #2645
Conversation
Please squash your changes into a single commit (git rebase -i ...) and force-push them to this PR (git push -f ...). |
Trying! But when I get back to master - build errors, below (not related to my code I think ... LOL). This is why I had stayed "back" a bit. Thoughts? Thanks!
|
@arrmo make clean |
Did that (already) ... LOL. And make dirclean. It's somehow related now to the new Linux version. Working on it ... :-) |
Found it! Seems the latest updates changed the image .mk file syntax. Aligned, and builds now. |
@arrmo @981213 I've tidied up the rest and pushed it on top of the lzma-loader changes here: |
Hmm, I'm getting a lot of
with this ... |
Hi, Should I try this on my build as well (and remove my last commit) - or let @981213 check this first? Thanks! |
@arrmo Do you also get these warning I just posted? I get them with both your and my version? |
@adschm I got it too, but didn't checked any |
And hacking in the lzma-loader directory (e.g. flash addresses, steps, ...) doesn't trigger automatic rebuild that loader.bin! One should delete it manually! |
I compared the instructions with the recently added ath79 engenius devices and didn't find any relevant differences. When building them, I don't see the messages, though (I build-tested before merge). This is some hidden redefinition, we just have to find it. Edit: make clean doesn't help, I obviously tried that, as well removing .config and tmp directory. |
Yes, I flagged this a while back ... see here, I admit, not sure what is causing it - thoughts? |
Well, it caused by what is says: So, we have to find both of them and then eliminate one. |
Hmm, since this message is printed that often, it looks to me like something is just not defined in DEVICE_VARS properly, so the definition will be taken over for all other devices. |
Hi, I did add (LOADER_FLASH_OFFS) - at least I recall this ... I think 🤣,
to target/linux/ramips/image/Makefile. Is this not correct? I thought it was needed, as this is used as a variable in the Makefile. Thanks! |
Err, can't test it right now, but I suspect it's terribly simple, and we just need to add If this is not set as a "default" value, all devices will just copy the COMPILE value set last, i.e. from the hootoo device. Edit: That one is present for ath79, so that's why we don't see the warning there. |
Trying it here - seems to be the fix. Thanks! @xabolcs, work for you as well? |
Ummm, I can't test it right now, too! 😅 |
LOL - NP! Should I try to remove my last commit, pull in the changes from @981213? Or I can wait for you to check the change above, no issue. |
I will test in a few hours and update my branch referenced above. You don't need to push changes here anymore, but just tell me what I should change in my branch then. |
Sorry, just to make sure I understand - you mean to fix the item above? I just added your noted change to target/linux/ramips/image/Makefile. To make it clear, in that file now has,
Thanks! |
Okay, I've updated and build-tested my staging tree. https://git.openwrt.org/?p=openwrt/staging/adrian.git;a=shortlog;h=refs/heads/hootoo @arrmo Please do a final run-test based on the changes there; either pull my tree directly and build from it or take the three relevant patch on top of a local tree. |
Please adjust "Notes" in the commit message! You just dropped the 4.14! 👍 |
Done. |
Trying! This is where git kills me 😞. The coding is "easy", not so much git ... LOL! |
Figured it out, did,
Then fixed merge conflicts (used your changes fully). Building now ... Thanks! |
Builds and works great, thanks! I did a sysupgrade (after pull above, make clean to be sure, then make). Settings are all preserved, and it's on 5.4.61 now (so another check). In case you want, the serial log, |
Okay, thanks, so I will close this and talk to @981213 when to merge. And we are still 2 comments short of the 500 ... |
Thanks, appreciate the help! Please just let me know (so I can delete my branch, get back to the master).
Glad to see a sense of humor still 🤣. |
I wanted to be the 500th comment :P thanks, Adrian and others for all that you're doing :D Congratulations Russell for your first PR here, and a rough one too lol |
The HooToo TM05 is a battery powered router, with an Ethernet and USB port.
*** Build with small_flash, vendor U-Boot limited to 1.5 MB kernel size!
Specifications:
SOC: MediaTek MT7620N
BATTERY: 10400mAh
WLAN: 802.11bgn
LAN: 1x 10/100 Mbps Ethernet
USB: 1x USB 2.0 (Type-A)
RAM: 64 MB
FLASH: GigaDevice GD25Q64, Serial 8 MB Flash
LED: Status LED (blue after boot, green with WiFi traffic
4 leds to indicate power level of the battery (unable to control)
INPUT: Power, reset button
Tested and working:
Installation:
white LED lights up.
holding the reset button for 30 seconds or until it begins searching
for files on your TFTP server, whichever comes first.
and install the kernel file. Once it has finished installation of the
kernel file, it will search for a (nonexistent) rootfs file when it
begins searching for this file, shut down the router by holding the
power button normally.
Signed-off-by: Russell Morris rmorris@rkmorris.us
Thanks for your contribution to OpenWrt!
To help keep the codebase consistent and readable,
and to help people review your contribution,
we ask you to follow the rules you find in the wiki at this link
https://openwrt.org/submitting-patches
Please remove this message before posting the pull request.