GithubHelp home page GithubHelp logo

Comments (8)

htot avatar htot commented on May 28, 2024

Normally, the home partition is not touched during flash, so your files there persist. Looks like something now went wrong during flash destroying the home partition.

Then on first boot partitions are resized (try partx /dev/mmc0blkp8) . And then AFAIU the filesystem is resized: https://github.com/edison-fw/meta-intel-edison/blob/master/meta-intel-edison-distro/recipes-core/resize-rootfs/resize-rootfs.bb.

Maybe you need to manually fix?

from meta-intel-edison.

xlla avatar xlla commented on May 28, 2024

I am afraid I will lost data while flash firmware so I keep all my data on sdcard.
In fact I do not need home partition in emmc, so does OTA partition, can I alloc all space to rootfs?

from meta-intel-edison.

xlla avatar xlla commented on May 28, 2024

after update os, rerun make image, the /home is back!

how to simple update kernel inside edison, can I create some kernel.deb , then in edison execute "apt upgrade kernel" ?

each time when I make some tiny change to kernel module, I have to pack whole images and flashall,
maybe emmc would wear out.

from meta-intel-edison.

htot avatar htot commented on May 28, 2024

I prepared ota partition as simple fat partition and put kernel there, and rootfs on usb (fast writing) or sdhc (slower), then boot run usbboot or run edsboot.

This works best if you have working system on emmc (that you don't touch so it won't break) andyou can use that to scp the kernel to the ota partition.

from meta-intel-edison.

xlla avatar xlla commented on May 28, 2024

Normally, the home partition is not touched during flash

so the home partition just hold it's original size(1.3GB), and won't change even I have adjust size of rootfs & update in edison.env?

from meta-intel-edison.

xlla avatar xlla commented on May 28, 2024

I prepared ota partition as simple fat partition and put kernel there

In sumo branch built, I have put a kernel in there, and forgot to update it when I flash new warrior images.

Now I have put warrior kernel in OTA, and boot successful from sdcard!

root@edison:~# df -h
Filesystem       Size  Used Avail Use% Mounted on
none             474M  4.0K  474M   1% /dev
/dev/mmcblk1p1    28G  2.5G   24G  10% /
tmpfs            478M     0  478M   0% /dev/shm
tmpfs            478M  620K  478M   1% /run
tmpfs            478M     0  478M   0% /sys/fs/cgroup
tmpfs            478M  4.0K  478M   1% /tmp
tmpfs            478M     0  478M   0% /var/volatile
/dev/mmcblk0p10  1.3G   15M  1.3G   2% /home
/dev/mmcblk0p5  1003K   19K  913K   3% /factory
tmpfs             96M     0   96M   0% /run/user/0

I wonder if I can shrink partition mmcblk0p10 and leave more space for "rootfs / update".

from meta-intel-edison.

htot avatar htot commented on May 28, 2024

If the end of ota partition overlaps home, home will break. But if you increase rootfs and decrease ota by the same there will be no problem.

For Zeus I am working to replace rootfs / ota/ home by a single btrfs partition, with subvolumes @boot, @, @home, @ota. This way all free space is available to all subvolumes.

from meta-intel-edison.

xlla avatar xlla commented on May 28, 2024

This way all free space is available to all subvolumes.

It is great!

Eventually, the rootfs size is identical to edison.env definition.

root@edison:~# partx /dev/mmcblk0p8 
NR  START     END SECTORS SIZE NAME   UUID
 8 131072 3276799 3145728 1.5G rootfs 04ea6535-c373-4140-ac7a-6f6e99ed7da4
root@edison:~# systemctl start resize-rootfs.service
[24631.865037] resize2fs[886]: resize2fs 1.44.5 (15-Dec-2018)
[24632.392594] resize2fs[886]: Resizing the filesystem on /dev/disk/by-partlabel/rootfs to 393216 (4k) blocks.
[24632.393354] resize2fs[886]: The filesystem on /dev/disk/by-partlabel/rootfs is now 393216 (4k) blocks long.
[24632.489107] systemctl[889]: Removed /etc/systemd/system/default.target.wants/resize-rootfs.service.
root@edison:~# df -h
Filesystem       Size  Used Avail Use% Mounted on
none             474M  4.0K  474M   1% /dev
/dev/mmcblk0p8   1.4G  992M  325M  76% /
tmpfs            478M     0  478M   0% /dev/shm
tmpfs            478M  620K  478M   1% /run
tmpfs            478M     0  478M   0% /sys/fs/cgroup
tmpfs            478M  4.0K  478M   1% /tmp
tmpfs            478M     0  478M   0% /var/volatile
/dev/mmcblk1p1    28G  2.6G   24G  10% /media/sdcard
/dev/mmcblk0p5  1003K   19K  913K   3% /factory
/dev/mmcblk0p10  1.3G   15M  1.3G   2% /home
tmpfs             96M     0   96M   0% /run/user/0

from meta-intel-edison.

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.