The only things I did in addition to that was
chown root:root *
&
chmod 777 *
all directory files before cpio script
Then I ssh/serial into /etc (on printer) and
chown root:root swupdate_public.pem
&
chmod 777 swupdate_public.pem
I had better luck not modifying the rootfs before cpio, and leaving as is and then modifying freely whenever I got in.
Hope this helps!
If you are interested to try this, it seems you might be able to force an update without .pem files by copying your update file to the printer or listing path to exUDISK and running:
swupdate -i update.swu
you can also use swupdate -i -c update.swu
to check and verify your image beforehand so you don’t have to guess if it will flash or not. This is the only method I have used, and have not tried to force an update. I don’t know the outcome of doing this.
by decompiling the app, the command it issues to update includes -k and lists /etc/swupdate_public.pem for the key path.
source:
Usage swupdate [OPTION]
-f, --file : configuration file to use
-p, --postupdate : execute post-update command
-P, --preupdate : execute pre-update command
-e, --select , : Select software images set and source
Ex.: stable,main
-i, --image : Software to be installed
-l, --loglevel : logging level
-L, --syslog : enable syslog logger
-k, --key : file with public key to verify images
–cert-purpose : set expected certificate purpose
[emailProtection|codeSigning] (default: emailProtection)
–forced-signer-name : set expected common name of signer certificate
–ca-path : path to the Certificate Authority (PEM)
-n, --dry-run : run SWUpdate without installing the software
-N, --no-downgrading : not install a release older as
-R, --no-reinstalling : not install a release same as
-M, --no-transaction-marker : disable setting bootloader transaction marker
-o, --output : saves the incoming stream
-v, --verbose : be verbose, set maximum loglevel
–version : print SWUpdate version and exit
-c, --check : check image and exit, use with -i
-h, --help : print this help and exit
-d, --download [OPTIONS] : Parameters to be passed to the downloader
download arguments (mandatory arguments are marked with ‘*’):
-u, --url * is a link to the .swu update image
-r, --retries number of retries (resumed download) if connection
is broken (0 means indefinitely retries) (default: 3)
-t, --timeout timeout to check if a connection is lost (default: 300)
-a, --authentication authentication information as username:password