Migrating to F2FS on the eMMC

Is there a simple way to migrate from EXT4 to F2FS on the eMMC ?

Using the Debian beaglebone distribution.

It looks like a much better, faster and best suited for NAND based Flash memory filesystem.

Cheers,
Jean-Francois

As long as you understand, u-boot can only read from a fat/ext partition.

Just create a 2 partition setup:

sudo sfdisk --in-order --Linux --unit M ${DISK} <<-__EOF__
1,48,0xE,*

Thanks Robert! I will post my results here in this thread :slight_smile:

Jean-Francois

Hi,

Been struggling about to achieve this on BBB! Can’t find too much information about it. Any help would be appreciated! I’m surely missing something!

  • Been doing what i believe would help (does this make sense?)
    Installed f2fs-tools, added f2fs modules to initramfs/modules and updated it
    [After these steps i could actually create another partition (p3) format it as f2fs and mount it/use it]
    Edited fstab to mount f2fs partition on boot and it was succesfully mounted on boot too.

  • Been around the init-eMMC-flasher-v3.sh:

Cant really understand the partition behaviour of the script. As i understand there are 2 ways of flashing - 1partition setup and 2partition setup.
I believe my flashing procedure is doing the 2 partition setup - i see mmcblk0p1 (fat) and mmcblk0p2 (ext4). However if i mount the p1 i dont see any uEnv in there:

App Drivers LICENSE.txt README.md System Volume Information nfs-uEnv.txt
Docs ID.txt README.htm START.htm autorun.inf scripts

Isn’t the uEnv.txt supposed to be in that partition? I just find it at /boot/
Is it possible to implement the process of creating rootfs as f2fs in this script?

  • As i was looking around the scripts i found the beaglebone-black-eMMC-flasher.sh which seems to have a behaviour much closer to what i want (mounts boot partition as /boot ) however if i try to run it i get “system unrecognized”

  • Can anyone point any direction on how to put the rootfs on f2fs keeping the /boot on fat/ext4?

Thanks,

Regards
Msantosh

quinta-feira, 15 de Janeiro de 2015 às 22:47:23 UTC, RobertCNelson escreveu:

Hi,

Been struggling about to achieve this on BBB! Can't find too much
information about it. Any help would be appreciated! I'm surely missing
something!

- Been doing what i believe would help (does this make sense?)
Installed f2fs-tools, added f2fs modules to initramfs/modules and updated it
[After these steps i could actually create another partition (p3) format it
as f2fs and mount it/use it]
Edited fstab to mount f2fs partition on boot and it was succesfully mounted
on boot too.

- Been around the init-eMMC-flasher-v3.sh:
Cant really understand the partition behaviour of the script. As i
understand there are 2 ways of flashing - 1partition setup and 2partition
setup.
I believe my flashing procedure is doing the 2 partition setup - i see
mmcblk0p1 (fat) and mmcblk0p2 (ext4). However if i mount the p1 i dont see
any uEnv in there:
App Drivers LICENSE.txt README.md System Volume Information
nfs-uEnv.txt
Docs ID.txt README.htm START.htm autorun.inf scripts

Isn't the uEnv.txt supposed to be in that partition? I just find it at
/boot/
Is it possible to implement the process of creating rootfs as f2fs in this
script?

Sure it's possible to "implement" it in that script. You'll have to
figure it out and submit a patch of course, as it doesn't do that out
of the box.

- As i was looking around the scripts i found the
beaglebone-black-eMMC-flasher.sh which seems to have a behaviour much closer
to what i want (mounts boot partition as /boot ) however if i try to run it
i get "system unrecognized"

That script is obsolete..

- Can anyone point any direction on how to put the rootfs on f2fs keeping
the /boot on fat/ext4?

Please follow the hint i gave here:

https://groups.google.com/d/msg/beagleboard/FbG1T6DQZDU/HWUA_0OBCegJ

Regards,