Skip to contentSkip to conversation

linux-ti33x-psp 3.1rc8: Enable usb-to-serial drivers

PATCH Superseded Joel A Fernandes 5 participants 14 messages Oct 26, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-ti33x-psp 3.1rc8: Enable usb-to-serial drivers

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

---
 .../linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig |    3 ++-
 recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb  |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig +2 -1
index 4b3c21d..478ec3e 100644
@@ -2558,7 +2558,8 @@ CONFIG_USB_LIBUSUAL=y
 # USB port drivers
 #
 # CONFIG_USB_USS720 is not set
-# CONFIG_USB_SERIAL is not set
+CONFIG_USB_SERIAL=y
+CONFIG_USB_SERIAL_PL2303=y
 
 #
 # USB Miscellaneous drivers
recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb +1 -1
index bffebea..fbee01f 100644
@@ -11,7 +11,7 @@ MULTI_CONFIG_BASE_SUFFIX = ""
 
 BRANCH = "master"
 SRCREV = "1955a86594526e18f03c8d62db81119ffc4ccf0f"
-MACHINE_KERNEL_PR_append = "k+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"
 
 COMPATIBLE_MACHINE = "(ti33x)"
 
Signature · 1 line
1.7.0.4
#1 lore raw

Joel,

This looks good to me.

Can you also enable other types of USB host adapters? We want to have a fairly exhaustive set, including just about every USB-to-serial adapter.

I had been thinking that Koen has some mechanism where USB drivers are registered after boot based on this set of messages in the kernel bootlog:

[    0.254977] usbcore: registered new interface driver catc
[    0.254991] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[    0.255057] usbcore: registered new interface driver kaweth
[    0.255074] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[    0.255142] usbcore: registered new interface driver pegasus
[    0.255157] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
[    0.255233] usbcore: registered new interface driver rtl8150
[    0.255299] usbcore: registered new interface driver asix
[    0.255366] usbcore: registered new interface driver cdc_ether
[    0.255433] usbcore: registered new interface driver dm9601
[    0.255500] usbcore: registered new interface driver cdc_subset
[    0.255566] usbcore: registered new interface driver zaurus
[    0.255623] cdc_ncm: 04-Aug-2011
[    0.255693] usbcore: registered new interface driver cdc_ncm
[    0.255817] usbcore: registered new interface driver cdc_acm
[    0.255831] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.255927] usbcore: registered new interface driver usblp
[    0.255997] usbcore: registered new interface driver cdc_wdm

However, looking at the defconfig, it seems these are just set as Y, the same as you have done. Just wondering if you had any clarity to add to that with ideas on how we can make the kernel smaller for a fast boot while still handling more devices. I hate for people to have to reconfigure the kernel just because we didn't compile something useful into it.

Regards,
Jason
________________________________________
From: Fernandes, Joel A
Sent: Tuesday, October 25, 2011 8:13 PM
To: [email protected]
Cc: Fernandes, Joel A; Kridner, Jason
Subject: [PATCH meta-ti] linux-ti33x-psp 3.1rc8: Enable usb-to-serial drivers

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

---
 .../linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig |    3 ++-
 recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb  |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig +2 -1
index 4b3c21d..478ec3e 100644
@@ -2558,7 +2558,8 @@ CONFIG_USB_LIBUSUAL=y
 # USB port drivers
 #
 # CONFIG_USB_USS720 is not set
-# CONFIG_USB_SERIAL is not set
+CONFIG_USB_SERIAL=y
+CONFIG_USB_SERIAL_PL2303=y
 
 #
 # USB Miscellaneous drivers
recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb +1 -1
index bffebea..fbee01f 100644
@@ -11,7 +11,7 @@ MULTI_CONFIG_BASE_SUFFIX = ""
 
 BRANCH = "master"
 SRCREV = "1955a86594526e18f03c8d62db81119ffc4ccf0f"
-MACHINE_KERNEL_PR_append = "k+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"
 
 COMPATIBLE_MACHINE = "(ti33x)"
 

--
1.7.0.4

#2 lore raw

Hi Jason,

Quoted 3 lines

Can you also enable other types of USB host adapters? We want to have a fairly exhaustive set, including just about every USB-to-serial adapter.

Actually considering that the actual UART is connected to the FTDI and provided from the device port, do we still want to do this? For the case of the bone tester board, we're controlling the hardware so we have a specific usb-serial device we'd like to have enabled in the kernel. For customers running tests after the board ships, they can always run the individual tests and see the output on the FTDI serial port. For a regular serial console, they already have one so they don't need a usb-serial device, in the case of the tester we had to do this because we run out of ports due to the loopback.

Quoted 11 lines

I had been thinking that Koen has some mechanism where USB drivers are registered after boot based on this set of messages in the kernel bootlog:

[    0.254977] usbcore: registered new interface driver catc
[    0.254991] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[    0.255057] usbcore: registered new interface driver kaweth
[    0.255074] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB
Ethernet driver
[    0.255142] usbcore: registered new interface driver pegasus
[    0.255157] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet

driver

I think the mechanism is the init functions of the drivers register themselves with the USB Subsystem when the kernel boots. Also the messages above occur before root filesystem mounts so don't think Koen is doing anything there.

Quoted 14 lines
[    0.255233] usbcore: registered new interface driver rtl8150
[    0.255299] usbcore: registered new interface driver asix
[    0.255366] usbcore: registered new interface driver cdc_ether
[    0.255433] usbcore: registered new interface driver dm9601
[    0.255500] usbcore: registered new interface driver cdc_subset
[    0.255566] usbcore: registered new interface driver zaurus
[    0.255623] cdc_ncm: 04-Aug-2011
[    0.255693] usbcore: registered new interface driver cdc_ncm
[    0.255817] usbcore: registered new interface driver cdc_acm
[    0.255831] cdc_acm: USB Abstract Control Model driver for USB
modems and ISDN adapters
[    0.255927] usbcore: registered new interface driver usblp
[    0.255997] usbcore: registered new interface driver cdc_wdm
Quoted 6 lines

However, looking at the defconfig, it seems these are just set as Y, the same as you have done. Just wondering if you had any clarity to add to that with ideas on how we can make the kernel smaller for a fast boot while still handling more devices. I hate for people to have to reconfigure the kernel just because we didn't compile something useful into it.

We could build them as modules, but I don't think we should include any more usb-to-serial drivers even as modules as the onboard FTDI is already providing this.

Koen has provided a pretty exhaustive defconfig as we know :)

Thanks,
Joel

#3 lore raw
In reply to Kridner, Jason

Op 26 okt 2011, om 06:01 heeft Kridner, Jason het volgende geschreven:

Quoted 27 lines

Joel,

This looks good to me.

Can you also enable other types of USB host adapters? We want to have a fairly exhaustive set, including just about every USB-to-serial adapter.

I had been thinking that Koen has some mechanism where USB drivers are registered after boot based on this set of messages in the kernel bootlog:

[    0.254977] usbcore: registered new interface driver catc
[    0.254991] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[    0.255057] usbcore: registered new interface driver kaweth
[    0.255074] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver
[    0.255142] usbcore: registered new interface driver pegasus
[    0.255157] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
[    0.255233] usbcore: registered new interface driver rtl8150
[    0.255299] usbcore: registered new interface driver asix
[    0.255366] usbcore: registered new interface driver cdc_ether
[    0.255433] usbcore: registered new interface driver dm9601
[    0.255500] usbcore: registered new interface driver cdc_subset
[    0.255566] usbcore: registered new interface driver zaurus
[    0.255623] cdc_ncm: 04-Aug-2011
[    0.255693] usbcore: registered new interface driver cdc_ncm
[    0.255817] usbcore: registered new interface driver cdc_acm
[    0.255831] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.255927] usbcore: registered new interface driver usblp
[    0.255997] usbcore: registered new interface driver cdc_wdm
Quoted 1 line

However, looking at the defconfig, it seems these are just set as Y, the same as you have done.

All those usb ethernet drivers and usb serial drivers should be made modules. That will also shrink the uImage size a bit :)

regards,

Koen

#4 lore raw

Sorry for the top-post. I've subscribed now with my @beagleboard.org account as well, so after this e-mail, I should be able to use a slightly better mail tool.

Will udev or some other mechanism enable all of them to be loaded automatically? Other than USB flash drives that might want to be used for rootfs, do any of these other modules need to be compiled in?

BTW, I verified that 'loadaddr=0x80007fc0' speeds up the boot process (avoids kernel copy).

________________________________________
From: Koen Kooi [[email protected]]
Sent: Wednesday, October 26, 2011 12:59 AM
To: Kridner, Jason
Cc: Fernandes, Joel A; [email protected]
Subject: Re: [meta-ti] [PATCH meta-ti] linux-ti33x-psp 3.1rc8: Enable usb-to-serial drivers

Op 26 okt 2011, om 06:01 heeft Kridner, Jason het volgende geschreven:

Quoted 34 lines

Joel,

This looks good to me.

Can you also enable other types of USB host adapters? We want to have a fairly exhaustive set, including just about every USB-to- serial adapter.

I had been thinking that Koen has some mechanism where USB drivers are registered after boot based on this set of messages in the kernel bootlog:

[    0.254977] usbcore: registered new interface driver catc
[    0.254991] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[    0.255057] usbcore: registered new interface driver kaweth
[    0.255074] pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB
Ethernet driver
[    0.255142] usbcore: registered new interface driver pegasus
[    0.255157] rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-
ethernet driver
[    0.255233] usbcore: registered new interface driver rtl8150
[    0.255299] usbcore: registered new interface driver asix
[    0.255366] usbcore: registered new interface driver cdc_ether
[    0.255433] usbcore: registered new interface driver dm9601
[    0.255500] usbcore: registered new interface driver cdc_subset
[    0.255566] usbcore: registered new interface driver zaurus
[    0.255623] cdc_ncm: 04-Aug-2011
[    0.255693] usbcore: registered new interface driver cdc_ncm
[    0.255817] usbcore: registered new interface driver cdc_acm
[    0.255831] cdc_acm: USB Abstract Control Model driver for USB
modems and ISDN adapters
[    0.255927] usbcore: registered new interface driver usblp
[    0.255997] usbcore: registered new interface driver cdc_wdm
Quoted 2 lines

However, looking at the defconfig, it seems these are just set as Y, the same as you have done.

All those usb ethernet drivers and usb serial drivers should be made modules. That will also shrink the uImage size a bit :)

regards,

Koen

#5 lore raw

Op 26 okt 2011, om 07:27 heeft Kridner, Jason het volgende geschreven:

Quoted 5 lines

Sorry for the top-post. I've subscribed now with my @beagleboard.org account as well, so after this e-mail, I should be able to use a slightly better mail tool.

Will udev or some other mechanism enable all of them to be loaded automatically?

Standard kernel hotplug will take care of that.

#6 lore raw
In reply to Joel A Fernandes
Quoted 2 lines · Joel A Fernandes

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

BTW, has anyone tried building kernel for am335x-evm lately? It appears broken for me with bunch of unresolved symbols for musb... Doing bisect doesn't help much, as the tree was rebased and no previous revs are available :(

Signature · 1 line
Denys
#7 lore raw
Quoted 7 lines · Denys Dmytriyenko
Quoted 2 lines · Joel A Fernandes

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

BTW, has anyone tried building kernel for am335x-evm lately? It appears broken for me with bunch of unresolved symbols for musb... Doing bisect doesn't help much, as the tree was rebased and no previous revs are available :(

The lack of previous revs cost me about 24 hours of trying to figure out how to fix the repo and waiting for it to fetch, but I have only been trying to build for the Bone, not for the EVM. My builds are currently failing on "lzop: command not found".

Quoted 8 lines

--
Denys
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#8 lore raw
Quoted 5 lines · Jason Kridner
Quoted 4 lines · Denys Dmytriyenko
Quoted 2 lines · Joel A Fernandes

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

Quoted 8 lines
Quoted 3 lines

BTW, has anyone tried building kernel for am335x-evm lately? It appears broken for me with bunch of unresolved symbols for musb... Doing bisect doesn't help much, as the tree was rebased and no previous revs are available :(

The lack of previous revs cost me about 24 hours of trying to figure out how to fix the repo and waiting for it to fetch, but I have only been trying to build for the Bone, not for the EVM. My builds are currently failing on "lzop: command not found".

http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/commit/?id=21d8165f0ab973f0ce0f2588d2e97b99d885c786

make sure to have 'lzop' installed, no native recipe for that yet

Signature · 1 line
Denys
#9 lore raw
In reply to Jason Kridner

Op 26 okt 2011, om 08:44 heeft Jason Kridner het volgende geschreven:

Quoted 5 lines · Denys Dmytriyenko
Quoted 4 lines · Joel A Fernandes
Quoted 2 lines

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

Quoted 8 lines
Quoted 3 lines

BTW, has anyone tried building kernel for am335x-evm lately? It appears broken for me with bunch of unresolved symbols for musb... Doing bisect doesn't help much, as the tree was rebased and no previous revs are available :(

The lack of previous revs cost me about 24 hours of trying to figure out how to fix the repo and waiting for it to fetch, but I have only been trying to build for the Bone, not for the EVM. My builds are currently failing on "lzop: command not found".

http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/commit/?id=21d8165f0ab973f0ce0f2588d2e97b99d885c786

linux-ti33x-psp 3.1rc8: use LZO compression for beaglebone to squeeze out some more ms for faster boot make sure to have 'lzop' installed, no native recipe for that yet

So please 'apt-get install lzop' for the time being :)

#10 lore raw
In reply to Denys Dmytriyenko
Quoted 7 lines · Denys Dmytriyenko
Quoted 2 lines · Joel A Fernandes

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

BTW, has anyone tried building kernel for am335x-evm lately? It appears broken for me with bunch of unresolved symbols for musb... Doing bisect doesn't help much, as the tree was rebased and no previous revs are available :(

Well, it appears the recent rebase also sneaked in defconfig changes, which I didn't notice, that were causing me the above issues... Fixed now.

Signature · 1 line
Denys
#11 lore raw
In reply to Joel A Fernandes

As a general remark: could you also list the git repo where your patches can be pulled from? That will save me a lot of email troubles while traveling.

Op 26 okt 2011, om 02:13 heeft Joel A Fernandes het volgende geschreven:

Quoted 45 lines

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

---

.../linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig |    3 ++-
recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb  |    2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig +0 -1
index 4b3c21d..478ec3e 100644
--- a/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/ 

defconfig
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/ defconfig

recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig +2 -1
@@ -2558,7 +2558,8 @@ CONFIG_USB_LIBUSUAL=y
 # USB port drivers
 #
 # CONFIG_USB_USS720 is not set
-# CONFIG_USB_SERIAL is not set
+CONFIG_USB_SERIAL=y
+CONFIG_USB_SERIAL_PL2303=y
 
 #
 # USB Miscellaneous drivers
recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb +0 -0
index bffebea..fbee01f 100644
@@ -11,7 +11,7 @@ MULTI_CONFIG_BASE_SUFFIX = ""
 

BRANCH = "master"
SRCREV = "1955a86594526e18f03c8d62db81119ffc4ccf0f"

recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb +1 -1
-MACHINE_KERNEL_PR_append = "k+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"

COMPATIBLE_MACHINE = "(ti33x)"

Signature · 6 lines
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#12 lore raw
Quoted 37 lines · Koen Kooi

As a general remark: could you also list the git repo where your patches can be pulled from? That will save me a lot of email troubles while traveling.

Op 26 okt 2011, om 02:13 heeft Joel A Fernandes het volgende geschreven:

Quoted 32 lines

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

---
.../linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig |    3 ++- recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb  |    2 +-

2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig b/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig index 4b3c21d..478ec3e 100644

recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig +2 -1
@@ -2558,7 +2558,8 @@ CONFIG_USB_LIBUSUAL=y
 # USB port drivers
 #
 # CONFIG_USB_USS720 is not set
-# CONFIG_USB_SERIAL is not set
+CONFIG_USB_SERIAL=y
+CONFIG_USB_SERIAL_PL2303=y
 
 #
 # USB Miscellaneous drivers
recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb +0 -0
index bffebea..fbee01f 100644
@@ -11,7 +11,7 @@ MULTI_CONFIG_BASE_SUFFIX = ""
 
Quoted 2 lines
Quoted 2 lines

BRANCH = "master"
SRCREV = "1955a86594526e18f03c8d62db81119ffc4ccf0f"

I believe this SRCREV is only working for you because it is in your cache. Can you confirm with a kernel revision that is currently in the tree?

Before we launch, I plan to move a clone of the kernel over to
http://github.com/beagleboard. We simply cannot have these sort of code management regressions in the build. Once we can get the PMIC driver in, I think we make the clone.

Quoted 18 lines
Quoted 5 lines
recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb +1 -1
-MACHINE_KERNEL_PR_append = "k+gitr${SRCREV}"
+MACHINE_KERNEL_PR_append = "l+gitr${SRCREV}"

COMPATIBLE_MACHINE = "(ti33x)"

Quoted 7 lines

--
1.7.0.4

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

#13 lore raw
Quoted 38 lines · Jason Kridner
Quoted 37 lines · Koen Kooi

As a general remark: could you also list the git repo where your patches can be pulled from? That will save me a lot of email troubles while traveling.

Op 26 okt 2011, om 02:13 heeft Joel A Fernandes het volgende geschreven:

Quoted 32 lines

Enable the PL2303 usb-to-serial driver required for serial output from the beaglebone tester.

---
.../linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig |    3 ++- recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb  |    2 +-

2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig b/recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig index 4b3c21d..478ec3e 100644

recipes-kernel/linux/linux-ti33x-psp-3.0+3.1rc/beaglebone/defconfig +2 -1
@@ -2558,7 +2558,8 @@ CONFIG_USB_LIBUSUAL=y
 # USB port drivers
 #
 # CONFIG_USB_USS720 is not set
-# CONFIG_USB_SERIAL is not set
+CONFIG_USB_SERIAL=y
+CONFIG_USB_SERIAL_PL2303=y
 
 #
 # USB Miscellaneous drivers
recipes-kernel/linux/linux-ti33x-psp_3.0+3.1rc.bb +0 -0
index bffebea..fbee01f 100644
@@ -11,7 +11,7 @@ MULTI_CONFIG_BASE_SUFFIX = ""
 
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

BRANCH = "master"
SRCREV = "1955a86594526e18f03c8d62db81119ffc4ccf0f"

I believe this SRCREV is only working for you because it is in your cache. Can you confirm with a kernel revision that is currently in the tree?

For a second you got me scared that the tree was rebased again. But I believe that SRCREV is still there:

http://arago-project.org/git/projects/?p=linux-am33x.git;a=commit;h=1955a86594526e18f03c8d62db81119ffc4ccf0f

Not the latest commit though.

--
Denys