How to enable ffmpeg in yocto image

hi
Now,I am getting same error
mangoh@mangoh-vm:~$ sudo ifconfig usb0 192.168.2.3
SIOCSIFADDR: No such device
usb0: ERROR while getting interface flags: No such device

Ecm is enabled, you need to check the interface name in dmesg

i am not getting usb0

r 1
[ 1.016443] ehci-pci 0000:00:0b.0: irq 19, io mem 0xf0805000
[ 1.029778] ehci-pci 0000:00:0b.0: USB 2.0 started, EHCI 1.00
[ 1.030363] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.05
[ 1.031100] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.031764] usb usb1: Product: EHCI Host Controller
[ 1.032190] usb usb1: Manufacturer: Linux 5.5.2-050502-generic ehci_hcd
[ 1.032708] usb usb1: SerialNumber: 0000:00:0b.0
[ 1.033382] hub 1-0:1.0: USB hub found
[ 1.033763] hub 1-0:1.0: 12 ports detected
[ 1.034434] ehci-platform: EHCI generic platform driver
[ 1.034891] ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
[ 1.035362] ohci-pci: OHCI PCI platform driver
[ 1.036534] ohci-pci 0000:00:06.0: OHCI PCI host controller
[ 1.036940] ohci-pci 0000:00:06.0: new USB bus registered, assigned bus number 2
[ 1.037623] ohci-pci 0000:00:06.0: irq 22, io mem 0xf0804000
[ 1.098932] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.05
[ 1.100018] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.101013] usb usb2: Product: OHCI PCI host controller
[ 1.101702] usb usb2: Manufacturer: Linux 5.5.2-050502-generic ohci_hcd
[ 1.102480] usb usb2: SerialNumber: 0000:00:06.0
[ 1.103517] hub 2-0:1.0: USB hub found
[ 1.104105] hub 2-0:1.0: 12 ports detected
[ 1.105588] ohci-platform: OHCI generic platform driver
[ 1.106270] uhci_hcd: USB Universal Host Controller Interface driver
[ 1.107114] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f03:PS2M] at 0x60,0x64 irq 1,12
[ 1.108991] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 1.109668] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 1.113055] mousedev: PS/2 mouse device common for all mice
[ 1.115384] rtc_cmos rtc_cmos: registered as rtc0
[ 1.115952] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input2
[ 1.116885] rtc_cmos rtc_cmos: alarms up to one day, 114 bytes nvram
[ 1.117649] i2c /dev entries driver
[ 1.118135] device-mapper: uevent: version 1.0.3
[ 1.118900] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: dm-devel@redhat.com
[ 1.119817] platform eisa.0: Probing EISA bus 0
[ 1.120294] platform eisa.0: EISA: Cannot allocate resource for mainboard
[ 1.120820] platform eisa.0: Cannot allocate resource for EISA slot 1
[ 1.121379] platform eisa.0: Cannot allocate resource for EISA slot 2
[ 1.121903] platform eisa.0: Cannot allocate resource for EISA slot 3
[ 1.122413] platform eisa.0: Cannot allocate resource for EISA slot 4
[ 1.122920] platform eisa.0: Cannot allocate resource for EISA slot 5
[ 1.123428] platform eisa.0: Cannot allocate resource for EISA slot 6
[ 1.123936] platform eisa.0: Cannot allocate resource for EISA slot 7
[ 1.124443] platform eisa.0: Cannot allocate resource for EISA slot 8
[ 1.124951] platform eisa.0: EISA: Detected 0 cards
[ 1.125351] intel_pstate: CPU model not supported
[ 1.125870] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.126384] intel_pmc_core intel_pmc_core.0: initialized
[ 1.126808] drop_monitor: Initializing network drop monitor service
[ 1.127434] NET: Registered protocol family 10
[ 1.135096] Segment Routing with IPv6
[ 1.135377] NET: Registered protocol family 17
[ 1.135781] Key type dns_resolver registered
[ 1.136361] RAS: Correctable Errors collector initialized.
[ 1.136678] IPI shorthand broadcast: enabled
[ 1.136945] sched_clock: Marking stable (1094204943, 42122441)->(1138724112, -2396728)
[ 1.137663] registered taskstats version 1
[ 1.137932] Loading compiled-in X.509 certificates
[ 1.139838] Loaded X.509 cert ‘Build time autogenerated kernel key: a200c5b64c9a611018579e530d9dcc82f6934aa2’
[ 1.140379] zswap: loaded using pool lzo/zbud
[ 1.140821] Key type ._fscrypt registered
[ 1.141054] Key type .fscrypt registered
[ 1.146118] Key type big_key registered
[ 1.148617] Key type encrypted registered
[ 1.148847] AppArmor: AppArmor sha1 policy hashing enabled
[ 1.149119] ima: No TPM chip found, activating TPM-bypass!
[ 1.149431] ima: Allocated hash algorithm: sha1
[ 1.149675] ima: No architecture policies found
[ 1.149921] evm: Initialising EVM extended attributes:
[ 1.150180] evm: security.selinux
[ 1.150382] evm: security.SMACK64
[ 1.150584] evm: security.SMACK64EXEC
[ 1.150796] evm: security.SMACK64TRANSMUTE
[ 1.151022] evm: security.SMACK64MMAP
[ 1.151235] evm: security.apparmor
[ 1.151448] evm: security.ima
[ 1.151639] evm: security.capability
[ 1.151849] evm: HMAC attrs: 0x1
[ 1.152253] PM: Magic number: 12:503:830
[ 1.152585] rtc_cmos rtc_cmos: setting system clock to 2020-03-09T10:50:27 UTC (1583751027)
[ 1.173872] ata2.00: ATAPI: VBOX CD-ROM, 1.0, max UDMA/133
[ 1.175768] scsi 1:0:0:0: CD-ROM VBOX CD-ROM 1.0 PQ: 0 ANSI: 5
[ 1.178126] sr 1:0:0:0: [sr0] scsi3-mmc drive: 32x/32x xa/form2 tray
[ 1.179018] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 1.179610] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 1.179641] sr 1:0:0:0: Attached scsi generic sg0 type 5
[ 1.180955] Freeing unused decrypted memory: 2040K
[ 1.181638] Freeing unused kernel image (initmem) memory: 2644K
[ 1.198177] Write protecting the kernel read-only data: 22528k
[ 1.200035] Freeing unused kernel image (text/rodata gap) memory: 2044K
[ 1.201324] Freeing unused kernel image (rodata/data gap) memory: 1004K
[ 1.220639] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.221151] x86/mm: Checking user space page tables
[ 1.232899] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 1.233307] Run /init as init process
[ 1.577580] usb 2-1: new full-speed USB device number 2 using ohci-pci
[ 1.938800] usb 2-1: New USB device found, idVendor=80ee, idProduct=0021, bcdDevice= 1.00
[ 1.939237] usb 2-1: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 1.939561] usb 2-1: Product: USB Tablet
[ 1.939787] usb 2-1: Manufacturer: VirtualBox
[ 1.995482] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 1.995815] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 2.005650] piix4_smbus 0000:00:07.0: SMBus Host Controller at 0x4100, revision 0
[ 2.015790] [drm] VRAM 01000000
[ 2.027864] [TTM] Zone kernel: Available graphics memory: 1017522 KiB
[ 2.028175] [TTM] Initializing pool allocator
[ 2.028411] [TTM] Initializing DMA pool allocator
[ 2.029220] fbcon: vboxvideodrmfb (fb0) is primary device
[ 2.037068] Console: switching to colour frame buffer device 128x48
[ 2.044837] vboxvideo 0000:00:02.0: fb0: vboxvideodrmfb frame buffer device
[ 2.061652] [drm] Initialized vboxvideo 1.0.0 20130823 for 0000:00:02.0 on minor 0
[ 2.107903] ACPI: Video Device [GFX0] (multi-head: yes rom: no post: no)
[ 2.108083] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/LNXVIDEO:00/input/input4
[ 2.193610] usb 2-2: new full-speed USB device number 3 using ohci-pci
[ 2.195252] ahci 0000:00:0d.0: version 3.0
[ 2.195987] ahci 0000:00:0d.0: SSS flag set, parallel bus scan disabled
[ 2.196132] ahci 0000:00:0d.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
[ 2.196149] ahci 0000:00:0d.0: flags: 64bit ncq stag only ccc
[ 2.204324] scsi host2: ahci
[ 2.214588] scsi host3: ahci
[ 2.214745] ata3: SATA max UDMA/133 abar m8192@0xf0806000 port 0xf0806100 irq 21
[ 2.214765] ata4: SATA max UDMA/133 abar m8192@0xf0806000 port 0xf0806180 irq 21
[ 2.322974] cryptd: max_cpu_qlen set to 1000
[ 2.325948] AVX2 version of gcm_enc/dec engaged.
[ 2.325960] AES CTR mode by8 optimization enabled
[ 2.446530] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input5
[ 2.530122] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 2.530322] ata3.00: ATA-6: VBOX HARDDISK, 1.0, max UDMA/133
[ 2.530336] ata3.00: 125829120 sectors, multi 128: LBA48 NCQ (depth 32)
[ 2.530528] ata3.00: configured for UDMA/133
[ 2.533949] scsi 2:0:0:0: Direct-Access ATA VBOX HARDDISK 1.0 PQ

I dont see any sierra device connected

Again i checked it,but it doesn’t show sierra device.but device is connected

Maybe you need to try another PC.
You should see the following:

[2138873.072803] usb 3-3: Product: Sierra Wireless WP7607
[2138873.072809] usb 3-3: Manufacturer: Sierra Wireless, Incorporated
[2138873.072815] usb 3-3: SerialNumber: VN73048508010300
[2138873.075824] GobiSerial 3-3:1.0: GobiSerial converter detected
[2138873.076065] usb 3-3: GobiSerial converter now attached to ttyUSB0
[2138873.076800] GobiSerial 3-3:1.2: GobiSerial converter detected
[2138873.076986] usb 3-3: GobiSerial converter now attached to ttyUSB1
[2138873.078777] GobiSerial 3-3:1.3: GobiSerial converter detected
[2138873.078898] usb 3-3: GobiSerial converter now attached to ttyUSB2
[2138873.085053] QMAP Disabled
[2138873.086185] GobiNet 3-3:1.8 eth1: register ‘GobiNet’ at usb-0000:00:14.0-3, GobiNet Ethernet Device, 86:68:d7:c4:8e:cc
[2138873.087015] USB Speed : USB 2.0
[2138873.090422] cdc_ether 3-3:1.19 usb0: register ‘cdc_ether’ at usb-0000:00:14.0-3, CDC Ethernet Device, 52:13:8e:37:45:19

Hi
can i increase the size of UBI_ROOTFS_SIZE ? more than 48MiB.

is it possible to enable ffmpeg?

seems cannot do this in R13, but you can try in the future release.

Now the device is detected

[ 56.890777] usb 1-2: New USB device found, idVendor=1199, idProduct=68c0
[ 56.890779] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 56.890780] usb 1-2: Product: Sierra Wireless WP7608
[ 56.890782] usb 1-2: Manufacturer: Sierra Wireless, Incorporated
[ 56.890782] usb 1-2: SerialNumber: XG84438556081021
[ 57.129716] usbcore: registered new interface driver usbserial_generic
[ 57.129722] usbserial: USB Serial support registered for generic
[ 57.131882] usbcore: registered new interface driver qcserial
[ 57.131889] usbserial: USB Serial support registered for Qualcomm USB modem
[ 57.135094] qcserial 1-2:1.0: Qualcomm USB modem converter detected
[ 57.136154] usbcore: registered new interface driver cdc_wdm
[ 57.136482] usb 1-2: Qualcomm USB modem converter now attached to ttyUSB0
[ 57.140876] qcserial 1-2:1.2: Qualcomm USB modem converter detected
[ 57.140991] usb 1-2: Qualcomm USB modem converter now attached to ttyUSB1
[ 57.166711] cdc_ether 1-2:1.19 usb0: register ‘cdc_ether’ at usb-0000:00:06.0-2, CDC Ethernet Device, a6:b9:45:0d:04:75
[ 57.166814] usbcore: registered new interface driver cdc_ether
[ 57.176960] qmi_wwan 1-2:1.8: cdc-wdm0: USB WDM device
[ 57.177207] qmi_wwan 1-2:1.8 wwan0: register ‘qmi_wwan’ at usb-0000:00:06.0-2, WWAN/QMI device, fe:ec:3f:13:ee:b5
[ 57.177758] usbcore: registered new interface driver qmi_wwan
[ 57.181939] qcserial 1-2:1.3: Qualcomm USB modem converter detected
[ 57.182036] usb 1-2: Qualcomm USB modem converter now attached to ttyUSB2
[ 57.194506] qmi_wwan 1-2:1.8 wwp0s6u2i8: renamed from wwan0
[ 57.287518] cdc_ether 1-2:1.19 enp0s6u2i19: renamed from usb0
[ 70.172027] rfkill: input handler disabled
[ 86.164785] usb 1-2: USB disconnect, device number 3
[ 86.164907] qcserial ttyUSB0: Qualcomm USB modem converter now disconnected from ttyUSB0
[ 86.164921] qcserial 1-2:1.0: device disconnected
[ 86.165021] qcserial ttyUSB1: Qualcomm USB modem converter now disconnected from ttyUSB1
[ 86.165032] qcserial 1-2:1.2: device disconnected
[ 86.165121] qcserial ttyUSB2: Qualcomm USB modem converter now disconnected from ttyUSB2
[ 86.165132] qcserial 1-2:1.3: device disconnected
[ 86.165187] qmi_wwan 1-2:1.8 wwp0s6u2i8: unregister ‘qmi_wwan’ usb-0000:00:06.0-2, WWAN/QMI device
[ 86.190342] cdc_ether 1-2:1.19 enp0s6u2i19: unregister ‘cdc_ether’ usb-0000:00:06.0-2, CDC Ethernet Device
[ 365.399583] usb 1-2: new full-speed USB device number 4 using ohci-pci
[ 366.299220] usb 1-2: New USB device found, idVendor=413c, idProduct=2113
[ 366.299222] usb 1-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 366.299223] usb 1-2: Product: Dell KB216 Wired Keyboard
[ 366.319874] input: Dell KB216 Wired Keyboard as /devices/pci0000:00/0000:00:06.0/usb1/1-2/1-2:1.0/0003:413C:2113.0002/input/input8

Again i tried this,but i’m getting error.what is the next procedure to slove this problem?

mangoh@mangoh-vm:~$ sudo ifconfig usb0 192.168.2.3
SIOCSIFADDR: No such device
usb0: ERROR while getting interface flags: No such device

at!entercnd=“A710”
OK
at!usbcomp?
Config Index: 1
Config Type: 1 (Generic)
Interface bitmask: 0008010D (diag,nmea,modem,rmnet0,ecm)

OK
at!usbcomp=?
!USBCOMP:
AT!USBCOMP=,,
- configuration index to which the composition applies, should be 1

- 1:Generic

- DIAG - 0x00000001,
NMEA - 0x00000004,
MODEM - 0x00000008,
RAWDAT - 0x00000040,
RMNET0 - 0x00000100,
RMNET1 - 0x00000400,
RMNET2 - 0x00000800,
AUDIO - 0x00010000,
ECM - 0x00080000,
NCM - 0x00400000,
e.g.
9 - diag,modem interfaces enabled
10D - diag,nmea,modem,rmnet0 interfaces enabled

OK

[ 57.287518] cdc_ether 1-2:1.19 enp0s6u2i19: renamed from usb0

you need to use sudo ifconfig enp0s6u2i19 192.168.2.3

Do you disconnect the USB cable after some time?
[ 86.190342] cdc_ether 1-2:1.19 enp0s6u2i19: unregister ‘cdc_ether’ usb-0000:00:06.0-2, CDC Ethernet Device

mangoh@mangoh-vm:~$ sudo ifconfig enp0s6u2i19 192.168.2.3
SIOCSIFADDR: No such device
enp0s6u2i19: ERROR while getting interface flags: No such device

Do you disconnect the USB cable after some time?
[ 86.164785] usb 1-2: USB disconnect, device number 3
[ 86.164907] qcserial ttyUSB0: Qualcomm USB modem converter now disconnected from ttyUSB0
[ 86.164921] qcserial 1-2:1.0: device disconnected
[ 86.165021] qcserial ttyUSB1: Qualcomm USB modem converter now disconnected from ttyUSB1
[ 86.165032] qcserial 1-2:1.2: device disconnected
[ 86.165121] qcserial ttyUSB2: Qualcomm USB modem converter now disconnected from ttyUSB2
[ 86.165132] qcserial 1-2:1.3: device disconnected
[ 86.165187] qmi_wwan 1-2:1.8 wwp0s6u2i8: unregister ‘qmi_wwan’ usb-0000:00:06.0-2, WWAN/QMI device
[ 86.190342] cdc_ether 1-2:1.19 enp0s6u2i19: unregister ‘cdc_ether’ usb-0000:00:06.0-2, CDC Ethernet Device

Do you disconnect the USB cable after some time?
NO, usb cable is connected,but i am getting
Device, a6:b9:45:0d:04:75
[ 549.057026] cdc_ether 1-3:1.19 enp0s6u3i19: renamed from usb0
[ 549.079387] qmi_wwan 1-3:1.8 wwp0s6u3i8: renamed from wwan0
[ 552.269316] usb 1-2: USB disconnect, device number 4
[ 573.156139] usb 1-3: USB disconnect, device number 6
[ 573.156258] qcserial ttyUSB0: Qualcomm USB modem converter now disconnected from ttyUSB0
[ 573.156274] qcserial 1-3:1.0: device disconnected
[ 573.156418] qcserial ttyUSB1: Qualcomm USB modem converter now disconnected from ttyUSB1
[ 573.156428] qcserial 1-3:1.2: device disconnected
[ 573.156519] qcserial ttyUSB2: Qualcomm USB modem converter now disconnected from ttyUSB2
[ 573.156526] qcserial 1-3:1.3: device disconnected
[ 573.156568] qmi_wwan 1-3:1.8 wwp0s6u3i8: unregister ‘qmi_wwan’ usb-0000:00:06.0-3, WWAN/QMI device
[ 573.178986] cdc_ether 1-3:1.19 enp0s6u3i19: unregister ‘cdc_ether’ usb-0000:00:06.0-3, CDC Ethernet Device

why it is getting like this?

no idea about your VM machine.
Probably you should check with a real linux PC.

Is ther any other way to enable ffmpeg?

you still need a method to transfer library to the module’s RAM.
You can use sd card or USB thumb drive.

HI
how to use the sd card,tell me the procedure

// to mount SD card
mkdir -p /tmp/sdcard
/bin/mount -t auto -o sync /dev/mmcblk0p1 “/tmp/sdcard”

now the /tmp/sdcard should be able to see the SD card content

how to transfer library to the module’s RAM by using SD card.
please explain the procedure?