Comments (8)
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.
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.
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.
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.
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.
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.
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.
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)
- btrfs support issue HOT 5
- mraa crash on Yocto dunfell HOT 20
- BTRFS rebooted crash HOT 2
- boot failure HOT 12
- Preempt-RT support HOT 4
- ACPI table is not loaded HOT 8
- Integration with Azure HOT 1
- How to use PWM mode? HOT 5
- altering the partition table prevents subsequent dfu updates HOT 3
- requirement for sudo to use flashall.sh HOT 4
- `make debian` broken on master and dunfell HOT 4
- SD card does not work on dunfell branch HOT 69
- SD card not detected properly in U-Boot HOT 9
- Can't use "configure_edison --setup" HOT 9
- Intel Edison can't boot new flashed image HOT 3
- There is no issue with the network, but numactl cannot be downloaded. HOT 2
- Initramfs unpacking failed: invalid magic at start of compressed archive HOT 4
- Issue Building Sumo Branch HOT 1
- Expired gpg keys HOT 3
- [Kirstone] List of required packages does not match YP
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 meta-intel-edison.