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/net

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

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://open

[OpenWrt-Devel] Signing, meta-data, etc. on images and losetup mounts...

2020-04-27 Thread Philip Prindeville
Hi Paul, Petr, et al. I was trying to take a openwrt-*-generic-squashfs-combined-efi.img file from master and verify it for correctness with “losetup”, etc. But losetup bailed because the image wasn’t a multiple of 512 bytes long. What’s the workaround? How much do I have to shave and where?

Re: [OpenWrt-Devel] [PATCH] ramips: mmc: Read mmc-caps from dt with mmc_of_parse

2020-04-27 Thread Mathias Kresin
27/04/2020 10:40, Benedikt-Alexander Mokroß: The original mmc-driver for ramips used hardcoded mmc-caps. This patch removes the hardcoded caps and enables dt parsing with mmc_of_parse. Signed-off-by: Benedikt-Alexander Mokroß ---  .../ramips/files/drivers/mmc/host/mtk-mmc/sd.c  | 13

Re: [OpenWrt-Devel] [PATCH 5/9] mtd: rawnand: bcm47xx: Implement the exec_op() interface

2020-04-27 Thread Miquel Raynal
Hi Boris, > > > +static int > > > +bcm47xxnflash_ops_bcm4706_exec_cmd_addr(struct nand_chip *chip, > > > + const struct nand_subop *subop) > > > +{ > > > + struct bcm47xxnflash *b47n = nand_get_controller_data(chip); > > > + u32 nctl = 0, col = 0, row = 0, ncols = 0

Re: [OpenWrt-Devel] [PATCH 9/9] mtd: rawnand: bcm47xx: Move the driver to drivers/mtd/nand/raw/

2020-04-27 Thread Boris Brezillon
On Mon, 27 Apr 2020 19:24:17 +0200 Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Sun, 19 Apr > 2020 14:51:40 +0200: > > > Now that we have a single we can move it to the directory where all > > single source file drivers live. > > > > Signed-off-by: Boris Brezillon > > --- >

Re: [OpenWrt-Devel] [PATCH 6/9] mtd: rawnand: bcm47xx: Get rid of the legacy implementation

2020-04-27 Thread Boris Brezillon
On Mon, 27 Apr 2020 19:19:22 +0200 Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Sun, 19 Apr > 2020 14:51:37 +0200: > > > Now that exec_op() is implemented we don't need to implement all those > > legacy hooks, which simplifies the code quite a bit. > > > > Signed-off-by: Bori

Re: [OpenWrt-Devel] [PATCH 5/9] mtd: rawnand: bcm47xx: Implement the exec_op() interface

2020-04-27 Thread Boris Brezillon
On Mon, 27 Apr 2020 19:18:11 +0200 Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Sun, 19 Apr > 2020 14:51:36 +0200: > > > Implement the exec_op() interface so we can get rid of the convoluted > > cmdfunc() implementation. > > > > Signed-off-by: Boris Brezillon > > --- > > Thi

Re: [OpenWrt-Devel] [PATCH 4/9] mtd: rawnand: bcm47xx: Demistify a few more things

2020-04-27 Thread Boris Brezillon
On Mon, 27 Apr 2020 19:07:01 +0200 Miquel Raynal wrote: > Hi Boris, > > Boris Brezillon wrote on Sun, 19 Apr > 2020 14:51:35 +0200: > > > There were a few places were raw hex values were used instead of the > > where > > > macro def. > > def? :) Will f

Re: [OpenWrt-Devel] [PATCH 8/9] mtd: rawnand: bcm47xx: Merge all source files

2020-04-27 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Sun, 19 Apr 2020 14:51:39 +0200: > Given the number of lines it doesn't make them to split the code. Let's sense? > merge everything in main.c and rename the file into bcm47xxnflash.c. > > Signed-off-by: Boris Brez

Re: [OpenWrt-Devel] [PATCH 9/9] mtd: rawnand: bcm47xx: Move the driver to drivers/mtd/nand/raw/

2020-04-27 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Sun, 19 Apr 2020 14:51:40 +0200: > Now that we have a single we can move it to the directory where all > single source file drivers live. > > Signed-off-by: Boris Brezillon > --- > drivers/mtd/nand/raw/Makefile| 1 + > drivers/mtd

Re: [OpenWrt-Devel] [PATCH 7/9] mtd: rawnand: bcm47xx: Simplify the init() function

2020-04-27 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Sun, 19 Apr 2020 14:51:38 +0200: > The row and column sizes are now set as part of the exec_op() procedure > and adjusted to match the requested number of address cycles. No need > to set them in the init() function since those values will be > overwritten anyw

Re: [OpenWrt-Devel] [PATCH 6/9] mtd: rawnand: bcm47xx: Get rid of the legacy implementation

2020-04-27 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Sun, 19 Apr 2020 14:51:37 +0200: > Now that exec_op() is implemented we don't need to implement all those > legacy hooks, which simplifies the code quite a bit. > > Signed-off-by: Boris Brezillon > --- > .../nand/raw/bcm47xxnflash/bcm47xxnflash.h| 6 -

Re: [OpenWrt-Devel] [PATCH 5/9] mtd: rawnand: bcm47xx: Implement the exec_op() interface

2020-04-27 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Sun, 19 Apr 2020 14:51:36 +0200: > Implement the exec_op() interface so we can get rid of the convoluted > cmdfunc() implementation. > > Signed-off-by: Boris Brezillon > --- > This is based on my understanding of how this controller works, and I > think it co

Re: [OpenWrt-Devel] [PATCH 4/9] mtd: rawnand: bcm47xx: Demistify a few more things

2020-04-27 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Sun, 19 Apr 2020 14:51:35 +0200: > There were a few places were raw hex values were used instead of the where > macro def. def? :) > > We also add macros to help forming the conf value (note that we still > have one magic

Re: [OpenWrt-Devel] [PATCH 1/9] mtd: rawnand: Add an is_last flag to nand_subop

2020-04-27 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Sun, 19 Apr 2020 14:51:32 +0200: > Some controllers need to know when they're passed the last subop so > they can de-assert the CE pin. > > Signed-off-by: Boris Brezillon > --- Reviewed-by: Miquel Raynal Thanks, Miquèl ___

Re: [OpenWrt-Devel] [PATCH 1/9] mtd: rawnand: Add an is_last flag to nand_subop

2020-04-27 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Sun, 19 Apr 2020 14:51:32 +0200: > Some controllers need to know when they're passed the last subop so > they can de-assert the CE pin. > > Signed-off-by: Boris Brezillon > --- Reviewed-by: Miquel Raynal Thanks, Miquèl ___

Re: [OpenWrt-Devel] [PATCH 1/9] mtd: rawnand: Add an is_last flag to nand_subop

2020-04-27 Thread Miquel Raynal
Hi Boris, Boris Brezillon wrote on Sun, 19 Apr 2020 14:51:32 +0200: > Some controllers need to know when they're passed the last subop so > they can de-assert the CE pin. > > Signed-off-by: Boris Brezillon > --- Reviewed-by: Miquel Raynal Thanks, Miquèl ___

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 n

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 >

Re: [OpenWrt-Devel] New ath10k-ct firmware available.

2020-04-27 Thread Ben Greear
Hello, I looked at this briefly and it looks OK to me. I did not test it out though. Thanks, Ben On 04/26/2020 05:26 AM, Álvaro Fernández Rojas wrote: Hi Ben, I've renamed the old full-htt-mgt firmwares and added the new ones as htt-mgt. This way the user can choose between both of them: ht

[OpenWrt-Devel] OpenWRT 19.07.2 SQM memory leak

2020-04-27 Thread Ilya Kuznetsov
I found a huge memory leak when SQM shaper is engaged on my MT7620N-powered router. It regards IPv6 operation only though. How to test: 1. Obvious part: sqm-scripts package has to be installed, /etc/config/sqm has to be configured with shaper and cake or fq_codel qdisc enabled. 2. Your connect

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 ar

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 Mo

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 g

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 / libra

[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 ro

[OpenWrt-Devel] [PATCH] ramips: mmc: Read mmc-caps from dt with mmc_of_parse

2020-04-27 Thread Benedikt-Alexander Mokroß
The original mmc-driver for ramips used hardcoded mmc-caps. This patch removes the hardcoded caps and enables dt parsing with mmc_of_parse. Signed-off-by: Benedikt-Alexander Mokroß --- .../ramips/files/drivers/mmc/host/mtk-mmc/sd.c | 13 ++--- 1 file changed, 10 insertions(+), 3

[OpenWrt-Devel] art Earth, art Solar System, art Universe.

2020-04-27 Thread SSH
This letter is forwarded because you are interested in outer space. If you are not interested in space, sorry, an error occurred ... . . . . . Hello. New artistic symbolic Paintings: Earth, Moon, Solar System, Galaxy, Constellation, Universe, ... ... Pictures on the most famous sites of the world: