root@raspberrypi2:/media# swupdate -i ./usb_drive/update-image-raspberrypi2-20181025090549.swu
Swupdate v2018.3.0
Licensed under GPLv2. See source distribution for detailed copyright notices.
Registered handlers:
archive
tar
raw
rawfile
lua
shellscript
preinstall
postinstall
remote
uboot
bootloader
[ERROR] : SWUPDATE failed [0] ERROR : HW compatibility not found
[ERROR] : SWUPDATE failed [0] ERROR : Found nothing to install
[ERROR] : SWUPDATE failed [0] ERROR : JSON File corrupted
[ERROR] : SWUPDATE failed [0] ERROR : no parser available to parse sw-description!
[ERROR] : SWUPDATE failed [0] ERROR : failed to parse sw-description!
exec $DAEMON -v -H raspberrypi2:1.0 ${selection} -f /etc/swupdate.cfg -u "$EXTRA_ARGS" -w "" &
root@raspberrypi2:/media# swupdate -i ./usb_drive/update-image-raspberrypi2-20181025090549.swu -H raspberrypi2:1.0 -v
Swupdate v2018.3.0
Licensed under GPLv2. See source distribution for detailed copyright notices.
Running on raspberrypi2 Revision 1.0Registered handlers:
archive tar raw rawfile lua shellscript preinstall postinstall remote uboot bootloader
[TRACE] : SWUPDATE running : [listener_create] : creating socket at /tmp/swupdateprog[TRACE] : SWUPDATE running : [network_initializer] : Main loop Daemon[TRACE] : SWUPDATE running : [listener_create] : creating socket at /tmp/sockinstctrl[TRACE] : SWUPDATE running : [extract_sw_description] : Found file: filename sw-description size 1166 checksum 0xf494 VERIFIED[TRACE] : SWUPDATE running : [parse_cfg] : Version 0.1.0[TRACE] : SWUPDATE running : [parse_hw_compatibility] : Accepted Hw Revision : 1.0[ERROR] : SWUPDATE failed [0] ERROR parser/parser.c : parser : 665 : Found nothing to install[ERROR] : SWUPDATE failed [0] ERROR parser/parser.c : parse_json : 760 : JSON File corrupted[ERROR] : SWUPDATE failed [0] ERROR core/parser.c : parse : 196 : no parser available to parse sw-description![ERROR] : SWUPDATE failed [0] ERROR core/swupdate.c : install_from_file : 307 : failed to parse sw-description!root@raspberrypi2:/media#
Hi Stefano & Donal,Sorry for the interrupting. I have some questions. Please clarify these1.How did you install SWupdate on board?2.Do you have Internet on your raspberrypi board if yes then how did you enable network on board.Because without installing SWupdate on board we can't run SWupdate command. My board is PHYTEC AM57xx. It does not have Internet.Anyone Please clarify these doubts.Thanks,Lakshmi Naidu.
root@raspberrypi2:/media# swupdate -i ./update-image-raspberrypi2-20181025090549.swu -H raspberrypi2:1.0 -v
root@raspberrypi2:/media# cpio -itv <update-image-raspberrypi2-20181025090549.swu
-rw-r--r-- 1 1000 1000 1166 Oct 25 09:07 sw-description
-rw-r--r-- 1 1000 1000 1692 Oct 25 09:07 emmcsetup.lua
-rw-r--r-- 1 1000 1000 27201911 Oct 25 09:07 core-image-full-cmdline-raspberrypi2.ext4.gz
53136 blocks
root@raspberrypi2:/media# cat sw-description
software =
{
version = "0.1.0";
raspberrypi2 = {
hardware-compatibility: [ "1.0"];
stable : {
copy1 : {
images: (
{
filename = "core-image-full-cmdline-raspberrypi2.ext4.gz";
type = "raw";
compressed = true;
device = "/dev/mmcblk0p2";
}
);
scripts: (
{
filename = "emmcsetup.lua";
type = "lua";
}
);
uboot: (
{
name = "rpipart";
value = "2";
}
);
};
copy2 : {
images: (
{
filename = "core-image-full-cmdline-raspberrypi2.ext4.gz";
type = "raw";
compressed = true;
device = "/dev/mmcblk0p3";
}
);
scripts: (
{
filename = "emmcsetup.lua";
type = "lua";
}
);
uboot: (
{
name = "rpipart";
value = "3";
}
);
};
};
}
}
root@raspberrypi2:/media# ls -l /dev/mmcblk0*
brw-rw---- 1 root disk 179, 0 Jan 1 1970 /dev/mmcblk0
brw-rw---- 1 root disk 179, 32 Jan 1 1970 /dev/mmcblk0boot0
brw-rw---- 1 root disk 179, 64 Jan 1 1970 /dev/mmcblk0boot1
brw-rw---- 1 root disk 179, 1 Jan 1 1970 /dev/mmcblk0p1
brw-rw---- 1 root disk 179, 2 Jan 1 1970 /dev/mmcblk0p2
brw-rw---- 1 root disk 179, 96 Jan 1 1970 /dev/mmcblk0rpmb