LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Tethering iphone : kernel modules (https://www.linuxquestions.org/questions/slackware-14/tethering-iphone-kernel-modules-4175699876/)

marav 08-29-2021 11:50 AM

Tethering iphone : kernel modules
 
Hi,

I have observed that when I plug in my iphone,
the ipheth module and apple_mfi_fastcharge load well

but if I unplug / replug, the phone does not charge and tethering is not functional
except if I load the apple_mfi_fastcharge module manually before

I don't observe this problem with my own kernel, because the apple_mfi_fastcharge module is compiled built-in

First, does anyone notice the same thing ?
And, it could be from something else, but in case, would it be possible to CC this module built-in ?

Code:

-CONFIG_APPLE_MFI_FASTCHARGE=m
+CONFIG_APPLE_MFI_FASTCHARGE=y


Aeterna 08-29-2021 12:45 PM

Quote:

Originally Posted by marav (Post 6279592)
Hi,

I have observed that when I plug in my iphone,
the ipheth module and apple_mfi_fastcharge load well

but if I unplug / replug, the phone does not charge and tethering is not functional
except if I load the apple_mfi_fastcharge module manually before

I don't observe this problem with my own kernel, because the apple_mfi_fastcharge module is compiled built-in

First, does anyone notice the same thing ?
And, it could be from something else, but in case, would it be possible to CC this module built-in ?

Code:

-CONFIG_APPLE_MFI_FASTCHARGE=m
+CONFIG_APPLE_MFI_FASTCHARGE=y


use the same kernel source (clean up first)
change the line
CONFIG_LOCALVERSION=
so not to overwrite existing /lib/modules/5.x-x
change as you suggest
-CONFIG_APPLE_MFI_FASTCHARGE=m
+CONFIG_APPLE_MFI_FASTCHARGE=y
build new kernel (10 min?) and give it different name (vmlinuz-yy)
reboot and test
in less than 20min you should have your answer.

marav 08-29-2021 01:52 PM

When I zcat /proc/config.gz from the slackware-current kernel (5.13.13) to my own kernel (5.14.0-rc7)
I don't observe this behavior, whether =m or =y

Anyway, I knew there would be mysterious things with this 5.13.13 :scratch:

Aeterna 08-29-2021 04:19 PM

Quote:

Originally Posted by marav (Post 6279620)
When I zcat /proc/config.gz from the slackware-current kernel (5.13.13) to my own kernel (5.14.0-rc7)
I don't observe this behavior, whether =m or =y

Anyway, I knew there would be mysterious things with this 5.13.13 :scratch:

you don't have the option or what (not working when build-in in 5.13.13)?

marav 08-29-2021 04:25 PM

Quote:

Originally Posted by Aeterna (Post 6279639)
you don't have the option or what (not working when build-in in 5.13.13)?

I don’t build the same kernel than the one provided by slackware
so, i don’t know

Aeterna 08-29-2021 05:05 PM

Quote:

Originally Posted by marav (Post 6279641)
I don’t build the same kernel than the one provided by slackware
so, i don’t know

I don't have Slackware kernel installed. I don't run
Quote:

When I zcat /proc/config.gz from the slackware-current kernel (5.13.13) to my own kernel (5.14.0-rc7)
I don't understand the point of doing it.

kernel 5.13.13 downloaded from https://www.kernel.org/
will let you enable
Quote:

CONFIG_APPLE_MFI_FASTCHARGE
any way you want.

I don't know if there is a problem with iphone because I don't use it (although could borrow from my wife). If you don't see an option in 5.14.0-rc7, after you copied Slackware-current config, then first thing to do is to remove config file and check if option is available, then build real custom kernel, then check functionality, then ask about the bug (if there is a bug)

marav 08-29-2021 05:52 PM

Quote:

Originally Posted by Aeterna (Post 6279647)
I don't have Slackware kernel installed. I don't run

I don't understand the point of doing it.

To use the current configuration of the running kernel

Aeterna 08-29-2021 07:18 PM

Quote:

Originally Posted by marav (Post 6279670)
To use the current configuration of the running kernel

This just makes it more difficult. However if this works for you that is great. :)

marav 08-29-2021 07:24 PM

Quote:

Originally Posted by Aeterna (Post 6279683)
This just makes it more difficult. However if this works for you that is great. :)

I'm not making anything up

https://wiki.archlinux.org/title/Ker...al_compilation

Default Arch configuration
This method will create a .config file for the custom kernel using the default Arch kernel settings. If a stock Arch kernel is running,
you can use the following command inside the custom kernel source directory:

Code:

$ zcat /proc/config.gz > .config
https://docs.slackware.com/slackbook:linux_kernel

If you want to use the configuration for the currently running kernel as your base, you may be able to locate it at /proc/config.gz.
This is a special kernel-related file that includes the entire kernel configuration in a compressed format and requires that your
kernel was built to support it.

Code:

darkstar:~# zcat /proc/config.gz > /usr/src/linux/.config
Anyway, I've been compiling my own kernel for a long time
I'm not saying I know everything about compiling a kernel from source
but that the way I compile my own kernel works pretty well

Aeterna 08-29-2021 07:30 PM

Quote:

Originally Posted by marav (Post 6279687)
I'm not making anything up

I never said that you are making things up.

As long as your problem is solved that is all here. :)

marav 08-29-2021 07:36 PM

Quote:

Originally Posted by Aeterna (Post 6279690)
I never said that you are making things up.

As long as your problem is solved that is all here. :)

My problem is solved because no one answer my question :-)
Quote:

First, does anyone notice the same thing ?
And the only answer comes from someone who doesn't use tethering with iphone ...

BTW, the 5.14 runs well

Aeterna 08-29-2021 08:52 PM

Quote:

Originally Posted by marav (Post 6279694)
My problem is solved because no one answer my question :-)


And the only answer comes from someone who doesn't use tethering with iphone ...

BTW, the 5.14 runs well

It took me 10 min to rebuild kernel with the option
Quote:

CONFIG_APPLE_MFI_FASTCHARGE=y
connecting/re-connecting my wife's iphone (S6) leads to charging each time when iphone is connected.

Clearly, if you would know how to re-build custom kernel, you would get exactly the same result

note
..and after another rebuild (next 10min)
Quote:

CONFIG_APPLE_MFI_FASTCHARGE=m
I got exactly the same result as you did with CONFIG_APPLE_MFI_FASTCHARGE set as module. So in 20min I got all the answers.

marav 08-31-2021 03:57 AM

Quote:

Originally Posted by Aeterna (Post 6279718)
It took me 10 min to rebuild kernel with the option


connecting/re-connecting my wife's iphone (S6) leads to charging each time when iphone is connected.

Clearly, if you would know how to re-build custom kernel, you would get exactly the same result

note
..and after another rebuild (next 10min)

I got exactly the same result as you did with CONFIG_APPLE_MFI_FASTCHARGE set as module. So in 20min I got all the answers.

So, you don't observe the same behavior
That's all I wanted to know
Quote:

First, does anyone notice the same thing ?
Thanks for your answer ;-)

marav 08-31-2021 11:03 AM

Quote:

Originally Posted by Aeterna (Post 6279718)
It took me 10 min to rebuild kernel with the option


connecting/re-connecting my wife's iphone (S6) leads to charging each time when iphone is connected.

Clearly, if you would know how to re-build custom kernel, you would get exactly the same result

note
..and after another rebuild (next 10min)

I got exactly the same result as you did with CONFIG_APPLE_MFI_FASTCHARGE set as module. So in 20min I got all the answers.

I hadn't noticed at first
But the problem is not specifically focused on the reloading
The problem is the tethering (I may be wrong, but it seems that you haven't tested it)

Now that the 5.14 is in slackware
And I have my own kernel in 5.14, I can say :

CONFIG_APPLE_MFI_FASTCHARGE=y with my own kernel, everything is fine

CONFIG_APPLE_MFI_FASTCHARGE=m with both generic or huge kernel
the reload is ok
but no tethering

marav 09-18-2021 12:05 PM

Quote:

Originally Posted by marav (Post 6280236)
I hadn't noticed at first
But the problem is not specifically focused on the reloading
The problem is the tethering (I may be wrong, but it seems that you haven't tested it)

Now that the 5.14 is in slackware
And I have my own kernel in 5.14, I can say :

CONFIG_APPLE_MFI_FASTCHARGE=y with my own kernel, everything is fine

CONFIG_APPLE_MFI_FASTCHARGE=m with both generic or huge kernel
the reload is ok
but no tethering


It's still relevant today

It would be nice, if nobody sees any inconvenience, if this module could be built-in
CONFIG_APPLE_MFI_FASTCHARGE=y


All times are GMT -5. The time now is 08:05 AM.