Skip to content

[Do not merge]add blob loader#1000

Merged
xwings merged 5 commits intoqilingframework:devfrom
cq674350529:feat/add_blobloader
Nov 13, 2021
Merged

[Do not merge]add blob loader#1000
xwings merged 5 commits intoqilingframework:devfrom
cq674350529:feat/add_blobloader

Conversation

@cq674350529
Copy link
Contributor

  • add a blob loader to support emulating u-boot.img
  • To keep the consistence of api usage, QLOsBare is introduced and placed at its loader temporarily (for I don't know where to place it.)

Opinions are welcome.

@xwings
Copy link
Member

xwings commented Nov 11, 2021

@elicn what do you think :)

qiling/core.py Outdated
##############
# Components #
##############
if self.gpos or self.baremetal:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should goes into bare metal we should not have a new categories

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, for baremetal, it has hw component, and most importantly, it finally goes into self.arch.run(). In this case, it's just a normal arch (arm), and it goes into self.os.run(), for QLOsBare is introduced.

@@ -0,0 +1,65 @@
#!/usr/bin/env python3
#
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be part of mcu?

@xwings
Copy link
Member

xwings commented Nov 13, 2021

two things

  1. fix conflict in const.py and core.py
  2. the run option is archtype=arm and ostype=blob

@cq674350529
Copy link
Contributor Author

Done, the code is updated.

@cq674350529
Copy link
Contributor Author

Add a simple example for uboot.bin.img

PS: Since the entry point of blob binary is different from each other, so I didn't put the uboot_bin.ql into qiling/profiles.

@xwings
Copy link
Member

xwings commented Nov 13, 2021

Cool, i will merge this for now.

Thanks for the work!

@xwings xwings merged commit d68c750 into qilingframework:dev Nov 13, 2021
@cq674350529 cq674350529 deleted the feat/add_blobloader branch November 15, 2021 10:30
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.

2 participants