Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-30 Thread Michael Jones
On Mon, Apr 27, 2020 at 9:45 PM Jeonghum Joh 
wrote:

> Hello Michael,
>
> Thank you for sharing the helpful url. I guess mwan3[1] would deal such
> daemons - netifd and hotplug.d. Isn't it? If mwan3 deals with those, I
> guess I only need to utilize mwan3. Am I right?
>
> Thank you for answering my questions.
> Jeonghum
>
> [1] https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3
>

I've never heard of mwan3 before.

That being said, looking at the documentation page you provided a link to,
it does not appear that it will help you with getting your cellphone modem
to cooperate with the openwrt network stack.

The mwan3 program appears to only care about routing decisions that are
made on top of existing interfaces that are already working, and would not
be useful for getting those interfaces to work in the first place.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Jeonghum Joh
Hello Michael,

Thank you for sharing the helpful url. I guess mwan3[1] would deal such
daemons - netifd and hotplug.d. Isn't it? If mwan3 deals with those, I
guess I only need to utilize mwan3. Am I right?

Thank you for answering my questions.
Jeonghum

[1] https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3

2020년 4월 28일 (화) 오전 1:12, Michael Jones 님이 작성:

>
>
> On Mon, Apr 27, 2020 at 7:42 AM Bjørn Mork  wrote:
>
>> Jeonghum Joh  writes:
>>
>> > I am porting a 5G/LTE modem into OpenWRT.
>>
>> Follow the instructions for LTE modems.  A 5G modem is pretty much the
>> same wrt drivers and basic management.  At least for Qualcomm based
>> modems on a USB bus.  Have no experience with anything else.  The Intel
>> and Huawei modems are competely unknown to me, and most likely
>> unsupported for the forseeable future.  And I'm also blank on the magic
>> of Qualcomms PCIe interface. Qualcomm did work on a driver, but it's
>> been a long time since I saw any update on that.  I guess no one cares
>> enough.  SuperSpeed USB is fine for most users for now.
>>
>> Anyway, several X55 based modems are already supported out of the box in
>> OpenWrt master.  There is no need to reinvent the wheel if you are using
>> one of those.
>>
>> You may obviously decide to implement your own alternative solutions,
>> like using some vendor software. But that will limit the user community
>> severely. At least until the solution attracts more users.  And
>> community support depends on users, which I believe is something you
>> should consider since you have ended up in this forum.  You are unlikely
>> to find anyone here who have any experience with your particular vendor
>> software version.
>>
>> Personally, I am happy to give advice about anything regardless of
>> experience.  But the quality of that advice is probably a tiny bit
>> better when it is based on something I've tried myself.  Or maybe not?
>> Is probably bad in any case.
>>
>>
>> Bjørn
>>
>>
> @Jeonghum Joh
>
> If you decide to use the connection management software that the vendor
> supplied, you'll want to integrate it into Netifd and Hotplug.d to ensure
> appropriate cross communication with things in the OpenWRT system.
>
> Please look at this file to see an example of how that is done:
> https://github.com/openwrt/packages/blob/master/net/modemmanager/files/modemmanager.proto
>  There's
> a whole rabbit hole that you can follow on this topic to get every detail
> right, but it's probably sufficient for your purposes to get the high level
> details, and then let the OpenWRT stack take care of the rest.
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Jeonghum Joh
Hello Bruno,

I want to share the informations you mentioned. I will check with my
company first and then if they let me do, I will share with you all.

Thank you.
Jeonghum

2020년 4월 27일 (월) 오후 11:53, Bruno Antunes 님이 작성:

> Hello Jeonghum,
> Can you share some details on the boards and modems you are using?
>
> Regards,
> Bruno
>
> On Mon, 27 Apr 2020 at 13:42, Bjørn Mork  wrote:
> >
> > Jeonghum Joh  writes:
> >
> > > I am porting a 5G/LTE modem into OpenWRT.
> >
> > Follow the instructions for LTE modems.  A 5G modem is pretty much the
> > same wrt drivers and basic management.  At least for Qualcomm based
> > modems on a USB bus.  Have no experience with anything else.  The Intel
> > and Huawei modems are competely unknown to me, and most likely
> > unsupported for the forseeable future.  And I'm also blank on the magic
> > of Qualcomms PCIe interface. Qualcomm did work on a driver, but it's
> > been a long time since I saw any update on that.  I guess no one cares
> > enough.  SuperSpeed USB is fine for most users for now.
> >
> > Anyway, several X55 based modems are already supported out of the box in
> > OpenWrt master.  There is no need to reinvent the wheel if you are using
> > one of those.
> >
> > You may obviously decide to implement your own alternative solutions,
> > like using some vendor software. But that will limit the user community
> > severely. At least until the solution attracts more users.  And
> > community support depends on users, which I believe is something you
> > should consider since you have ended up in this forum.  You are unlikely
> > to find anyone here who have any experience with your particular vendor
> > software version.
> >
> > Personally, I am happy to give advice about anything regardless of
> > experience.  But the quality of that advice is probably a tiny bit
> > better when it is based on something I've tried myself.  Or maybe not?
> > Is probably bad in any case.
> >
> >
> > Bjørn
> >
> > ___
> > openwrt-devel mailing list
> > openwrt-devel@lists.openwrt.org
> > https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Jeonghum Joh
Hello Bjørn,

What an honor to talk to you!
You are the author of the usbnet adapter kernel module!
Thank you for replying to me.

With your suggestions, I tried to search documents from openwrt documents
and found several:
https://openwrt.org/docs/guide-user/network/wan/wwan/ltedongle
https://openwrt.org/docs/guide-user/network/wan/multiwan/mwan3
https://openwrt.org/docs/guide-user/network/wan/wwan/start
https://openwrt.org/docs/guide-user/network/wan/wwan/modemmanager

And the last one from above is for about ModemManager. And I thought this
would be something that I can use instead of the modem provider version of
CM. But from the menuconfig, the ModemManager is not found at all. Maybe
it's because of my OpenWRT is out-dated?
I will try to find it from the latest openwrt.

I am so glad that you are in this mail list.

I want to share the information about my board, modem and openwrt version.
But I am not sure if I can share it in public domain. Maybe it would be no
problem but I will check it with my company first.

Thank you and you have a good day!
Jeonghum


2020년 4월 27일 (월) 오후 9:42, Bjørn Mork 님이 작성:

> Jeonghum Joh  writes:
>
> > I am porting a 5G/LTE modem into OpenWRT.
>
> Follow the instructions for LTE modems.  A 5G modem is pretty much the
> same wrt drivers and basic management.  At least for Qualcomm based
> modems on a USB bus.  Have no experience with anything else.  The Intel
> and Huawei modems are competely unknown to me, and most likely
> unsupported for the forseeable future.  And I'm also blank on the magic
> of Qualcomms PCIe interface. Qualcomm did work on a driver, but it's
> been a long time since I saw any update on that.  I guess no one cares
> enough.  SuperSpeed USB is fine for most users for now.
>
> Anyway, several X55 based modems are already supported out of the box in
> OpenWrt master.  There is no need to reinvent the wheel if you are using
> one of those.
>
> You may obviously decide to implement your own alternative solutions,
> like using some vendor software. But that will limit the user community
> severely. At least until the solution attracts more users.  And
> community support depends on users, which I believe is something you
> should consider since you have ended up in this forum.  You are unlikely
> to find anyone here who have any experience with your particular vendor
> software version.
>
> Personally, I am happy to give advice about anything regardless of
> experience.  But the quality of that advice is probably a tiny bit
> better when it is based on something I've tried myself.  Or maybe not?
> Is probably bad in any case.
>
>
> Bjørn
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Michael Jones
On Mon, Apr 27, 2020 at 7:42 AM Bjørn Mork  wrote:

> Jeonghum Joh  writes:
>
> > I am porting a 5G/LTE modem into OpenWRT.
>
> Follow the instructions for LTE modems.  A 5G modem is pretty much the
> same wrt drivers and basic management.  At least for Qualcomm based
> modems on a USB bus.  Have no experience with anything else.  The Intel
> and Huawei modems are competely unknown to me, and most likely
> unsupported for the forseeable future.  And I'm also blank on the magic
> of Qualcomms PCIe interface. Qualcomm did work on a driver, but it's
> been a long time since I saw any update on that.  I guess no one cares
> enough.  SuperSpeed USB is fine for most users for now.
>
> Anyway, several X55 based modems are already supported out of the box in
> OpenWrt master.  There is no need to reinvent the wheel if you are using
> one of those.
>
> You may obviously decide to implement your own alternative solutions,
> like using some vendor software. But that will limit the user community
> severely. At least until the solution attracts more users.  And
> community support depends on users, which I believe is something you
> should consider since you have ended up in this forum.  You are unlikely
> to find anyone here who have any experience with your particular vendor
> software version.
>
> Personally, I am happy to give advice about anything regardless of
> experience.  But the quality of that advice is probably a tiny bit
> better when it is based on something I've tried myself.  Or maybe not?
> Is probably bad in any case.
>
>
> Bjørn
>
>
@Jeonghum Joh

If you decide to use the connection management software that the vendor
supplied, you'll want to integrate it into Netifd and Hotplug.d to ensure
appropriate cross communication with things in the OpenWRT system.

Please look at this file to see an example of how that is done:
https://github.com/openwrt/packages/blob/master/net/modemmanager/files/modemmanager.proto
There's
a whole rabbit hole that you can follow on this topic to get every detail
right, but it's probably sufficient for your purposes to get the high level
details, and then let the OpenWRT stack take care of the rest.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Bruno Antunes
Hello Jeonghum,
Can you share some details on the boards and modems you are using?

Regards,
Bruno

On Mon, 27 Apr 2020 at 13:42, Bjørn Mork  wrote:
>
> Jeonghum Joh  writes:
>
> > I am porting a 5G/LTE modem into OpenWRT.
>
> Follow the instructions for LTE modems.  A 5G modem is pretty much the
> same wrt drivers and basic management.  At least for Qualcomm based
> modems on a USB bus.  Have no experience with anything else.  The Intel
> and Huawei modems are competely unknown to me, and most likely
> unsupported for the forseeable future.  And I'm also blank on the magic
> of Qualcomms PCIe interface. Qualcomm did work on a driver, but it's
> been a long time since I saw any update on that.  I guess no one cares
> enough.  SuperSpeed USB is fine for most users for now.
>
> Anyway, several X55 based modems are already supported out of the box in
> OpenWrt master.  There is no need to reinvent the wheel if you are using
> one of those.
>
> You may obviously decide to implement your own alternative solutions,
> like using some vendor software. But that will limit the user community
> severely. At least until the solution attracts more users.  And
> community support depends on users, which I believe is something you
> should consider since you have ended up in this forum.  You are unlikely
> to find anyone here who have any experience with your particular vendor
> software version.
>
> Personally, I am happy to give advice about anything regardless of
> experience.  But the quality of that advice is probably a tiny bit
> better when it is based on something I've tried myself.  Or maybe not?
> Is probably bad in any case.
>
>
> Bjørn
>
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Bjørn Mork
Jeonghum Joh  writes:

> I am porting a 5G/LTE modem into OpenWRT.

Follow the instructions for LTE modems.  A 5G modem is pretty much the
same wrt drivers and basic management.  At least for Qualcomm based
modems on a USB bus.  Have no experience with anything else.  The Intel
and Huawei modems are competely unknown to me, and most likely
unsupported for the forseeable future.  And I'm also blank on the magic
of Qualcomms PCIe interface. Qualcomm did work on a driver, but it's
been a long time since I saw any update on that.  I guess no one cares
enough.  SuperSpeed USB is fine for most users for now.

Anyway, several X55 based modems are already supported out of the box in
OpenWrt master.  There is no need to reinvent the wheel if you are using
one of those.

You may obviously decide to implement your own alternative solutions,
like using some vendor software. But that will limit the user community
severely. At least until the solution attracts more users.  And
community support depends on users, which I believe is something you
should consider since you have ended up in this forum.  You are unlikely
to find anyone here who have any experience with your particular vendor
software version.

Personally, I am happy to give advice about anything regardless of
experience.  But the quality of that advice is probably a tiny bit
better when it is based on something I've tried myself.  Or maybe not?
Is probably bad in any case.


Bjørn

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Jeonghum Joh
Hello, There was a typo : %s/whoot/shoot out/gc
Have a good day!
Jeonghum

2020년 4월 27일 (월) 오후 8:14, Jeonghum Joh 님이 작성:

> Hello Enrico,
>
> Thank you for your email!
>
> I couldn't find what upstream connection manager is but there was
> ModemManager in my googling result.
> But studying about ModemManager would make my work something that must
> start from scratch.
>
> I think studying UCI interface / libraries, and ubus would be good
> approach for me. The CM I have anyway makes the interface wwan0 work. So I
> will try to whoot problems one by one. So that I believe I can make my CM
> work well.
>
> Thank you for your interest. I love OpenWRT, Lua & Luci.
>
> Thank you!
> Jeonghum
>
>
>
> 2020년 4월 27일 (월) 오후 7:45, Enrico Mioso 님이 작성:
>
>> Hello!
>> And thank you for your interest in OpenWRt.
>>
>> In general, in OpenWRt, pieces work togeter because they are developed to
>> do so.
>> A connection manager duty is not, arguably, to set up firewall rules.
>> you can surely inspect a lot of the informations you would need from the
>> UCI interface / libraries, and ubus itself.
>> If the modem is QMI based, you may switch to upstream connection manager
>> solutions, which would help in some regards.
>> Or maybe using a ModemManager-based solution?
>>
>> Thanks,
>> Enrico
>>
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Jeonghum Joh
Hello Enrico,

Thank you for your email!

I couldn't find what upstream connection manager is but there was
ModemManager in my googling result.
But studying about ModemManager would make my work something that must
start from scratch.

I think studying UCI interface / libraries, and ubus would be good approach
for me. The CM I have anyway makes the interface wwan0 work. So I will try
to whoot problems one by one. So that I believe I can make my CM work well.

Thank you for your interest. I love OpenWRT, Lua & Luci.

Thank you!
Jeonghum



2020년 4월 27일 (월) 오후 7:45, Enrico Mioso 님이 작성:

> Hello!
> And thank you for your interest in OpenWRt.
>
> In general, in OpenWRt, pieces work togeter because they are developed to
> do so.
> A connection manager duty is not, arguably, to set up firewall rules.
> you can surely inspect a lot of the informations you would need from the
> UCI interface / libraries, and ubus itself.
> If the modem is QMI based, you may switch to upstream connection manager
> solutions, which would help in some regards.
> Or maybe using a ModemManager-based solution?
>
> Thanks,
> Enrico
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Enrico Mioso

Hello!
And thank you for your interest in OpenWRt.

In general, in OpenWRt, pieces work togeter because they are developed to do so.
A connection manager duty is not, arguably, to set up firewall rules.
you can surely inspect a lot of the informations you would need from the UCI 
interface / libraries, and ubus itself.
If the modem is QMI based, you may switch to upstream connection manager 
solutions, which would help in some regards.
Or maybe using a ModemManager-based solution?

Thanks,
Enrico

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Advice needed - Proper approach to port 5G/LTE modem into OpenWRT

2020-04-27 Thread Jeonghum Joh
Hello,

I am porting a 5G/LTE modem into OpenWRT.
The modem provider provided a connection manager (CM) linux daemon. This CM
sets up the usbnet adapter interface which is wwan0. And it brings data
connection via this interface wwan0. And after the bringup finished, it
sets up firewall rules and routing settings.
But during the CM is doing these jobs, the rest of the OpenWRT daemons do
their jobs too! - bring up network interfaces. set up the firewall rules.
and routing settings. etc.

But these two jobs ignores each other. So one configuration overwrites the
other. For example OpenWRT sets up the firewall as the /etc/config/firewall
declares. But the CM deletes these firewall settings and sets up it's own
settings.

I think the CM has to follow what others in OpenWRT follow. But, the
problem is .. I am afraid how I can figure out the rules that others follow
in OpenWRT.

Let me list up problems I think of .. :
- firewall settings on both side ignores each other.
- wwan0 I/F that the Modem brings gets up later than other I/Fs like eth0,
ra0, etc.. and even it gets brought up after the rest of the OpenWRT
daemons have finished their initial set up.

Is there any guide documentation I can refer to?
I'd like some documentation :
 - that guides how to port these modem in OpenWRT.
 - that guides how to start daemons in OpenWRT that has modem with.
 - that guides when something needs to be set up during
initializing/booting the OpenWRT that has modem with.

Thank you very much in advance.
Jeonghum
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel