I got this working after a while.

Replace unimg with awimage -u original.img
Touch up some syntax issues with linux versions
replace mele uboot/spl with your own

#!/bin/sh
PREFIX=`dirname $0`
if [ ! -f original.img ]
then
echo "original.img not found, please create it!"
exit 1
fi

echo Cleaning extract directory
rm -rf _extract
echo Unpacking image from original.img
awimage -u original.img
echo Moving dump to extract directory
mv original.img.dump _extract
echo Renaming files to .fex
for a in _extract/*[0-z]???
do
       mv "$a" "$a.fex"
done
mv _extract/RFSFAT16_BOOTLOADER_FEX00.fex _input/bootfs.fex
mv _extract/RFSFAT16_BOOT_FEX00000000.fex _input/root.fex
mv _extract/RFSFAT16_SYSTEM_FEX000000.fex _input/system.fex
mv _extract/RFSFAT16_RECOVERY_FEX0000.fex _input/recovery.fex

echo Done...

In makefile...
tar xvf boot.tgz --no-same-owner -C tmp/boot




On Mon, Jan 13, 2014 at 9:18 PM, [email protected] <[email protected]> wrote:
> I can't get unimg.exe to run under Wine.  It just prints garage and exits....
>
> Unpacking image from original.img
> ==╜Γ░ⁿ╩º░▄== IMAGEWTY[0]╖╓╬÷╓╞╫≈╣ñ╛▀ [┐¬╖ó╒▀: esxgx]
>
> Maybe I need some missing Windows library on Wine? I tried installing mfc42.
>
> On Mon, Jan 13, 2014 at 11:28 AM,  <[email protected]> wrote:
>> понедельник, 13 января 2014 г., 20:24:26 UTC+4 пользователь Jon Smirl 
>> написал:
>>> Are there any tools for making a bootable Android SD card  - parallel to 
>>> the Linux BSP tool? All the tools I see write the Android into on board 
>>> flash which really slows down the development cycle.
>>>
>>>
>>>
>>> --
>>> Jon Smirl
>>> [email protected]
>>
>> http://tmerle.blogspot.ru/2013_10_01_archive.html
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "linux-sunxi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
> --
> Jon Smirl
> [email protected]



-- 
Jon Smirl
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to