Skip to content
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

Please help me. wifi binary missing. #48

Open
Victoriouszh opened this issue Oct 18, 2017 · 10 comments
Open

Please help me. wifi binary missing. #48

Victoriouszh opened this issue Oct 18, 2017 · 10 comments

Comments

@Victoriouszh
Copy link

Victoriouszh commented Oct 18, 2017

so yeah, i don't know what to do anymore.

i been googeling and trying again and again. and i tryed some different builds, and this one has the following error:

cp: cannot stat './wifi_binary/mt_wifi.ko_3.18.75': No such file or directory
Makefile:93: recipe for target '/home/mitko/openwrt/bin/ramips/packages/linkit/mtk-sdk-wifi_2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371_ramips_24kec.ipk' failed
make[3]: *** [/home/mitko/openwrt/bin/ramips/packages/linkit/mtk-sdk-wifi_2015-06-01-ade8b1b299cbd5748db1acf80dd3e9f567938371_ramips_24kec.ipk] Error 1
make[3]: Leaving directory '/home/mitko/openwrt/feeds/linkit/mtk-sdk-wifi'
package/Makefile:191: recipe for target 'package/feeds/linkit/mtk-sdk-wifi/compile' failed
make[2]: *** [package/feeds/linkit/mtk-sdk-wifi/compile] Error 2
make[2]: Leaving directory '/home/mitko/openwrt'
package/Makefile:188: recipe for target '/home/mitko/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile' failed
make[1]: *** [/home/mitko/openwrt/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/mitko/openwrt'
/home/mitko/openwrt/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2

Please anyone. what am i supposed to do? it was supposed be soooo easy... -.-

EDIT:

problem solved - sorry noob here, just discovered the solved section but build still does not work, fails on libmraa. but since that one is solved, better delete it if possible. thanks.

EDIT2: Solved the libmraa issue by simply deactivating it at make menuconfig.

Also encountered the problem that the FTP link in some script for the kernel didn't work. found the solution here: servalproject/openwrt@a378338

**Maybe it's just me, but i feel like, nobody's really willing to help "N00bs". i find it kind of sad, because unlike me(also N00b), a lot of these "N00bs" are Kids which are getting into programming and scripting, are may or may not a little less patient to read trough all these links they find on google. so basically, this is exactly, why i made these edits on here. It maybe helps somebody else solve these issues.

Cheers **

@wilson6405
Copy link

Hi, I encounter the same failed, but I can't figure out how do you solved.
Do you mean disable the libmraa in menuconfig?
But I can't disable it. Thanks!

@Victoriouszh
Copy link
Author

okay, i see why you can't solve it.

Here are all of my steps:

  1. Rename the kernel to a version that works: 
    To workaround, you could just rename the following two files
    mt_wifi.ko_3.18.36_all ---> mt_wifi.ko_3.18.44_all
    mt_wifi.ko_3.18.36 ---> mt_wifi.ko_3.18.44
    This can make the compile pass.

then continue the build process. (V=99)

then another issues comes up:

  1. You need to disable libmraa in make menuconfig. It is selected by other packages so you have to disable them first. I deselect:
    Global build settings->Compile with support for patented functionality
    Libraries->IoT->libupm
    Libraries->libmraa
    It compiles fine then

then continue the build Process (V=99)

the next thing that you then encounter is, that the ftp link for to download the kernel does not work anymore. what you do is: trough your ubuntu, go to files/openwrt/scripts then double click download.pl

Now you need to edit it a tiny bit: you simply copy the code from servalproject/openwrt@a378338, and paste it into your code.
delete row 177 to 184 and paste the new code in.

Make V=99

After that it should be working.

@wilson6405
Copy link

wilson6405 commented Oct 28, 2017

Thanks for replying.

  1. I use this command back to openwrt 3.18.44 kernel version to solve this issue.
$ git checkout c170d84bbe08e0f049c99d3f376aae170a36458e
  1. Now I encounter this issue
Submodule path 'doxyport': checked out 'db3e1a6eb8677d3166d90d82c3068689803ce547'
warning: unable to rmdir doxyport: Directory not empty
M	doxygen2jsdoc
Note: checking out '70600dece4138b0c0dbaff42f57828f1559cd840'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 70600de... mraa: update to version 0.8.0
fatal: reference is not a tree: 9cc90b7976252b2d14b7956230c5870097e1f008
Unable to checkout '9cc90b7976252b2d14b7956230c5870097e1f008' in submodule path 'doxygen2jsdoc'
Makefile:51: recipe for target '/home/wilson/bointec/MTK/openwrt/dl/libmraa-0.8.0-70600dece4138b0c0dbaff42f57828f1559cd840.tar.gz' failed

Disable mraa is the only way to solve this issue?
I see the warning above seem that can't download "libmraa-0.8.0-70600dece4138b0c0dbaff42f57828f1559cd840.tar.gz"
Where can I download it?

  1. I had done it before build.

@Victoriouszh
Copy link
Author

Victoriouszh commented Oct 28, 2017

like i said in my initial post. i'm what they call a n00b trying to solve the issues by my self, and would gladly accept help from anyone too. i believe, there must be a better way to solve this issue. but i couldn't find anything nor am i able to fix that problem. i simply told you what i did to make it build and to make it work for me. aldo it still does not work for my purpose. i have massive issues with libavahi daemon.

On the other hand, there is mediatek labs who is promising us, to have a working board with drivers and dependencies for openwrt, to do simple iot or wifi speaker stuff and such. i wonder why no one of them is checking out these issues.

but back to your issues you have there.

  1. have you tried removing this folder manually? rm -rf foldername

  2. this could be maybe helpful: https://stackoverflow.com/questions/2155887/git-submodule-head-reference-is-not-a-tree-error

Let me know if it helped and what you did. would only make me learn some more :)

@wilson6405
Copy link

wilson6405 commented Oct 29, 2017

Hi Victoriouszh,

I follow your steps to disable the libmraa and build successfully.
But the orange led(WiFi led) still lit up.
Doesn't mean that fail? I had waited for 30 mins.

@Victoriouszh
Copy link
Author

how did you flash that firmware?

@wilson6405
Copy link

I had tried both webUI and USB driver but it still can't flash.
Only downloading from mediatek labs can flash in it.

I am following developer guide to build.

@Victoriouszh
Copy link
Author

i will try that again, and i'l try it your way.... give me some time.

@wilson6405
Copy link

After download libmraa-0.8.0-70600dece4138b0c0dbaff42f57828f1559cd840.tar.gz
I build and flash successfully.

@jasonrock21
Copy link

I ran into the same issues, plus an additional since LEDE merged with OpenWRT.
Appreciate your efforts to create a path towards a resolution.

Here's my additional issue: OpenWRT archived chaos calmer and therefore Step 2 did not work.

Replace Step 2 with this to ensure you're working with Chaos Calmer with kernel 3.18.44 based on the Readme node about LinkIt supporting 3.18.21 ~ 3.18.44:

$ git clone https://github.com/openwrt/chaos_calmer openwrt
$ git checkout c170d84bbe08e0f049c99d3f376aae170a36458e

Next obtain libmraa-0.8.0-70600dece4138b0c0dbaff42f57828f1559cd840.tar.gz
Place it in ~/openwrt/dl folder
There are several who have it in their forked repo like NuxNuxLi
Though, I believe the official one is here and would need to be renamed before running make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants