Build Linux for wp76


#21

Do you start with clean Linux VM ??
Remove the yocto folder and retry.

Start by

cd yocto
make image

I was able to build yocto 2 weeks ago with same procedure…


#22

Hi @Francis.duhaut,

I am able to built yocto linux distribution but can’t figure out which image should I flash to the board?
Following are the image in ~/yocto/build_bin/tmp/deploy/images/swi-mdm9x28 directory:

appsboot_ar758x.cwe
appsboot.mbn
appsboot.mbn.unsigned
appsboot_wp76xx.cwe
appsboot_wp77xx.cwe
boot_hash.2k
boot_hash.4k
boot_mbnhdr
boot-yocto-mdm9x28-20180213061253.2k.img
boot-yocto-mdm9x28-20180213061253.4k.img
boot-yocto-mdm9x28.2k.img
boot-yocto-mdm9x28.2k.unsigned.img
boot-yocto-mdm9x28.4k.img
boot-yocto-mdm9x28.4k.unsigned.img
boot-yocto-mdm9x28.img
build_package.version
kernel.version
lk.version
masterDTB.2k
masterDTB.4k
mdm9x28-image-initramfs-swi-mdm9x28-20180213061253.rootfs.cpio.gz
mdm9x28-image-initramfs-swi-mdm9x28-20180213061253.rootfs.manifest
mdm9x28-image-initramfs-swi-mdm9x28-20180213061253.rootfs.tar.bz2
mdm9x28-image-initramfs-swi-mdm9x28.cpio.gz
mdm9x28-image-initramfs-swi-mdm9x28.manifest
mdm9x28-image-initramfs-swi-mdm9x28.tar.bz2
mdm9x28-image-minimal-swi-mdm9x28-20180209131641.rootfs.2k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180209131641.rootfs.4k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180209131641.rootfs.manifest
mdm9x28-image-minimal-swi-mdm9x28-20180209131641.rootfs.squashfs
mdm9x28-image-minimal-swi-mdm9x28-20180209131641.rootfs.tar.bz2
mdm9x28-image-minimal-swi-mdm9x28-20180212063538.rootfs.2k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212063538.rootfs.4k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212063538.rootfs.manifest
mdm9x28-image-minimal-swi-mdm9x28-20180212063538.rootfs.squashfs
mdm9x28-image-minimal-swi-mdm9x28-20180212063538.rootfs.tar.bz2
mdm9x28-image-minimal-swi-mdm9x28-20180212081928.rootfs.2k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212081928.rootfs.4k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212081928.rootfs.manifest
mdm9x28-image-minimal-swi-mdm9x28-20180212081928.rootfs.squashfs
mdm9x28-image-minimal-swi-mdm9x28-20180212081928.rootfs.tar.bz2
mdm9x28-image-minimal-swi-mdm9x28-20180212094324.rootfs.2k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212094324.rootfs.4k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212094324.rootfs.manifest
mdm9x28-image-minimal-swi-mdm9x28-20180212094324.rootfs.squashfs
mdm9x28-image-minimal-swi-mdm9x28-20180212094324.rootfs.tar.bz2
mdm9x28-image-minimal-swi-mdm9x28-20180212095059.rootfs.2k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212095059.rootfs.4k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212095059.rootfs.manifest
mdm9x28-image-minimal-swi-mdm9x28-20180212095059.rootfs.squashfs
mdm9x28-image-minimal-swi-mdm9x28-20180212095059.rootfs.tar.bz2
mdm9x28-image-minimal-swi-mdm9x28-20180212144526.rootfs.2k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212144526.rootfs.4k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180212144526.rootfs.manifest
mdm9x28-image-minimal-swi-mdm9x28-20180212144526.rootfs.squashfs
mdm9x28-image-minimal-swi-mdm9x28-20180212144526.rootfs.tar.bz2
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.2k.ubifs.ubinize.cfg
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.4k.ubifs.ubinize.cfg
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.build_package.version
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.2k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.2k.yaffs2
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.4k.ubifs
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.4k.yaffs2
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.manifest
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.squashfs
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.squashfs.hash
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.squashfs.hash.txt
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.tar.bz2
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.version
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.squashfs.2k.ubi
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.squashfs.4k.ubi
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.squashfs.ubinize.cfg
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.ubifs.2k.ubi
mdm9x28-image-minimal-swi-mdm9x28-20180213061253.ubifs.4k.ubi
mdm9x28-image-minimal-swi-mdm9x28.2k.ubi
mdm9x28-image-minimal-swi-mdm9x28.2k.ubifs
mdm9x28-image-minimal-swi-mdm9x28.2k.yaffs2
mdm9x28-image-minimal-swi-mdm9x28.4k.default
mdm9x28-image-minimal-swi-mdm9x28.4k.ubi
mdm9x28-image-minimal-swi-mdm9x28.4k.ubifs
mdm9x28-image-minimal-swi-mdm9x28.4k.yaffs2
mdm9x28-image-minimal-swi-mdm9x28.build_package.version
mdm9x28-image-minimal-swi-mdm9x28.default
mdm9x28-image-minimal-swi-mdm9x28.manifest
mdm9x28-image-minimal-swi-mdm9x28.rootfs.version
mdm9x28-image-minimal-swi-mdm9x28.squashfs
mdm9x28-image-minimal-swi-mdm9x28.squashfs.2k.ubi
mdm9x28-image-minimal-swi-mdm9x28.squashfs.4k.ubi
mdm9x28-image-minimal-swi-mdm9x28.tar.bz2
mdm9x28-image-minimal-swi-mdm9x28.ubi
mdm9x28-image-minimal-swi-mdm9x28.ubifs.2k.ubi
mdm9x28-image-minimal-swi-mdm9x28.ubifs.4k.ubi
modules–3.18.20+git2a043e38a886e83a891d5e5a8a113d6ac6d0ab9a-r1-swi-mdm9x28-20180213061253.tgz
modules-swi-mdm9x28.tgz
README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
rootfs
rootfs.rhash
rootfs.version
vmlinux
yocto_ar758x.4k.cwe
yocto_wp76xx.2k.cwe
yocto_wp76xx.4k.cwe
yocto_wp77xx.2k.cwe
yocto_wp77xx.4k.cwe
zImage
zImage–3.18.20+git2a043e38a886e83a891d5e5a8a113d6ac6d0ab9a-r1-swi-mdm9x28-20180213061253.bin
zImage-initramfs-3.18.20+git2a043e38a886e83a891d5e5a8a113d6ac6d0ab9a-r1-swi-mdm9x28-20180213061253.bin
zImage-initramfs-swi-mdm9x28.bin
zImage-swi-mdm9x28.bin
warlord@ubuntu:~/legato_source/yocto/build_bin/tmp/deploy/images/swi-mdm9x28$ pwd
/home/warlord/legato_source/yocto/build_bin/tmp/deploy/images/swi-mdm9x28

Any help would be highly appreciated.

Thanks,
Yogesh


#23

I can see there are multiple files created in ~/build_bin/tmp/deploy/images/swi-mdm9x28 directory. I used yocto_wp76xx.4k.cwe to create firmware file using swicwe utility.

I copied the combined image to target board and ran fwupdate command from there.
This command never returns with following logs on the console:

"fwupdate install combined-firmware.spk 192.168.2.2
Connecting to service …
Install the firmware, the system will reboot …

So I tried installing firmware with swiflash command. Below is the command output:

swiflash -m “WP76XX” -i combined-firmware.spk

Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
…DONE
Downloading the firmware
…DONE
Rebooting the module
…DONE
Firmware Download SUCCESS

After this process, I am not able to ping the board though board is showing ecm0 interface:

bridge0 Link encap:Ethernet HWaddr 52:D9:D5:12:CB:CC
inet addr:192.168.225.1 Bcast:192.168.225.255 Mask:255.255.255.0
inet6 addr: fe80::50d9:d5ff:fe0f:c8c9/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:76 (76.0 B)

ecm0 Link encap:Ethernet HWaddr 7E:BF:C3:1B:07:93
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::7cbf:c3ff:fe1b:793/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:911 errors:0 dropped:0 overruns:0 frame:0
TX packets:72 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:91037 (88.9 KiB) TX bytes:14832 (14.4 KiB)

After firmware update I can’t locate ftdi_sio.ko inside the target which means either the image I have flashed, doesn’t contain ftdi_sio module or I am somewhere missing some steps in flashing the firmware.

How can I make sure that the "combined-firmware.spk " image I created with yocto_wp76xx.4k.cwe file using swicwe utility with below command,

swicwe -o combined-firmware.spk -c yocto_wp76xx.4k.cwe

contains “ftdi_sio.ko” module?

ftdi_sio text only matches with following images:

grep -ir ftdi_sio *

Binary file mdm9x28-image-minimal-swi-mdm9x28-20180212144526.rootfs.2k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180212144526.rootfs.4k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.2k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.2k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.4k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.4k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.ubifs.2k.ubi matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.ubifs.4k.ubi matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.2k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.2k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.4k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.4k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.ubifs.2k.ubi matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.ubifs.4k.ubi matches

Thanks in advance.

Thanks,
Yogesh


#24

Hi @dfrey,

Do I need to create spk(combined) file from yocto_wp76xx.4k.cwe or I can directly flash yocto_wp76xx.4k.cwe using swiflash?

Thanks,
Yogesh


#25

Hello

Just flash the Yocto 4K file (Linux with file system).

cfglegato

fwupdate download yocto4kfile 192.168.2.2

Sorry I travel this week.
Regards
Francis


#26

Hi @dfrey

I followed all the steps you mentioned above to enable ftdi_sio/Serial driver in linux kernel but still this driver hasn’t build into the yocto image (yocto_wp76xx.4k.cwe) .

I grepped ftdi_sio in the image directory after build and it shows only following matches:

grep ftdi_sio *
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180212144526.rootfs.2k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180212144526.rootfs.4k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.2k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.2k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.4k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.rootfs.4k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.ubifs.2k.ubi matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213061253.ubifs.4k.ubi matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213134948.rootfs.2k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213134948.rootfs.2k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213134948.rootfs.4k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213134948.rootfs.4k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213134948.ubifs.2k.ubi matches
Binary file mdm9x28-image-minimal-swi-mdm9x28-20180213134948.ubifs.4k.ubi matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.2k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.2k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.4k.ubifs matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.4k.yaffs2 matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.ubifs.2k.ubi matches
Binary file mdm9x28-image-minimal-swi-mdm9x28.ubifs.4k.ubi matches

I also flashed yocto_wp76xx.4k.cwe image to the target but it’s not creating /dev/ttyUSBx device on connecting usb to serial converter cable.

Am I missing something? Any help would be highly appreciated. Thanks in advance.

Thanks,
Yogesh