Wi5 / odin-wi5

Odin framework: Patches + Wiki (Instructions)
8 stars 17 forks source link

some question about Copy the files to the router After cross-compiling click #43

Closed peterrz closed 7 years ago

peterrz commented 7 years ago

Hi, at end of this wiki you said " Copy the files to the router After cross-compiling click and click-align binaries, they have to be copied to the Wi-Fi routers" but you don't mention where to copy it any specific path ? this binary click we build size it to big 4Mb & 30 Mb i t didn't fit in router (my router is WR1043nd i have only one usb interface. ) what should we do ? { i Check start.sh : "## Mount USB echo "Mounting USB" if [ ! -d "/mnt/usb" ]; then mkdir -p /mnt/usb fi mount /dev/sda1 /mnt/usb/" what is /dev/sda1 ? } and also i have you previous file ( click_binary_file) contain {click-align_for_AR71xx , click_for_AR71xx} " it doesn't available anymore", can we use it or we should build own click cause every time i got error to build.

josemariasaldana commented 7 years ago

We have moved to APs with more than a single USB port. One USB port is used for a memory stick with Click, and the other one for an auxiliary wireless card.

Three possibilities come to mind (none of them has been tested):

peterrz commented 7 years ago

Hi So why name tp-link Wr1043ND listed in supported hardware? When this project need 2 usb??! And Also I have same error you talk about in kohler/click "Problem when cross-compiling: error.cc #25" Any solution? Thanks

josemariasaldana commented 7 years ago

I have corrected the wiki https://github.com/Wi5/odin-wi5/wiki/Supported-hardware

peterrz commented 7 years ago

I will use usb hub and i feed back if it work

vincentng291 commented 7 years ago

Dear peterrz, I have same hardware devices as you (TPLink 1043ND) Have you done your prototype? Can I ask you something about your systems?

peterrz commented 7 years ago

@tomahawk291 hi, of course i will be glad to help you

vincentng291 commented 7 years ago

@peterrz Thank you! I am done with part compile for Click but how can we use them, I can not install it in OpenWRT. The author wrote "Start Click" and I don't know what to do with it. I am using TPLink 1043ND v3, are you done with this version?

peterrz commented 7 years ago

@tomahawk291 yeah, I have TPLink 1043ND v3 too, after complied click put files (click , click-aligen & agent.cli ) in flash memory, use agent-click-file-gen.py to build agent.cli , then use flash memory on your router and start running this script start.sh

vincentng291 commented 7 years ago

Thanks! But now I am struggling with USB drive to copy Click. Did you install some special packet? Or may I have your firmware flash file? I really appreciate this since I lost many time for building firmware.

peterrz commented 7 years ago

@tomahawk291 did you format your usb drive to ex3/ex4 ? here is the link my firmware

vincentng291 commented 7 years ago

Yeah, I already format and when I saw log it also recognized my usb but I still can not mount. About your firmware, could you provide your /config/network file in your repository?

peterrz commented 7 years ago

then use luci to mount your usb, and also you can use luci too for config network my config

vincentng291 commented 7 years ago

I have just flashed your firmware. I saw your network config, you connect openwrt via address 192.168.1.30 and wan port, right?

peterrz commented 7 years ago

make sure you install necessary packages and use this command to find your usb drive : $block detect > /etc/config/fstab
$vi /etc/config/fstab
config 'global' option anon_swap '0' option anon_mount '0' option auto_swap '1' option auto_mount '1' option delay_root '5' option check_fs '0'

config 'mount' option target '/mnt/sdb1' option uuid '3E86-1C9C' option enabled '0'

config 'global' option anon_swap '0' option anon_mount '0' option auto_swap '1' option auto_mount '1' option delay_root '5' option check_fs '0'

config 'mount' option target '/mnt/sda' option uuid 'D0C8-3C42' option enabled '1'

peterrz commented 7 years ago

@tomahawk291 my controller is 1.30 , my lan1 is 1.32 and my wan is 1.31, my scenario was little difference my lan4 was dhcp for install packages via internet

vincentng291 commented 7 years ago

I am sorry but I do not find the way to connect to luci web or ssh to openwrt. I have computer with ip 192.168.1.101 and which port and address I can connect to LUCI?

peterrz commented 7 years ago

Sorry i forget to say luci isn't intalled Use opkg update and opkg install luci first, then use ip router to connect it : ip/cgi-bin/luci/

On Sep 6, 2017 1:37 PM, "tomahawk291" notifications@github.com wrote:

I am sorry but I do not find the way to connect to luci web or ssh to openwrt. I have computer with ip 192.168.1.101 and which port and address I can connect to LUCI?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Wi5/odin-wi5/issues/43#issuecomment-327423069, or mute the thread https://github.com/notifications/unsubscribe-auth/ASS0VD8gsU-ljAJVJG2M2BPXrVjobyG8ks5sfmDEgaJpZM4OEj-u .

vincentng291 commented 7 years ago

Yeah I know, but I can not ssh to router. Could you tell me the router Ip and port? If i bother you too much, please understand cause I try many time.

peterrz commented 7 years ago

No problem i been in your situation i completely understand, i didnt set any ip on my firmware if you mean that. First time you need telne to set passwd in 192.168.1.1 after that use putty 192.168.1.1 and port is 22, this depends what did you do when flash new frameware (sysupgrade.bin). Do you remove all setting or continue as your old configuration. Please check your previous ip too.

On Sep 6, 2017 1:46 PM, "tomahawk291" notifications@github.com wrote:

Yeah I know, but I can not ssh to router. Could you tell me the router Ip and port? If i bother you too much, please understand cause I try many time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Wi5/odin-wi5/issues/43#issuecomment-327425374, or mute the thread https://github.com/notifications/unsubscribe-auth/ASS0VBR0MyHhWMhSBRulQIjxsbRNJNKkks5sfmL0gaJpZM4OEj-u .

vincentng291 commented 7 years ago

@peterrz I am done with configuration of router and run start script but has one problem: I follow all steps of start script but when go to this "ifconfig ap up" ?? error no such device. can I see your "ovs-vsctl show"

peterrz commented 7 years ago

ovs-vsctl show fa425e64-19fe-4465-862b-a6ff899e62ee Bridge "br0" Controller "tcp:192.168.1.30:6633" Port ap Interface ap Port "br0" Interface "br0" type: internal Port "eth1.4" Interface "eth1.4"

first run: ./click < click-align agent.cli & (do you see any change when you run this command ?) then : ifconfig ap up
ovs-vsctl add-port br0 ap

vincentng291 commented 7 years ago

Thanks! It seems almost the same with my setup

first run: ./click < click-align agent.cli & (do you see any change when you run this command ?)

I saw nothing happen with this command, even logread. I am not sure about my agent.cli file. Could you upload your agent.cli for comparison? And one more, there is no UI for odin controller, right? How you can see the clients and other information?

Edit: Now when I run the agent.cli there is one error: OdinAgent: Input 2 unused. I try, may be my wireless network config is wrong. Hope help from you. Thanks!

peterrz commented 7 years ago

yeah there is no UI, in logread, follow this link it explain well link here is my agent.cli agent.cli.txt

vincentng291 commented 7 years ago

Thanks! Now when I run the agent.cli there is one error: OdinAgent: Input 2 unused. Output 4 unused. I try, may be my wireless network config is wrong. So can I see your ifconfig -a and etc/config/wireless ?

peterrz commented 7 years ago

before you run it, use ifconfig to see your wlan name in my router i use radio 2 and radio 3 , my etc/config/wireless:

config wifi-device radio0 option type mac80211 option channel 36 option hwmode 11a option path 'virtual/mac80211_hwsim/hwsim0' option htmode VHT80

REMOVE THIS LINE TO ENABLE WIFI:

    option disabled 1

config wifi-iface option device radio0 option network lan option mode ap option ssid wrt option encryption none

config wifi-device radio1 option type mac80211 option channel 36 option hwmode 11a option path 'virtual/mac80211_hwsim/hwsim1' option htmode VHT80

REMOVE THIS LINE TO ENABLE WIFI:

    option disabled 1

config wifi-iface option device radio1 option network lan option mode ap option ssid wrt option encryption none

config wifi-device radio2 option type mac80211 option channel 11 option hwmode 11g option path 'platform/qca955x_wmac' option htmode HT20

REMOVE THIS LINE TO ENABLE WIFI:

    option disabled 1

config wifi-iface option device radio2 option network lan option mode ap option ssid wrt option encryption none

config wifi-device radio3 option type mac80211 option channel 11 option hwmode 11g option path 'platform/ehci-platform.0/usb1/1-1/1-1.2/1-1.2:1.0' option htmode HT20

REMOVE THIS LINE TO ENABLE WIFI:

    option disabled 1

config wifi-iface option device radio3 option network lan option mode ap option ssid openwrt option encryption none

vincentng291 commented 7 years ago

option path 'platform/ehci-platform.0/usb1/1-1/1-1.2/1-1.2:1.0'

Does it mean that I have to have another usb wifi card extend? I see you using 2 channel in agent.cli, may I have your "ifconfig -a" information. Thanks!

peterrz commented 7 years ago

Welcome, you should use external wireless( i use usb hub) ,yeah 2 channels , i dont access to ifconfig right now,

On Sep 8, 2017 14:03, "tomahawk291" notifications@github.com wrote:

option path 'platform/ehci-platform.0/usb1/1-1/1-1.2/1-1.2:1.0' Does it mean that I have to have another usb wifi card extend? I see you using 2 channel in agent.cli, may I have your "ifconfig -a" information. Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Wi5/odin-wi5/issues/43#issuecomment-328054631, or mute the thread https://github.com/notifications/unsubscribe-auth/ASS0VEekf7DhyGscSfXRAfBuqXUUv6XEks5sgQnagaJpZM4OEj-u .

vincentng291 commented 7 years ago

Yeah, thank for your help, i still need your ifconfig information. Hope you can provide me soon, I will try more.

peterrz commented 7 years ago

@tomahawk291 here is the ifconfig -a ifconfig -a.txt good luck!

vincentng291 commented 7 years ago

Hi @peterrz it is me again, Did you succeed in building Click or you click this author provide from this https://github.com/Wi5/odin-wi5-agent/tree/master/click_binary_file ? If you can upload your Click, I really appreciate your help.

peterrz commented 7 years ago

hi @tomahawk291 this is my Click files

vincentng291 commented 7 years ago

Dear, when I run click, my screen showed that screenshot from 2017-09-12 18-12-39

Did you have the same result? I guess there should be one associated AP, but I am not sure what I missed.

peterrz commented 7 years ago

yes dear, i have same results, check the issues #46

vincentng291 commented 7 years ago

Thank you @peterrz for supporting me a lot. I saw your issue but after running I saw no ssid from my current access point which my devices can access. Did you enable any ssid (wlan0, wlan1, wlan2) or even ssid name from agent.py file?

peterrz commented 7 years ago

your welcome dear @tomahawk291, in OpenWrt wifis are disabled (default), so you should first enable your wifi use command line or Luci wifi uci set wireless.@wifi-device[0].disabled=0 uci commit wireless

and also did you check Sanity-check

vincentng291 commented 7 years ago

Hi @peterrz are you successful in compiling Click? What is your environment? I need change some codes in click . btw I saw we have some similar work, could I have your contact for discussion? Thanks!

peterrz commented 7 years ago

hi @tomahawk291 i use same environment describe in wiki. i update my profile, contact me directly .

peterrz commented 7 years ago

@tomahawk291 did you solve your problem?!. I'm waiting for your mail.