Giter Club home page Giter Club logo

Comments (7)

fhunleth avatar fhunleth commented on June 27, 2024 1

Oh, I think the U-Boot environment block is overwriting the end of the GPT header. The GPT header goes from block 0 to 34.

Could you try moving UBOOT_ENV_OFFSET to 34 or later?

12 partitions should be fine.

from fwup.

fhunleth avatar fhunleth commented on June 27, 2024

Thanks for reporting this. It is not known and it's surprising since the unit tests compare checksums against sfdisk's calculations.

Anything special to reproduce?

from fwup.

deblauwetom avatar deblauwetom commented on June 27, 2024

I am trying to make a "pingpong" firmware for the nvidia jetson nano. I already made this for the raspberry pi3 based upon the nerves project example. So I start with an uboot-environment, maybe that is different? Also, there are 12 small partitions I need to make, maybe that is also a bit special?

uboot-environment uboot-env {
    block-offset = ${UBOOT_ENV_OFFSET}
    block-count = ${UBOOT_ENV_COUNT}
}

# This firmware task writes everything to the destination media
task complete {
    # Only match if not mounted
    require-unmounted-destination = true

    on-init {

        gpt_write(gpt-a)
        
        uboot_clearenv(uboot-env)
        uboot_setenv(uboot-env, "fw_active", "a")
    }
    #here are my on-resource statements 
}

from fwup.

deblauwetom avatar deblauwetom commented on June 27, 2024

🎉 that was it! I now moved it to 64 to be sure.
Also, this was the reason it only booted onto the recovery bootloader, probably it did not find the root filesystem due to the corrupt gpt. Thanks!

from fwup.

fhunleth avatar fhunleth commented on June 27, 2024

Great!

Btw, I know a few people who would be very interested in a Jetson Nano port, so please let me know when you get something working or have something to share!

from fwup.

deblauwetom avatar deblauwetom commented on June 27, 2024

Hello, well, now it works to flash a sdcard with fwup to boot on the jetson nano. Unfortunately I can't give you my exact source code, I am doing this for my employer... However, it is really just building a distro for the nano with yocto (meta-tegra layer) and then checking the "....sdcard" file with "gdisk" to see the partition layout. Then just create the 12 partitions with their names, and just rawwrite the files you get in yocto to these partitions in fwup.

from fwup.

fhunleth avatar fhunleth commented on June 27, 2024

Makes sense. Thanks for the info!

from fwup.

Related Issues (20)

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.