OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> PL2303 serial adapter drivers?
cdnt
post Jun 18 2018, 05:07 AM
Post #1





Group: Members
Posts: 3
Joined: 15-June 18
Member No.: 824,510



Has anyone managed to get a PL2303 USB to serial converter working with Debian? It shows up with lsusb, but I can't find anything in /dev that would correspond to it. I presume I need to compile a driver but wondered if anyone else had tried and had any useful pointers?

Many thanks in advance!
Go to the top of the page
 
+Quote Post
Murple2
post Jun 18 2018, 06:29 AM
Post #2





Group: Members
Posts: 138
Joined: 5-January 18
Member No.: 815,856



QUOTE(cdnt @ Jun 18 2018, 02:07 PM) *
Has anyone managed to get a PL2303 USB to serial converter working with Debian? It shows up with lsusb, but I can't find anything in /dev that would correspond to it. I presume I need to compile a driver but wondered if anyone else had tried and had any useful pointers?

Many thanks in advance!


Ive not played around with the Debian TP but my understanding is that you'll need to compile a kernel with module support, or compile the driver into the kernel itself. I'm not sure why this isn't the case by default but I'm sure someone here can explain in more detail.

Warm regards
Michael
Go to the top of the page
 
+Quote Post
cdnt
post Jun 18 2018, 09:02 AM
Post #3





Group: Members
Posts: 3
Joined: 15-June 18
Member No.: 824,510



I think I have it figured - I followed the steps at https://github.com/gemian/gemini-keyboard-a...rnelCompilation but I think the extra step was to use:

CODE
make O=../KERNEL_OUT -C kernel-3.18 ARCH=arm64 menuconfig


...so I could enable the driver for my usb-serial adapter.

Very happy - now I have a pocket-sized device with a physical keyboard which I can use to configure network switches about the building!
Go to the top of the page
 
+Quote Post
hk135
post Jun 20 2018, 01:30 AM
Post #4





Group: Members
Posts: 8
Joined: 27-May 18
Member No.: 823,320



QUOTE(Murple2 @ Jun 18 2018, 03:29 PM) *
Ive not played around with the Debian TP but my understanding is that you'll need to compile a kernel with module support, or compile the driver into the kernel itself. I'm not sure why this isn't the case by default but I'm sure someone here can explain in more detail.

Warm regards
Michael


From what I can see there isn't loadable module support (run lsmod) on the default kernel provided hence why there are some device recognition issues, unless its compiled in its not supported.

hk135
Go to the top of the page
 
+Quote Post
Murple2
post Jun 20 2018, 01:41 AM
Post #5





Group: Members
Posts: 138
Joined: 5-January 18
Member No.: 815,856



QUOTE(hk135 @ Jun 20 2018, 10:30 AM) *
QUOTE(Murple2 @ Jun 18 2018, 03:29 PM) *
Ive not played around with the Debian TP but my understanding is that you'll need to compile a kernel with module support, or compile the driver into the kernel itself. I'm not sure why this isn't the case by default but I'm sure someone here can explain in more detail.

Warm regards
Michael


From what I can see there isn't loadable module support (run lsmod) on the default kernel provided hence why there are some device recognition issues, unless its compiled in its not supported.

hk135


Yes, I wondered why there wasn't module support compiled in? Its kinda important...
Go to the top of the page
 
+Quote Post
mithrandir
post Jun 20 2018, 02:45 AM
Post #6





Group: Members
Posts: 120
Joined: 7-January 18
Member No.: 815,997



QUOTE(Murple2 @ Jun 20 2018, 01:41 AM) *
QUOTE(hk135 @ Jun 20 2018, 10:30 AM) *
QUOTE(Murple2 @ Jun 18 2018, 03:29 PM) *
Ive not played around with the Debian TP but my understanding is that you'll need to compile a kernel with module support, or compile the driver into the kernel itself. I'm not sure why this isn't the case by default but I'm sure someone here can explain in more detail.

Warm regards
Michael


From what I can see there isn't loadable module support (run lsmod) on the default kernel provided hence why there are some device recognition issues, unless its compiled in its not supported.

hk135


Yes, I wondered why there wasn't module support compiled in? Its kinda important...


Also wondering... I have built a modular kernel. If someone wants to use, downloads and some instructions can be found here: http://www.mygnu.de/index.php/2018/06/modu...the-gemini-pda/

Hoping this (or a better kernel) can be included in the next TP.

Mith
Go to the top of the page
 
+Quote Post
cdnt
post Jun 20 2018, 02:57 AM
Post #7





Group: Members
Posts: 3
Joined: 15-June 18
Member No.: 824,510



QUOTE(mithrandir @ Jun 20 2018, 11:45 AM) *
Also wondering... I have built a modular kernel. If someone wants to use, downloads and some instructions can be found here: http://www.mygnu.de/index.php/2018/06/modu...the-gemini-pda/

Hoping this (or a better kernel) can be included in the next TP.

Mith


Mith, many thanks for this! I'll stick with my static one for the moment but have bookmarked for if discover I have anything else I want to connect to it in future.
Go to the top of the page
 
+Quote Post
speculatrix
post Jun 29 2018, 08:13 AM
Post #8





Group: Admin
Posts: 3,693
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



I just tested two USB to serial adaptors, which work fine in Android, one is a Prolific and the other FTDI. Neither work in Gemian. I'll have to consider changing the kernel, thanks @mithrandir for making one available.
Go to the top of the page
 
+Quote Post
speculatrix
post Jun 29 2018, 08:22 AM
Post #9





Group: Admin
Posts: 3,693
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



@mithrandir, does flashing your modular kernel with your instructions wipe the system partition, or does it solely replace the kernel?
thanks
Go to the top of the page
 
+Quote Post
mithrandir
post Jun 30 2018, 01:12 PM
Post #10





Group: Members
Posts: 120
Joined: 7-January 18
Member No.: 815,997



QUOTE(speculatrix @ Jun 29 2018, 08:22 AM) *
@mithrandir, does flashing your modular kernel with your instructions wipe the system partition, or does it solely replace the kernel?
thanks

It only replaces the kernel. Just make sure the other partitions are unchecked in the flash tool.
Go to the top of the page
 
+Quote Post
Dr. Watson
post Jul 13 2018, 01:59 PM
Post #11





Group: Members
Posts: 9
Joined: 4-June 18
Member No.: 823,795



QUOTE(mithrandir @ Jun 30 2018, 11:12 PM) *
It only replaces the kernel. Just make sure the other partitions are unchecked in the flash tool.


Hi J..... aaahhm mithrandir,

First of all: Thank you so much !!!!!!!!!! biggrin.gif

I simply dd-ed your kernel to /dev/block/disk/by-partlabel/linux_boot, was that wrong?

Like:
Download mithrandir's kernel, unzip and flash while on your Gemini:

root@gemini:/home/gemini# find /dev/block/ | grep linux
/dev/block/disk/by-partlabel/linux_boot
/dev/block/disk/by-partlabel/linux

dd if=/root/kernel_from_mithrandir/linux_boot-gemini-3.18.41+.img of=/dev/block/disk/by-partlabel/linux_boot

Download mithrandir's modules/firmware tgz and untar:

cd /
tar -xzf /root/modules_from_mithrandir/modules_firmware-gemini-3.18.41+.tar.gz

Reboot. Everything works just fine. (Have I been pwned now? ph34r.gif).

Unfortunately one of the first things I was missing in your modules is the usb gadget drivers.
To compile your kernel, did you use sources from https://github.com/gemian ???
I want to try to copy your kernel's config and play around a little bit. I have no experience in kernel compilation, let alone cross compilation. Let's see how well I can brick my Gem.

Regards,
DrW
Go to the top of the page
 
+Quote Post
mithrandir
post Jul 13 2018, 04:42 PM
Post #12





Group: Members
Posts: 120
Joined: 7-January 18
Member No.: 815,997



QUOTE(Dr. Watson @ Jul 13 2018, 01:59 PM) *
QUOTE(mithrandir @ Jun 30 2018, 11:12 PM) *
It only replaces the kernel. Just make sure the other partitions are unchecked in the flash tool.


Hi J..... aaahhm mithrandir,

First of all: Thank you so much !!!!!!!!!! biggrin.gif

I simply dd-ed your kernel to /dev/block/disk/by-partlabel/linux_boot, was that wrong?

Like:
Download mithrandir's kernel, unzip and flash while on your Gemini:

root@gemini:/home/gemini# find /dev/block/ | grep linux
/dev/block/disk/by-partlabel/linux_boot
/dev/block/disk/by-partlabel/linux

dd if=/root/kernel_from_mithrandir/linux_boot-gemini-3.18.41+.img of=/dev/block/disk/by-partlabel/linux_boot

Download mithrandir's modules/firmware tgz and untar:

cd /
tar -xzf /root/modules_from_mithrandir/modules_firmware-gemini-3.18.41+.tar.gz

Reboot. Everything works just fine. (Have I been pwned now? ph34r.gif).

Unfortunately one of the first things I was missing in your modules is the usb gadget drivers.
To compile your kernel, did you use sources from https://github.com/gemian ???
I want to try to copy your kernel's config and play around a little bit. I have no experience in kernel compilation, let alone cross compilation. Let's see how well I can brick my Gem.

Regards,
DrW


Hi,
dd is fine. The flash tool is only needed when Linux is the primary OS. Is this still true?
Yes, I have used the sources from https://github.com/gemian/gemini-linux-kernel-3.18.
I am currently creating a new kernel config, because the old one still lacks support for quite some devices including the ethernet adapter of the PC hub. So I'll also have a look into the gadget drivers now.
Mith
Go to the top of the page
 
+Quote Post
mithrandir
post Jul 14 2018, 04:01 PM
Post #13





Group: Members
Posts: 120
Joined: 7-January 18
Member No.: 815,997



Unfortunately I did not get the gadget drivers working within reasonable time. When selecting "USB functions configurable through configfs" and not the default Android gadget (from the original kernel config), well and some sub options. this results in compiler or linker errors. maybe we can get this to work later on. I have uploaded what I have to mygnu.de, at least the updated kernel should be better than the old one.

Anyways I am still hoping for a 4.X kernel, which hopefully fixes the sd card performance issue...

Mith
Go to the top of the page
 
+Quote Post
speculatrix
post Jul 16 2018, 01:56 PM
Post #14





Group: Admin
Posts: 3,693
Joined: 29-July 04
From: Cambridge, England
Member No.: 4,149



yay, the new modular kernel working fine for me, thanks, now I can connect my G to network devices, servers etc.

I installed it using "dd". because my system is triple boot - android, debian and sailfish, I overwrote boot2
Go to the top of the page
 
+Quote Post
Kiriririn
post Jul 17 2018, 04:40 AM
Post #15





Group: Members
Posts: 67
Joined: 19-January 18
Member No.: 816,673



QUOTE(mithrandir @ Jul 15 2018, 01:01 AM) *
Anyways I am still hoping for a 4.X kernel, which hopefully fixes the sd card performance issue...


There's an sd card performance issue?

I've been using F2FS on mine, but it's been perfect
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 15th November 2019 - 12:49 AM