Author Topic: cdc-acm support in Ubuntu  (Read 6625 times)

Offline zygmuntg

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
cdc-acm support in Ubuntu
« on: April 03, 2015, 05:22:50 pm »
I've just installed linaro-server-trusty-cb4-emmc-hdmi-v1.0.img.7z image on my CB4.
There is no cdc-acm module available by default. How to add this module?

Best regards,

ZG

Offline zygmuntg

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #1 on: April 04, 2015, 06:26:26 am »
OK. I am trying to recompile my kernel with CDC ACM driver, but after "make" i have:

...
CC      arch/arm/common/mcpm_entry.o
  CC      arch/arm/common/mcpm_platsmp.o
  AS      arch/arm/common/vlock.o
  LD      arch/arm/common/built-in.o
  LD      arch/arm/net/built-in.o
  CC      arch/arm/mach-sunxi/sun9i.o
  CC      arch/arm/mach-sunxi/powernow.o
  CC      arch/arm/mach-sunxi/powernow_cpu.o
  CC      arch/arm/mach-sunxi/sun9i-platsmp.o
  CC      arch/arm/mach-sunxi/sun9i-cci.o
  AS      arch/arm/mach-sunxi/sun9i-setup.o
  CC      arch/arm/mach-sunxi/sun9i-mcpm.o
  CC      arch/arm/mach-sunxi/pm/standby/common.o
gcc: error: unrecognized option '--min_array_alignment=4'
gcc: error: unrecognized option '--no_unaligned_access'
make[3]: *** [arch/arm/mach-sunxi/pm/standby/common.o] Error 1
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
make: *** [arch/arm/mach-sunxi] Error 2

What could be wrong?

Offline Christobalde

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #2 on: April 04, 2015, 10:22:40 am »
The SDK is only working on intel x64 linux machine. If you are trying to recompile on the A80 himself, you will have a lot of error and an unworkable kernel...

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #3 on: April 06, 2015, 09:29:40 pm »
OK. I am trying to recompile my kernel with CDC ACM driver, but after "make" i have:

...
CC      arch/arm/common/mcpm_entry.o
  CC      arch/arm/common/mcpm_platsmp.o
  AS      arch/arm/common/vlock.o
  LD      arch/arm/common/built-in.o
  LD      arch/arm/net/built-in.o
  CC      arch/arm/mach-sunxi/sun9i.o
  CC      arch/arm/mach-sunxi/powernow.o
  CC      arch/arm/mach-sunxi/powernow_cpu.o
  CC      arch/arm/mach-sunxi/sun9i-platsmp.o
  CC      arch/arm/mach-sunxi/sun9i-cci.o
  AS      arch/arm/mach-sunxi/sun9i-setup.o
  CC      arch/arm/mach-sunxi/sun9i-mcpm.o
  CC      arch/arm/mach-sunxi/pm/standby/common.o
gcc: error: unrecognized option '--min_array_alignment=4'
gcc: error: unrecognized option '--no_unaligned_access'
make[3]: *** [arch/arm/mach-sunxi/pm/standby/common.o] Error 1
make[2]: *** [arch/arm/mach-sunxi/pm/standby/standby.code] Error 2
make[1]: *** [arch/arm/mach-sunxi/pm] Error 2
make: *** [arch/arm/mach-sunxi] Error 2

What could be wrong?



HI  , You should build in your PC, (64bits ).   Check out  your build  environment you can refer:   http://dl.cubieboard.org/model/cc-a80/Doc/debian-server/Cubieboard4-Linux-Sdk-Guide.pdf

Offline zygmuntg

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #4 on: April 07, 2015, 08:20:23 pm »
OK. I was able to compile kernel for debian server on my laptop with Ubuntu 14.04, but havent managed to generate image (scripts says, that my SD card is not removable). I was able to replace manualy kernel in Debian Server image so  was able to use this driver, but doing the same on Ubuntu image made system unbootable.

Offline zygmuntg

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #5 on: April 08, 2015, 04:47:54 am »
I found following problem with building ubuntu image:

cat /sys/block/mmcblk0/removable

0

This prevents creating image of system, because it is checked by cb_part_install_flash_card

« Last Edit: April 08, 2015, 04:53:59 am by zygmuntg »

Offline zygmuntg

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #6 on: April 08, 2015, 05:39:23 am »
I've changed script to avoid checking if device is removable.
Another problem was with naming convention: in my system  first partition on SD card is /dev/mmcblk0p1, but scripts expects something like /dev/sdd1. When invoked "cb_part_install_flash_card mmcblk0 pack" it tries to create partition name by adding a partition number, so instead of mmcblk0p1 it makes mmcblk01.
After changing this behavior scripts ended successfully.

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #7 on: April 08, 2015, 09:33:58 pm »
I've changed script to avoid checking if device is removable.
Another problem was with naming convention: in my system  first partition on SD card is /dev/mmcblk0p1, but scripts expects something like /dev/sdd1. When invoked "cb_part_install_flash_card mmcblk0 pack" it tries to create partition name by adding a partition number, so instead of mmcblk0p1 it makes mmcblk01.
After changing this behavior scripts ended successfully.

Can you tell me about the kernel_defconfig to enable cdc acm ?I can add it in new linaro image.  But we have not the device to test it.

Offline zygmuntg

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #8 on: April 09, 2015, 01:59:59 am »
The only difference is adding:

CONFIG_USB_ACM=y

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #9 on: April 09, 2015, 02:08:06 am »
The only difference is adding:

CONFIG_USB_ACM=y

thx , get it 

Offline Christobalde

  • Newbie
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #10 on: April 09, 2015, 08:54:23 am »
CONFIG_USB_AUDIO=y
CONFIG_SND_USB_AUDIO=y

would be good too.

Offline sam

  • Jr. Member
  • **
  • Posts: 73
  • Karma: +2/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #11 on: April 10, 2015, 06:32:08 am »
CONFIG_USB_AUDIO=y
CONFIG_SND_USB_AUDIO=y

would be good too.

that 's have been added.  We are improving other thing  .please wait

Offline SirRibeiro

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #12 on: May 02, 2015, 01:00:30 pm »
Has anyone got the the compiled .ko to (kernel "3.4.39" of cubiboard4)?

Or is any other way to recognize arduino?

Thanks
« Last Edit: May 02, 2015, 01:03:21 pm by SirRibeiro »

Offline dogexan

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #13 on: May 03, 2015, 03:54:37 pm »
Hi,

i have the same problem. I need a compiled driver too.
Or can anyone explain me how to compile it by self.

I tried to modify the current kernel (3.4.39) but without success.

Thanks and best regards

Alex

Offline alstonamos

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: cdc-acm support in Ubuntu
« Reply #14 on: April 08, 2016, 02:40:36 am »
Or can anyone explain me how to compile it by self.



== www.solitairecardgame.info ==
« Last Edit: April 20, 2016, 05:51:34 am by alstonamos »
waleeed