Hi,
On 07/04/2017 05:17 PM, Claudius Heine wrote:
Hi,
On Jul 4, 2017 5:01 PM, Reichel Andreas <[email protected]> wrote:
Due to a license conflict between libparted and efibootguard
(GPL v3 vs. v2), efibootguard may not link against libparted.
To resolve this issue, used functions for partition table
scanning have been reimplemented from scratch using the same
API.
Signed-off-by: Andreas Reichel <[email protected]>
Tested-by: Claudius Heine <[email protected]>
The standalone tools are working now, but using it with swupdate does not.
I will post a log tomorrow.
Here is the log:
[NOTIFY] : SWUPDATE running : [install_single_image] : Found installer
for stream ssi-image-mpart-iot2000-ebs.ext4.gz raw
[NOTIFY] : SWUPDATE running : [update_bootloader_env] : Updating
bootloader environment
Checking /dev/md0
Error reading mbr on /dev/md0.
Checking /dev/ram0
Error, MBR has wrong signature.
Checking /dev/ram1
Error, MBR has wrong signature.
Checking /dev/ram2
Error, MBR has wrong signature.
Checking /dev/ram3
Error, MBR has wrong signature.
Checking /dev/ram4
Error, MBR has wrong signature.
Checking /dev/ram5
Error, MBR has wrong signature.
Checking /dev/ram6
Error, MBR has wrong signature.
Checking /dev/ram7
Error, MBR has wrong signature.
Checking /dev/ram8
Error, MBR has wrong signature.
Checking /dev/ram9
Error, MBR has wrong signature.
Checking /dev/loop0
Error reading mbr on /dev/loop0.
Checking /dev/loop1
Error reading mbr on /dev/loop1.
Checking /dev/loop2
Error reading mbr on /dev/loop2.
Checking /dev/loop3
Error reading mbr on /dev/loop3.
Checking /dev/loop4
Error reading mbr on /dev/loop4.
Checking /dev/loop5
Error reading mbr on /dev/loop5.
Checking /dev/loop6
Error reading mbr on /dev/loop6.
Checking /dev/loop7
Error reading mbr on /dev/loop7.
Checking /dev/ram10
Error, MBR has wrong signature.
Checking /dev/ram11
Error, MBR has wrong signature.
Checking /dev/ram12
Error, MBR has wrong signature.
Checking /dev/ram13
Error, MBR has wrong signature.
Checking /dev/ram14
Error, MBR has wrong signature.
Checking /dev/ram15
Error, MBR has wrong signature.
Checking /dev/mmcblk0
Partition 0: Type EE
GPT header at 1
EFI Header: 45 46 49 20 50 41 52 54
Number of partition entries: 128
Partition Table @ LBA 2
0: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
GPT Partition #0 is FAT/NTFS.
GPT Partition #0 is fat16.
1: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
GPT Partition #1 is FAT/NTFS.
GPT Partition #1 is fat16.
2: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
GPT Partition #2 is FAT/NTFS.
GPT Partition #2 is fat16.
3: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
4: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
5: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
Partition /dev/mmcblk0p1 is not mounted.
Partition /dev/mmcblk0p1 is mounted to /tmp/mnt-8kF0zN.
Probing config file at /tmp/mnt-8kF0zN/BGENV.DAT.
Partition /dev/mmcblk0p2 is not mounted.
Partition /dev/mmcblk0p2 is mounted to /tmp/mnt-sFTayv.
Probing config file at /tmp/mnt-sFTayv/BGENV.DAT.
Partition /dev/mmcblk0p3 is not mounted.
Partition /dev/mmcblk0p3 is mounted to /tmp/mnt-wnKKZg.
Probing config file at /tmp/mnt-wnKKZg/BGENV.DAT.
Probing config file at /tmp/mnt-6vITI6/BGENV.DAT.
Probing config file at /tmp/mnt-KspvD1/BGENV.DAT.
Probing config file at /tmp/mnt-4KMQq4/BGENV.DAT.
Checking /dev/md0
Error reading mbr on /dev/md0.
Checking /dev/ram0
Error, MBR has wrong signature.
Checking /dev/ram1
Error, MBR has wrong signature.
Checking /dev/ram2
Error, MBR has wrong signature.
Checking /dev/ram3
Error, MBR has wrong signature.
Checking /dev/ram4
Error, MBR has wrong signature.
Checking /dev/ram5
Error, MBR has wrong signature.
Checking /dev/ram6
Error, MBR has wrong signature.
Checking /dev/ram7
Error, MBR has wrong signature.
Checking /dev/ram8
Error, MBR has wrong signature.
Checking /dev/ram9
Error, MBR has wrong signature.
Checking /dev/loop0
Error reading mbr on /dev/loop0.
Checking /dev/loop1
Error reading mbr on /dev/loop1.
Checking /dev/loop2
Error reading mbr on /dev/loop2.
Checking /dev/loop3
Error reading mbr on /dev/loop3.
Checking /dev/loop4
Error reading mbr on /dev/loop4.
Checking /dev/loop5
Error reading mbr on /dev/loop5.
Checking /dev/loop6
Error reading mbr on /dev/loop6.
Checking /dev/loop7
Error reading mbr on /dev/loop7.
Checking /dev/ram10
Error, MBR has wrong signature.
Checking /dev/ram11
Error, MBR has wrong signature.
Checking /dev/ram12
Error, MBR has wrong signature.
Checking /dev/ram13
Error, MBR has wrong signature.
Checking /dev/ram14
Error, MBR has wrong signature.
Checking /dev/ram15
Error, MBR has wrong signature.
Checking /dev/mmcblk0
Partition 0: Type EE
GPT header at 1
EFI Header: 45 46 49 20 50 41 52 54
Number of partition entries: 128
Partition Table @ LBA 2
0: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
GPT Partition #0 is FAT/NTFS.
GPT Partition #0 is fat16.
1: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
GPT Partition #1 is FAT/NTFS.
GPT Partition #1 is fat16.
2: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
GPT Partition #2 is FAT/NTFS.
GPT Partition #2 is fat16.
3: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
4: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
5: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
Partition /dev/mmcblk0p1 is not mounted.
Partition /dev/mmcblk0p1 is mounted to /tmp/mnt-7qba3l.
Probing config file at /tmp/mnt-7qba3l/BGENV.DAT.
Partition /dev/mmcblk0p2 is not mounted.
Partition /dev/mmcblk0p2 is mounted to /tmp/mnt-I8XXoJ.
Probing config file at /tmp/mnt-I8XXoJ/BGENV.DAT.
Partition /dev/mmcblk0p3 is not mounted.
Partition /dev/mmcblk0p3 is mounted to /tmp/mnt-NRzP7a.
Probing config file at /tmp/mnt-NRzP7a/BGENV.DAT.
Partition /dev/mmcblk0p1 is not mounted.
Partition /dev/mmcblk0p1 is mounted to /tmp/mnt-e6ZBRH.
Probing config file at /tmp/mnt-e6ZBRH/BGENV.DAT.
Partition /dev/mmcblk0p2 is not mounted.
Partition /dev/mmcblk0p2 is mounted to /tmp/mnt-3yHcXi.
Probing config file at /tmp/mnt-3yHcXi/BGENV.DAT.
Error, there are more than 2 config partitions.
Error finding config partitions.
[NOTIFY] : SWUPDATE failed [0] ERROR bootloader/ebg.c :
bootloader_env_set : 84 : Error: cannot open/create new bootloader
environment: Input/output error.
Software updated failed
That was the error from yesterday. Today I got this:
[NOTIFY] : SWUPDATE running : [update_bootloader_env] : Updating
bootloader environment
Checking /dev/md0
Error reading mbr on /dev/md0.
Checking /dev/ram0
Error, MBR has wrong signature.
Checking /dev/ram1
Error, MBR has wrong signature.
Checking /dev/ram2
Error, MBR has wrong signature.
Checking /dev/ram3
Error, MBR has wrong signature.
Checking /dev/ram4
Error, MBR has wrong signature.
Checking /dev/ram5
Error, MBR has wrong signature.
Checking /dev/ram6
Error, MBR has wrong signature.
Checking /dev/ram7
Error, MBR has wrong signature.
Checking /dev/ram8
Error, MBR has wrong signature.
Checking /dev/ram9
Error, MBR has wrong signature.
Checking /dev/loop0
Error reading mbr on /dev/loop0.
Checking /dev/loop1
Error reading mbr on /dev/loop1.
Checking /dev/loop2
Error reading mbr on /dev/loop2.
Checking /dev/loop3
Error reading mbr on /dev/loop3.
Checking /dev/loop4
Error reading mbr on /dev/loop4.
Checking /dev/loop5
Error reading mbr on /dev/loop5.
Checking /dev/loop6
Error reading mbr on /dev/loop6.
Checking /dev/loop7
Error reading mbr on /dev/loop7.
Checking /dev/ram10
Error, MBR has wrong signature.
Checking /dev/ram11
Error, MBR has wrong signature.
Checking /dev/ram12
Error, MBR has wrong signature.
Checking /dev/ram13
Error, MBR has wrong signature.
Checking /dev/ram14
Error, MBR has wrong signature.
Checking /dev/ram15
Error, MBR has wrong signature.
Checking /dev/mmcblk0
Partition 0: Type EE
GPT header at 1
EFI Header: 45 46 49 20 50 41 52 54
Number of partition entries: 128
Partition Table @ LBA 2
0: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
GPT Partition #0 is FAT/NTFS.
GPT Partition #0 is fat16.
1: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
GPT Partition #1 is FAT/NTFS.
GPT Partition #1 is fat16.
2: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
GPT Partition #2 is FAT/NTFS.
GPT Partition #2 is fat16.
3: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
4: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
5: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
Partition /dev/mmcblk0p1 is not mounted.
Partition /dev/mmcblk0p1 is mounted to /tmp/mnt-T8ldLH.
Probing config file at /tmp/mnt-T8ldLH/BGENV.DAT.
Partition /dev/mmcblk0p2 is not mounted.
Partition /dev/mmcblk0p2 is mounted to /tmp/mnt-AcLVYj.
Probing config file at /tmp/mnt-AcLVYj/BGENV.DAT.
Partition /dev/mmcblk0p3 is not mounted.
Partition /dev/mmcblk0p3 is mounted to /tmp/mnt-3WHM23.
Probing config file at /tmp/mnt-3WHM23/BGENV.DAT.
Probing config file at /tmp/mnt-mOQWGS/BGENV.DAT.
Probing config file at /tmp/mnt-rAABBK/BGENV.DAT.
Probing config file at /tmp/mnt-sMeGmI/BGENV.DAT.
Checking /dev/md0
Error reading mbr on /dev/md0.
Checking /dev/ram0
Error, MBR has wrong signature.
Checking /dev/ram1
Error, MBR has wrong signature.
Checking /dev/ram2
Error, MBR has wrong signature.
Checking /dev/ram3
Error, MBR has wrong signature.
Checking /dev/ram4
Error, MBR has wrong signature.
Checking /dev/ram5
Error, MBR has wrong signature.
Checking /dev/ram6
Error, MBR has wrong signature.
Checking /dev/ram7
Error, MBR has wrong signature.
Checking /dev/ram8
Error, MBR has wrong signature.
Checking /dev/ram9
Error, MBR has wrong signature.
Checking /dev/loop0
Error reading mbr on /dev/loop0.
Checking /dev/loop1
Error reading mbr on /dev/loop1.
Checking /dev/loop2
Error reading mbr on /dev/loop2.
Checking /dev/loop3
Error reading mbr on /dev/loop3.
Checking /dev/loop4
Error reading mbr on /dev/loop4.
Checking /dev/loop5
Error reading mbr on /dev/loop5.
Checking /dev/loop6
Error reading mbr on /dev/loop6.
Checking /dev/loop7
Error reading mbr on /dev/loop7.
Checking /dev/ram10
Error, MBR has wrong signature.
Checking /dev/ram11
Error, MBR has wrong swupdate[703]: segfault at 496d0c ip 0804caba sp
bfd21470 error 4signature.
Chec in swupdate[8048000+16000]king /dev/ram12
Error, MBR has wrong signature.
Checking /dev/ram13
Error, MBR has wrong signature.
Checking /dev/ram14
Error, MBR has wrong signature.
Checking /dev/ram15
Error, MBR has wrong signature.
Checking /dev/mmcblk0
Partition 0: Type EE
GPT header at 1
EFI Header: 45 46 49 20 50 41 52 54
Number of partition entries: 128
Partition Table @ LBA 2
0: C12A7328-F81F-11D2-BA4B-00A0C93EC93B
GPT Partition #0 is FAT/NTFS.
GPT Partition #0 is fat16.
1: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
GPT Partition #1 is FAT/NTFS.
GPT Partition #1 is fat16.
2: EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
GPT Partition #2 is FAT/NTFS.
GPT Partition #2 is fat16.
3: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
4: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
5: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
/usr/bin/swupdate-manual.sh: line 22: 703 Segmentation fault
swupdate -v -e stable,sys${SYS_NO} -i $ARTIFACT
After this again:
Partition /dev/mmcblk0p2 is not mounted.
Partition /dev/mmcblk0p2 is mounted to /tmp/mnt-BNARH9.
Probing config file at /tmp/mnt-BNARH9/BGENV.DAT.
Error, there are more than 2 config partitions.
Error finding config partitions.
[NOTIFY] : SWUPDATE failed [0] ERROR bootloader/ebg.c :
bootloader_env_set : 84 : Error: cannot open/create new bootloader
environment: Input/output error.
Software updated failed
So it might be an issue with the bootloader/ebg.c from swupdate or there
is still an issue with this patchset.
Cheers,
Claudius
--
You received this message because you are subscribed to the Google Groups "EFI Boot
Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/efibootguard-dev/afea8a8e-8bf2-1e00-8aae-808576c1f573%40siemens.com.
For more options, visit https://groups.google.com/d/optout.