Skip to content

Pce apu2 openness fixes #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 2, 2024
Merged

Pce apu2 openness fixes #10

merged 3 commits into from
Jul 2, 2024

Conversation

miczyg1
Copy link
Contributor

@miczyg1 miczyg1 commented Jun 28, 2024

Typos fixes in the file names, which caused incorrect classification of files.

Also fixed one IF branch unhandled which resulted in the file being not categorized at all.

Fixes Dasharo/dasharo-issues#917

@miczyg1
Copy link
Contributor Author

miczyg1 commented Jun 28, 2024

Openness Score for pcengines_apu2_seabios_v24.05.00.01.rom

Open-source code percentage: 33.1%
Closed-source code percentage: 66.9%

  • Image size: 8388608 (0x800000)
  • Number of regions: 13
  • Number of CBFSes: 1
  • Total open-source code size: 370290 (0x5a672)
  • Total closed-source code size: 749792 (0xb70e0)
  • Total data size: 443074 (0x6c2c2)
  • Total empty size: 6825452 (0x6825ec)

image

image

Numbers given above already include the calculations from CBFS regions
presented below

FMAP regions

FMAP region Offset Size Category
BOOTORDER 0x0 0x1000 data
RW_VPD 0x1000 0x4000 data
SMMSTORE 0x5000 0x20000 data
RO_VPD 0x200000 0x4000 data
FMAP 0x204000 0x800 data
RO_FRID 0x204800 0x40 data
RO_FRID_PAD 0x204840 0x7c0 data
GBB 0x205000 0x40000 data
RW_UNUSED 0x25000 0x1db000 empty

CBFS COREBOOT

  • CBFS size: 6008832
  • Number of files: 27
  • Open-source files size: 370290 (0x5a672)
  • Closed-source files size: 749792 (0xb70e0)
  • Data size: 8898 (0x22c2)
  • Empty size: 4879852 (0x4a75ec)

Numbers given above are already normalized (i.e. they already include size
of metadata and possible closed-source LAN drivers included in the payload
which are not visible in the table below)

CBFS filename CBFS filetype Size Compression Category
fallback/romstage stage 24528 none open-source
fallback/ramstage stage 83143 LZMA open-source
fallback/dsdt.aml raw 6962 none open-source
fallback/postcar stage 22112 none open-source
fallback/payload simple elf 53612 none open-source
img/memtest simple elf 47478 none open-source
img/setup simple elf 26983 none open-source
genroms/pxe.rom raw 89088 none open-source
bootblock bootblock 16384 none open-source
AGESA raw 504032 none closed-source
apu/amdfw raw 245760 none closed-source
cbfs_master_header cbfs header 32 none data
config raw 3107 LZMA data
revision raw 702 none data
build_info raw 88 none data
spd.bin spd 256 none data
payload_config raw 1599 none data
payload_revision raw 239 none data
bootorder_map raw 153 none data
bootorder_def raw 624 none data
etc/boot-menu-key raw 8 none data
etc/boot-menu-wait raw 8 none data
etc/boot-menu-message raw 48 none data
etc/sercon-port raw 8 none data
(empty) null 3549092 none empty
(empty) null 675492 none empty
(empty) null 655268 none empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Openess Score seem to be broken for Dasharo (coreboot+SeaBIOS) for PC Engines v24.05.00.01
2 participants