yashsingh1/xdaforums huggingface dataset:
[Galaxy S Advance I9070 Android Development] bufa:
Thanks man! I've been bussy lately.

I guess we need a forum to get some devs to help us :/
[Galaxy S Advance I9070 Android Development] hackbob:
Sorry to not have been of a much more help.

I've asked some help on G+ and on IRC but it's holiday time, and most people are busy with JB porting.

I've started to understand a little bit better the building structure but I've not yet found where the hell is the call to the driver and when it's loaded.

I've even tried to use another toolchain (BTW Linaro toolchain seems to build the source without any problem) but no luck (tried that because in other kernel with same driver and similar problem after using the DooMLord's toolchain the problem with wifi was gone).

Not sure I'll be able to work on it tomorrow but on Saturday for sure hope to get some external help.
[Galaxy S Advance I9070 Android Development] pixdev:
We have one! It's just not on XDA... http://www.ra-mod.com/_groups/ select Galaxy S Advance, then Forum.
[Galaxy S Advance I9070 Android Development] diego-ch:
@hackbob, did you manage to completly build using linaro toolchain?

I tried it here but it fails.
[Galaxy S Advance I9070 Android Development] hackbob:
I've used DooMLord's compiled toolchain and in the Git there is the linaro toolchain to so I gave it a try and it build the zImage with all the driver.

To be honest I've not tried it on the phone, so I'm not 100% sure it's working but the build geve me no error.

Personally I still use the gcc toolchain while trying to figure out the wifi problem.

I can work much today on the code today because something unexpected came up.

I was thinking of copying the wifi src from the SG II and add some variables in the main makefile so that the wifi driver was build for the i9100 and the rest of the drivers for the i9070.
[Galaxy S Advance I9070 Android Development] diego-ch:
I was using the same toolchain... I'll try that again.

btw, does you phone have a /proc/config.gz ? (mine doesn't)

that file has the kernel configuration so we could find something about the wifi driver
[Galaxy S Advance I9070 Android Development] shut_down:
We need one in XDA! As I can see there is almost no activity in ra-mod forum.
[Galaxy S Advance I9070 Android Development] diego-ch:
compiled it again using doomlord toolchain.

and flashed it back to the phone but it seems like a file is missing...

when I try to enable wifi I get this on logcat:

D/WifiService( 1746): setWifiEnabled: true
D/WifiService( 1746): ****************setWifiEnabled(), allowWifi****************true
I/WifiHW ( 1746): [WIFI] Load Driver
E/WifiHW ( 1746): WIFI_COUNTRY_DRIVER_ARG enable!!
E/WifiHW ( 1746): read CSC : ZTM
E/WifiHW ( 1746): read CSC : ZTM
E/WifiHW ( 1746): read CSC : ZTM
E/WifiHW ( 1746): read CSC : ZTM
E/WifiHW ( 1746): isCountry() == normal
I/WifiHW ( 1746): [WiFi.c] insmod() Start!!
E/WifiHW ( 1746): Unable to load_file "modname": No such file or directory
W/WifiPolicyService( 1746): intent received Intent { act=android.net.wifi.WIFI_STATE_CHANGED flg=0x10000000 (has extras) }
W/WifiPolicyService( 1746): intent received Intent { act=android.net.wifi.WIFI_STATE_CHANGED flg=0x10000000 (has extras) }
E/WifiService( 1746): Failed to load Wi-Fi driver.
V/WifiSettings( 2758): resetRetryDialogVariable
V/WifiSettings( 2758): resetRetryDialogVariable

<!> E/WifiHW ( 1746): Unable to load_file "modname": No such file or directory

but the modules are in the correct place: /lib/modules/2.6.35.7+/kernel/drivers/net/wireless/bcm4330/dhd.ko

any ideas?
[Galaxy S Advance I9070 Android Development] hackbob:
I know, tried to find it everywhere but no luck-

Same here, posted a logcat some page ago, but no idea about that so I was trying to understand why on my bother sgs II the wifi is working with the same driver.

Found out the src is different but I wasn't able to replace our code with the SGS II.

Gonna try now if I can find a way to make the sgs II code work
[Galaxy S Advance I9070 Android Development] diego-ch:
OK, good news.

I decided to go back to samsung sources and try from scratch.

I built stock kernel and all drivers are working,

I'll add the recovery files and see if it will work.
[Galaxy S Advance I9070 Android Development] hackbob:
That's awesome news!

Could you please add the source to Git after your tests?

I've tried to compile samsung source yesterday but no luck.
[Galaxy S Advance I9070 Android Development] hackbob:
Still no luck for me compiling the standard Sammsung source.

Time to go to bed.

I'll try again tomorrow
[Galaxy S Advance I9070 Android Development] diego-ch:
just finished fixing the last bug (file permissions)

everything is running fine now, the kernel is attached to this post so you can try.

I'll fix the code and put it on github later =D

ps: do not flash the file with odin! extract the package and dd it to the partition

---------------------

EDIT:

I applied the modifications I did on samsung source to my github repo

but the new built kernel did not work, I get an different error with the wifi module.

So, I attached to this post a file explaining what I did with samsung's source code to get it working fine.

I hope it helps.
[Galaxy S Advance I9070 Android Development] hackbob:
Thx man.

I just woke up and installed the kernel.

Everything is working fine; time for a fast brunch and I'll try on my source
[Galaxy S Advance I9070 Android Development] hackbob:
Finally understood why I wasn't able to compile the Samsung Source... Simply wrong source, I wasn't using the _LA_GB source.

I was able to compile from source the mods posted from diego_ch and I've merged his git with mine, but the wifi is still not working and I have the same problem.

Time for dinner and I'll get back making diffs from source and git.
[Galaxy S Advance I9070 Android Development] diego-ch:
We need to clean up this kernel build process,

then we can move to cyanogenmod.
[Galaxy S Advance I9070 Android Development] hackbob:
:eek: :eek: :eek:

fixed the problem in defconfig and now the Git source compile with working wifi
[Galaxy S Advance I9070 Android Development] hackbob:
Here the commit

https://github.com/SmokyBob/android...mmit/5267fafa54325b6832b7822f73fae43782bdaa3a

I'll try re - add the J4fs to the config and see the build is still correct.

---------- Post added at 09:47 PM ---------- Previous post was at 09:27 PM ----------

Reenabled J4fs and everything it's working.

Time to get CM7 source (I had to rebuild the VM from 0 because the vhd broke) and work on that
[Galaxy S Advance I9070 Android Development] bufa:
Yay!! You made it guys! !

Congrats and thanks for yor hard work!!

Enviado desde mi MB526 usando Tapatalk 2
[Galaxy S Advance I9070 Android Development] hackbob:
Most of the kudos goes to diego-ch that was able to compile the source and to my bad luck that made me download a different souce.

I'm still downloading cm7 and probably it will fail again for low space on disk... 99% 500Mb to go... and 205MB of free space... Damn
[Galaxy S Advance I9070 Android Development] Jygar:
Is this still on going?
[Galaxy S Advance I9070 Android Development] bufa:
Yes!! It looks like now we have Rooted phone + recovery!!

it's time to start porting roms :D I guess CM7 will be the first one! :victory:
[Galaxy S Advance I9070 Android Development] antonio8297:
When you release it?

Inviato dal mio GT-Xperia S con Tapatalk 2
[Galaxy S Advance I9070 Android Development] hackbob:
Just to clarify.

We have working kernel, no recovery atm nor rom.

I've finished downloading cm7 source and this evening I'll be working on the recovery and rom.

I'm not at home today so I can't work on it
[Galaxy S Advance I9070 Android Development] Mahalio:
Look at the date and time of the previous posts and think for a bit before asking... and yes this is ongoing.
[Galaxy S Advance I9070 Android Development] kafkamd:
Hi all friends

Thanks for your efforts

I wanted to see if you're working on the kernel, or cwm ؟
[Galaxy S Advance I9070 Android Development] Unkn0wNx:
Awesome news guys, keep up the good work !

Cheers,
[Galaxy S Advance I9070 Android Development] hackbob:
For now with compiling the kernel, no mod, only being able to compile the original source.

I'll start with cwm this evening or tomorrow.

We started with kernel because it seems (correct me if I'm workg) you can't change the recovery on Samsung phone without compiling some part of kernel.

As soon as there is some changes I'll post here
[Galaxy S Advance I9070 Android Development] Thvmh:
I'm also learning how to compile the source!
[Galaxy S Advance I9070 Android Development] hackbob:
today updates.

Started working on a CM7 Device configuration after forking SGS II config.

Made some changes but I'm really tired so I'll test them tomorrow and see if something is build.

WE STILL NEED A WORKING RECOVERY before even flashing the eventually built CM7 ROM.

I wasn't able to find info about adding CWM to the kernel so I've asked for some help, hope they'll point me in the right direction.
[Galaxy S Advance I9070 Android Development] diego-ch:
my kernel source (and binary file) has twrp running fine. did you find any issue?

the only thing that did not work was mounting the phone as mass storage within recovery.

I tested making backups, wiping caches, and *probably* everything else besides installing a rom.

try turning the device on with "VolUP + Power + Home",

or running "reboot recovery" in adb shell, running a kernel built from our git sources

ps: if the phone get stuck booting only in recovery mode, flash the stock kernel back using odin.

but, afaik, chris41g removed the code inside the init scripts that was doing that.

btw, I did test CWM with the i9070, it booted, but it still have a few bugs. (a few screen issues) :(

to get that working you need to build the recoveryimage with cm7 source for the galaxy s2 i9100, (crappy workaround... I know, haha)...

then extract the recovery files from that image, replace the files in the i9070 initramfs folder, then build the i9070 kernel

I didn't have time to work on this today, I was busy all day with work stuff.

I think I'll some time to work on it tomorrow.

:D
[Galaxy S Advance I9070 Android Development] hackbob:
Sorry my bad... didn't tested if the recovery was working.

Made a Backup few minutes ago; everything ok except for a recovery reboot using the file manager on a not mounted sdcard.

Is it time to create a thread for the kernel + recovery that can be flashed using odin for all the other ppl?
[Galaxy S Advance I9070 Android Development] diego-ch:
dont know yet, :confused:

I think we need to clean up everything first.

and make sure of everything before publishing to all other ppl,

using odin is a bit tricky and, if done wrong, it can brick the device.

I'll see if I can get cwm working today. :)
[Galaxy S Advance I9070 Android Development] JackStow:
i think before you publish something you can contact some administrator and try create a subforum for our device.. it will be very good, for us and for you..
[Galaxy S Advance I9070 Android Development] hackbob:
There was a pool about the new forum some pages back.
[Galaxy S Advance I9070 Android Development] JackStow:
yes, but you and diego, as a developer, can try it
[Galaxy S Advance I9070 Android Development] hackbob:
About CWM recovery; user ogromanas sent me a link to teamhacksung git for clockworkmod recovery for our device

https://github.com/teamhacksung/GT-I9070_ClockworkMod-Recovery

Sharing the info; I'll test it later today
[Galaxy S Advance I9070 Android Development] diego-ch:
nice! I'll test that now!
[Galaxy S Advance I9070 Android Development] varun.chitre15:
Has anyone got a luck to extract system.img from system.img.md5?

7z and winrar both failed

Btw is recovery done? I was planning to put up a test build if its not done :)
[Galaxy S Advance I9070 Android Development] antonio8297:
Would extract you a system.img?

Inviato dal mio GT-Xperia S con Tapatalk 2
[Galaxy S Advance I9070 Android Development] diego-ch:
you need to use ext4 utils first to convert from ext4 sparse image to ext4 before mounting/extracting

I'm compiling the source from teamhacksung now,

but their code seems pretty clean, I think it's going to work fine.

---------- Post added at 03:35 PM ---------- Previous post was at 03:35 PM ----------

that's how I rooted the device without triggering the binary counter =D
[Galaxy S Advance I9070 Android Development] varun.chitre15:
I made a typo... :D

I meant did anyone succeeded to extract system.img from system.img.md5 :p
[Galaxy S Advance I9070 Android Development] diego-ch:
that's how I rooted the i9070,

extracted the system.img then pushed the su binary and flashed the new image with heimdall

take a look at xanonus post: http://xdaforums.com/showpost.php?p=28202160&postcount=99

thats how I did it.

update:

I compiled the source from teamhacksung and the generated zImage doesnt have wifi working.

the device booted in recovery but the screen is black, cant see anything.

fyi: you need to create a directory named 'out' otherwise the build script will fail at line 33
[Galaxy S Advance I9070 Android Development] antonio8297:
for working wifi need to recompile wifi drivers,or this not work.
[Galaxy S Advance I9070 Android Development] diego-ch:
I rebuilt the kernel and reflashed it back to the phone...wifi is working!

dont know what was wrong the first time. strange...

btw, I changed the partition mapings inside the recovery.fstab on hacksung code,

/boot and /recovery were mapped to param and modemfs instead of kernel and kernel2
[Galaxy S Advance I9070 Android Development] hackbob:
Good news!

Is the CWM working properly (no black screen)

On my end I'm nearly done with CM7 configuration for the phone... trying to build it now with the Kernel + TWRP recovery
[Galaxy S Advance I9070 Android Development] antonio8297:
@ diego-ch from what I can see by opening the fw, the recovery and the kernel at boot time can not be divided in two different packages, all but two in the kernel.

for easy resetting the counter, wait for ics and use the app chainfire to reset the counters.

this device have a efs partition?
[Galaxy S Advance I9070 Android Development] diego-ch:
yes. partition map is here: https://github.com/diego-ch/GT-I907...mmit/48acc82d866bb6a86796499ec649a07dc95d2748

---------- Post added at 06:05 PM ---------- Previous post was at 06:02 PM ----------

did it work properly? dont know whats wrong here...

did you change the recovery.fstab like me?
[Galaxy S Advance I9070 Android Development] hackbob:
Sorry mine was a question ... lost question mark

I've seen you have made some changes but I have made some changes to CM7 configs so I was trying to fix them before giving a try with CWM.

Still something on my end needs to be fixed
[Galaxy S Advance I9070 Android Development] hackbob:
Still no juice for today.

I have some error because some file extracted from the SGS II are not present in our phone but in some step of the build process it try to use them to build stuff.

Need to figure out which variable is the culprit.

I'll update the github repo tomorrow to tired now
[Galaxy S Advance I9070 Android Development] hackbob:
A little update.

I've updated my github repos for CM7 with the configs I've made till now.

The code seems to be compiling fine and for some minutes, until I get an Error on odexing the contacts.apk :confused:

I'll try to look into this tomorrow as soon as I get back to home.
[Galaxy S Advance I9070 Android Development] diego-ch:
I`m working on the CWM kernel,

but I`m getting module mismatch after building the new modules with the new kernel.

so, no wifi right now. :S

ClockworkMod-Recovery is working fine, except for this strange behavior:

When I start the device in recovery, I get the boot logo, then the screen goes black.

but while the screen is black adbd is running, so if I start adb shell and run killrecovery.sh, cwm starts fine
[Galaxy S Advance I9070 Android Development] petraru1:
tnx for your effort, i can`t wait to test it and i hope more developers start working for this device because it has a lot of potential

#LE: i saw a tweet from samsung saying that later this year will be a official ICS update
[Galaxy S Advance I9070 Android Development] bufa:
That's nice, But we need custom roms :)

I'm thinking about buying the new xiaomi m2 phone, I looooooooooove miui and that's their phone... but I'd love to have MIUI on my SGSA too :p
[Galaxy S Advance I9070 Android Development] soraxx:
S advance, beam, ace 2 too?
[Galaxy S Advance I9070 Android Development] diego-ch:
that's what I want too !

miui running on my SGS Advance :D

miuibrazil team was interested on porting miui to this device

but, as we already know, we need a working recovery and that's why I'm working on this.

I managed to figure out why the modules were not working,

it was just a matter of build order, my new build script works fine.

It even compiled using linaro toolchain,

but that seems to be causing a problem with the wifi driver,

because as soon as the dhd module is loaded and the wifi is enabled, the phone reboots.
[Galaxy S Advance I9070 Android Development] bufa:
F*cking wifi driver!!! :eek:

MIUI > all :D
[Galaxy S Advance I9070 Android Development] antonio8297:
where is the recovery.fsab?i need this

thanks
[Galaxy S Advance I9070 Android Development] diego-ch:
which one? default or modified?

parted output:

# parted /dev/block/mmcblk0 print

Model: MMC SEM08G (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
10 524kB 1573kB 1049kB PIT
6 1573kB 3146kB 1573kB CSPSA FS
7 4194kB 14.7MB 10.5MB ext4 EFS
2 14.7MB 31.5MB 16.8MB ext4 Modem FS
14 32.5MB 34.6MB 2097kB SBL
16 34.6MB 36.7MB 2097kB SBL_2
1 36.7MB 53.5MB 16.8MB PARAM
12 53.5MB 55.6MB 2097kB IPL Modem
13 55.6MB 72.4MB 16.8MB Modem
15 72.4MB 89.1MB 16.8MB Kernel
17 89.1MB 106MB 16.8MB Kernel2
3 106MB 748MB 642MB ext4 SYSTEM
5 748MB 2895MB 2147MB ext4 DATAFS
4 2895MB 3216MB 321MB ext4 CACHEFS
9 3216MB 3552MB 336MB ext4 HIDDEN
11 3552MB 3604MB 52.4MB Fota
8 3604MB 7809MB 4205MB fat32 UMS

stock /res/recovery.fstab

[device]
# mount point	fstype	device	format option	mount option
/efs	ext4	/dev/block/mmcblk0p7	default	default
/cache	ext4	/dev/block/mmcblk0p4	default	default
/system	ext4	/dev/block/mmcblk0p3	default	default
/data	ext4	/dev/block/mmcblk0p5	default	default
/sdcard	vfat	/dev/block/mmcblk0p8	default	default
/preload	ext4	/dev/block/mmcblk0p9	default	default

[format]
#index	option
rfs16	"/sbin/fat.format -F 16 -s 1 -S 4096"
rfs32	"/sbin/fat.format -F 32 -s 4 -S 4096"

[mount]
#index	flags	options
rfs_opt1	nosuid,noatime,nodev,nodiratime	"check=no"
rfs_opt2	nosuid,nodev	"check=no"

custom /misc/recovery.fstab

# mount point	fstype	device

/boot	emmc	/dev/block/mmcblk0p15
/recovery	emmc	/dev/block/mmcblk0p17

/efs	ext4	/dev/block/mmcblk0p7
/cache	ext4	/dev/block/mmcblk0p4
/system	ext4	/dev/block/mmcblk0p3
/data	ext4	/dev/block/mmcblk0p5

/emmc	vfat	/dev/block/mmcblk0p8
/sdcard	vfat	/dev/block/mmcblk1p1
[Galaxy S Advance I9070 Android Development] diego-ch:
ok, here we go..

good news... I fixed the problems with the wifi driver!

TWRP working properly, except mounting the phone as usb mass storage.

bad news... j4fs driver is not working problerly.

it get's loaded but the partition doesn't get mounted,

but I was told that it doesnt matter that much, as the system doesn't use it.

@hackbob, @antonio8297, take a look at my new sources to maybe we can find the j4fs bug.

https://github.com/diego-ch/android_kernel_samsung_janice.

here's the error I get when the system tries to mount the bootloader partition (mmcblk0p1)

<4>[ 11.292633] j4fs: module license 'unspecified' taints kernel.
<4>[ 11.292694] Disabling lock debugging due to kernel taint
<4>[ 11.304260] FlashDevMount : filp_open() OK....!
<3>[ 11.304992] init: SEC_DEVENC ***[/dev/block/mmcblk0p1][0]
<4>[ 11.321380] fsd_reclaim 1291: MST is not recognized(mst.magic=0x00000000)
<4>[ 11.321472] fsd_reclaim 1292: MST is not recognized
<4>[ 11.330596] [<c07b484c>] (unwind_backtrace+0x0/0xf0) from [<c0c9d51c>] (dump_stack+0x10/0x24)
<4>[ 11.330749] [<c0c9d51c>] (dump_stack+0x10/0x24) from [<bf003ac8>] (fsd_reclaim+0x3bc/0xe40 [j4fs])
<4>[ 11.330932] [<bf003ac8>] (fsd_reclaim+0x3bc/0xe40 [j4fs]) from [<bf0017bc>] (j4fs_fill_super+0x2e0/0x364 [j4fs])
<4>[ 11.331054] [<bf0017bc>] (j4fs_fill_super+0x2e0/0x364 [j4fs]) from [<c08916c8>] (get_sb_bdev+0x110/0x16c)
<4>[ 11.331176] [<c08916c8>] (get_sb_bdev+0x110/0x16c) from [<bf0002f8>] (j4fs_get_sb+0x58/0x6c [j4fs])
<4>[ 11.331298] [<bf0002f8>] (j4fs_get_sb+0x58/0x6c [j4fs]) from [<c08904a0>] (vfs_kern_mount+0x58/0x108)
<4>[ 11.331390] [<c08904a0>] (vfs_kern_mount+0x58/0x108) from [<c0890594>] (do_kern_mount+0x34/0xd8)
<4>[ 11.331481] [<c0890594>] (do_kern_mount+0x34/0xd8) from [<c08a7b94>] (do_mount+0x7a4/0x848)
<4>[ 11.331604] [<c08a7b94>] (do_mount+0x7a4/0x848) from [<c08a7cbc>] (sys_mount+0x84/0xc4)
<4>[ 11.331695] [<c08a7cbc>] (sys_mount+0x84/0xc4) from [<c07ad740>] (ret_fast_syscall+0x0/0x30)
<4>[ 11.331848] fsd_reclaim 1607: Error(nErr=0x00000000)
<4>[ 11.331909] fsd_reclaim 1612: j4fs_rw_start is set to default value(128KB)
<4>[ 11.332031] j4fs_fill_super 1311: Error(nErr=0x40000000)
<6>[ 11.366668] param_init
<3>[ 11.366760] lfs_param_op: filp_open failed. (-2)
<3>[ 11.366821] param_init(358): Loading parameters failed. Parameters have been initialized as default.
[Galaxy S Advance I9070 Android Development] 冷。咖啡:
...

Hi, I press Vol_up + HOME + Power and hold the keys, the screen goes black. But when the boot logo appeared, I released the keys, and hold them again, I entered the Official Recovery .The screen didn't go black.

Can we get the ClockworkMod-Recovery and flash it now? :victory:

Sorry for poor english..
[Galaxy S Advance I9070 Android Development] hackbob:
Finally some time to work on the phone.

@diego-ch: Forked your repo to tampering with the code, if anything good came out I'll request a push on your repo :)

j4fs was not included in original kernel source maybe we are missing some configs? I'll look in to it this afternoon.
[Galaxy S Advance I9070 Android Development] hackbob:
@diego-ch : downloaded your code and build it without a problem, dd and runing smooth

lsmod says j4fs is loaded. From which log have you extracted the J4fs error?

I haven't found any error in logcat nor in /proc/last_kmsg...
[Galaxy S Advance I9070 Android Development] diego-ch:
the module does get loaded but the partition mmcblk0p1 doesnt get mounted ( check 'mount' output )

that log is on kmsg ( dmesg ) in the begining of the log.

when it's mounting all partitions. you can see the other ones getting mounted but not mmcblk0p1
[Galaxy S Advance I9070 Android Development] hackbob:
After some test and comparison with other SG kernel sources I wasn't able to find why the j4fs kernel is not working.

I'll work on it tomorrow evening
[Galaxy S Advance I9070 Android Development] hackbob:
Wasn't able to sleep so I've researched and found that in other cases the module is not loaded because no licence is specified in the code.

Modified my git code with a MODULE_LICENCE ="GPL" in the j4fs makefile and my kernel mount correctly (even if in the code is present

j4fs: module license 'unspecified' taints kernel

)

Speed tested on diego-ch source but still not working.

I'll compare my git and diego-ch's tomorrow to see if there are any other changes

Edit: git Commit
[Galaxy S Advance I9070 Android Development] pplu18207332:
hi ,what's the difference between twrp and CWM?Don't they have the same function? as you say,twrp already has no bugs!!
[Galaxy S Advance I9070 Android Development] diego-ch:
basically they have the same purpose,

personally I think twrp is more user friendly. but that's just my opinion
[Galaxy S Advance I9070 Android Development] galaxy advance:
twrp much better if you can work on it
[Galaxy S Advance I9070 Android Development] hackbob:
I agree on that but would be nice ro have CWM too for a full CM Experience.

Back at home now starting to work on it in an hour