Trying to built yocto for fx30 cat1

i think you need to do this step by step
for example,

  1. if you just download yocto_wp76xx.4k.cwe1, does it work?
  2. if you just download 9999999_9907152_SWI9X07Y_02.18.05.00_00_GENERIC_002.041_002.spk, does it work?
  3. if you just download legato.cwe, does it work?

First question for me, is yocto_wp76xx.4k.cwe the good file? It is the file i found in the deploy/images directory.

I’ve tried to donwload it on the modem then update but it did not work.

I’m sure no problem for the two other files. The spk is a stock one and the legato is the one generated and working with the regular system (the one linked with getsrc --disabled option).

Regards

i think that is the only yocto cwe file that you have generated

What is the error code in FDT tool if you download to it?

Do you have the UART console in your FX30?

if yes, you can see the debug message about the download process.

Don’t know how to get UART console.

The end of logread for the command (fwupdate download file) is :

Dec 20 08:53:00 fx30 user.info Legato: INFO | fwupdateDaemon[1186]/le_pa_fwupdate_singlesys T=main | pa_fwupdate_singlesys.c BuildMetaData() 2059 | Logical block: 2, Physical block: 2
Dec 20 08:53:00 fx30 user.info Legato: INFO | fwupdateDaemon[1186]/le_pa_fwupdate_singlesys T=main | pa_fwupdate_singlesys.c WriteDwlStatus() 1742 | FW update download status stored.
Dec 20 08:53:00 fx30 user.info Legato: INFO | fwupdateDaemon[1186]/le_pa_fwupdate T=main | pa_fwupdate_qmi.c pa_fwupdate_CloseSwifota() 2216 | Close SWIFOTA partition
Dec 20 08:53:00 fx30 user.info Legato: INFO | powerManagerService[1244]/powerMgr T=main | le_pm.c OnClientDisconnect() 298 | Client pid 1186 disconnected.
Dec 20 08:53:00 fx30 user.warn Legato: -WRN- | powerManagerService[1244]/powerMgr T=main | le_pm.c OnClientDisconnect() 315 | Releasing wakeup source ‘legato_FWUpdate_fwupdateDaemon’ on behalf of fwupdateDaemon/1186.
Dec 20 08:53:00 fx30 user.info Legato: INFO | powerManagerService[1244]/powerMgr T=main | le_pm.c OnClientDisconnect() 323 | Deleting wakeup source ‘legato_FWUpdate_fwupdateDaemon’ on behalf of pid 1186.
Dec 20 08:53:00 fx30 user.info Legato: INFO | powerManagerService[1244]/powerMgr T=main | le_pm.c OnClientConnect() 270 | Connection from client fwupdateDaemon/1186
Dec 20 08:53:00 fx30 user.warn Legato: -WRN- | fwupdateDaemon[1186]/framework T=main | fdMonitor.c le_fdMonitor_Create() 449 | FD Monitor object name ‘fwupdateDaemon.fwupdateDaemon.le_pm’ truncated to ‘fwupdateDaemon.fwupdateDaemon.l’.
Dec 20 08:53:00 fx30 user.info Legato: INFO | powerManagerService[1244]/powerMgr T=main | le_pm.c le_pm_NewWakeupSource() 509 | Created new wakeup source ‘legato_FWUpdate_fwupdateDaemon’ for pid 1186.
Dec 20 08:53:00 fx30 user.info Legato: INFO | fwupdateDaemon[1186]/le_pa_fwupdate_singlesys T=main | partition.c partition_WriteMetaData() 2117 | MTD 6: Writing from CWE image 11
Dec 20 08:53:00 fx30 user.info Legato: INFO | fwupdateDaemon[1186]/le_pa_fwupdate_singlesys T=main | pa_flash_mtd.c pa_flash_GetInfo() 231 | MTD 6 “swifota”: size 4f40000 (nbBlk 317), writeSize 1000, eraseSize 40000
Dec 20 08:53:00 fx30 user.info Legato: INFO | fwupdateDaemon[1186]/le_pa_fwupdate_singlesys T=main | partition.c partition_WriteMetaData() 2170 | MTD 6: Writing meta data to peb 0
Dec 20 08:53:00 fx30 user.info Legato: INFO | fwupdateDaemon[1186]/le_pa_fwupdate_singlesys T=main | pa_fwupdate_singlesys.c WriteDwlStatus() 1742 | FW update download status stored.

Seems like download is OK but what about writing CWE image 11 ?

After the command, the FX30 is bricked.

Regards

What is the error code in FDT tool if you download to it?

Is it able to download the official FW like R16 or R10?
https://source.sierrawireless.com/resources/airlink/software_downloads/fx30-firmware/fx30-firmware-cat1/#sthash.xWWco6HW.dpbs

Not the first time I flash a cwe image and the one I produce with legato framework getsrc --disabled is OK. I can recover from the bricked fx30 using TP1 and flashing back my firmware.

As I want to go further, I plan to generate a custom linux with the ressources of legato but no way to process. I want to install openvpn in the firmware. It is just like it is impossible to generate from sources.

Regard

can you attach the yocto.cwe here?
I can try to download to WP76 on mangoh board.

BTW, you can first load the binary of openVPN and see if it works for you:

/build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/openvpn/2.4.4-r0/image/usr/sbin/openvpn

openvpn (3.1 MB)

root@swi-mdm9x28-wp:~# chmod 777 /tmp/openvpn
root@swi-mdm9x28-wp:~# /tmp/openvpn
OpenVPN 2.4.4 arm-poky-linux-gnueabi [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Dec 20 2022

General Options:
--config file   : Read configuration options from file.
--help          : Show options.
--version       : Show copyright and version information.

Tunnel Options:
--local host    : Local host name or ip address. Implies --bind.
--remote host [port] : Remote host name or ip address.
--remote-random : If multiple --remote options specified, choose one randomly.
--remote-random-hostname : Add a random string to remote DNS name.
--mode m        : Major mode, m = 'p2p' (default, point-to-point) or 'server'.
--proto p       : Use protocol p for communicating with peer.
                  p = udp (default), tcp-server, or tcp-client
--proto-force p : only consider protocol p in list of connection profiles.
                  p = udp6, tcp6-server, or tcp6-client (ipv6)
--connect-retry n [m] : For client, number of seconds to wait between
                  connection retries (default=5). On repeated retries
                  the wait time is exponentially increased to a maximum of m
                  (default=300).
--connect-retry-max n : Maximum connection attempt retries, default infinite.
--http-proxy s p [up] [auth] : Connect to remote host
                  through an HTTP proxy at address s and port p.
                  If proxy authentication is required,
                  up is a file containing username/password on 2 lines, or
                  'stdin' to prompt from console.  Add auth='ntlm' if
                  the proxy requires NTLM authentication.
--http-proxy s p 'auto[-nct]' : Like the above directive, but automatically
                  determine auth method and query for username/password
                  if needed.  auto-nct disables weak proxy auth methods.
--http-proxy-option type [parm] : Set extended HTTP proxy options.
                                  Repeat to set multiple options.
                  VERSION version (default=1.0)
                  AGENT user-agent
--socks-proxy s [p] [up] : Connect to remote host through a Socks5 proxy at
                  address s and port p (default port = 1080).
                  If proxy authentication is required,
                  up is a file containing username/password on 2 lines, or
                  'stdin' to prompt for console.
--socks-proxy-retry : Retry indefinitely on Socks proxy errors.
--resolv-retry n: If hostname resolve fails for --remote, retry
                  resolve for n seconds before failing (disabled by default).
                  Set n="infinite" to retry indefinitely.
--float         : Allow remote to change its IP address/port, such as through
                  DHCP (this is the default if --remote is not used).
--ipchange cmd  : Run command cmd on remote ip address initial
                  setting or change -- execute as: cmd ip-address port#
--port port     : TCP/UDP port # for both local and remote.
--lport port    : TCP/UDP port # for local (default=1194). Implies --bind.
--rport port    : TCP/UDP port # for remote (default=1194).
--bind          : Bind to local address and port. (This is the default unless
                  --proto tcp-client or --http-proxy or --socks-proxy is used).
--nobind        : Do not bind to local address and port.
--dev tunX|tapX : tun/tap device (X can be omitted for dynamic device.
--dev-type dt   : Which device type are we using? (dt = tun or tap) Use
                  this option only if the tun/tap device used with --dev
                  does not begin with "tun" or "tap".
--dev-node node : Explicitly set the device node rather than using
                  /dev/net/tun, /dev/tun, /dev/tap, etc.
--lladdr hw     : Set the link layer address of the tap device.
--topology t    : Set --dev tun topology: 'net30', 'p2p', or 'subnet'.
--iproute cmd   : Use this command instead of default /sbin/ip.
--ifconfig l rn : TUN: configure device to use IP address l as a local
                  endpoint and rn as a remote endpoint.  l & rn should be
                  swapped on the other peer.  l & rn must be private
                  addresses outside of the subnets used by either peer.
                  TAP: configure device to use IP address l as a local
                  endpoint and rn as a subnet mask.
--ifconfig-ipv6 l r : configure device to use IPv6 address l as local
                      endpoint (as a /64) and r as remote endpoint
--ifconfig-noexec : Don't actually execute ifconfig/netsh command, instead
                    pass --ifconfig parms by environment to scripts.
--ifconfig-nowarn : Don't warn if the --ifconfig option on this side of the
                    connection doesn't match the remote side.
--route network [netmask] [gateway] [metric] :
                  Add route to routing table after connection
                  is established.  Multiple routes can be specified.
                  netmask default: 255.255.255.255
                  gateway default: taken from --route-gateway or --ifconfig
                  Specify default by leaving blank or setting to "nil".
--route-ipv6 network/bits [gateway] [metric] :
                  Add IPv6 route to routing table after connection
                  is established.  Multiple routes can be specified.
                  gateway default: taken from 'remote' in --ifconfig-ipv6
--route-gateway gw|'dhcp' : Specify a default gateway for use with --route.
--route-metric m : Specify a default metric for use with --route.
--route-delay n [w] : Delay n seconds after connection initiation before
                  adding routes (may be 0).  If not specified, routes will
                  be added immediately after tun/tap open.  On Windows, wait
                  up to w seconds for TUN/TAP adapter to come up.
--route-up cmd  : Run command cmd after routes are added.
--route-pre-down cmd : Run command cmd before routes are removed.
--route-noexec  : Don't add routes automatically.  Instead pass routes to
                  --route-up script using environmental variables.
--route-nopull  : When used with --client or --pull, accept options pushed
                  by server EXCEPT for routes and dhcp options.
--allow-pull-fqdn : Allow client to pull DNS names from server for
                    --ifconfig, --route, and --route-gateway.
--redirect-gateway [flags]: Automatically execute routing
                  commands to redirect all outgoing IP traffic through the
                  VPN.  Add 'local' flag if both OpenVPN servers are directly
                  connected via a common subnet, such as with WiFi.
                  Add 'def1' flag to set default route using using 0.0.0.0/1
                  and 128.0.0.0/1 rather than 0.0.0.0/0.  Add 'bypass-dhcp'
                  flag to add a direct route to DHCP server, bypassing tunnel.
                  Add 'bypass-dns' flag to similarly bypass tunnel for DNS.
--redirect-private [flags]: Like --redirect-gateway, but omit actually changing
                  the default gateway.  Useful when pushing private subnets.
--client-nat snat|dnat network netmask alias : on client add 1-to-1 NAT rule.
--push-peer-info : (client only) push client info to server.
--setenv name value : Set a custom environmental variable to pass to script.
--setenv FORWARD_COMPATIBLE 1 : Relax config file syntax checking to allow
                  directives for future OpenVPN versions to be ignored.
--ignore-unkown-option opt1 opt2 ...: Relax config file syntax. Allow
                  these options to be ignored when unknown
--script-security level: Where level can be:
                  0 -- strictly no calling of external programs
                  1 -- (default) only call built-ins such as ifconfig
                  2 -- allow calling of built-ins and scripts
                  3 -- allow password to be passed to scripts via env
--shaper n      : Restrict output to peer to n bytes per second.
--keepalive n m : Helper option for setting timeouts in server mode.  Send
                  ping once every n seconds, restart if ping not received
                  for m seconds.
--inactive n [bytes] : Exit after n seconds of activity on tun/tap device
                  produces a combined in/out byte count < bytes.
--ping-exit n   : Exit if n seconds pass without reception of remote ping.
--ping-restart n: Restart if n seconds pass without reception of remote ping.
--ping-timer-rem: Run the --ping-exit/--ping-restart timer only if we have a
                  remote address.
--ping n        : Ping remote once every n seconds over TCP/UDP port.
--multihome     : Configure a multi-homed UDP server.
--fast-io       : (experimental) Optimize TUN/TAP/UDP writes.
--remap-usr1 s  : On SIGUSR1 signals, remap signal (s='SIGHUP' or 'SIGTERM').
--persist-tun   : Keep tun/tap device open across SIGUSR1 or --ping-restart.
--persist-remote-ip : Keep remote IP address across SIGUSR1 or --ping-restart.
--persist-local-ip  : Keep local IP address across SIGUSR1 or --ping-restart.
--persist-key   : Don't re-read key files across SIGUSR1 or --ping-restart.
--passtos       : TOS passthrough (applies to IPv4 only).
--tun-mtu n     : Take the tun/tap device MTU to be n and derive the
                  TCP/UDP MTU from it (default=1500).
--tun-mtu-extra n : Assume that tun/tap device might return as many
                  as n bytes more than the tun-mtu size on read
                  (default TUN=0 TAP=32).
--link-mtu n    : Take the TCP/UDP device MTU to be n and derive the tun MTU
                  from it.
--mtu-disc type : Should we do Path MTU discovery on TCP/UDP channel?
                  'no'    -- Never send DF (Don't Fragment) frames
                  'maybe' -- Use per-route hints
                  'yes'   -- Always DF (Don't Fragment)
--mtu-test      : Empirically measure and report MTU.
--fragment max  : Enable internal datagram fragmentation so that no UDP
                  datagrams are sent which are larger than max bytes.
                  Adds 4 bytes of overhead per datagram.
--mssfix [n]    : Set upper bound on TCP MSS, default = tun-mtu size
                  or --fragment max value, whichever is lower.
--sndbuf size   : Set the TCP/UDP send buffer size.
--rcvbuf size   : Set the TCP/UDP receive buffer size.
--mark value    : Mark encrypted packets being sent with value. The mark value
                  can be matched in policy routing and packetfilter rules.
--txqueuelen n  : Set the tun/tap TX queue length to n (Linux only).
--memstats file : Write live usage stats to memory mapped binary file.
--mlock         : Disable Paging -- ensures key material and tunnel
                  data will never be written to disk.
--up cmd        : Run command cmd after successful tun device open.
                  Execute as: cmd tun/tap-dev tun-mtu link-mtu \
                              ifconfig-local-ip ifconfig-remote-ip
                  (pre --user or --group UID/GID change)
--up-delay      : Delay tun/tap open and possible --up script execution
                  until after TCP/UDP connection establishment with peer.
--down cmd      : Run command cmd after tun device close.
                  (post --user/--group UID/GID change and/or --chroot)
                  (command parameters are same as --up option)
--down-pre      : Run --down command before TUN/TAP close.
--up-restart    : Run up/down commands for all restarts including those
                  caused by --ping-restart or SIGUSR1
--user user     : Set UID to user after initialization.
--group group   : Set GID to group after initialization.
--chroot dir    : Chroot to this directory after initialization.
--cd dir        : Change to this directory before initialization.
--daemon [name] : Become a daemon after initialization.
                  The optional 'name' parameter will be passed
                  as the program name to the system logger.
--syslog [name] : Output to syslog, but do not become a daemon.
                  See --daemon above for a description of the 'name' parm.
--inetd [name] ['wait'|'nowait'] : Run as an inetd or xinetd server.
                  See --daemon above for a description of the 'name' parm.
--log file      : Output log to file which is created/truncated on open.
--log-append file : Append log to file, or create file if nonexistent.
--suppress-timestamps : Don't log timestamps to stdout/stderr.
--machine-readable-output : Always log timestamp, message flags to stdout/stderr.
--writepid file : Write main process ID to file.
--nice n        : Change process priority (>0 = lower, <0 = higher).
--echo [parms ...] : Echo parameters to log output.
--verb n        : Set output verbosity to n (default=1):
                  (Level 3 is recommended if you want a good summary
                  of what's happening without being swamped by output).
                : 0 -- no output except fatal errors
                : 1 -- startup info + connection initiated messages +
                       non-fatal encryption & net errors
                : 2,3 -- show TLS negotiations & route info
                : 4 -- show parameters
                : 5 -- show 'RrWw' chars on console for each packet sent
                       and received from TCP/UDP (caps) or tun/tap (lc)
                : 6 to 11 -- debug messages of increasing verbosity
--mute n        : Log at most n consecutive messages in the same category.
--status file n : Write operational status to file every n seconds.
--status-version [n] : Choose the status file format version number.
                  Currently, n can be 1, 2, or 3 (default=1).
--disable-occ   : Disable options consistency check between peers.
--gremlin mask  : Special stress testing mode (for debugging only).
--compress alg  : Use compression algorithm alg
--comp-lzo      : Use LZO compression -- may add up to 1 byte per
                  packet for uncompressible data.
--comp-noadapt  : Don't use adaptive compression when --comp-lzo
                  is specified.
--management ip port [pass] : Enable a TCP server on ip:port to handle
                  management functions.  pass is a password file
                  or 'stdin' to prompt from console.
                  To listen on a unix domain socket, specific the pathname
                  in place of ip and use 'unix' as the port number.
--management-client : Management interface will connect as a TCP client to
                      ip/port rather than listen as a TCP server.
--management-query-passwords : Query management channel for private key
                  and auth-user-pass passwords.
--management-query-proxy : Query management channel for proxy information.
--management-query-remote : Query management channel for --remote directive.
--management-hold : Start OpenVPN in a hibernating state, until a client
                    of the management interface explicitly starts it.
--management-signal : Issue SIGUSR1 when management disconnect event occurs.
--management-forget-disconnect : Forget passwords when management disconnect
                                 event occurs.
--management-up-down : Report tunnel up/down events to management interface.
--management-log-cache n : Cache n lines of log file history for usage
                  by the management channel.
--management-client-user u  : When management interface is a unix socket, only
                              allow connections from user u.
--management-client-group g : When management interface is a unix socket, only
                              allow connections from group g.
--management-client-auth : gives management interface client the responsibility
                           to authenticate clients after their client certificate
                              has been verified.
--management-client-pf : management interface clients must specify a packet
                         filter file for each connecting client.
--plugin m [str]: Load plug-in module m passing str as an argument
                  to its initialization function.

Multi-Client Server options (when --mode server is used):
--server network netmask : Helper option to easily configure server mode.
--server-ipv6 network/bits : Configure IPv6 server mode.
--server-bridge [IP netmask pool-start-IP pool-end-IP] : Helper option to
                    easily configure ethernet bridging server mode.
--push "option" : Push a config file option back to the peer for remote
                  execution.  Peer must specify --pull in its config file.
--push-reset    : Don't inherit global push list for specific
                  client instance.
--ifconfig-pool start-IP end-IP [netmask] : Set aside a pool of subnets
                  to be dynamically allocated to connecting clients.
--ifconfig-pool-linear : (DEPRECATED) Use individual addresses rather
                  than /30 subnets
 in tun mode.  Not compatible with
                  Windows clients.
--ifconfig-pool-persist file [seconds] : Persist/unpersist ifconfig-pool
                  data to file, at seconds intervals (default=600).
                  If seconds=0, file will be treated as read-only.
--ifconfig-ipv6-pool base-IP/bits : set aside an IPv6 network block
                  to be dynamically allocated to connecting clients.
--ifconfig-push local remote-netmask : Push an ifconfig option to remote,
                  overrides --ifconfig-pool dynamic allocation.
                  Only valid in a client-specific config file.
--ifconfig-ipv6-push local/bits remote : Push an ifconfig-ipv6 option to
                  remote, overrides --ifconfig-ipv6-pool allocation.
                  Only valid in a client-specific config file.
--iroute network [netmask] : Route subnet to client.
--iroute-ipv6 network/bits : Route IPv6 subnet to client.
                  Sets up internal routes only.
                  Only valid in a client-specific config file.
--disable       : Client is disabled.
                  Only valid in a client-specific config file.
--client-cert-not-required : (DEPRECATED) Don't require client certificate, client
                  will authenticate using username/password.
--verify-client-cert [none|optional|require] : perform no, optional or
                  mandatory client certificate verification.
                  Default is to require the client to supply a certificate.
--username-as-common-name  : For auth-user-pass authentication, use
                  the authenticated username as the common name,
                  rather than the common name from the client cert.
--auth-user-pass-verify cmd method: Query client for username/password and
                  run command cmd to verify.  If method='via-env', pass
                  user/pass via environment, if method='via-file', pass
                  user/pass via temporary file.
--auth-gen-token  [lifetime] Generate a random authentication token which is pushed
                  to each client, replacing the password.  Usefull when
                  OTP based two-factor auth mechanisms are in use and
                  --reneg-* options are enabled. Optionally a lifetime in seconds
                  for generated tokens can be set.
--opt-verify    : Clients that connect with options that are incompatible
                  with those of the server will be disconnected.
--auth-user-pass-optional : Allow connections by clients that don't
                  specify a username/password.
--no-name-remapping : (DEPRECATED) Allow Common Name and X509 Subject to include
                      any printable character.
--client-to-client : Internally route client-to-client traffic.
--duplicate-cn  : Allow multiple clients with the same common name to
                  concurrently connect.
--client-connect cmd : Run command cmd on client connection.
--client-disconnect cmd : Run command cmd on client disconnection.
--client-config-dir dir : Directory for custom client config files.
--ccd-exclusive : Refuse connection unless custom client config is found.
--tmp-dir dir   : Temporary directory, used for --client-connect return file and plugin communication.
--hash-size r v : Set the size of the real address hash table to r and the
                  virtual address table to v.
--bcast-buffers n : Allocate n broadcast buffers.
--tcp-queue-limit n : Maximum number of queued TCP output packets.
--tcp-nodelay   : Macro that sets TCP_NODELAY socket flag on the server
                  as well as pushes it to connecting clients.
--learn-address cmd : Run command cmd to validate client virtual addresses.
--connect-freq n s : Allow a maximum of n new connections per s seconds.
--max-clients n : Allow a maximum of n simultaneously connected clients.
--max-routes-per-client n : Allow a maximum of n internal routes per client.
--stale-routes-check n [t] : Remove routes with a last activity timestamp
                             older than n seconds. Run this check every t
                             seconds (defaults to n).
--explicit-exit-notify [n] : In UDP server mode send [RESTART] command on exit/restart to connected
                             clients. n = 1 - reconnect to same server,
                             2 - advance to next server, default=1.
--port-share host port [dir] : When run in TCP mode, proxy incoming HTTPS
                  sessions to a web server at host:port.  dir specifies an
                  optional directory to write origin IP:port data.

Client options (when connecting to a multi-client server):
--client         : Helper option to easily configure client mode.
--auth-user-pass [up] : Authenticate with server using username/password.
                  up is a file containing the username on the first line,
                  and a password on the second. If either the password or both
                  the username and the password are omitted OpenVPN will prompt
                  for them from console.
--pull           : Accept certain config file options from the peer as if they
                  were part of the local config file.  Must be specified
                  when connecting to a '--mode server' remote host.
--pull-filter accept|ignore|reject t : Filter each option received from the
                  server if it starts with the text t. The action flag accept,
                  ignore or reject causes the option to be allowed, removed or
                  rejected with error. May be specified multiple times, and
                  each filter is applied in the order of appearance.
--auth-retry t  : How to handle auth failures.  Set t to
                  none (default), interact, or nointeract.
--static-challenge t e : Enable static challenge/response protocol using
                  challenge text t, with e indicating echo flag (0|1)
--connect-timeout n : when polling possible remote servers to connect to
                  in a round-robin fashion, spend no more than n seconds
                  waiting for a response before trying the next server.
--allow-recursive-routing : When this option is set, OpenVPN will not drop
                  incoming tun packets with same destination as host.
--explicit-exit-notify [n] : On exit/restart, send exit signal to
                  server/remote. n = # of retries, default=1.

Data Channel Encryption Options (must be compatible between peers):
(These options are meaningful for both Static Key & TLS-mode)
--secret f [d]  : Enable Static Key encryption mode (non-TLS).
                  Use shared secret file f, generate with --genkey.
                  The optional d parameter controls key directionality.
                  If d is specified, use separate keys for each
                  direction, set d=0 on one side of the connection,
                  and d=1 on the other side.
--auth alg      : Authenticate packets with HMAC using message
                  digest algorithm alg (default=SHA1).
                  (usually adds 16 or 20 bytes per packet)
                  Set alg=none to disable authentication.
--cipher alg    : Encrypt packets with cipher algorithm alg
                  (default=BF-CBC).
                  Set alg=none to disable encryption.
--ncp-ciphers list : List of ciphers that are allowed to be negotiated.
--ncp-disable   : Disable cipher negotiation.
--prng alg [nsl] : For PRNG, use digest algorithm alg, and
                   nonce_secret_len=nsl.  Set alg=none to disable PRNG.
--keysize n     : (DEPRECATED) Size of cipher key in bits (optional).
                  If unspecified, defaults to cipher-specific default.
--engine [name] : Enable OpenSSL hardware crypto engine functionality.
--no-replay     : (DEPRECATED) Disable replay protection.
--mute-replay-warnings : Silence the output of replay warnings to log file.
--replay-window n [t]  : Use a replay protection sliding window of size n
                         and a time window of t seconds.
                         Default n=64 t=15
--no-iv         : Disable cipher IV -- only allowed with CBC mode ciphers.
--replay-persist file : Persist replay-protection state across sessions
                  using file.
--test-crypto   : Run a self-test of crypto features enabled.
                  For debugging only.

TLS Key Negotiation Options:
(These options are meaningful only for TLS-mode)
--tls-server    : Enable TLS and assume server role during TLS handshake.
--tls-client    : Enable TLS and assume client role during TLS handshake.
--key-method m  : (DEPRECATED) Data channel key exchange method.  m should be a method
                  number, such as 1 (default), 2, etc.
--ca file       : Certificate authority file in .pem format containing
                  root certificate.
--capath dir    : A directory of trusted certificates (CAs and CRLs).
--dh file       : File containing Diffie Hellman parameters
                  in .pem format (for --tls-server only).
                  Use "openssl dhparam -out dh1024.pem 1024" to generate.
--cert file     : Local certificate in .pem format -- must be signed
                  by a Certificate Authority in --ca file.
--extra-certs file : one or more PEM certs that complete the cert chain.
--key file      : Local private key in .pem format.
--tls-version-min <version> ['or-highest'] : sets the minimum TLS version we
    will accept from the peer.  If version is unrecognized and 'or-highest'
    is specified, require max TLS version supported by SSL implementation.
--tls-version-max <version> : sets the maximum TLS version we will use.
--pkcs12 file   : PKCS#12 file containing local private key, local certificate
                  and optionally the root CA certificate.
--verify-hash hash [algo] : Specify fingerprint for level-1 certificate.
                            Valid algo flags are SHA1 and SHA256.
--tls-cipher l  : A list l of allowable TLS ciphers separated by : (optional).
                : Use --show-tls to see a list of supported TLS ciphers.
--tls-timeout n : Packet retransmit timeout on TLS control channel
                  if no ACK from remote within n seconds (default=2).
--reneg-bytes n : Renegotiate data chan. key after n bytes sent and recvd.
--reneg-pkts n  : Renegotiate data chan. key after n packets sent and recvd.
--reneg-sec n   : Renegotiate data chan. key after n seconds (default=3600).
--hand-window n : Data channel key exchange must finalize within n seconds
                  of handshake initiation by any peer (default=60).
--tran-window n : Transition window -- old key can live this many seconds
                  after new key renegotiation begins (default=3600).
--single-session: Allow only one session (reset state on restart).
--tls-exit      : Exit on TLS negotiation failure.
--tls-auth f [d]: Add an additional layer of authentication on top of the TLS
                  control channel to protect against attacks on the TLS stack
                  and DoS attacks.
                  f (required) is a shared-secret key file.
                  The optional d parameter controls key directionality,
                  see --secret option for more info.
--tls-crypt key : Add an additional layer of authenticated encryption on top
                  of the TLS control channel to hide the TLS certificate,
                  provide basic post-quantum security and protect against
                  attacks on the TLS stack and DoS attacks.
                  key (required) provides the pre-shared key file.
                  see --secret option for more info.
--askpass [file]: Get PEM password from controlling tty before we daemonize.
--auth-nocache  : Don't cache --askpass or --auth-user-pass passwords.
--crl-verify crl ['dir']: Check peer certificate against a CRL.
--tls-verify cmd: Run command cmd to verify the X509 name of a
                  pending TLS connection that has otherwise passed all other
                  tests of certification.  cmd should return 0 to allow
                  TLS handshake to proceed, or 1 to fail.  (cmd is
                  executed as 'cmd certificate_depth subject')
--tls-export-cert [directory] : Get peer cert in PEM format and store it
                  in an openvpn temporary file in [directory]. Peer cert is
                  stored before tls-verify script execution and deleted after.
--verify-x509-name name: Accept connections only from a host with X509 subject
                  DN name. The remote host must also pass all other tests
                  of verification.
--ns-cert-type t: (DEPRECATED) Require that peer certificate was signed with
                  an explicit nsCertType designation t = 'client' | 'server'.
--x509-track x  : Save peer X509 attribute x in environment for use by
                  plugins and management interface.
--keying-material-exporter label len : Save Exported Keying Material (RFC5705)
                  of len bytes (min. 16 bytes) using label in environment for use by plugins.
--remote-cert-ku v ... : Require that the peer certificate was signed with
                  explicit key usage, you can specify more than one value.
                  value should be given in hex format.
--remote-cert-eku oid : Require that the peer certificate was signed with
                  explicit extended key usage. Extended key usage can be encoded
                  as an object identifier or OpenSSL string representation.
--remote-cert-tls t: Require that peer certificate was signed with explicit
                  key usage and extended key usage based on RFC3280 TLS rules.
                  t = 'client' | 'server'.

SSL Library information:
--show-ciphers  : Show cipher algorithms to use with --cipher option.
--show-digests  : Show message digest algorithms to use with --auth option.
--show-engines  : Show hardware crypto accelerator engines (if available).
--show-tls      : Show all TLS ciphers (TLS used only as a control channel).

Generate a random key (only for non-TLS static key encryption mode):
--genkey        : Generate a random key to be used as a shared secret,
                  for use with the --secret option.
--secret file   : Write key to file.

Tun/tap config mode (available with linux 2.4+):
--mktun         : Create a persistent tunnel.
--rmtun         : Remove a persistent tunnel.
--dev tunX|tapX : tun/tap device
--dev-type dt   : Device type.  See tunnel options above for details.
--user user     : User to set privilege to.
--group group   : Group to set privilege to.

General Standalone Options:
--show-gateway : Show info about default gateway.

I think file is too big to attach in reply. I can transfer with wormhole (24h lifetime).

Tomorrow, I will try to put openvpn in a working system. Maybe some problems with crypto libs.

Is there a way to decrypt “cwe” file content?

Regards

you can use swicwe to see the partition:

but seems you cannot decrypt it…

I have downloaded your cwe to my WP76 module, it shows:

B -  16525906 - Imagetype=0x08 compat_id=0x00
B -  16526364 - Flash device name H27S4G8F2EKPB4
B -  16528438 - compat_tbl: device name MT29F4G08ABBFA3W compat 0x01
B -  16534629 - compat_tbl: device name H27S4G8F2EKPB4 compat 0x01
B -  16540485 - Imagetype=0x0B compat_id=0x00 incompatible with Flash!
B -  22217359 - VERSION=SWI9X07Y_02.37.07.00 2022/12/16 07:10:44,SIZE 0x20d7a20, IMG_TYPE=0x8,NON-SPKG/FOTA IMG,ERROR=Flash write failed: Package not compatible (0X86),STATUS=FAIL

I suspect the COMPAT_BYTE is still “00000001” in your ./yocto/meta-swi/common/recipes-core/cwetool/cwetool/yoctocwetool.sh, so it cannot be downloaded to new memory of module:

I confirm, the COMPAT_BYTE is 00000001

Then I change it to 0000101, I made a clean and now trying to rebuild.

swicwe -P …/fx30bis/yocto_wp76xx.4k.cwe
Type Size(Exclude Header) Product Compress Version
*APPL 34437264 Y921 0 SWI9X07Y_02.37.07.00 2022/12/16 07:10:44
SYST 24641536 9X28 0 SWI9X07Y_02.37.07.00 2022/12/16 07:10:44
APPS 9794928 9X28 0 3.18.140 20221209105408
3.18.140 20221209111741
3.18.140 20221209141338
3.18.140 20212/16/22

Regards

Can you paste the response of the two following commands of your module?

At!entercnd=“A710”
At!bsinfo?

The COMPAT_BYTE might not be related as I found the official image neither have this byte enabled.

BTW, I have just checked the release note of Fx30 R16, do you see such cwe file in your build_bin folder?

I did try to rebuild with COMPAT_BYTE to 0000101 but no success when downloading.

For the AT commands…

AT!entercnd=“A710”
OK
At!bsinfo?
ERROR
At!bsinfo
Product: FX30(WP7607-1)
Revision: 40
Main: MDM9207 (000)
Radio: WTR2965
Power: PMD9607 (002)
Flash: MT29F4G08ABBEA3W 512MB x8 (44/0/0) (2048 blocks of 64 pages/block 4096B page size)

I just clean build rep for swi-linux-src as I have downloaded another tar for fx30 sources as you suggest in previous response
image

I will try later to rebuild.

Regards

From your flash model, this is old memory, so this is not related to memory driver anymore…

BTW, I have just checked the release note of Fx30 R16, do you see such cwe file in your build_bin/images/public/ folder?

I have just regenerate from the swi-linux-src but no build_bin/images/public folder.

What the solution? I spent a lot of time trying to generate but nothing works.

Regards

I have tried your yocto_wp76xx.4k.cwe on one WP module with old memory (MT29F4G08ABBEA3W) , it has the same behavior as yours, module just stuck there and need to use boot pin to recover…

what did you see for the following?
find ./build_bin -name "*.cwe"

Can you load this “yocto_wp76xx.4k_msm_serial_hs.cwe” (openvpn tool is added) on top of R16.0.01 and see if your module can boot up ?

BTW, have you tried swi-fx30-cat1_1.0.0 and see if it has the same problem?

I did try to switch for swi-fx30-cat1_1.0.0 but have a problem with “unknow package swi-license_1.0”

I’ll try your cwe this evening.

Regards

what did you see for the following?
find ./build_bin -name "*.cwe"

I have loaded your yocto image to the mangoh board and see the following debug log in UART2:


Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset),  D - Delta,  S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.2-00095
S - IMAGE_VARIANT_STRING=LAATANAZA
S - OEM_IMAGE_VERSION_STRING=jenkins
S - Boot Config, 0x000002e1
B -      1216 - PBL, Start
B -      3720 - bootable_media_detect_entry, Start
B -      4988 - bootable_media_detect_success, Start
B -      4992 - elf_loader_entry, Start
B -      8446 - auth_hash_seg_entry, Start
B -     32095 - auth_hash_seg_exit, Start
B -     83477 - elf_segs_hash_verify_entry, Start
B -    130546 - PBL, End
B -    138897 - SBL1, Start
B -    196725 - pm_device_init, Start
B -    216885 - PM_SET_VAL:Skip
D -     18788 - pm_device_init, Delta
B -    218532 - boot_config_data_table_init, Start
D -         0 - boot_config_data_table_init, Delta - (0 Bytes)
B -    227011 - CDT version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:129
B -    233904 - sbl1_ddr_set_params, Start
B -    237656 - Pre_DDR_clock_init, Start
D -       213 - Pre_DDR_clock_init, Delta
D -         0 - sbl1_ddr_set_params, Delta
B -    250344 - pm_driver_init, Start
D -      4483 - pm_driver_init, Delta
B -    256688 - cpr_init, Start
D -       122 - cpr_init, Delta
B -    261263 - cpr_cx_mx_apc_vol_update, Start
D -        91 - cpr_cx_mx_apc_vol_update, Delta
B -    276452 - clock_init, Start
D -       152 - clock_init, Delta
B -    276696 - boot_flash_init, Start
D -     39894 - boot_flash_init, Delta
B -    319609 - boot_flash_swi_ddr_init, Start
D -     30683 - boot_flash_swi_ddr_init, Delta
B -    548268 - Invalid PMIC gpio 3
B -    548329 - Invalid PMIC gpio 3
B -    548359 - Failed to configure/read HW ID minor bit 0
B -    553666 - hw_family:5, hw_type:16, hw_rev:16
B -    561901 - SSMEM init OK
B -    565439 - DEBUG OU: 0000000000000002
B -    565500 - DEBUG OU - setting: 2
B -    567971 - is_memory_dump_allowed (0) in this secure module
B -    589687 - USB non-zero endpoint requirements: 9 in, 5 out
B -    591364 - opening partition 0:SWIFOTA
B -    593469 - error for readpage:0
B -    598776 - DWL-get: ecnt=1 code=0
B -    606309 - API change: date not generated by cwe_header_init
B -    613172 - Failed to read size: /swinv/item_files/CUST_IM_SWITCH_HIDE
B -    620766 - Failed to read size: /swinv/item_files/CUST_IM_CONFIG
B -    627415 - flags: u=1 e=1 obmsk=c,0
B -    637053 - error for readpage:0
B -    637572 - error for readpage:64
B -    638182 - error for readpage:128
B -    641323 - error for readpage:192
B -    644343 - ssmem_release: region 20 not exists
B -    649009 - ssmem_get: region 20 not exists
B -    654560 - Image Load, Start
D -     92202 - QSEE Image Loaded, Delta - (461644 Bytes)
D -       213 - boot_pm_post_tz_device_init, Delta
B -    751154 - sbl1_efs_handle_cookies, Start
D -         0 - sbl1_efs_handle_cookies, Delta
B -    759145 - DEVCFG ELF verification failure
B -    762713 - Image Load, Start
D -        30 - SEC Image Loaded, Delta - (0 Bytes)
B -    770399 - Image Load, Start
D -     55541 - RPM Image Loaded, Delta - (154624 Bytes)
B -    826641 - Image Load, Start
B -    828868 - Auth disabled for image 9
B -    872513 - error for readpage:0
B -    873032 - error for readpage:64
B -    873642 - error for readpage:128
B -    876783 - error for readpage:192
B -    879803 - ssmem_release: region 20 not exists
B -    884469 - ssmem_get: region 20 not exists
D -     62098 - APPSBL Image Loaded, Delta - (409864 Bytes)
B -    894016 - QSEE Execution, Start
D -       976 - QSEE Execution, Delta
B -    900726 - SBL1, End
D -    764116 - SBL1, Delta
S - Throughput, 8000 KB/s  (1213332 Bytes,  137855 us)
S - DDR Frequency, 240 MHz
Android Bootloader - UART_DM Initialized!!!
[10] ERROR: No devinfo partition found
[10] Neither 'config' nor 'frp' partition found
[10] ERROR: No misc partition found
[1420] SSMEM init OK[1420] ssmem_get: region 20 not exists[1510] DEBUG: cmdline has root=
[1680] Channel alloc freed
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] MPM 1 irq mapping errored -517
[    0.215663] spmi_pmic_arb 200f000.qcom,spmi: PMIC Arb Version-2 0x20010000
[    0.230714] SWI ssmem_framework_init: SSMEM init OK
[    0.230797] mdm9607-pinctrl 1000000.pinctrl: gpio-bit-map = 36
[    0.232349] msm_mpm_dev_probe(): Cannot get clk resource for XO: -517
[    0.235503] smd_channel_probe_now: allocation table not initialized
[    0.243255] msm_thermal:msm_thermal_dev_probe Failed reading node=/soc/qcom,msm-thermal, key=qcom,online-hotplug-core. err:-517
[    0.271302] msm_mpm_dev_probe(): Cannot get clk resource for XO: -517
[    0.274195] msm_thermal:get_kernel_cluster_info CPU0 topology not initialized.
[    0.275133] cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
[    0.275150] msm_thermal:get_cpu_freq_plan_len Error reading CPU0 freq table len. error:-19
[    0.275885] cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
[    0.275902] msm_thermal:get_cpu_freq_plan_len Error reading CPU0 freq table len. error:-19
[    0.275918] cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
[    0.275931] msm_thermal:get_cpu_freq_plan_len Error reading CPU0 freq table len. error:-19
[    0.369979] AXI: msm_bus_scale_register_client(): msm_bus_scale_register_client: Bus driver not ready.
[    0.371881] AXI: msm_bus_scale_register_client(): msm_bus_scale_register_client: Bus driver not ready.
[    0.380338] mci_protocol_frame_send: write frame fail to I2C: -107 of 2[    0.380367] swimcu_ping: Failed to send PING
[    0.386049] pca953x 4-0020: failed reading register
[    0.387009] pca953x 4-0022: failed reading register
[    0.390730] msm_bus_fabric_init_driver
[    0.569654] sierra_gpio soc:sierra_gpio: property "compatible": length 12
[    0.569668] sierra_gpio soc:sierra_gpio: property "alias-2": length 12
[    0.569780] sierra_gpio soc:sierra_gpio: property "alias-4": length 12
[    0.569838] sierra_gpio soc:sierra_gpio: property "alias-6": length 12
[    0.569893] sierra_gpio soc:sierra_gpio: property "alias-7": length 12
[    0.569947] sierra_gpio soc:sierra_gpio: property "alias-8": length 12
[    0.570000] sierra_gpio soc:sierra_gpio: property "alias-13": length 12
[    0.570312] sierra_gpio soc:sierra_gpio: property "alias-21": length 12
[    0.570393] sierra_gpio soc:sierra_gpio: property "alias-22": length 12
[    0.570451] sierra_gpio soc:sierra_gpio: property "alias-23": length 12
[    0.570504] sierra_gpio soc:sierra_gpio: property "alias-24": length 12
[    0.570558] sierra_gpio soc:sierra_gpio: property "alias-25": length 12
[    0.570611] sierra_gpio soc:sierra_gpio: property "alias-28": length 12
[    0.570666] sierra_gpio soc:sierra_gpio: property "alias-29": length 12
[    0.570719] sierra_gpio soc:sierra_gpio: property "alias-30": length 12
[    0.570774] sierra_gpio soc:sierra_gpio: property "alias-31": length 12
[    0.570827] sierra_gpio soc:sierra_gpio: property "alias-32": length 12
[    0.570881] sierra_gpio soc:sierra_gpio: property "alias-33": length 12
[    0.570934] sierra_gpio soc:sierra_gpio: property "alias-35": length 12
[    0.570989] sierra_gpio soc:sierra_gpio: property "alias-36": length 8
[    0.571019] sierra_gpio soc:sierra_gpio: property "alias-37": length 8
[    0.571048] sierra_gpio soc:sierra_gpio: property "alias-38": length 8
[    0.571078] sierra_gpio soc:sierra_gpio: property "alias-40": length 8
[    0.571109] sierra_gpio soc:sierra_gpio: property "alias-41": length 8
[    0.571138] sierra_gpio soc:sierra_gpio: property "alias-42": length 12
[    0.571193] sierra_gpio soc:sierra_gpio: property "alias-RI": length 12
[    0.571258] sierra_gpio soc:sierra_gpio: property "alias-WLAN_EN": length 12
[    0.571312] sierra_gpio soc:sierra_gpio: property "alias-WIFI_IRQ": length 12
[    0.571367] sierra_gpio soc:sierra_gpio: property "alias-FX30-DIGITAL_INPUT1_N": length 12
[    0.571423] sierra_gpio soc:sierra_gpio: property "alias-FX30-PB_INPUT": length 12
[    0.571477] sierra_gpio soc:sierra_gpio: property "alias-FX30-DIGITAL_INPUT2_N": length 12
[    0.571532] sierra_gpio soc:sierra_gpio: property "alias-FX30-DIGITAL_INPUT3_N": length 12
[    0.571600] sierra_gpio soc:sierra_gpio: property "alias-FX30-ON_OFF_MON_N": length 12
[    0.571656] sierra_gpio soc:sierra_gpio: property "alias-FX30-IOT_DETECT": length 12
[    0.571713] sierra_gpio soc:sierra_gpio: property "alias-FX30-GPIO29": length 12
[    0.571769] sierra_gpio soc:sierra_gpio: property "alias-FX30-HUB_ENABLE": length 12
[    0.571825] sierra_gpio soc:sierra_gpio: property "alias-FX30-ULPM_WAKE1_36": length 8
[    0.571857] sierra_gpio soc:sierra_gpio: property "alias-FX30-ULPM_WAKE1_38": length 8
[    0.571888] sierra_gpio soc:sierra_gpio: property "alias-FX30-NETWORK_LED_RED": length 12
[    0.571921] sierra_gpio soc:sierra_gpio: property "alias-FX30-NETWORK_LED_GRN": length 12
[    0.571951] sierra_gpio soc:sierra_gpio: property "alias-FX30-SIGNAL_LED_RED": length 12
[    0.571981] sierra_gpio soc:sierra_gpio: property "alias-FX30-SIGNAL_LED_GRN": length 12
[    0.572010] sierra_gpio soc:sierra_gpio: property "alias-FX30-USER_LED_RED": length 12
[    0.572041] sierra_gpio soc:sierra_gpio: property "alias-FX30-USER_LED_GRN": length 12
[    0.572071] sierra_gpio soc:sierra_gpio: property "alias-FX30-POWER_LED_RED_N": length 12
[    0.572101] sierra_gpio soc:sierra_gpio: property "alias-FX30-POWER_LED_GRN": length 12
[    0.572131] sierra_gpio soc:sierra_gpio: property "alias-FX30-POWER_LED_MUX": length 12
[    0.572162] sierra_gpio soc:sierra_gpio: property "alias-FX30-GPS_BIAS_EN": length 12
[    0.572192] sierra_gpio soc:sierra_gpio: property "alias-FX30-IO_PULLUP_EN2": length 12
[    0.572223] sierra_gpio soc:sierra_gpio: property "alias-FX30-IO_PULLUP_EN3": length 12
[    0.572253] sierra_gpio soc:sierra_gpio: property "alias-FX30-ETH_DISABLE_N": length 12
[    0.572283] sierra_gpio soc:sierra_gpio: property "alias-FX30-DIGITAL_OUTPUT3": length 12
[    0.572314] sierra_gpio soc:sierra_gpio: property "alias-FX30-IO_PULLUP_EN1": length 12
[    0.572344] sierra_gpio soc:sierra_gpio: property "alias-FX30-POWER_HOLD": length 12
[    0.572375] sierra_gpio soc:sierra_gpio: property "alias-FX30S-DIGITAL_INPUT1_N": length 12
[    0.572432] sierra_gpio soc:sierra_gpio: property "alias-FX30S-PB_INPUT": length 12
[    0.572489] sierra_gpio soc:sierra_gpio: property "alias-FX30S-DIGITAL_INPUT2_N": length 12
[    0.572547] sierra_gpio soc:sierra_gpio: property "alias-FX30S-DIGITAL_INPUT3_N": length 12
[    0.572603] sierra_gpio soc:sierra_gpio: property "alias-FX30S-ON_OFF_MON_N": length 12
[    0.572661] sierra_gpio soc:sierra_gpio: property "alias-FX30S-IOT_DETECT": length 12
[    0.572719] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO29": length 12
[    0.572775] sierra_gpio soc:sierra_gpio: property "alias-FX30S-HUB_ENABLE": length 12
[    0.572832] sierra_gpio soc:sierra_gpio: property "alias-FX30S-ULPM_WAKE1_36": length 8
[    0.572865] sierra_gpio soc:sierra_gpio: property "alias-FX30S-ULPM_WAKE1_38": length 8
[    0.572897] sierra_gpio soc:sierra_gpio: property "alias-FX30S-NETWORK_LED_RED": length 12
[    0.572931] sierra_gpio soc:sierra_gpio: property "alias-FX30S-NETWORK_LED_GRN": length 12
[    0.572963] sierra_gpio soc:sierra_gpio: property "alias-FX30S-SIGNAL_LED_RED": length 12
[    0.572995] sierra_gpio soc:sierra_gpio: property "alias-FX30S-SIGNAL_LED_GRN": length 12
[    0.573026] sierra_gpio soc:sierra_gpio: property "alias-FX30S-USER_LED_RED": length 12
[    0.573059] sierra_gpio soc:sierra_gpio: property "alias-FX30S-USER_LED_GRN": length 12
[    0.573090] sierra_gpio soc:sierra_gpio: property "alias-FX30S-POWER_LED_RED_N": length 12
[    0.573122] sierra_gpio soc:sierra_gpio: property "alias-FX30S-POWER_LED_GRN": length 12
[    0.573154] sierra_gpio soc:sierra_gpio: property "alias-FX30S-POWER_LED_MUX": length 12
[    0.573186] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPS_BIAS_EN": length 12
[    0.573218] sierra_gpio soc:sierra_gpio: property "alias-FX30S-IO_PULLUP_EN2": length 12
[    0.573251] sierra_gpio soc:sierra_gpio: property "alias-FX30S-IO_PULLUP_EN3": length 12
[    0.573283] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO55": length 12
[    0.573316] sierra_gpio soc:sierra_gpio: property "alias-FX30S-DIGITAL_OUTPUT3": length 12
[    0.573348] sierra_gpio soc:sierra_gpio: property "alias-FX30S-IO_PULLUP_EN1": length 12
[    0.573382] sierra_gpio soc:sierra_gpio: property "alias-FX30S-POWER_HOLD": length 12
[    0.573413] sierra_gpio soc:sierra_gpio: property "alias-FX30S-RS485_OUT_EN": length 12
[    0.573445] sierra_gpio soc:sierra_gpio: property "alias-FX30S-RS485_IN_EN_N": length 12
[    0.573478] sierra_gpio soc:sierra_gpio: property "alias-FX30S-RS485_POL_N": length 12
[    0.573510] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO64": length 12
[    0.573543] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO65": length 12
[    0.573575] sierra_gpio soc:sierra_gpio: property "alias-FX30S-GPIO66": length 12
[    0.573608] sierra_gpio soc:sierra_gpio: property "name": length 12
[    0.573618] sierra_gpio soc:sierra_gpio: Skipping unknown property "name"
[    0.582497] uart_tx_gpio is not available
[    0.582518] uart_rx_gpio is not available
[    0.582537] uart_cts_gpio is not available
[    0.582555] uart_rfr_gpio is not available
[    0.583214] sps: BAM device 0x07884000 is not registered yet.
[    0.588106] uart_tx_gpio is not available
[    0.588126] uart_rx_gpio is not available
[    0.588145] uart_cts_gpio is not available
[    0.588163] uart_rfr_gpio is not available
[    1.447544] mdm9607-pinctrl 1000000.pinctrl: pin GPIO_4 already requested by 78b0000.uart; cannot claim for 78b0000.serial
[    1.458002] mdm9607-pinctrl 1000000.pinctrl: pin-4 (78b0000.serial) status -22
[    1.465182] mdm9607-pinctrl 1000000.pinctrl: could not request pin 4 (GPIO_4) from group gpio4  on device 1000000.pinctrl
[    1.476118] msm_serial_hsl 78b0000.serial: Error applying setting, reverse things back
[    1.534811] sps: BAM device 0x07984000 is not registered yet.
[    1.583953] unable to find DT imem DLOAD mode node
[    1.588009] unable to find DT imem EDLOAD mode node
[    1.593028] unable to find DT imem dload-type node
[    1.597514] Failed to disable secure wdog debug: -4
[    1.629050] devfreq soc:qcom,cpubw: Couldn't update frequency transition information.
[    1.637091] sdhci_msm 7864900.sdhci: sdhci_msm_pm_qos_parse_irq: error -22 reading irq cpu
[    1.645155] coresight_event: error registering on panic -38
[    1.654446] coresight-tmc 6025000.tmc: failed to get flush cti
[    1.659245] coresight-tmc 6025000.tmc: failed to get reset cti
[    1.724689] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[    1.747031] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[    1.772682] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[    1.787677] calculate_residency: residency < 0 for LPM
[    1.800630] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[    1.807915] parse_cpu_levels: idx 1 420
[    1.811742] SWI ssmem_alloc_entry_get: ssmem region 20 not allocated
[    1.811748] SWI ssmem_get: ssmem_get: region 20 not exists
[    1.830139] calculate_residency: residency < 0 for LPM
[    1.834243] parse_cpu_levels: idx 2 500
[    1.838064] parse_cpu_levels: idx 2 3040
[    1.851126] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[    1.870909] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
ima: setting up IMA subsystem...
ima: feature not supported
The proc node does not exist
mount root fs from partition (rootfs|system)
UBI device number 0, total 120 LEBs (30474240 bytes, 29.0 MiB), available 0 LEBs (0 bytes), LEB size 253952 bytes (248.0 KiB)
dm-verity key not installed, authentication disabled
Non-Secure version.
rootfs roothash set at compile time: 373894ec05afc6ab6cbf980e7306ac3b8adbca8e8050e9793182acb9e8023788
rootfs: dev '/dev/ubiblock0_0' 'squashfs'
mount /dev/mapper/rt
rootfs: mounting took 0ms
rcS: Executing mount_essential_fs...
rcS: Executing simple_network...
rcS: Executing check_recovery...
/etc/init.d/rcS: line 126: /etc/init.d/factory_default_recovery.sh: not found
System error!
run_getty.sh: ttyHSL1 reserved for CONSOLE

Poky (Yocto Project Reference Distro) 2.5.3 (none) /dev/ttyHSL1

(none) login:

It seems the problem is :

/etc/init.d/rcS: line 126: /etc/init.d/factory_default_recovery.sh: not found
System error!

you can double check your source code if you have such file in ./meta-swi-extras/meta-swi-mdm9x28-fx30/recipes/columbia-initscripts/files/. (and also check ./meta-swi-extras/meta-swi-mdm9x28-fx30/recipes/columbia-initscripts/columbia-initscripts.bb if this file is included)

Here is a successful boot up log for official release FX30_WP76xx_full_R16.0.1.006-generic-SWI9X07Y_02.37.03.00.cwe:

log_FX30_WP76xx_full_R16.0.1.006-generic-SWI9X07Y_02.37.03.00.log (32.0 KB)

Here is the /etc/init.d/factory_default_recovery.sh inside the official image:
factory_default_recovery.sh (1.4 KB)

root@fx30:~# ls /etc/init.d/factory_default_recovery.sh
/etc/init.d/factory_default_recovery.sh
root@fx30:~# cat  /etc/init.d/factory_default_recovery.sh
#!/bin/sh
# Conditionaly resets environment to factory default.

. /etc/run.env

check_and_recover_default()
{
  # Recovery is enabled by default.
  enable=1
  mount_early_userrw_start
  if [ -e /mnt/userrw/sierra/.efdr ]; then
    read enable < /mnt/userrw/sierra/.efdr
  fi
  mount_early_userrw_stop

  if [ "$enable" != "0" ]; then
    # For /etc and /data.
    mount_early_user_start

    # Removes preserved files.
    /bin/rm -fR ${UFS_ROOT}/etc ${UFS_ROOT}/data /mnt/flash/config/system/etc/noLoginNag
    sync

    mount_early_user_stop

    # ld.so.cache shall be regenerated.
    (while [ ! -d /legato/systems ]; do sleep 1; done; touch /legato/systems/needs_ldconfig /tmp/.fdr)&
  fi

  # No error is forwarded to the caller.
  exit 0
}

# Has the user requested a reset ?
if grep -q /proc/cmdline -e "reset_to_default=true"; then

  # This construct might seem a bit weird... The problem is, the mounting
  # functions defined in the existing scripts can't be executed independently :
  # the script mount_early expects an argument.
  # As only a couple of functions are required, the script is sourced, and the
  # failure on the missing mandatory argument leads to a premature exit, then
  # caught thanks to the call to trap : check_and_recover_default is thus
  # executed, while keeping the environment defined in mount_early .

  (trap check_and_recover_default EXIT; . /etc/init.d/mount_early)
fi
root@fx30:~# microcom /dev/ttyAT
ati3
Manufacturer: Sierra Wireless, Incorporated
Model: WP7605
Revision: SWI9X07Y_02.37.03.00 73df45 jenkins 2020/04/08 10:59:14
IMEI: 353532100020465
IMEI SV: 14
FSN: 2A917285070404
+GCAP: +CGSM

OK
ati8
Legato Ver: 19.11.5.86c98a88_535cbe294c2b528b4fc38a47809866e9
Yocto Ver:  SWI9X07Y_02.37.09.00 2021-07-01_04:47:21
OS Ver: Linux version 3.18.140 (oe-user@oe-host) (gcc version 7.3.0 (GCC) ) #1 PREEMPT Thu Jul 1 03:48:04 UTC 2021
LK Ver: 1.3.0_e8dee1d404
RootFS Ver: SWI9X07Y_02.37.09.00 2021-07-01_04:47:21
UserFS Ver: unknown
MCU Ver: unknown

OK
root@fx30:~#

file factory_default_recovery.sh is present in both places in meta-swi-extra but I cannot find it in the build_bin/tmp. It is just like the recipe is not called.
I’m not fluent in bitbake to find where the mistake can be.
How is the columbia-initscripts.bb recipe played?

List for *.cwe files
cwe_list.txt (6.5 KB)

Regards

You can type some trash charater in the .bb file and see if your rebuilt is ok, this can confirm if the recipe is skipped.

Btw, does my yocto image work for you?

I did try your *.cwe file and it works.

Building the image, it seams like meta-swi-extras/meta-swi-mdm9x28-fx30 is not included .

See the first output of the make :

Shell environment set up for builds.

You can now run ‘bitbake ’

Common targets are:
core-image-minimal
core-image-sato
meta-toolchainBuilding
meta-ide-support

You can also run generated qemu images with a command like ‘runqemu qemux86’

  • layer: meta-oe
  • layer: meta-networking
  • layer: meta-python
  • layer: meta-gplv2
  • layer: meta-swi/common
  • layer: meta-swi/meta-swi-mdm9xxx
  • layer: meta-swi/meta-swi-mdm9x28
  • layer: meta-swi/meta-swi-mdm9x28-fx30
  • layer: meta-swi-extras/common
  • layer: meta-swi-extras/meta-swi-mdm9x28
  • layer: meta-swi-extras/meta-swi-mdm9xxx-bin
  • layer: meta-swi-extras/meta-swi-mdm9x28-bin
  • layer: meta-swi-extras/meta-swi-mdm9x28-fx30-bin
    Yocto machine: swi-mdm9x28-fx30
    Updating LEGATO_BUILD to true
    Updating IMA_BUILD to false