UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    deviceinfo_flash_offset_base

    Scheduled Pinned Locked Moved Solved Porting
    2 Posts 1 Posters 319 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      kofi
      last edited by

      The UBports docs describes the process of finding the offset base of boot.img really briefly, and its not very helpful. Is there a script to find it? or where to search for the "devices that share the same SoC" base offset's?

      1 Reply Last reply Reply Quote 0
      • K Offline
        kofi
        last edited by

        i believe i found the answer: config PHYS_OFFSET in my device kernel code.
        [kernel code dir]/arch/arm/Kconfig:

        config PHYS_OFFSET
                hex "Physical address of main memory" if MMU
                depends on !ARM_PATCH_PHYS_VIRT
                default DRAM_BASE if !MMU
                default 0x00000000 if ARCH_EBSA110 || \
                                ARCH_FOOTBRIDGE || \
                                ARCH_INTEGRATOR || \
                                ARCH_IOP13XX || \
                                ARCH_KS8695 || \
                                ARCH_REALVIEW
                default 0x10000000 if ARCH_OMAP1 || ARCH_RPC
                default 0x20000000 if ARCH_S5PV210
                default 0xc0000000 if ARCH_SA1100
                help
                  Please provide the physical address corresponding to the
                  location of main memory in your system.
        
        1 Reply Last reply Reply Quote 0
        • K kofi has marked this topic as solved on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post