LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-29-2021, 11:50 AM   #1
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,352

Rep: Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064
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

Last edited by marav; 08-29-2021 at 12:26 PM.
 
Old 08-29-2021, 12:45 PM   #2
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
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.
 
Old 08-29-2021, 01:52 PM   #3
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,352

Original Poster
Rep: Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064
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
 
Old 08-29-2021, 04:19 PM   #4
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
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
you don't have the option or what (not working when build-in in 5.13.13)?
 
Old 08-29-2021, 04:25 PM   #5
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,352

Original Poster
Rep: Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064
Quote:
Originally Posted by Aeterna View Post
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

Last edited by marav; 08-29-2021 at 04:27 PM.
 
Old 08-29-2021, 05:05 PM   #6
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
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)
 
Old 08-29-2021, 05:52 PM   #7
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,352

Original Poster
Rep: Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064
Quote:
Originally Posted by Aeterna View Post
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
 
Old 08-29-2021, 07:18 PM   #8
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
To use the current configuration of the running kernel
This just makes it more difficult. However if this works for you that is great.
 
Old 08-29-2021, 07:24 PM   #9
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,352

Original Poster
Rep: Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064
Quote:
Originally Posted by Aeterna View Post
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

Last edited by marav; 08-29-2021 at 07:28 PM.
 
Old 08-29-2021, 07:30 PM   #10
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
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.
 
Old 08-29-2021, 07:36 PM   #11
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,352

Original Poster
Rep: Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064
Quote:
Originally Posted by Aeterna View Post
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
 
Old 08-29-2021, 08:52 PM   #12
Aeterna
Senior Member
 
Registered: Aug 2017
Location: Terra Mater
Distribution: VM Host: Slackware-current, VM Guests: Artix, Venom, antiX, Gentoo, FreeBSD, OpenBSD, OpenIndiana
Posts: 1,008

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
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.

Last edited by Aeterna; 08-29-2021 at 09:23 PM.
 
Old 08-31-2021, 03:57 AM   #13
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,352

Original Poster
Rep: Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064
Quote:
Originally Posted by Aeterna View Post
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 ;-)
 
Old 08-31-2021, 11:03 AM   #14
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,352

Original Poster
Rep: Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064
Quote:
Originally Posted by Aeterna View Post
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

Last edited by marav; 08-31-2021 at 11:10 AM.
 
Old 09-18-2021, 12:05 PM   #15
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,352

Original Poster
Rep: Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064Reputation: 4064
Quote:
Originally Posted by marav View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iPhone Tethering in Slackware 14.X scarrz Slackware 1 01-02-2015 11:43 AM
Tethering iPhone 3GS to Ubuntu 10.04 issue androandra Linux - Networking 0 02-25-2012 02:57 PM
[SOLVED] iPhone 3G - Bluetooth Internet Tethering with Ubuntu 8.04 Maxximiliann Linux - Wireless Networking 7 02-16-2010 06:48 PM
LXer: iPhone Tethering on Ubuntu 9.10 (Karmic) LXer Syndicated Linux News 0 01-11-2010 01:11 PM
Has anyone figured out how to use tethering with an AT&T iphone on Debian? worm5252 Linux - Software 3 01-06-2010 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration