Need help building the ota_fr application. Errors on fresh SDK install.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I'm trying to build the ota_fr app for the BCM943362WCD4 evaluation board but when I run the target that comes pre-loaded in the SDK (3.1.2) it completes the application build but when its trying to build s returns this error:

Building Serial Flash Image

make[1]: ./tools/makefiles/mfg_image.mk: No such file or directory

make[1]: *** No rule to make target `./tools/makefiles/mfg_image.mk'.  Stop.

make: *** [sflash_image] Error 2

Are there any missing files that are needed to complete building this snippet?

Thanks

0 Likes
1 Solution

I think you are running under Linux (ubuntu)

Here is my solution!

Replace the make under tools/common/Linux32/ or tools/common/Linux64/ with your Linux build-in one, If both are the same version.

# check system make version

$ make -v

GNU Make 3.81

Copyright (C) 2006  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu

# check the SDK make version

$ ./make -v

GNU Make 3.81

Copyright (C) 2006  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu

View solution in original post

0 Likes
10 Replies
JoYi_1844281
Level 6
Level 6
100 sign-ins 100 replies posted 50 likes received

Build command is change for SDK 3.1.2, detail check the snip/ota_fr/ota_fr.c

Try follow line

# ./make snip.ota_fr-BCM43362WCD4 download download_apps run

Anonymous
Not applicable

Jone,

Thanks for the quick response.  The command you provided causes the compile to get much further than it had been previously, however, I still encounter this error when compiling:

**** Build of configuration Default for project WICED-SDK-3.1.2 ****

/Applications/WICED/WICED-SDK-3.1.2/make snip.ota_fr-BCM943362WCD4 download download_apps run

Making .gdbinit

Building Bootloader

Building Serial Flash Loader App

waf_sflash_write-NoOS-NoNS-BCM943362WCD4-SDIO

Finished Building Bootloader

Build complete

Finished Building Serial Flash Loader App

snip_ota_fr-BCM943362WCD4

Downloading Bootloader ...

make: *** [main_app] Segmentation fault: 11

No changes detected

Download complete

Despite the output saying that it has completed, the board does not complete the download and continues to run the application that was previously running (snip.scan)

It seems like you have been able to run this command in your setup before.  Have you seen this error?

Thanks

0 Likes
Anonymous
Not applicable

What is your OS?

0 Likes

I think you are running under Linux (ubuntu)

Here is my solution!

Replace the make under tools/common/Linux32/ or tools/common/Linux64/ with your Linux build-in one, If both are the same version.

# check system make version

$ make -v

GNU Make 3.81

Copyright (C) 2006  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu

# check the SDK make version

$ ./make -v

GNU Make 3.81

Copyright (C) 2006  Free Software Foundation, Inc.

This is free software; see the source for copying conditions.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

This program built for x86_64-pc-linux-gnu

0 Likes

Hi,

If you still have problems with building and downloading the applications.

Seyhan

0 Likes
Anonymous
Not applicable

seyhan

Thanks for following up.  Im spending time investigating a startup issue which I have posted about here but I'm going to be back to this as soon as the other issue is resolved.

bdawood  I'm on OSX.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

Try to replace tools/makfiles/wiced_apps.mk with this file and see if this solves your problem.

Regards,

Bassem

0 Likes
Anonymous
Not applicable

That file is identical to mine except for indentation.

What are the expected changes?

0 Likes
Anonymous
Not applicable

There was a but in wiced_apps.mk that cuased it not to work on Linux and OSX. Sine variables in the download targets were wrapped with two braces (ie. (($xxx)) )  and this cause a problem.

Anonymous
Not applicable

bdawood  Yes, I should have mentioned that here after I changed it.  I'm familiar with gnu make so that was an obvious issue.  The non-obvious issue was the issue I have marked as correct written by jone.