Quote:
Originally Posted by tantrums
Hi,
Can someone help guide me to build my new Marvel ROM under aroma? I based my codes in Runnemade ROM codes, modified for my LG OB Black ROM.
I'm encountering syntax error below:
Code:
Starting AROMA INSTALLER version 1.63
(c) 2012 by amarullz xda-developers
aroma/s: Open Archive
aroma/s: Initializing Resource
aroma/s: Mute Parent
aroma/s: Starting Interface
line 127 col 2: syntax error, unexpected ')', expecting IF or STRING or '!' or '('
line 206 col 2: syntax error, unexpected ')', expecting IF or STRING or '!' or '('
line 297 col 3: syntax error, unexpected $end, expecting ',' or ')'
aroma/s: Close Graph Thread
aroma/s: Unmute Parent
SYNTAX ERROR!!! aroma-config on line 127 col 2
aroma/s: Starting Release
aroma/s: Font Released
aroma/s: Input Released
aroma/s: Archive Released
aroma/s: Graph Released
aroma/s: Cleanup Temporary
aroma/s: Check For Reboot
aroma/s: Closing Recovery Pipe
E:Error in /sdcard/Marvelv7beta7.zip
(Status 1)
Installation aborted.
result was NULL, message is: assert failed: install_zip("/sdcard/Marvelv7beta7.zip")
aroma script code : http://pastebin.com/Q5sZZH0g
updater script code : http://pastebin.com/GMEtbjfc
|
line 127 col 2: syntax error, unexpected ')', remove coma from 0
"HTC IME", "HTC Stock IME", 0
,
"HTC IME", "HTC Stock IME", 0
line 206 col 2: syntax error, unexpected ')', remove coma from 0
"Visualization Live Wallpaper", "All music visualization together, slowly revolving 3D",0
,
"Visualization Live Wallpaper", "All music visualization together, slowly revolving 3D",0
line 297 col 3: syntax error, unexpected $end, is from the error's above
always remove the last coma at the end of each segmant , in aroma-config
I failed to do this a lot, amarullz has built a great program with a excellent debugger , if we could get him to do a rom porting debugger that would be amaing lol
---------- Post added at 06:05 AM ---------- Previous post was at 05:53 AM ----------
amazing excellent Installer,amarullz
finally finished my installer for UrDroids 2.0, I'm sure there is much room for improvement, but I'm learning code:

, still have to setup better set_progress and show_progress, but that's no really important right now
I got it to do everything I needed ( without having to ask for help

)
except one thing, coole's sd-ext alignment script
ui_print(" Performing Partition Alignment ");
ui_print(" by coole");
unmount("/sd-ext");
package_extract_dir("tmp", "/tmp");
set_perm_recursive(0, 0, 0755, 0755, "/tmp/alignment/");
run_program("/tmp/alignment/alignment.sh");
--------------------------------------------------------------------------
alignment.sh
#!/sbin/sh
sync;
/sbin/umount -l /sdcard;
/sbin/umount /dev/block/mmcblk0p2
sync;
# format ext with alignment
#/tmp/alignment/mkfs.ext4 -t ext4 -E stride=64,stripe-width=64 -b 4096 -m 0 -F -L userdata /dev/block/mmcblk0p2
/tmp/alignment/mkfs.ext4 -t ext4 -b 4096 -m 0 -F -L userdata /dev/block/mmcblk0p2
/tmp/alignment/tune2fs -o journal_data_ordered /dev/block/mmcblk0p2
/tmp/alignment/tune2fs -E hash_alg=tea /dev/block/mmcblk0p2
/tmp/alignment/tune2fs -e continue /dev/block/mmcblk0p2
/tmp/alignment/e2fsck /dev/block/mmcblk0p2
sync;
rm -r /tmp/alignment;
sync;
--------------------------------------------------------------------------
the part in the updater.script causes aroma to freeze at the very end, you have to pull the battery, every thing seems to have installed, because rom loads fine.
I even try renaming tmp folder to temp , in updater.script and also alignment.sh
updater.script
ui_print(" Performing Partition Alignment ");
ui_print(" by coole");
unmount("/sd-ext");
package_extract_dir("tmp", "/temp");
set_perm_recursive(0, 0, 0755, 0755, "/temp/alignment/");
run_program("/temp/alignment/alignment.sh");
alignment.sh
#!/sbin/sh
sync;
/sbin/umount -l /sdcard;
/sbin/umount /dev/block/mmcblk0p2
sync;
# format ext with alignment
#/temp/alignment/mkfs.ext4 -t ext4 -E stride=64,stripe-width=64 -b 4096 -m 0 -F -L userdata /dev/block/mmcblk0p2
/temp/alignment/mkfs.ext4 -t ext4 -b 4096 -m 0 -F -L userdata /dev/block/mmcblk0p2
/temp/alignment/tune2fs -o journal_data_ordered /dev/block/mmcblk0p2
/temp/alignment/tune2fs -E hash_alg=tea /dev/block/mmcblk0p2
/temp/alignment/tune2fs -e continue /dev/block/mmcblk0p2
/temp/alignment/e2fsck /dev/block/mmcblk0p2
sync;
rm -r /temp/alignment;
sync;
I just left it out, I do not think it is needed anyway, but on a first install of sd-ext
I just have it as a CWR install before rom is installed
Many Thanks for your excellent hard work amarullz
Apr 1, 2012 Donation To Ahmad Amarullah Completed