<hexagonwin[m]>
by the way is running echo disabled 0 > /etc/config/wireless the right way to enable wifi??
<slh>
no
<hexagonwin[m]>
then how should I?
<slh>
configure it, as you normally would on any other OpenWrt device - thereby removing the option disabled 1 line
<hexagonwin[m]>
As i mention earlier I don't have this file /etc/config/wireless
<hexagonwin[m]>
Sorry I'm new to owrt, is not having that file weird..?
<slh>
then no wireless hardware is detected (as in no drivers/ firmware present)
<hexagonwin[m]>
I just flashed the initramfs now not the sysupgrade image
<hexagonwin[m]>
ohh alright
<hexagonwin[m]>
thats weird
Rentong has quit [Ping timeout: 480 seconds]
<hexagonwin[m]>
Oh and running lspci also returns no command, do i need to install it?
<russell-->
if you want to run it, you'll need to install it
<slh>
you're in charge of installing anything you might want to use, including selecting the necessary wireless drivers and their firmware packages, if you're porting a new device
<hexagonwin[m]>
Ohh alright
<russell-->
you might be able to get away with looking in /sys/bus/pci
<hexagonwin[m]>
Thanks
<russell-->
or dmesg | grep pci
dangole has quit [Ping timeout: 480 seconds]
<hexagonwin[m]>
when I do it has some failed to assign is it normal?
<hexagonwin[m]>
pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000 ]
<hexagonwin[m]>
things like these
<hexagonwin[m]>
If I get a shell in oem firmware can I see which wlan I have?
Luke-Jr has quit []
Luke-Jr has joined #openwrt-devel
<hexagonwin[m]>
Can I see which packages are available in OWRT repository?
<hexagonwin[m]>
(In order to find correct names for the packages I need to put in mt7621.mk)
<hexagonwin[m]>
Which package should i put for mt7612e and mt7602e ???
<hexagonwin[m]>
i mean the kernel module name. Thanks
noltari has quit [Read error: Connection reset by peer]
<hexagonwin[m]>
Fixed!
noltari has joined #openwrt-devel
<hexagonwin[m]>
By adding kmod-mt76x2 in makefile
* enyc
meeps
<Tusker>
enyc: is meep less annoying? :)
<enyc>
Tusker: who deal with channel topic !!!?!?
<Tusker>
not really sure sorry
<hexagonwin[m]>
Hmm so now it seemed to work.. I connected wan and installed luci, on luci it also sees the wlan, however after I turn it on to work as an AP my smartphones and computers all don't see it. (LEDs aren't also working but that's normal since I didn't fix yet) how should I debug this..?
<hexagonwin[m]>
discovering wifi inside luci works
<hexagonwin[m]>
booting uart shows that mt76x2 firmware loaded
<hexagonwin[m]>
PaulFertser: is the wlan0/1 scan failing normal when wifi ap is turned on?
<hexagonwin[m]>
(i mean in luci)
rmilecki has quit [Quit: Konversation terminated!]
<hexagonwin[m]>
I disabled wifi in luci and wlan0 and wlan1 device disappeared.
<hexagonwin[m]>
I'll try a reboot
<PaulFertser>
hexagonwin[m]: hm, how about calibration data, is mediatek,mtd-eeprom set properly in your DTS? Have you checked manually the data is there? (the first word should match the model name)
<hexagonwin[m]>
Oh I'll check
<hexagonwin[m]>
Ah yes I did
<hexagonwin[m]>
I did grep with hexdump on factory partition where the mac address is in
<PaulFertser>
hexagonwin[m]: e.g. on my mir3g I have hexdump -C showing this: 00008000 62 76 01 00 and 00000000 03 76 01 02
<PaulFertser>
hexagonwin[m]: and do you see the expected mac addresses in "ip a" now?
<hexagonwin[m]>
Yes the mac addresses are correct
<hexagonwin[m]>
as the stock firmware one
<hexagonwin[m]>
each 2.4g and 5g wifi mac address
<hexagonwin[m]>
but i didn't check lan ports' mac address yet
<hexagonwin[m]>
PaulFertser: Im sorry I can't understand what you mean.. sorry
<hexagonwin[m]>
which model number..?
<PaulFertser>
hexagonwin[m]: 7612 and 7602.
<hexagonwin[m]>
Oh
<hexagonwin[m]>
I realized what chip I have from OEM firmware's source code
<PaulFertser>
hexagonwin[m]: i see your first pcie device seems to be 7612 and you specify "factory 0" for it. What is the first word you see at factory 0?
<PaulFertser>
hexagonwin[m]: and what is the first word you see at factory 0x8000 ?
<hexagonwin[m]>
PaulFertser: how can I see the first word in factory 0..? run hexdump?
<hexagonwin[m]>
sorry :(
<PaulFertser>
hexagonwin[m]: hexdump -C, yes
<Tusker>
hexdump -C -n 8 /dev/mtd1
<Tusker>
something like that
<PaulFertser>
In case mtd1 is the same partition that has label factory in your DTS.
<hexagonwin[m]>
So in 8000 that isn't the mac address
<hexagonwin[m]>
weird
<PaulFertser>
hexagonwin[m]: I would expect your 0 pcie device to be used for 5 GHz and the 1st pcie device to be used for 2.4 GHz, but you have it the opposite way.
<hexagonwin[m]>
Oh that makes sense
<hexagonwin[m]>
but wait..!
<hexagonwin[m]>
ls
<hexagonwin[m]>
* 2.4ghz wifi mac address : 90:9f:33:be:41:20
<hexagonwin[m]>
5.4 : 90:9f:33:be:41:22
<hexagonwin[m]>
Hmm
<Tusker>
so maybe -n 16 to capture the rest of the mac
<Tusker>
i wonder if the factory firmware actually uses those settings... and I would not really be too worried about the law if you are just testing for a few minutes... I am sure you could explain it
<hexagonwin[m]>
I tried TW Taiwan and it doesn't work still
<hexagonwin[m]>
I can go to stock firmware if needed, and afaik they do have these settings
<hexagonwin[m]>
and if language is set to korean and I maximize something and it's against law it warns about it
<PaulFertser>
hexagonwin[m]: why are you sure phy0 should work in 2.4 GHz?
<hexagonwin[m]>
what do you mean?
<PaulFertser>
hexagonwin[m]: your DTS assignes whatever is on pcie0 to 2.4 GHz band. Why not 5 GHz?
<hexagonwin[m]>
those commands that i tried earlier showed phy0 and wlan0 is same and that is 2.4g
<PaulFertser>
hexagonwin[m]: no, in @pcie0 and @pcie1
<PaulFertser>
hexagonwin[m]: have you pasted full dmesg with OpenWrt anywhere?
<hexagonwin[m]>
PaulFertser: No, but I'll do if you need
<hexagonwin[m]>
PaulFertser: There is no word @pci in my dts file
<PaulFertser>
hexagonwin[m]: of course I do
<hexagonwin[m]>
which line?
<PaulFertser>
&pcie0
<hexagonwin[m]>
ah
<hexagonwin[m]>
Those seem to be just pasted from a8004t (which is what I based from) so I'll edit that
<hexagonwin[m]>
And I'm rebooting router for logs now..
* Tusker
is away --- back soon
<PaulFertser>
hexagonwin[m]: it looks like you have mt7612 on pcie0 and mt7602 on pcie1. So I would expect mt7612 to be used for 5 GHz but you do it the opposite way!
<hexagonwin[m]>
Ohhh
<hexagonwin[m]>
that's very possible
<hexagonwin[m]>
I'll try reversing
<hexagonwin[m]>
after putting log
<PaulFertser>
hexagonwin[m]: and after booting do "iw list" too.
jlsalvador has quit [Read error: Connection reset by peer]
<Tusker>
PaulFertser: FYI, I gave up for now for my gmac0 issue, just modified the uboot so that it does a ping on every boot...
<PaulFertser>
Tusker: sometimes one just needs a break and be able to proceed with the other aspects of support.
<Tusker>
exactly :) Was planning on using it to run frr (quagga), but maybe will use a different AP for that with 512MB RAM should be enough... 128MB might be a bit tight
<Tusker>
saw a Cisco MR52 for AU$100 on ebay too... looks like clayface has it 99% supported already in the PR
<hexagonwin[m]>
I reversed both, now wifi does work!!
<hexagonwin[m]>
Now all except button and led working.
<PaulFertser>
hexagonwin[m]: cool :)
<PaulFertser>
hexagonwin[m]: I hope you're going to send the support upstream once you get it fully working?
<hexagonwin[m]>
Thanks for helping me
<hexagonwin[m]>
Yeah I'm going to
<hexagonwin[m]>
The device's specs are fully capable of running OWRT and it's also working nicely right now, in terms of speed
<PaulFertser>
hexagonwin[m]: and? Do you suspect you have no LEDs or that they're not controlled by GPIO?
<hexagonwin[m]>
I do have two leds
<hexagonwin[m]>
I mean that I was confused why two different leds had same gpio number
<hexagonwin[m]>
and that number was minus one
<PaulFertser>
hexagonwin[m]: I would assume that to mean no led can be controlled at all.
jlsalvador2 has joined #openwrt-devel
jlsalvador has quit [Read error: Connection reset by peer]
jlsalvador2 is now known as jlsalvador
<hexagonwin[m]>
Hmm, alright
<hexagonwin[m]>
so the lan port leds worked out of the box correctly when I had reversed lan port orders in dts so I guess that's an uncontrollable one
<hexagonwin[m]>
and power led also works even when power off is done so I guess that also is
<hexagonwin[m]>
but the cpu led and two wifi, and usb would need to be controllable I guess
<hexagonwin[m]>
for usb there's a number so it's fine
<PaulFertser>
hexagonwin[m]: so that wiki page has the scripts that should help you find the number.
<hexagonwin[m]>
Yes
<hexagonwin[m]>
I did the script
<hexagonwin[m]>
it keep just gives
<hexagonwin[m]>
0 and 1
<hexagonwin[m]>
In led there is something like label = "orange:cpu";
<hexagonwin[m]>
what does the orange mean?
<hexagonwin[m]>
For some other devices there is blue or green too..
<hexagonwin[m]>
and in my device's dts all is set to orange but the real leds are blue onl
<hexagonwin[m]>
* and in my device's dts all is set to orange but the real leds are blue only
<PaulFertser>
hexagonwin[m]: probably you didn't read the page then :(
<hexagonwin[m]>
I did..
jlsalvador2 has joined #openwrt-devel
jlsalvador has quit [Remote host closed the connection]
jlsalvador2 is now known as jlsalvador
dangole has quit [Remote host closed the connection]
Tapper has quit [Ping timeout: 480 seconds]
Rentong has joined #openwrt-devel
Rentong has quit [Ping timeout: 480 seconds]
plntyk has quit [Remote host closed the connection]
rejoicetreat has quit [Remote host closed the connection]
rejoicetreat has joined #openwrt-devel
jlsalvador has quit [Read error: Connection reset by peer]
jlsalvador has joined #openwrt-devel
plntyk has joined #openwrt-devel
valku has joined #openwrt-devel
Luke-Jr has quit [Ping timeout: 480 seconds]
Tusker has quit [Quit: Time wasted on IRC: 1 day 1 hour 38 minutes 47 seconds]
takimata has quit [Quit: wat?]
Luke-Jr has joined #openwrt-devel
takimata has joined #openwrt-devel
Rentong has joined #openwrt-devel
nitroshift has quit [Quit: Gone that way --->]
aleksander has quit [Quit: Leaving]
goliath has quit [Quit: SIGSEGV]
minimal has joined #openwrt-devel
Rentong has quit [Ping timeout: 480 seconds]
Rentong has joined #openwrt-devel
Rentong has quit [Remote host closed the connection]
Rentong has joined #openwrt-devel
Rentong has quit [Ping timeout: 480 seconds]
rejoicetreat has quit [Ping timeout: 480 seconds]
rejoicetreat has joined #openwrt-devel
Rentong has joined #openwrt-devel
Rentong has quit [Remote host closed the connection]
danitool has quit [Quit: Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos]
Rentong has joined #openwrt-devel
KGB-0 has quit [Quit: KGB-0]
Rentong has quit [Ping timeout: 480 seconds]
KGB-0 has joined #openwrt-devel
Rentong has joined #openwrt-devel
rejoicetreat has quit [Ping timeout: 480 seconds]
Rentong has quit [Ping timeout: 480 seconds]
Tapper has joined #openwrt-devel
goliath has joined #openwrt-devel
dedeckeh has quit [Remote host closed the connection]
jlsalvador has quit [Read error: No route to host]
jlsalvador has joined #openwrt-devel
Tusker has joined #openwrt-devel
jlsalvador has quit [Remote host closed the connection]
jlsalvador has joined #openwrt-devel
<Tusker>
zhoreeq: do you use yggdrasil for any use case ?
<zhoreeq>
Tusker: yes, a lot of use cases
<Tusker>
could you enlighten me? it seems an interesting project, but wondering what you actually use it for
<zhoreeq>
I mostly use it as a free zeroconf VPN
<Tusker>
yeah, that could be useful
<Tusker>
what is the memory usage like on openwrt ?
<zhoreeq>
Tusker: not sure, around 10MB
<Tusker>
that's pretty reasonable, how does it handle different bandwidth requirements ? ie, if you are a node, do you get lots of other traffic coming through you ?
jlsalvador2 has joined #openwrt-devel
jlsalvador has quit [Read error: Connection reset by peer]
jlsalvador2 is now known as jlsalvador
<zhoreeq>
Tusker: I don't think so, but you better ask public peer operators at #yggdrasil (that channel is at libera.chat now iirc)