LUGRo-Mesh Forum (español/english)
March 28, 2024, 07:43:48 am
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free
 
  Home   Forum   Help Search Gallery Staff List Login Register  

Problems to adapt firmware

Pages: [1] 2  All   Go Down
  Print  
Author Topic: Problems to adapt firmware  (Read 2950 times)
0 Members and 1 Guest are viewing this topic.
PCDOM
Full Member
***
Posts: 105


« on: June 16, 2009, 10:27:34 am »

Hi,

I have a problem with compilation, it is with script to change gateway_id to zap-MACADDRESS and zpriv-MACADDRESS

maybe it is my line is not OK

file nightwing in trunk/nightwing/etc/init.d

 ## Determine nodo_id for the first time. Then it could be changed.

 let NODE_ID=0x$(echo $LAN_MAC| awk -F: '{print $5$6}')

replace by

## Determine nodo_id for the first time. Then it could be changed.

 NODE_ID=$(echo $LAN_MAC| tr -d : )

or i made another mistake, you can see the instructions (in French) at this address

http://www.zapbas-saint-laurent.org/routers/Compilation%20du%20Firmware%20NightWing.htm

The comoilation works good but after flashed picostation2, the network is zap and priv without mac address - mac address like this 000000000000 - no :   

Can you help me ?
« Last Edit: June 16, 2009, 10:36:10 am by PCDOM » Report Spam   Logged

Share on Facebook Share on Twitter

M_Campff
Newbie
*
Posts: 2



« Reply #1 on: June 16, 2009, 06:36:03 pm »

Vous devrez modifier le    ligne du code numéro 104:

let NODE_ID=0x$(echo $LAN_MAC| awk -F: '{print $5$6}')

par

let NODE_ID=0x$(echo $LAN_MAC| awk -F: '{print $1$2$3$4$5$6}')

bonne chance!!!

Martín
PD: my french is too bad!!
Report Spam   Logged
PCDOM
Full Member
***
Posts: 105


« Reply #2 on: June 17, 2009, 08:16:29 am »

Vous devrez modifier le    ligne du code numéro 104:

let NODE_ID=0x$(echo $LAN_MAC| awk -F: '{print $5$6}')

par

let NODE_ID=0x$(echo $LAN_MAC| awk -F: '{print $1$2$3$4$5$6}')

bonne chance!!!

Martín
PD: my french is too bad!!

I try this line but the AP keeped zap and zpri

mac address didn't write, I would like

zap-000000000000
zpriv-000000000000

Helene Gauthier
Report Spam   Logged
scriado
Administrator
Full Member
*****
Posts: 135


« Reply #3 on: June 17, 2009, 08:42:54 am »

Please look at if you have mac address in eth0.
Report Spam   Logged
PCDOM
Full Member
***
Posts: 105


« Reply #4 on: June 17, 2009, 04:02:50 pm »

Please look at if you have mac address in eth0.
OK, I retry to compile firmware from your svn and openwrt svn
I changed nothing and I have the same problem, the networks are
lugro-mesh
lugro-secure
maybe it have a problem when I execute your steps ?
Can you help me ?
Helene Gauthier
Report Spam   Logged
scriado
Administrator
Full Member
*****
Posts: 135


« Reply #5 on: June 17, 2009, 05:38:28 pm »

 Huh
If you dont have Mac Address is a hardware problem.
No software problem.
Report Spam   Logged
PCDOM
Full Member
***
Posts: 105


« Reply #6 on: June 17, 2009, 06:33:22 pm »

Huh
If you dont have Mac Address is a hardware problem.
No software problem.
OK, I flashed two PicoStation2 to test my firmware

Between each test, I flashed each PicoStation with original firmware of UBIQUITI (mac address is ok on AIR OS)

I reflashed with your beta4 version and now the number after lugro-mesh-xxxxx and lugro-secure-xxxxx is ok

I think that I have a problem with my steps of compilation

Some idea ?

Is it wifidog is uploaded during compilation ? or can I have to copy wifidog files from dev.wifidog.org ?

I'm writing french instructions to compile your firmware, after I will create english documentation and give it  to you

this is my doc in french

http://www.zapbas-saint-laurent.org/routers/Compilation%20du%20Firmware%20NightWing.htm

Helene Gauthier
Report Spam   Logged
scriado
Administrator
Full Member
*****
Posts: 135


« Reply #7 on: June 17, 2009, 07:05:39 pm »

Huh
If you dont have Mac Address is a hardware problem.
No software problem.

OK, I flashed two PicoStation2 to test my firmware

Some idea ?

We have not done tests with that hardware.
I did not have that in mind in the last answered.

Maybe the problem is this line:

LAN_MAC=$(ifconfig $LAN_IFACE | grep HWaddr | awk '{print $5}')

Waht do you see if you enter this command?

# ifconfig eth0

Please paste the result.

Quote

Is it wifidog is uploaded during compilation ? or can I have to copy wifidog files from dev.wifidog.org ?


Wifidog is uploaded during compilation

Quote
I'm writing french instructions to compile your firmware, after I will create english documentation and give it  to you

this is my doc in french

http://www.zapbas-saint-laurent.org/routers/Compilation%20du%20Firmware%20NightWing.htm

Grate news.
We appreciate that.

Saludos.-
Report Spam   Logged
PCDOM
Full Member
***
Posts: 105


« Reply #8 on: June 18, 2009, 04:08:52 am »



We have not done tests with that hardware.
I did not have that in mind in the last answered.

Maybe the problem is this line:

LAN_MAC=$(ifconfig $LAN_IFACE | grep HWaddr | awk '{print $5}')

What do you see if you enter this command?

# ifconfig eth0

Please paste the result.


this is my doc in english

http://www.zapbas-saint-laurent.org/routers/Compilation%20Nightwing%20Firmware%20ZAP.htm

Maybe you can see my problem with the steps

When and where do you want that I execute this command

# ifconfig eth0

Helene Gauthier
Report Spam   Logged
scriado
Administrator
Full Member
*****
Posts: 135


« Reply #9 on: June 18, 2009, 08:35:26 am »

When and where do you want that I execute this command
# ifconfig eth0
Helene Gauthier

Entering the device via ssh.

Saludos.-
Report Spam   Logged
PCDOM
Full Member
***
Posts: 105


« Reply #10 on: June 18, 2009, 11:10:00 am »

Entering the device via ssh.
Ok, I flashed with my variables without line for mac address
the documentation infrench and in english are available here
http://www.zapbas-saint-laurent.org/routers/Compilation%20du%20Firmware%20NightWing.htm
http://www.zapbas-saint-laurent.org/routers/Compilation%20Nightwing%20Firmware%20ZAP.htm

it works fine

when I change the line for mac address and flash again, I can't access to the picostation at all

something is wrong on the command line
 let NODE_ID=0x$(echo $LAN_MAC| awk -F: '{print $1$2$3$4$5$6}')
Report Spam   Logged
scriado
Administrator
Full Member
*****
Posts: 135


« Reply #11 on: June 18, 2009, 11:24:49 am »

Waht do you see if you enter this command?

# ifconfig eth0

Please paste the result.
Report Spam   Logged
PCDOM
Full Member
***
Posts: 105


« Reply #12 on: June 18, 2009, 01:24:01 pm »

Waht do you see if you enter this command?

# ifconfig eth0

Please paste the result.

this is the result of this command with my firmware modified but not for zap-xxxxxxxxxxxx (ehere x are mac address)
eth0      Link encap:Ethernet  HWaddr 00:15:6D:AE:CD:A6
          inet addr:192.168.1.178  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2403 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1529 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:337587 (329.6 KiB)  TX bytes:129451 (126.4 KiB)
          Interrupt:4 Base address:0x1000

I cannot see the picostation2 flashed with the line  let NODE_ID=0x$(echo $LAN_MAC| awk -F: '{print $1$2$3$4$5$6}')
I can't see from my router, from ubiquiti discovery, from hotspot discovery and spectrum analyzer
so I can't access on it and execute the command

I think the ip from dns is changed automaticcally each x seconds
Report Spam   Logged
scriado
Administrator
Full Member
*****
Posts: 135


« Reply #13 on: June 18, 2009, 04:16:38 pm »

[...]
I cannot see the picostation2 flashed with the line  let NODE_ID=0x$(echo $LAN_MAC| awk -F: '{print $1$2$3$4$5$6}')
I can't see from my router, from ubiquiti discovery, from hotspot discovery and spectrum analyzer
so I can't access on it and execute the command

I think the ip from dns is changed automaticcally each x seconds

Sory, in this case, i cant help you.
We have not tested in this hardware
Report Spam   Logged
PCDOM
Full Member
***
Posts: 105


« Reply #14 on: June 18, 2009, 05:06:41 pm »

Sory, in this case, i cant help you.
We have not tested in this hardware

Ok, I reflashed with all the specifications of our portal captive and not change for the node_id

I can access by ssh

Wifidog see the node on but I can't see the hostspot with scanner of hotspot

this if ifconfig result

root@ZapBSL:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:15:6D:AE:CC:00
          inet addr:192.168.1.162  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:350 errors:0 dropped:0 overruns:0 frame:0
          TX packets:205 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:71300 (69.6 KiB)  TX bytes:20146 (19.6 KiB)
          Interrupt:4 Base address:0x1000

Report Spam   Logged
Pages: [1] 2  All   Go Up
  Print  
 
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum
Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy