Giter Site home page Giter Site logo

libstfu's Introduction

"What's on my agenda recently?"

  • Doing independent security research
  • Learning about microarchitecture
  • Playing with microscopes

libstfu's People

Contributors

eigenform avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wllis emuplace

libstfu's Issues

Implement memory mirrors

In order to run through boot2 (and beyond), need to hook up bits to toggle the SRAM mirror and boot ROM mappings.

Virtual memory not working correctly?

It seems like Unicorn doesn't make a distinction between virtual and physical addresses.
After the MMU bit in CP15 register 1 is enabled, you can see calls to get_phys_addr_v5_armeb in gdb on all accesses.

However, we never actually reach that code for accesses on 0x20000000, which indicates that for all memory accesses Unicorn first assumes that physical memory must exist at that address in order for the access to be valid.

Unmapped write on 20009000
starlet.c:250:__handle_halt_code(): Died with halt_code=00000007, pc=ffff7a7c, lr=ffff78f7

Emulate the whole boot process

Some milestones we want to hit for getting through the whole boot process:

  • Execute through boot0
  • Execute through boot1
  • Execution in boot2
  • Actually loop in the kernel forever
  • PowerPC bring-up

Emulate interrupts, exceptions, and interrupt controller register behaviour

  • Handle exceptions blocking further progress (aborts, undef instructions)
  • Handle system calls with the undef instruction exception handler
  • Implement IRQs from I/O devices

Interrupts prevent us from executing any further in boot2 (this is a data abort interrupt).
starlet.c:229:__handle_halt_code(): Died with halt_code=00000015, pc=ffff23a0

SEEPROM/GPIO emulation

I think ARM talks to the SEEPROM via the GPIOs. Eventually we'll have to implement that?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.