Comments (3)
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.
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.
I assume I found the most of relevant information.
from tegra-demo-distro.
Related Issues (20)
- ExpansionError during parsing eglstreams-kms-example HOT 5
- failed to build custom distro with mender enabled HOT 12
- what is ip address for ethernet port in devkit? HOT 2
- failed to mounting ext4 file system using ext3 subsystem HOT 9
- Mender Image Upgrade failed - can't update bootloader HOT 7
- package_write_rpm error. HOT 2
- How to test gpu ? HOT 1
- Mender update has no effect on Xavier NX (eMMC) HOT 12
- cmake fails: version `GLIBC_2.29' not found for libm.so.6 HOT 13
- build of deepstream 6.2 fails on branch kirkstone with target jetson-agx-xavier-devkit HOT 9
- L4t graphics demo of EGL image can't display on AGX Orin HOT 5
- random build failures on kirkstone with custom TX2 hardware HOT 9
- UEFI boot screen does not show up HOT 8
- Jetson Orin Nano 4GB (P3767-0004) unable to access the system HOT 2
- How to add meta-ros (ros 2 dashing), meta-qt5 and meta-boot2qt to demo-image-full on Nvidia Jetson TX2? HOT 9
- upgrade from dunfell-l4t-r32.4.3 to dunfell-l4t-r32.6.1 via mender failed HOT 1
- docker broken on latest dunfell branch commit "http: invalid Host header" HOT 2
- How can we add devtools package managers such as apt or apt-get (devtools) to our image? HOT 1
- Jetson nano has problem with start up from mmc HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tegra-demo-distro.