Giter Club home page Giter Club logo

Comments (3)

dwalkes avatar dwalkes commented on August 15, 2024

Hi @maggu2810

Should I create a service that checks if /dev/sda1 exists and if it is missing, it creates it using parted and mkfs.ext4 calls? Hook this before /data is mounted?

The way I've handled this in the past is by using a custom platform-pre-switchroot which will allow you to run custom steps during the init process and before the rootfs is mounted and the remaining services which may need to use the /data partition try to start.

Since the last time I set this up there have been some new changes in https://github.com/OE4T/meta-tegra/wiki/initrd-flashing-support to support flashing alternate devices at startup, however based on a quick search of the script at https://github.com/OE4T/meta-tegra/blob/master/recipes-bsp/tegra-binaries/tegra-helper-scripts/initrd-flash.sh it appears this will only support flashing other devices when the rootfs is located there ($ROOTFS_DEVICE). So I suspect your best option is still to use platform-pre-switchroot or similar.

from tegra-demo-distro.

maggu2810 avatar maggu2810 commented on August 15, 2024

Hi @dwalkes ,
/etc/platform-pre-switchroot is a possible hook. Thanks for pointing me to that direction.
I will give it a try.

I am pretty sure I will find it while reading the existing recipes etc. As you did already something similar can you point me to some changes that are necessary? Then I can move forward faster.

  • Recipe to add a platform-pre-switchroot script to the initrd
  • Add partition tool (e.g. parted), mkfs.ext4, etc. to initrd
  • ... things I am currently not aware of ...

Thanks again

from tegra-demo-distro.

maggu2810 avatar maggu2810 commented on August 15, 2024

I assume I found the most of relevant information.

from tegra-demo-distro.

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.