Well Cygwin knows how to use NTFS symlinks and junctions and does it well, just that the pure-win32 ports of the GNU toolchains don't have that capability. Those of us who can't/won't install Linux are best off trying Cygwin.
Thanks a lot for this, much appreciated. Now I can get to work on testing out custom MTD layouts for FXP.
EDIT: About repacking.... I assume we have to join kernel.sin-header to the beginning of kernel.sin-kernel in order to get the raw zImage right...? Then we convert that with bin2elf and etc. Will try it and test a flash and confirm that a repacked RAMDisk works under Cygwin, otherwise I'll start downloading Ubuntu.
EDIT2: Nope, no need to append the loader. Anyway, those of us on Windows who want to repack it, use this batch file:
Code:
:: the_laser's sinTools example with updates/comments
:: updates and comments by jonusc
@echo off
:BEGIN
:: Repack the kernal image
bin2Elf.exe 2 0x20008000 kernel.sin-kernel 0x20008000 0x0 kernel.sin-ramdisk.cpio.gz 0x24000000 0x80000000
:: Convert to SIN and define linux partition map
bin2sin.exe result.elf 03000000220000007502000062000000
:: Cleanup
del result.elf
ren result.elf.sin kernel.sin
:: Move repacked kernel to template folder overwriting the old kernel
:: (i) Optional. Repack yourself if missing, choose kernel the repack is based on
move /Y kernel.sin .\template-fxp047
cd template-fxp047
:: Pack it to an FTF (zip) with 7-Zip commandline version.
:: (i) Optional. Repack yourself using whatever ZIP program and rename to FTF.
..\7z a -tzip -r ..\X10_CUSTOM_REPACK.FTF *
cd..
:END
...you cannot edit the ramdisk cpio in Windows however. Apparently the Cpio port for Win32 supports cross-platform symbolic link handling but I am yet to investigate and test it. Cygwin's "port" doesn't appear to support it either.