I am trying to generate a makefs msdos/EFI filesystem like so:
bugs.freebsd.org
But I want to add a 16M/32768 sector offset to begining of image file. For u-boot.
The manual shows -O as the flag for offset but if I dig deeper the at "@" symbol is used (as per the program help too)
https://man.freebsd.org/cgi/man.cgi?query=makefs ((see MSDOS Section for further manual linkage))
The makefs manual points to an invocation from newfs_msdosfs : -@63s (As found in example at bottom)
man.freebsd.org
From all looks this should be the syntax needed.
Do I use it like this:
-O offset="-@63s"
-o offset="-@63s"
Nothing seems to be valid input.
I also read a negative value is needed for a makefs offset.... I don't know how to do that.
More drilling down it looks like -@ is not valid.
Please help me offset image file for u-boot.
Thanks
259012 – makefs -t msdos creates broken image when out of space
But I want to add a 16M/32768 sector offset to begining of image file. For u-boot.
The manual shows -O as the flag for offset but if I dig deeper the at "@" symbol is used (as per the program help too)
https://man.freebsd.org/cgi/man.cgi?query=makefs ((see MSDOS Section for further manual linkage))
The makefs manual points to an invocation from newfs_msdosfs : -@63s (As found in example at bottom)
newfs_msdos
Do I use it like this:
-O offset="-@63s"
-o offset="-@63s"
Nothing seems to be valid input.
makefs -t msdos -s 50m -o fat_type=16 -o sectors_per_cluster=1 -O -@63s test.imgmakefs: offset `-@63s': illegal number
I also read a negative value is needed for a makefs offset.... I don't know how to do that.
More drilling down it looks like -@ is not valid.
Code:
~ # makefs -t msdos -s 50m -o fat_type=16 -o sectors_per_cluster=1 -O -@63 test.img
makefs: offset `-@63': illegal number
~ # makefs -t msdos -s 50m -o fat_type=16 -o sectors_per_cluster=1 -O -@ 63 test.img
makefs: offset `-@': illegal number
~ # makefs -t msdos -s 50m -o fat_type=16 -o sectors_per_cluster=1 -O -@ offset=63s test.img
makefs: offset `-@': illegal number
~ # makefs -t msdos -s 50m -o fat_type=16 -o sectors_per_cluster=1 -O -@ -o offset=63s test.img
makefs: offset `-@': illegal number
Please help me offset image file for u-boot.
Thanks