yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Player 4.0, 5.0] oisis:
Hi there,

Can somebody update first post with status, what is working and what not, what need to be done etc.

Will try to help you. Thanks.

EDIT1:

About kernel:

Will be really difficult to port kernel-3.0(and will take a long, long time even for realy good coder, can be 500-1000 hours of coding) so best idea is to take working kernel sources from i9000 and port only drivers, if i'm not wrong you have kernel 2.6.35.X. It is can be done quiet easy. ICS can run on kernel 2.6.35 without problems.

About the rom:

We have to check this website: http://opensource.samsung.com and see what Samsung is giving to us. We can use this link: https://github.com/tdm to build new or use existing config file to set up build evn for CM9, i prefer CM9 or AOKP because have some expirience with that and is better than clena AOSP.

Secound idea is to take rom from i9000, and change stuff that needs to be changed like kernel etc and try to run it.

What do you think about my idea and future plan?

Sorry for my english but is not my mother language.
[Samsung Galaxy Player 4.0, 5.0] hanthesolo:
The OP is actually updated: we don't have a booting kernel yet, and rom development cannot be started until the kernel boots (zaclimon can tell me the kernel progress in detail if you want).

What's your experience? ATM, we are compiling form source and editing C-coded files, so it's a bit hairy.

Oh wait, are you the I9001 dev zaclimon was mentioning? NVM then, I will get zaclimon to tell me the details, and hopefully we will be able to get a more detailed synopsis into the OP.

Edit about your edit:

I *think* that porting only the drivers may have been what we were doing (or at least what I was suggesting to zaclimon), but hopefully with you guiding that it will go a LOT faster.

A brief background of the ICS conundrum:

I created this thread to unify all the ICS efforts, in the hope that things will get going. Then, zaclimon joined me, and a few people started swapping ideas, although nothing substantial. This thread went quiet for awhile, then neyodmium came onto the scene and has been trying to help zaclimon create a working kernel. At the moment, we have a kernel/cm9 build that boots into recovery, but fails to boot Android. Zaclimon and Neyodmium have been rather lax about posting the details as to exactly WHY it isn't booting (info such as dmesg and last_kmesg for example), but we have been working hard. As a result of this, we do not know whether it is not booting due to the kernel, CM9, or some partition issues.

Teamhacksung's source was used to build the recovery-booting kernel, and other sources/configs for various SGS revisions has been used without success. I believe zaclimon was going to attempt to use semaphore's source (I believe), but there has been to reports about that yet.

Feel free to correct me, as I am not a part of the kernel development process (I am solely a ROM dev, I do not know anything in-depth about kernels. I do NOT have compiling working on my PC at the moment, although I am learning/fixing that. My plan currently is to port I9000 roms, as that will be easier, then compile from source later on, or if that doesn't work. If you look at my signature I have managed to do it with GB roms, so it should be possible, but I do not know for sure.), so zaclimon and neyodmium can fill you in better than I can.

Other info: we have been trying to use the 3.0.xx kernel due to the fact that it supports HW acceleration, and a few other ICS features that the 2.3.35.x kernel does not (I don't know if that can be backported, but I would think it's highly unlikely).
[Samsung Galaxy Player 4.0, 5.0] oisis:
So you have working recovery, and when you try to boot ICS it stops on Samsung logo i gues. I build once kernel that in boot time shows mesg on the screen so can tell us what is going wrong with kernel or we can use emulator to check this on PC. I'm just downloading sources form Samsung page and will take a look on that. I think that i will find there kernel sources so we will have almost all drivers. Then i'm going to download some i9000 kernel sources and compare configs. Then will try to port missing drivers from Samsung kernel to i9000 kernel and build it. Then going to use some boot.img, split it and build new one with built kernel for YP-G1 and we can make some tests with it. Even if rom will not start up we will know that kernel is ok. This is my plan for future :).

Need output from this command:

Thanks
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Well actually using the 3.0 kernel, It can't reboot into recovery at all (I see a samsung logo then diseappears and then reapparing 30 secs later and bootloops like this) I can get to recovery with the current 2.6 kernel but adb isn't working period. (I'm not stuck in samsung I get in recovery with this error):

failed to open /sys/class/android_usb/android0/state: No such file or directory

I have no problem using storage. I contacted teamhacksung and they said to backport the 3.0 usb gadget drivers. (I've been trying to port it but I got errors) Then I contacted stratosk from semaphore and then he said that I need to use the 3.0 kernel. Maybe we have to correct these errors first right?
[Samsung Galaxy Player 4.0, 5.0] oisis:
Could you give me output from this command, running stock rom:

adb shell uname -a

I prefer to use the same kernel series like in stock rom, will be easier i think. Just waiting for download file from samsung opensource site. Download is really slowly :(.

In the same time i'm looking for some i9000 kernels 2.6.35.X.

I think and i'm almost sure that will be easier to prepare kernel 2.6.35 for ICS than port 3.0 for your device.

We need to find ICS with 2.6.35 kernel for i9000.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Here it is:

Linux localhost 2.6.35.7-G1XXKPN-CL562447 #TerraSilent_intl-1.3.5 PREEMPT Fri Jun 22 10:20:10 CEST 2012 armv7l GNU/Linux

EDIT: I forgot that I'm using terrasilent but if you want stock one here it is:

Linux localhost 2.6.35.7-G1XXKPQ-CL700402 #2 PREEMPT Tue Nov 1 09:40:53 KST 2011 armv7l GNU/Linux
[Samsung Galaxy Player 4.0, 5.0] oisis:
So believe me it will be easier to use kernel 2.6.35.7 or 2.6.35.14 for ICS, i9001 ICS roms are working on 2.6.35.14 kernel and is ok.

So let's try this way:

1. Download kernel sources from Samsung opensources site

2. Look for kernel sources and boot.img 2.6.35.7 or 2.6.35.14 from i9000 working with ICS

3. Compare kernel configs

4. Port missing drivers from Samsung kernel sources to i9000 sources

5. Check ramdisk and maybe use it for new kernel

6 Try to boot

Sounds easy but not so stupid, i think :). What do you think about my plan?
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
It can work but the problem is the I9000 is using the 3.0 kernel instead of 2.6.x So isn't it better to backport? Also it seems that the teamhacksung made the biggest of the work for the porting. So I was thinking why we don't use the 3.0.x kernel instead?
[Samsung Galaxy Player 4.0, 5.0] oisis:
Found some kernel for i9000 from 2.6.35 series:

https://github.com/pawitp/samsung-kernel-aries

https://github.com/syndtr/samsung-kernel-aries

https://github.com/clandmeter/samsung-kernel-aries

Not sure that is for ICS but created new thread with question about kernel 2.6.35 for ICS. Let's search for something like that and wait maybe somebody will give us answare.

So it is possible i think :) and there is no need to make life harder :).

I checked TDM vendor files and repo is empty so we will need to fix it, i think that base will be vendor for i9000 but it is for later.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Alright :D. Is it possible to use the drivers from the I9001? Also did you see my PM?
[Samsung Galaxy Player 4.0, 5.0] oisis:
No you cannot use drivers from i9001 because is totaly different hardware, better will be use from Samsung kernel from samsung opensource site :), everything is ready there so we don't need them from others devices. Just checking sources. I saw your PM, check yours :).

Got sources from Samsung, **** downloaded from Froyo so have to one more time from GB. There is kernel(2.6.32.9 becaues is froyo) so everything is going in good direction :).

Boardname is Palladio?

I need one more info:

or

Need to know names of modules used by samsung, can be useful later on.

Will take a look on sources, need to find board config file, this will be the most important file for us. Should be something like: board-palladio.c
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Actually we don't know the board name. In the build.prop it is named YP-G1 but I think it is palladio and I uploaded GB kernel sources here (can be faster):

YP-G1 kernel GB source download

Here's for lib modules:

storage.ko

scsi_wait_scan.ko

rfs_fat.ko

bthid.ko

fsr.ko

param.ko

dhd.ko

fsr_stl.ko

rfs_glue.ko

vibrator.ko

zcache.ko

j4fs.ko

Si4709_driver.ko

ansi_cprng.ko

And for /system/lib/modules

Well there's no directory named like this.

As for palladio, I just saw a header file which is

gpio-palladio-kor.h

It uses mostly the mach-s5pv210 like the I9000 and the nexus s.
[Samsung Galaxy Player 4.0, 5.0] oisis:
Is one from samsung website, right?

EDIT:

Yes, name of board is Palladio for 100%, board config file is here: arch/arm/mach-s5pv210/mach-palladio.c.

So this directory: arch/arm/mach-s5pv210 is the most important for now.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Yes
[Samsung Galaxy Player 4.0, 5.0] oisis:
Ok so information from me:

Board name: Palladio,

Board config file: arch/arm/mach-s5pv210/mach-palladio.c

Touchscreen: qt602240

Radio FM driver: SI4709

WiFi driver: Broadcom 4329

Acceleration Sensor: BMA222

I2C controller: S3C2410

Battery driver: s5pc110 MAX17040

PMIC: LP3974

Camera: S5KA3DFX, ISX005

Framebuffer: S3C

GPU: PowerVR SGX 3D

Audio Drivers: Samsung S5P

We will need this drivers in kernel. Will try to build kernel tomorrow, today is late in PL so have to go to bed now.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Alright thanks for the help!! but isn't the drivers for the audio are WM8994?

EDIT: Nvm you checked the froyo kernel source.
[Samsung Galaxy Player 4.0, 5.0] oisis:
I checked kernel from GB and they are using Aries config and Aries board config file. So maybe will be easy to use kernel 3.0.X too. Have to build kernel and we will know.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
Nice guys.

You guys are doing very good job, but I'll try it more.

But I'll try 3.x kernel some more.

zac: the problem is I can't really get into recovery at all. After battery remove and 3-button-combo = bootloop.

The bootloop is really hard that the lcd backlight turn off (It means the real black.)

I compiled it with semaphore source and it has same file size as semaphore kernel that stratosk released.

So I'm thinking about the possibility of different recovery, so I'm gonna modify it.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Yes I got this when using the 3.0 source me too, this is why we decided to use the 2.6 kernel.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
maybe

Oh...... I think I got it.....

Galaxy player doesn't have bml12 partition, which works as /radio in cm9, and it is modem.bin

I think that result bootloop into recovery.....right?
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Well in my pit I do have the modem.bin so I don't think it's this.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
But

But in my pit, I don't have it. I have only bml1~11.

Confusing......
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
It's confusing indeed... Check to see if you have modem.bin in it.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
In recovery, there are partition radio, which is modem.bin
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Which recovery, in aries sources?
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
yeah, stratosk's one
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
The thing is the recovery isn't packed into the kernel sources. it's in the boot.img when you compile CM9. We need to modify maybe some files in the kernel (we need to find which ones) This is why we are using the 2.6 kernel. Because all is already made for the device. We just need to backport things and it's done.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
but stratosk had made a package of ramdisk as files so when I use it I can make what I'd like to make.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Oh yeah it's true I remember. It's not the recovery we have to change, it's the init files most likely.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
But I can remember that galaxy s and galaxy player actually don't have any partitional differneces.
[Samsung Galaxy Player 4.0, 5.0] oisis:
Recovery is something else, it is recovery.img and inside you have OS(recovery) and kernel. We need to build working kernel, take recovery.img from i9000, swap kernel inside, check files especially /etc/recovery.fstab if you have different partition table and build new recovery.img. Then we will have working CWM recovery and working kernel for ICS.

Do you have working CWM recovery for your device? If not we will have to make this first.

We have some info about kernel and drivers and now we needs info about partition table to make recovery:

You can check partitions table by this commands:

and

Then we can compare it with i9000 partitions. Will try to build kernel and waiting for info about CWM and partition table from you as i don't have this device.

This recovery can be used: http://xdaforums.com/showthread.php?t=1643384 ??
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
There's only difference in bml12, modem part.
[Samsung Galaxy Player 4.0, 5.0] oisis:
Ok, So one maybe stupid question :).

If your hardware and partition table(radio is not included in to custom roms) is the same like in i9000 did you try to install ICS rom from i9000? If yes what was result of that? Could you make logcat?
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
Actually I'm stuck at that point.

Mtd cm9 needs to reboot after flashing kernel. But originally, recovery has to be accessed but in 4.0 it doesn't work for some unknown reasons. I'm trying to fix it, but recovery is not my job so I'm in hard time.
[Samsung Galaxy Player 4.0, 5.0] oisis:
Did you try to use Clokworkrecovery?

Download from Market: ROM Manager.

Run Rom Manager --> Flash ClockworkMod Recovery --> Galaxy S i9000

and then you can make backup for example:Backup Current ROM if it will works means that we can use recovery form i9000.
[Samsung Galaxy Player 4.0, 5.0] oisis:
Somebody tested it already?
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Its not working because you use the 3.0 kernel right?
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
No, you said that it booted when using 2.6.35.7 ramdisk. So I'm thinking of some init problems.
[Samsung Galaxy Player 4.0, 5.0] oisis:
Inits for GB and ICS are different so can be. Will try to build whole ROM soon. Will use github mtd.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Maybe because your device is korean?? There's some things that needs to be changed (I think)

---------- Post added at 11:02 AM ---------- Previous post was at 10:35 AM ----------

I'll download the CM9 sources today (nvm for the data caps :D)
[Samsung Galaxy Player 4.0, 5.0] oisis:
Kernel is different for Korean so that is why didn't boot. I think you have a little bit different hardware.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
But my 4.0 boots when flasing eur rom, with no errors. I think it is just some init problem of recovery. I'll be working hard, even I'm thinking of building with my Core 2 Duo Trashㅜㅜ
[Samsung Galaxy Player 4.0, 5.0] oisis:
I have Core2duo, 3GB RAM, HDD 5400RPM, Kubuntu 12.04 x86_64 and build time is around 5h so not so bad. If you will need help with building just PM me will try to help. I'm going to do the same in this week.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
Further more, I'm using vmware so I should offer another person to build. Lollol
[Samsung Galaxy Player 4.0, 5.0] oisis:
Vmware is not best choice :). Hard drive I/O will be low so compilation time can grow but it is worth to try. I'm using VMWare a lot but not for compilation.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
I'm using AMD athlon X2 with an nvidia 6150LE running native linux (I prefer use all the power of the computer for compiling) :D. Also oisis and neo I can send you my modified device tree mostly based on tdm one.
[Samsung Galaxy Player 4.0, 5.0] hanthesolo:
Aaaand I'm using a pentium...m, with a 4200 rpm HDD...and Intel integrated graphics. Which is why I don't compile. I need a new laptop :D.

My nexus is actually more powerful than my laptop in many tasks (not just software-optimized, I have run benchmarks and ported games running the same/higher settings), which is really sad.

Anyway, I just wanted to tell you guys that I will not be able to contribute signifigantly anymore, as highschool is starting up in full this week, and I need to devote all of my time to my education, not to these forums, sadly.
[Samsung Galaxy Player 4.0, 5.0] oisis:
If you could will be nice. Have already downloaded sources and now i'm going to build first version based on tdm github. Will let you know if will finish with success.

EDIT:

Had some one small problem but passed it so still building. Hope will finish with success.
[Samsung Galaxy Player 4.0, 5.0] trainman261:
If you guys need a quicker computer, I should be getting my new computer from warranty back in the next week, which has a nice and speedy Ivy Bridge i7 (7.3 WEI) inside - I would be ready to do some compiling on it, I'll just need some instructions.
[Samsung Galaxy Player 4.0, 5.0] oisis:
First build finished with success, link to ROM will publish soon when will have access to computer. Now somebody will have to check it and test it because I don't have this device. I built this ROM with clean tdm github as a base.
[Samsung Galaxy Player 4.0, 5.0] oisis:
Here you have first build. Download link: YPG1-CM9-OiSiS-build-01.zip. Somebody have to check it, try to boot and report. I need also full logcat and dmesg.
[Samsung Galaxy Player 4.0, 5.0] S_m_O_k:
Continuously loaded into Recovery CWM. System will not boot. Problem in the kernel
[Samsung Galaxy Player 4.0, 5.0] oisis:
Is it possible to make logcat, or any other logs?

I think is recovery or kernel problem, maybe not kernel but more initramfs and recovery. Kerenl configurations looks ok. Will try to do something with that. Here is initramfs-YPG1, we have to compare it with i9000 initramfs which looks like(more/less) this one: i9000.
[Samsung Galaxy Player 4.0, 5.0] S_m_O_k:
if you press the reboot system now reboots recowery, no start system.

to flash a custom kernel, then again to flash your kernel and starts.

launched CM9, not working USB connection to PC

I will watch that is not already running.

log do not know how to look.

Root problem.

Sorry for my English
[Samsung Galaxy Player 4.0, 5.0] theraf:
wait so you managed to boot or are you stuck in recovery??

edit: tried flashing it, i get assert failed: getprop (ro.product.device) == "YP-G1" || getprop (ro.build.product) == "YP-G1" || getprop (ro.product.device) == "yp-g1" || getprop (ro.build.product) == "yp-g1" E:Error in /sdcard/YPG1-CM9-OiSiS-build-01.zip (Status 7) installation aborted
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
I'm now trying to do it with bml, which is based on stock init.
[Samsung Galaxy Player 4.0, 5.0] oisis:
It is possible to boot with stock recovery and copy all files via adb? Would like to take a look on that. Thanks.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
I saw infusr 4g and galaxy tab did like that so, I would like to.integrate stock init+3.0kernel

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

BTW did your ics boot?
[Samsung Galaxy Player 4.0, 5.0] oisis:
Do you have bootable kernel-3.0? They integrated stock init form ICS or from GB?

I don't have this device so i cannot test it :(. That is why i can only make some research, build ROM, make some ideas etc. My device i9001 is totaly different than yours and even than i9000. In i9001 we don't have initramfs even :).
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
I didn't try yet but to match with rom, I should use 3.0 kernel. And I think they did it on stock kernel
[Samsung Galaxy Player 4.0, 5.0] theraf:
should i try with a different kernel?
[Samsung Galaxy Player 4.0, 5.0] oisis:
Remeber about kernel that you probably will not be able to use stock kernel from GB to CM9 ICS because ICS need some thinks switched on in kernel, also CM need something too. That is why i wondering that you can use stock initramfs files without modification.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
Thats cool.

Then what method you used to port your test rom?

---------- Post added at 03:28 PM ---------- Previous post was at 03:24 PM ----------

Well I should modify some, I will.

But the main point is that other did, so why can't we?
[Samsung Galaxy Player 4.0, 5.0] oisis:
If you asking me :) than i used tdm github and CM github and builded ROM, now will have to check output compilations files to check what is going on in kernel and initramfs. But need some stock files to compare. After compilation you have all recovery files in one dir so you can check them and find out how it is working and make some fixes.

Could somebody share recovery/initramfs stock files? Thanks.
[Samsung Galaxy Player 4.0, 5.0] Neodymium:
Well What I should modify is init cuz I didn't modify kernel a lot from the original from cyanogenmod. I will try with stock-modified ramdisk+3.0 kernel. If this fail, I should build.
[Samsung Galaxy Player 4.0, 5.0] oisis:
Ok but if you will use i9000 kernel-3.0 will fail because you have different screen drivers if i'm not wrong. Check it first.

Maybe better idea will be user initramfs with your kernel because if you will have to port drivers for screen to kernel 3.0 it will not be so easy.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
But isn't there an equivalent screen driver in the 3.0 like for the touchscreen drivers?
[Samsung Galaxy Player 4.0, 5.0] oisis:
Just compare included drivers in stock and 3.0 kernel. If you have all of them in 3 just test it. In initramfs you have partition definition this is important if will be wrong you can damage device.
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
Alright then we can try to base ourselves to the galaxy tab (1st generation) It has nearly all the same components like the I9000 and YP-G1. Link to a kernel dev github:

https://github.com/alterbridge86
[Samsung Galaxy Player 4.0, 5.0] theraf:
@zaclimon have you tried flashing the rom?
[Samsung Galaxy Player 4.0, 5.0] zaclimon:
I already have tried flashing from tdm's base once. I got stuck at recovery, however I will retry. Oisis, did you modify the tree?
[Samsung Galaxy Player 4.0, 5.0] oisis:
No it is my first build for your device do I would like to check that this sources will build. Now will try to make some changes.

Have one more idea. Once I compiled kernel without boot logo and had all kernel errors on screen. So maybe you could do the same. Just in menuconfig go to Device drivers and to Graphics drivers and uncheck boot logo. Don't remember exactly now but I done something like that. Will try to repeat this and tell you how to do that. Will helps us a lot, I think.