yashsingh1/xdaforums huggingface dataset:
[Galaxy S Advance I9070 Android Development] hackbob:
Progress so far:

- Added MODULE_LICENCE to J4fs and Param commit

- Partition still not mounted due to some errors in the code, but now the error codes point to J4fs and Param lines.

Here the dmesg block with the errors:

<3>[ 12.373809] init: SEC_DEVENC ***[/dev/block/mmcblk0p1][0]
<4>[ 12.390411] fsd_reclaim 1291: MST is not recognized(mst.magic=0x00000000)
<4>[ 12.390472] fsd_reclaim 1292: MST is not recognized
<4>[ 12.399322] [<c07b484c>] (unwind_backtrace+0x0/0xf0) from [<c0c9d51c>] (dump_stack+0x10/0x24)
<4>[ 12.399475] [<c0c9d51c>] (dump_stack+0x10/0x24) from [<bf003ac8>] (fsd_reclaim+0x3bc/0xe40 [j4fs])
<4>[ 12.399658] [<bf003ac8>] (fsd_reclaim+0x3bc/0xe40 [j4fs]) from [<bf0017bc>] (j4fs_fill_super+0x2e0/0x364 [j4fs])
<4>[ 12.399780] [<bf0017bc>] (j4fs_fill_super+0x2e0/0x364 [j4fs]) from [<c08916c8>] (get_sb_bdev+0x110/0x16c)
<4>[ 12.399902] [<c08916c8>] (get_sb_bdev+0x110/0x16c) from [<bf0002f8>] (j4fs_get_sb+0x58/0x6c [j4fs])
<4>[ 12.400024] [<bf0002f8>] (j4fs_get_sb+0x58/0x6c [j4fs]) from [<c08904a0>] (vfs_kern_mount+0x58/0x108)
<4>[ 12.400115] [<c08904a0>] (vfs_kern_mount+0x58/0x108) from [<c0890594>] (do_kern_mount+0x34/0xd8)
<4>[ 12.400207] [<c0890594>] (do_kern_mount+0x34/0xd8) from [<c08a7b94>] (do_mount+0x7a4/0x848)
<4>[ 12.400299] [<c08a7b94>] (do_mount+0x7a4/0x848) from [<c08a7cbc>] (sys_mount+0x84/0xc4)
<4>[ 12.400390] [<c08a7cbc>] (sys_mount+0x84/0xc4) from [<c07ad740>] (ret_fast_syscall+0x0/0x30)
<4>[ 12.400573] fsd_reclaim 1607: Error(nErr=0x00000000)
<4>[ 12.400634] fsd_reclaim 1612: j4fs_rw_start is set to default value(128KB)
<4>[ 12.400756] j4fs_fill_super 1313: Error(nErr=0x40000000)
<6>[ 12.410705] param_init
<3>[ 12.410797] lfs_param_op: filp_open failed. (-2)
<3>[ 12.410858] param_init(360): Loading parameters failed. Parameters have been initialized as default.
[Galaxy S Advance I9070 Android Development] diego-ch:
yep, same errors I had.

param fails because j4fs doesnt mount the partition.
[Galaxy S Advance I9070 Android Development] loveudroid:
sorry for being a noob

1st of all you guys have all my respect for doing this developing stuff for the people.. :good:

Sorry for not reading the whole topic but i want to know when will be ready the stable cm7 for i9070 because that makes the devision to buy a new SGS Advance or not...

Thanks for your answer.

An andriod fan :o
[Galaxy S Advance I9070 Android Development] antonio8297:
you should wait a cwm or twrp
[Galaxy S Advance I9070 Android Development] hackbob:
The golden rule for the community driven Development is "Do Not Ask for ETA".

If a dev feel to share an ETA, he/she will probably post it himself when he have one.

It's your first post so keep this as a really important rule if you want avoid a shaver of insult in a more populated thread.

BTW.

Currently the forces are concentrated on having a fully working TWRP and kernel with J4FS; the driver is not really used by our actual kernel but there are some things that need it (don't remember what bootloader or something like that)

Current kernel on GIT (search the topic for diego-ch's git or mine if you are interested) have TWRP recovery and I've personally tested the backup;still not test the restore because I'm busy.

On my Git you can find the Draft version of the CM config that need to be added on the CM7 source to start a build of CM7 for our device; my last attempt broke at some point while building some apk; haven't yet the time to look in detail why.

I'll be really busy until 5 Sept so expect from me nearly 0 improvement until then.
[Galaxy S Advance I9070 Android Development] bufa:
:(

Enviado desde mi MB525 usando Tapatalk 2
[Galaxy S Advance I9070 Android Development] shut_down:
We should be happy to have some developers interested in our phone. Don't be ungrateful to them. ;)
[Galaxy S Advance I9070 Android Development] diego-ch:
quick news...

I got a few hints from a xda dev, he said I have to adapt the j4fs driver,

so this means coding in C for now :P
[Galaxy S Advance I9070 Android Development] TheZoc:
I might be able to help in that area. What do you need?
[Galaxy S Advance I9070 Android Development] bufa:
not my intention at all.
[Galaxy S Advance I9070 Android Development] shut_down:
Sorry, I taught that it was somebody new here, and complaining. :) Didn't read name.
[Galaxy S Advance I9070 Android Development] jasconildo:
I can help on that too, PM me if you need any help.

Great work everyone!
[Galaxy S Advance I9070 Android Development] diego-ch:
have you guys compiled the kernel from my sources?

I was told this was the i9100 driver, so it doesnt recognize the hex id of the i9070 j4fs partition

and, as we can see, the error point to a funcion in the j4fs code: fsd_reclaim() on line 1249.

<3>[ 12.373809] init: SEC_DEVENC ***[/dev/block/mmcblk0p1][0]

<4>[ 12.390411] fsd_reclaim 1291: MST is not recognized(mst.magic=0x00000000)
<4>[ 12.390472] fsd_reclaim 1292: MST is not recognized

<4>[ 12.399322] [<c07b484c>] (unwind_backtrace+0x0/0xf0) from [<c0c9d51c>] (dump_stack+0x10/0x24)
<4>[ 12.399475] [<c0c9d51c>] (dump_stack+0x10/0x24) from [<bf003ac8>] (fsd_reclaim+0x3bc/0xe40 [j4fs])
<4>[ 12.399658] [<bf003ac8>] (fsd_reclaim+0x3bc/0xe40 [j4fs]) from [<bf0017bc>] (j4fs_fill_super+0x2e0/0x364 [j4fs])
<4>[ 12.399780] [<bf0017bc>] (j4fs_fill_super+0x2e0/0x364 [j4fs]) from [<c08916c8>] (get_sb_bdev+0x110/0x16c)
<4>[ 12.399902] [<c08916c8>] (get_sb_bdev+0x110/0x16c) from [<bf0002f8>] (j4fs_get_sb+0x58/0x6c [j4fs])
<4>[ 12.400024] [<bf0002f8>] (j4fs_get_sb+0x58/0x6c [j4fs]) from [<c08904a0>] (vfs_kern_mount+0x58/0x108)
<4>[ 12.400115] [<c08904a0>] (vfs_kern_mount+0x58/0x108) from [<c0890594>] (do_kern_mount+0x34/0xd8)
<4>[ 12.400207] [<c0890594>] (do_kern_mount+0x34/0xd8) from [<c08a7b94>] (do_mount+0x7a4/0x848)
<4>[ 12.400299] [<c08a7b94>] (do_mount+0x7a4/0x848) from [<c08a7cbc>] (sys_mount+0x84/0xc4)
<4>[ 12.400390] [<c08a7cbc>] (sys_mount+0x84/0xc4) from [<c07ad740>] (ret_fast_syscall+0x0/0x30)

<4>[ 12.400573] fsd_reclaim 1607: Error(nErr=0x00000000)
<4>[ 12.400634] fsd_reclaim 1612: j4fs_rw_start is set to default value(128KB)

<4>[ 12.400756] j4fs_fill_super 1313: Error(nErr=0x40000000)

<6>[ 12.410705] param_init
<3>[ 12.410797] lfs_param_op: filp_open failed. (-2)
<3>[ 12.410858] param_init(360): Loading parameters failed. Parameters have been initialized as default.

here's the driver code.

https://github.com/diego-ch/android...ster/kernel/drivers/samsung/j4fs/fsd_common.c

the param module fails because it needs to access the j4fs partition to work properly.

so, no need to look into that, yet.
[Galaxy S Advance I9070 Android Development] pimpeddani:
m still stuck on compiling stock kernel. i get error after executing #make command. can anybody help...:o
[Galaxy S Advance I9070 Android Development] diego-ch:
post the error so we can see whats wrong
[Galaxy S Advance I9070 Android Development] pimpeddani:
here is the thing that happen on my terminal and thank you.. i m new at this...

Daeronne-HP-Pavilion-dv6-Notebook-PC kernel # cd /home/daeronne/Desktop/mybuildkernel/GT-I9070/kernel

Daeronne-HP-Pavilion-dv6-Notebook-PC kernel # export CROSS_COMPILE=/home/daeronne/Desktop/new/arm-2009q3/bin/arm-none-eabi-

Daeronne-HP-Pavilion-dv6-Notebook-PC kernel # make u8500_rev00_janice_open_defconfig

HOSTCC scripts/basic/fixdep

HOSTCC scripts/basic/docproc

HOSTCC scripts/basic/hash

HOSTCC scripts/kconfig/conf.o

scripts/kconfig/conf.c: In function ‘conf_sym’:

scripts/kconfig/conf.c:159:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]

scripts/kconfig/conf.c: In function ‘conf_choice’:

scripts/kconfig/conf.c:231:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]

HOSTCC scripts/kconfig/kxgettext.o

SHIPPED scripts/kconfig/zconf.tab.c

SHIPPED scripts/kconfig/lex.zconf.c

SHIPPED scripts/kconfig/zconf.hash.c

HOSTCC scripts/kconfig/zconf.tab.o

HOSTLD scripts/kconfig/conf

#

# configuration written to .config

#

Daeronne-HP-Pavilion-dv6-Notebook-PC kernel # make

make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found

scripts/kconfig/conf -s arch/arm/Kconfig

make: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: Command not found

CHK include/linux/version.h

UPD include/linux/version.h

CHK include/generated/utsrelease.h

UPD include/generated/utsrelease.h

Generating include/generated/mach-types.h

CC kernel/bounds.s

/bin/sh: /opt/toolchains/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: not found

make[1]: *** [kernel/bounds.s] Error 127

make: *** [prepare0] Error 2
[Galaxy S Advance I9070 Android Development] diego-ch:
you need to use the correct cross compiler path, inside kernel/Makefile.

but why don't you use my build script ?
[Galaxy S Advance I9070 Android Development] eoink:
[SOLVED] Kernel Compiling error

http://xdaforums.com/showthread.php?t=1593217
[Galaxy S Advance I9070 Android Development] jobsvizzy:
Newbie

hi there....

Im Using Samsung Galaxy S advance....

Im from Indonesia.
[Galaxy S Advance I9070 Android Development] pimpeddani:
ok diego.. thank you for help..
[Galaxy S Advance I9070 Android Development] felipebcanto:
I wish android was simple like windows. When released you just check the requires and install.
[Galaxy S Advance I9070 Android Development] shut_down:
Well you can do that, just go to google play store, and install what you want. :laugh: :laugh: :laugh:
[Galaxy S Advance I9070 Android Development] petraru1:
i hope more people will start developing for this awsome device, i love this phone :D, i had a lg optimus one and i am used to test new roms every day but sadly i dont know sh*t about coding to help the devs :|
[Galaxy S Advance I9070 Android Development] diego-ch:
Okay guys,

I swaped the j4fs module built in my kernel sources for the j4fs module inside the stock kernel

just to see if it was going to work, and it actually did. the module is loaded and the partition is mounted.

anyone willing to try?

I attached the file so you can flash using odin.

but you can also extract the file, get the kernel.bin.md5 and use dd to flash it.

ps: this was only tested on brazilian GT-I9070, and I used dd instead of odin,

but I think other users tested the kernel I uploaded a while ago with no issues. afaik.

also if anyone is brave enough,

can you try rooting the device by flashing this kernel and then using superoneclick root method (or any other gingerbread root exploit)?
[Galaxy S Advance I9070 Android Development] 冷。咖啡:
That's wonderful news!!

And I had a question, how to use busybox dd to flash this kernel on i9070, what is the command? Thx.
[Galaxy S Advance I9070 Android Development] jhonnatancosta:
ROM

diego esse arquivo é uma rom é? para o S II lite
[Galaxy S Advance I9070 Android Development] antonio8297:
please talk in english,it is an xda rules
[Galaxy S Advance I9070 Android Development] pplu18207332:
hi! i have flash it using odin!my phone is dxld1,It is going well now,thanks for your effort!
[Galaxy S Advance I9070 Android Development] felipebcanto:
What I meant is, when a windows is released, you just have to get the DVD and install a brand new windows on your PC, you don't have to wait DELL, HP, SAMSUNG release the update.
[Galaxy S Advance I9070 Android Development] Risuke:
It's only a custom recovery, that which you access by pressing "Vol -" + "Home" + "Power".

Portuguese:

Isso é só um custom recovery, aquele que você acessa usando "Vol -" + "Home" + "Power".

and about that, I'll try right now... :good:
[Galaxy S Advance I9070 Android Development] skorpioneMM:
How we can install the kernel with dd via terminal emulator? What is the command for do this?

I want to try now but at this moment i dont have my computer for flash it with Odin.

Enviado desde mi GT-I9300 usando Tapatalk 2
[Galaxy S Advance I9070 Android Development] antonio8297:
Should be this:

dd if=/sdcard/kernel.bin of=/dev/block/mmcblk0p15

extract the archive file until it comes kernel.bin.md5 and rootexplorer eliminates the. md5 and flash the kernel
[Galaxy S Advance I9070 Android Development] zip88:
hi,compliments for the work!!can i have changelog of new kernel?thanks a lot!
[Galaxy S Advance I9070 Android Development] diego-ch:
has anyone found any issues with this kernel? please report.

sorry, xda rules say we can only speak english here.

so, answering your question: that's just a custom recovery. @hackbob was trying to build a CyanogenMod rom,

but as he said, he wont have time till september 5th.

I dont have a changelog yet, as this is only a test. I'm still looking into the j4fs code.
[Galaxy S Advance I9070 Android Development] Risuke:
Worked like a charm *-* :victory:

that's just we need to develop custom roms? Until @hackbob back, u can try it?
[Galaxy S Advance I9070 Android Development] diego-ch:
I'm looking into Samsung's platform code. That may give us some hints on the device config files to build CyanogenMod.
[Galaxy S Advance I9070 Android Development] zip88:
support for bln?thanks :D
[Galaxy S Advance I9070 Android Development] diego-ch:
no support for it yet.

maybe I could try to get that working.
[Galaxy S Advance I9070 Android Development] antonio8297:
i've created a custom rom(stock based),but i need a testers because i don't have a s advance.

who offers?
[Galaxy S Advance I9070 Android Development] Risuke:
features of this rom?
[Galaxy S Advance I9070 Android Development] antonio8297:
is only deodexed,zipaligned,a work with kitchen.if work in next realase grafic mod.

you test it?
[Galaxy S Advance I9070 Android Development] hackbob:
You can check my github for a basic cyanogenmod config based on the SGS II and some mod here an there.

Busy tomorrow for sure but probably back on this in the evening,
[Galaxy S Advance I9070 Android Development] Risuke:
Upload it and later i'll try
[Galaxy S Advance I9070 Android Development] antonio8297:
i have already uploaded,i send link you via pm.
[Galaxy S Advance I9070 Android Development] bufa:
Its awesome to see so much progress!!

Congrats guys!!

Enviado desde mi MB525 usando Tapatalk 2
[Galaxy S Advance I9070 Android Development] diego-ch:
whoa. that was fast!

pm me the link so I can try it =D

Oh. I saw that there was also an update made by samsung to this device. (dont know if its really up to date)

maybe you can base your development on it.

here's where I found it: http://techdraginfo.blogspot.com/2012/08/install-official-xxle2-value-pack.html
[Galaxy S Advance I9070 Android Development] zackwire:
got a little worried about the "value pack" words...it doesn't seem likely to receive oficial ics update, at least not for now.

glad that you guys evolved so much in the past few days. looking forward for the development of our own updates.
[Galaxy S Advance I9070 Android Development] felipebcanto:
I offer
[Galaxy S Advance I9070 Android Development] m_loaiza:
Whath is the link?

Enviado desde mi GT-I9070 usando Tapatalk 2
[Galaxy S Advance I9070 Android Development] thesdony:
i would like to test too
[Galaxy S Advance I9070 Android Development] jhonnatancosta:
sorry, I did not know

---------- Post added at 01:17 AM ---------- Previous post was at 01:02 AM ----------
[Galaxy S Advance I9070 Android Development] catelusii:
please!

Hi!

I`m verry new here. I want to buy S advanced, but this was conditioned by 2 things:

- One is solved, and you are responsable for that, gratefuled for your good work. Keep going!

- Second, I need to know if YOU can make a kernel/rom or a patch with neccesary drivers for BOTH SIDE CALL RECORDING. (many app for call recording are usefull becase are missing suitable drivers) -Galaxy S 2 have this drivers nativly and for HTC and Sony exist a patch maked here on xda. If you want, please make one! )

I love S advanced, but I`m conditioned. I need a good working call recording app on S advanced, like on Galaxy S2 i9100

I want to Thank You for your hard work, - Gabriel

Sorry for my bad english.
[Galaxy S Advance I9070 Android Development] antonio8297:
Link. http://d-h.st/Ji4

PS the kernel have support of init.d?

Link http://d-h.st/Ji4
[Galaxy S Advance I9070 Android Development] Unkn0wNx:
http://twitter.com/Samsung_India/status/240327869455273985

Here is a official statement from Samsung India, though jelly bean is a long shot and something is better than nothing.

Keep up the good work Dev's :good:
[Galaxy S Advance I9070 Android Development] diego-ch:
Did anyone test his custom ROM? It fails to install here.
[Galaxy S Advance I9070 Android Development] antonio8297:
Status?

Inviato dal mio GT-S5660 con Tapatalk 2
[Galaxy S Advance I9070 Android Development] zackwire:
well, if samsung india and that sweedish website are right we should be receiving the update maybe in october.

got worried cuz "value pack" almost everytime means "we're not developing new android for this device anymore". but let's hope for the best... :)
[Galaxy S Advance I9070 Android Development] diego-ch:
status 4

---------- Post added at 09:00 AM ---------- Previous post was at 08:59 AM ----------

can you name an app to record calls so we can try?
[Galaxy S Advance I9070 Android Development] Risuke:
Same error with status 4, u know what be this?

And diego, try overclock our kernel haha ;p
[Galaxy S Advance I9070 Android Development] diego-ch:
I think that the status 4 error is related to the installation script.
[Galaxy S Advance I9070 Android Development] antonio8297:
I need to rewrite it,because is created from dsixda kitchen.it will be fixed.

Inviato dal mio GT-S5660 con Tapatalk 2
[Galaxy S Advance I9070 Android Development] heikoell:
what custom Rom is that?
[Galaxy S Advance I9070 Android Development] hamzani azni:
anybody can help to correct the swap vold.fstab

here is two file that original non-swap vold.fstab and modified swap enable vold.fstab..the enable have issue with mount as USB storage when connect to PC but work nicely when using MTP..it anyone can help this i really thankful...
[Galaxy S Advance I9070 Android Development] antonio8297:
this is leak fw.

test like this:

Open the zip of rom:

Go meta inf-com-google-android-and delete all the files, then put the files that are in the zip in the attachment
[Galaxy S Advance I9070 Android Development] antonio8297:
delete the link is warez
[Galaxy S Advance I9070 Android Development] diego-ch:
@antonio8297

I tested the new script and I got the same error (status 4).
[Galaxy S Advance I9070 Android Development] bernardowilson:
Hey guys, I've tested the ROM over here, it worked just fine. :)

Send me a PM if you guys want logs!

EDIT: Some funky stuff is happening with the play store and the contacts app.
[Galaxy S Advance I9070 Android Development] heikoell:
what kind of Rom is that?
[Galaxy S Advance I9070 Android Development] bernardowilson:
That happened to me the first time I tried. I got it to work by not extracting the file and then replacing the files. You have to replace them without extracting. I'll post a fixed version sometime soon.
[Galaxy S Advance I9070 Android Development] JackStow:
what is the difference between the original version and @antonio8297 version?
[Galaxy S Advance I9070 Android Development] diego-ch:
thanks for reporting.

EDIT:

now it starts the instalation but then it fails (Status 0),

I'm restoring my backup because the system is not booting.

We have emmc storage instead of mtd. can this command cause the error?

format("MTD", "system");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");

I think it should be:

format("ext4", "EMMC", "/dev/block/mmcblk0p3", "0");
[Galaxy S Advance I9070 Android Development] antonio8297:
fixed updater-script

delete data code,i don't have added apk in data.
[Galaxy S Advance I9070 Android Development] Sjonno:
Great work guys! Really looking forward to a working ROM and all the advantages it brings compared to stock I9070 ROM. :good:
[Galaxy S Advance I9070 Android Development] antonio8297:
worked with this comand?
[Galaxy S Advance I9070 Android Development] diego-ch:
yeah. I decided to rebuild the entire rom, using a rom kitchen and the leaked firmware

also deodexed, zipalligned. the phone is super fast now!

the command that works is:

format("ext4", "EMMC", "/dev/block/mmcblk0p3");
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system");

oh, and remember to use emmc binary updater instead of mtd
[Galaxy S Advance I9070 Android Development] antonio8297:
Tomorrow reupload with this command in updater-script.

Inviato dal mio GT-S5660 con Tapatalk 2
[Galaxy S Advance I9070 Android Development] Risuke:
Upload these files modified pls?
[Galaxy S Advance I9070 Android Development] RSDamasceno:
How to install this ROM?
[Galaxy S Advance I9070 Android Development] antonio8297:
See this http://xdaforums.com/showthread.php?p=31073463 and after change the command in updater-script like Diego-CH.

Inviato dal mio GT-S5660 con Tapatalk 2
[Galaxy S Advance I9070 Android Development] sander-ua:
Hi guys. Sorry for posting in this thread bu for now it's the only one suitable for our phone. Can anyone help me to get sbl.bin for our phone. I need it to reset flash binary counter. Thanks in advance.
[Galaxy S Advance I9070 Android Development] kilsmap:
for God's sake, you are a lifesaver!!! I said before that I was noob at Android Development, and you have bring light to us!!! Thank you very much, the method you pointed out here has enabled me to get the initramfs files easily!!! Now, to the rooting process!!! qzem, are you here? We are very close!! I'll post my result in a short while.
[Galaxy S Advance I9070 Android Development] jeevone:
Cheers for working on the GSAdvance

Hey guys,

Cheers to you all for working on the G S Advance!

I've been in two minds about buying this, and your forum has been the clincher.

Whats a fone without devs :)

Keep it up guys...count me in for tryouts.
[Galaxy S Advance I9070 Android Development] Mahalio:
Oh how I want to have an insecure kernel waiting for me when iget my phone back from repairs!

Great going guys!
[Galaxy S Advance I9070 Android Development] kilsmap:
ok... so for now, I have successfully created the zImage, and have also successfully flashed it to my phone through Odin (need some renaming on the zImage before TARing it), but now I'm trying to root it using DoomLord's zergRush method, but failed...so currently trying to see if i can root it any other way...
[Galaxy S Advance I9070 Android Development] foxity:
This very good news. I follow this thread from the beginning because our device is new on the market and being a dual-core, has a great potential for development.

Looking forward to new news.
[Galaxy S Advance I9070 Android Development] kilsmap:
hmmm... I think the only way to root is to include the necessary files in the zImage, and have some rooting script running when the phone boots... but that's WAY too advanced for my level...
[Galaxy S Advance I9070 Android Development] mb-14:
Since you have the zimage why don't you port CWM recovery first?

In CWM recovery you have root access on adb shell.

So you can transfer the su binary and related stuff from CWM recovery.

Check this for more info:

http://xdaforums.com/showthread.php?t=1618324
[Galaxy S Advance I9070 Android Development] kilsmap:
yeah...actually, I'm basing all my effort through your thread there... now reverse-engineering your CWM port to Galaxy Ace Plus... mind giving me some help? hehe..
[Galaxy S Advance I9070 Android Development] mb-14:
No need to reverse engineer.

I have already uploaded the device config on github.

https://github.com/mb-14/android_device_samsung_trebon

For porting CWM you need to know:

Device architecture

Partition info

Device arch is easy to find

Partition info can be obtained from the recovery.fstab of the stock recovery image(just extract it)

For partition size:

run

"cat proc/partitions"

on the terminal emulator

You can use my device config as reference

P.S. Could you post the contents of the extracted boot image?
[Galaxy S Advance I9070 Android Development] qzem:
How do I run the second script?

EDIT: When rinning a script like this rbash unpack-iniramfs.sh kernel.bin I get this error:

unpack-iniramfs.sh: line42: /dev/null: restricted: cannot redirect output

What shall I do?