hi ,
I am trying to separate our app from filesystem image and put them into separated emmc partition. I created a directory which host a few App binary after cross compiling on the host. I want to covert this directory into a image file like system.img so that i can modify flash.sh to flash into the emmc. ( note i have already modified the partition table xml file to add a App partition) the only thing i am missing is that to make the directory into img binary.
Thanks
hello terry8uwg2,
please check Flash Script Usage session,
how about using -G
options to reads the boot partition and saves the image to the specified file.
thanks
Hey Jerry,
I have few app binaries and other config file .I want to create a image file for example App.img which will include these app binaries and config file. i want flash App.img separately not together with system.img.
deb package still install the actual file into file system partition. i just tried something like this
# dd if=/dev/zero of=~/app.img bs=1024k count=1024
# losetup --find --show ~/file.img
/dev/loop0
# mkfs -t ext4 /dev/loop0
# mount /dev/loop0 /mnt
# cp the bin files to /mnt
# umount /dev/loop0
# losetup --detach /dev/loop0
then i modified the partition table to flash app.img. after system boot up i can directly mount this partition. any comments ?
Thanks
hello terry8uwg2,
may I know what’s your actual use-case,
thanks
hey Jerry,
I want to be able to flash the new Application independently at the factory and also in the runtime ota update session . I want to be able to update this partition without touching the system partitions. we are supporting various build flavor . so trying to separate them.
hello terry8uwg2,
okay, it looks like you’ll need some implementation to have dual APP partition.
you may have update flash configuration file to have couple of APP partitions (i.e. APP_1, and APP_2 ).
please also check similar discussion thread, Topic 76624, and Topic 81894 for reference,
thanks