yashsingh1/xdaforums huggingface dataset:
[XPERIA X8 Original Android Development] pilu1978:
@sgt. meow: make a differental patch to the original code, it will be easy to upload, a typical .diff patch is only few kb, not need to upload the whole source if you have low bandwith. Everyone who can understand the code can see the changes from a simple patch. :) Just refer to the original source tree (for example, if you start your kernel from nAa-JB-03, link to the original source tree: https://github.com/nobodyAtall/nAa-kernel-jb/tree/34314c21c1f8fa8c6088348ddcf065129c5d7851) and give a download link to the uploaded .diff patch. :) If you not have enough linux experience, use google and search how to use diff and patch commands. ;)

partially off-topic: guys, better if you try to be a little bit more professional. :) Fighting like a kids in the kindergarten (who can say with higher volume: this is MY IDEA, fighting on names for the ideas what have one different letter (nBoot/oBoot) between meow and feherneoh, challenge between Daveee10 and meow: who publish the first kernel with TWRP, or something similar idiot fighting) is a little bit pitiable in the original dev section. :( If you have an idea, and not want to share it with others, finish it and publish before start to talk about this. Little note: I share my ideas about a hybrid kernel what can boot with roms with different api level with multiple ramdisks more than 2 months ago (you can check it: http://xdaforums.com/showpost.php?p=34060289&postcount=37). If anyone use it, I will happy, and I NOT need anything (thanks/credits/etc). Be careful before sell anything as "this is my world winner idea". ;) Android is FREE. :) You can use anything. But if you use anything from other member, be elegant and give proper description about your work. Maybe need to re-read the forum rules. :) Absolutely NOT important for me, but you ignore the forum rules with TWRP. Both kernel what use it, miss the link for the original work. Don't do similar errors. :) If a moderator check your thread, you can get a warning or other penalty. :)

absolute off-topic: NO!!! I'M NOT AN IDOL! ;) I'm only a member who want help others with ideas, solutions. :)

Finally: BE CAREFUL! :) If you not 100% sure, or you not understand something, DO NOT USE! :) Before use it, search tutorials/documentations or ask from experienced members. Like the sd card bug with TWRP. Two dev, two kernel, one bug. In the TWRP thread EVERYONE can see ALL instructions, but nobody use it. :( Now I'm a little bit sad, because lot of member identify this (solved) bug with the TWRP recovery... So, read everything again and again before use it, don't do stupid bugs like mount something before use chroot command, or similar things. :)

P.S.: I write it as constructive criticism. :) You (sgt. meow) maybe too young, but at least try to do something valuable for the x8 community. ;)
[XPERIA X8 Original Android Development] sgt. meow:
I agree with you pilu1978. I will create a .diff patch then (I need to read up on that).

I am young (just 14) and have tons to learn. I just thought it would be better to get help within a thread. And everyone please keep in mind, I never mean to argue with anyone. I try to learn from my mistakes. Android evolves everyday (almost) and I have a lot more to learn, but I try my best.

I hope you all understand.

Back on topic now.
[XPERIA X8 Original Android Development] sgt. meow:
And the JB-ICS kernel works!! Will release it after a few more days of testing. Lots of bugs to solve.
[XPERIA X8 Original Android Development] pilu1978:
Don't worry, I understand you. :) You know, if I can, I will help, but sometime need to do a warning (not only for you), if your "career" in xda turn to wrong direction. ;)
[XPERIA X8 Original Android Development] sgt. meow:
@feherneoh

None in the first 4-5 minutes. Works superb. The WiFi problem still persists though. Will have to take a look at it. Restored a JB backup soon afterwards.
[XPERIA X8 Original Android Development] sgt. meow:
I edited the bootrec to something like this

if [ -e /system/ics ] //Had no other idea at that time. This works well//

then

chroot /ics /init //I have the ICS init files in a folder named ics//

This seems to work.

I will try the WiFi solution.

Thanks.
[XPERIA X8 Original Android Development] sgt. meow:
Here's a spoiler for the upcoming uni-kernel:

What doesn't work in the ICS ROM:

* WiFi (easy to solve)

* SDCard (Root Explorer can read it but File Manager can't because the sdcard is mounted at /mnt/sdcard not /storage/sdcard. Can be solved easily)

What works in the ICS ROM:

* Pretty much everything else.

What's broken in the JB ROM:

* WiFi (Sometimes it works; sometimes the LED just flashes 3 different colours and then the phone reboots. Logcat couldn't catch that, so I can't figure out the reason)

All in all it's good progress (I think).
[XPERIA X8 Original Android Development] Daveee10:
ICS using /mnt/sdcard for sdcard. The storage/sdcard is JB mount...

That's a kernel panic. Check the last kmesg for panic message

Trolled from my X8 using xda premium
[XPERIA X8 Original Android Development] sgt. meow:
@Daveee10

I just have to change something in the init.rc to get sdcard working.

This is the last_kmsg. I got to the TIWLAN bit but I honestly don't understand the output.
[XPERIA X8 Original Android Development] Daveee10:
Not only you who don't understand :D I'm too... :S
[XPERIA X8 Original Android Development] sgt. meow:
@Daveee10

I still couldn't fix the ICS sdcard mounting issue. I changed the mounts in the init.delta.rc, but the ICS ROM still doesn't mount the sdcard. Any clue as to what the problem might be?
[XPERIA X8 Original Android Development] Daveee10:
Show edited init.delta.rc
[XPERIA X8 Original Android Development] pilu1978:
@sgt. meow: upload the whole ramdisk and we (your idols ;)) can examine where is the error. :) (earlier I found some similar problems when I tried to integrate GB and ICS kernels)
[XPERIA X8 Original Android Development] sgt. meow:
Is it okay if I upload the packed ramdisk (because I can't boot into Ubuntu now)?

If so here's the link: https://www.dropbox.com/s/pxkjd5lqvd3dm34/ramdisk (2)
[XPERIA X8 Original Android Development] Daveee10:
in ics folder the init.delta.rc isn't contain ICS mount point...

replace this

on early-init

export DOWNLOAD_CACHE /cache/download

export EXTERNAL_STORAGE /storage/sdcard0

mkdir /storage 0050 system sdcard_r

mkdir /storage/sdcard0 0000 system system

# for backwards compatibility

symlink /storage/sdcard0 /sdcard

symlink /storage/sdcard0 /mnt/sdcard

mkdir /sd-ext 0771 system system

export SD_EXT_DIRECTORY /sd-ext

with this:

on early-init

export DOWNLOAD_CACHE /cache/download

export EXTERNAL_STORAGE /mnt/sdcard

mkdir /mnt/sdcard 0000 system system

# for backwards compatibility

symlink /mnt/sdcard /sdcard

mkdir /sd-ext 0771 system system

export SD_EXT_DIRECTORY /sd-ext

other...

if U use initlogo.rle the /sbin/bootlogo is pointless and this too:

/sbin/rec_input:

exec /sbin/nice -n -20 /sbin/bootlog&

and in bootrec:

chroot /ics /init

mount -o remount,rw /system

mkdir -p /system/lib/modules/

copy_modules

mount -o remount,ro /system

mount /dev/block/mmcblk0p1 /sdcard

else

mount -o remount,rw /system

mkdir -p /system/lib/modules/

copy_modules

mount -o remount,ro /system

mount /dev/block/mmcblk0p1 /sdcard

cleanup

fi

fi

all

mount /dev/block/mmcblk0p1 /sdcard

pointless too...
[XPERIA X8 Original Android Development] pilu1978:
Yes, this is okay :)

EDIT: Daveee10 was faster ;)
[XPERIA X8 Original Android Development] pilu1978:
@sgt. meow: instead of use the JB init.rc, bootrec, etc, try this method:

make an empty init.rc (like the simple init.rc what use in the twrp recovery folder

make something similar file structure in the /

common (place the files what same in the original JB and ICS ramdisk)

ics (place all files related to ICS, without recovery and bootrec)

jb (place all files related to JB, without recovery and bootrec again)

modules

recovery (TWRP files)

sbin (CWM, busybox, other files what needed to run scripts)
​

make a boot script what contains something similar and start it from init.rc:

if [conditions to select the recovery if needed, and start it]
fi
mount /system
if [condition to identify the rom as ICS] then [move the modules folder and files/folders from /common into the ics folder]
umount /system [and all partitions what mounted earlier]
chroot /ics /init
fi
if [condition to identify the rom as JB] then [move the modules folder and files/folders from /common into the jb folder]
umount /system [and all partitions what mounted earlier]
chroot /jb /init
fi

This way is more safe (and elegant ;))

This is only a draft, you can make your own solution (I think now you can see the right way :))
[XPERIA X8 Original Android Development] sgt. meow:
@Daveee10

I tried everything you said. Actually when I cd to /mnt/sdcard via Terminal and issue ls, the sdcard is read. But for some reason OI File Manager and Apollo and all other apps that need sdcard can't seem to read the sdcard.

@pilu1978

So this is what I did

1. Copied all ICS init files to /ics folder.

2. Copied all JB init files to /jb folder.

3. Left common stuff in /. I also kept the JB init binary (I guess it's needed to execute init.rc)

4. Deleted every init.*.rc.

5. Created a new init.rc and just wrote this:

on early-boot
exec /sbin/bootrec

6. Edited the bootrec to something like this:

if [ -s /dev/keycheck -o -e /cache/recovery/boot ]
then
cpu_clock
recovery_cmds
recovery
rm /cache/recovery/boot
else
if [ -s /dev/tscheck ]
then
cpu_clock
recovery_cmds
twrp_recovery
else
if [ -e /system/ics ]
then
mount -o remount,rw /system
mkdir -p /system/lib/modules/
copy_modules
mount -o remount,ro /system
cleanup
chroot /ics /init
else
if [ -e /system/jb ]
then
mount -o remount,rw /system
mkdir -p /system/lib/modules/
copy_modules
mount -o remount,ro /system
cleanup
chroot /jb /init
fi
fi
fi
fi

The kernel didn't even boot. I suspect something went wrong in the init stage so I'm going to keep the JB init files in / and try again.

BTW after going through your method, I have found that your method is a thousand times cleaner than mine. I can tell even though it didn't boot. My method was just too messy.
[XPERIA X8 Original Android Development] Daveee10:
Hmm ... It's interesting... The mount point is working in my ICS kernel... And I checked and that... That's in nAa-ics kernel too and GB kernel...

The problem is similar what we got on CM10.1... I don't understand...

EDIT:

Which ICS rom tried???
[XPERIA X8 Original Android Development] sgt. meow:
@Daveee10

I tried MiniCM9-3.0.3.
[XPERIA X8 Original Android Development] tiestobunio:
@sgt. meow

I have a strange problem namely when I'm on my JellyBlur V2 ROM + your kernel and then install Oxydo mod "SRS True Media" for Jb, I found the section of applications and themes well, and when I install it I reboot the phone turns off and turns on and enters same for CWM, strange because nothing I click to enter the CWM I thought no no what is going on since I instal again my rom (factory reset, etc.) and mod at the end, however, the same thing with the same again enter into CWM.

This wine kernel or mod SRS TM JB?
[XPERIA X8 Original Android Development] pilu1978:
Okay, so the problems :)

1. Copy the WHOLE ICS ramdisk into ics folder (without recovery, modules and bootrec)

2. Copy the WHOLE JB ramdisk into the jb folder (without recovery, modules and bootrec)

3. Move the files from both folder (ics and jb) what same in both folder into common (the ramdisk will be smaller if you remove the redundancies). The init version is not important now, because you not start the rom with the first init round.

4. Remove the init.rc and the init.delta.rc

5. The absolute empty init.rc is not enough. Need some setting for the boot procedure (PATH variable, default mountpoints, etc...). The easiest way: use the init.rc from the twrp recovery, and execute the boot script instead start the twrp as service (replace the service recovery /sbin/recovery line with exec /sbin/bootrec line, or something similar, now I not remember exactly for the correct command what start the recovery, but you can see it, not a hard work to identify)

6. Instead of remount the /system as read-only, need to umount this before change the rootfs.
[XPERIA X8 Original Android Development] sgt. meow:
@tiestobunio

What is "Oxydo mod"?

@pilu1978

Regarding steps 1 and 2, do I need to copy the sbin folders too? They take up a lot of space.
[XPERIA X8 Original Android Development] sgt. meow:
@pilu1978

If I understand correctly you're asking me to move the common files to a folder named "common" in the root directory. If so how will stuff be executed from there? Won't it need a lot of changes?

Please explain that bit.

Oh and if I include the sbin folders in both ramdisks (which I'm pretty sure I'm not supposed to), the resulting ramdisk is almost 7.5MB in size,
[XPERIA X8 Original Android Development] pilu1978:
Keep the /sbin in the root of ramdisk (this is needed to run the boot script). Check the differences in the ICS and JB /sbin folder, what is different from the /sbin in the root of the ramdisk, and keep this files only. The shared files (what is same in all sbin folder) stay in /sbin, but before change the rootfs, need to copy these files into the correct sbin folder (/ics/sbin or /jb/sbin).

I hope you understand it :)

Exampe:

1. in the main sbin folder (/sbin) you can find: file 1, file 2, file 3, file 4, file 5

2. compare these files with both rom specific sbin (/ics/sbin and /jb/sbin)

3. some files will be different (example: file 1, 4, 5 is same, file 2, 3 different), keep these files ( 2,3 )in the original place (again /ics/sbin or /jb/sbin)

4. if you see the examined file is same in both rom specific sbin folder (1, 4, 5), remove it, and keep only one in the /sbin folder

5. before change the rootfs to the matching one, copy the removed redundant files (1, 4, 5) into the correct place.

If you remove the recovery and related files (parted, tune2fs, etc...) from sbin (in /ics and in /jb) this folder will be small. :)

If you found files what same in the /ics/sbin and /jb/sbin BUT different from the file what stay in /sbin, move these files into the /common/sbin folder, and move back into the correct sbin folder before use chroot.

To identify the files what is same and what is different, better if you use a file comparison tool, free apps: KDiff3 (linux/win), WinMerge (win only)
[XPERIA X8 Original Android Development] Daveee10:
I think he is think this: [MOD] SRS Audio Effects | True Bass (CM10)

But this is not oxydo :D
[XPERIA X8 Original Android Development] sgt. meow:
@Daveee10

I know about that, but I don't think it should have any problem with the kernel. So I was wondering whether he was talking about something else.

@pilu1978

So the /sbin folder contains all binaries. The /ics/sbin and /jb/sbin contains only the binaries that differ from each other. Before chroot the binaries from /sbin are also copied to /ics/sbin or /jb/sbin as per the needs. Is this concept okay?

If so I can write the script tomorrow. Easy as pie.

Thanks for the advice.

I think the sdcard's not mounting because some binaries like mount and mountpoint etc. are not actually present during boot as rootfs is changed to /ics or /jb which do not contain the sbin folders. I am not sure but I will give it a go.
[XPERIA X8 Original Android Development] tiestobunio:
@sgt. meow

Sorry my mistake in writing

Yes exactly I'm talking about this mod at Dav ... Resh wrote above and you understand it :)
[XPERIA X8 Original Android Development] pilu1978:
Now you are right, and you understand my concept. :) And not need to use the /common folder, this is needed only if some files same in ics and jb, but different from the main files in root. :) (I used it in my work, because I made a gigantic ramdisk (GB+ICS ramdisk, CWM+TWRP and AromaFM plus some other addons), and needed to find every redundant bit. ;))
[XPERIA X8 Original Android Development] Daveee10:
No-no... Because the overlay contain the mountpuint too...

Check this for JB:

https://github.com/MiniCM/android_d...eworks/base/core/res/res/xml/storage_list.xml

and this for ICS:

https://github.com/MiniCM/android_d...eworks/base/core/res/res/xml/storage_list.xml
[XPERIA X8 Original Android Development] sgt. meow:
The initial test failed, but I think I know why. Will try again tomorrow after school. I'll also try another "stupid" yet simple method.
[XPERIA X8 Original Android Development] vr2008:
after flashing this kernel i can not flash any other kernel even GB kernels and they keep rebooting at start.and not go into cwm.just this kernel goes cwm.what should i do?:(
[XPERIA X8 Original Android Development] vr2008:
i tried but it did not helped.after i flash other kernels kernel screen shows 2 sec and after that reboots and again and again ....

please help...:(

and i get this errors when trying to install roms through this (OXYDO) kernel:
[XPERIA X8 Original Android Development] Daveee10:
You can't read the 1st and 2nd post???
[XPERIA X8 Original Android Development] sgt. meow:
UPDATED. Check 1st post and 3rd one as well.
[XPERIA X8 Original Android Development] CnC-ROCK:
thanks for "- CnC-ROCK for bootlogo and soon, bootanim "..

:p:p so now i am officially a part of team meow?:silly:
[XPERIA X8 Original Android Development] SatrioDwiPrabowo:
hi bro,, if you can make up for GB, may be in use by all: D
[XPERIA X8 Original Android Development] sgt. meow:
@CnC

Yes of course you're a part of the team. You're the lead graphics guy.

@SDP (please don't mind if I call you that)

Alf's has the same kernel for GB. Check his thread.
[XPERIA X8 Original Android Development] SatrioDwiPrabowo:
sgt : Okay that's my nickname :D

oh okay I'll find, but if you want to make OXYDO for GB I would definitely wear it, it's just a suggestion brother,, :D
[XPERIA X8 Original Android Development] sgt. meow:
How'd you know my kernel's name was inspired by a spectacles brand? :eek:
[XPERIA X8 Original Android Development] sgt. meow:
Okay guys. Those of you who are interested in helping with development of kernel (need it, honestly) and maybe even a ROM in the future, join this group: Oxydo team. Let's be honest, it's a bit bland now (the group) and I need help in making an active one. Oh, and everyone's welcome.

As soon as we have 5 members, I will start a discussion. And in future releases, title will be changed to Team Oxydo Kernel or something like that.

Hurry up guys. :D

sgt. meow
[XPERIA X8 Original Android Development] CnC-ROCK:
this answered the Q that had been bugging me for weeks....

joined group :cool:
[XPERIA X8 Original Android Development] sgt. meow:
@CnC

I was out of ideas. Then I saw my Mom's spectacles-box lying on the shelf. And boom! Inspiration hit me.

@all

Just so you know, joining a group doesn't affect your postcount (or thanks meter for that matter). So join the group, we need you.
[XPERIA X8 Original Android Development] dagger:
Meow.

Joined the group.(in case you miss the ot post:p)
[XPERIA X8 Original Android Development] TAJ_Rocks:
ï т๑๑ พïℓℓ j๑ïท ร๑๑ท

Sent from my Sony Walkman to yours
[XPERIA X8 Original Android Development] sgt. meow:
@Taj and Nice

Thanks for joining in guys. Testers are also as important as devs. ;)
[XPERIA X8 Original Android Development] sgt. meow:
Sorry guys, I had to take down V2, because some things weren't working. A new version will be uploaded shortly. Please bear with me and again I'm sorry.
[XPERIA X8 Original Android Development] DanielFran:
Hi sgt. meow,

This kernel is based on nAa kernel, so maybe you can create kernel for X10 Mini and X10 MiniPro?

Thanks
[XPERIA X8 Original Android Development] pongnamu:
Yeah! It will be so nice!
[XPERIA X8 Original Android Development] sgt. meow:
I can try, but I won't promise that I will maintain it very often.
[XPERIA X8 Original Android Development] sgt. meow:
A new version has been uploaded. Enjoy guys. Beware though, CnC said his sdcard acted up. However I chalked it out as random. But to be on the safer side, make sure you have a backup of your sdcard.

Cheers

sgt. meow
[XPERIA X8 Original Android Development] TAJ_Rocks:
Good job meow:thumbup::D

Sent from my Sony Walkman to yours
[XPERIA X8 Original Android Development] sgt. meow:
Can you provide feedback please?
[XPERIA X8 Original Android Development] TAJ_Rocks:
Can i tell u later because i will try tomorrow

Sent from my Sony Walkman to yours
[XPERIA X8 Original Android Development] CtrlAltDelIrl:
@Cpt. Meow

Just a little reminder that nAa has asked that you make your sources available. I've noticed that when you are editing some of his work you actually remove code instead of hashing it out.

This is a violation of the GPL.

You must leave ALL of nAa's code but hash out what you don't need.

This is basic dev rules. You should really be aware of this. Age is not an excuse.

Keep up the work and put up diff files, it's easy and won't take much time!
[XPERIA X8 Original Android Development] vr2008:
asserts problem fixed.but still i cant flash other kernels.even nAa jb kernel freezes in logo and reboot and wont go in cwm.the only kernel works fine is this oxydo but i want to flash alfs.any help?:rolleyes:
[XPERIA X8 Original Android Development] Daveee10:
format, system, data, cache partitions... Not wipe, FORMAT... Then flash kernel...
[XPERIA X8 Original Android Development] fotak-x:
Cpt?!?!?

and true if you dont have source...mod might close this thread
[XPERIA X8 Original Android Development] vr2008:
i am doing the same.mounts and storage>format.but not working.i had not this issue in 1 year android roms and kernels experience till flashing this kernel today! non of other kernels enter in cwm just this kernel goes cwm.i restored my GB rom and flashed alfs kernel but in kernel logo phone reboots and reboots and reboots ...
[XPERIA X8 Original Android Development] sgt. meow:
@CtrlAltDelIrl

I don't think it's mandatory to upload the source of the ramdisk (the part where most of the code-work has been done). Therefore I don't think that's much of a violation. But I'll still have to take another look.

I didn't delete any code in the actual source code if I remember correctly. In fact the changes I made in the actual source are:

1. FPS-uncap

2. SLQB allocator

3. More governors and schedulers

4. nAa's PMEM commit.

Good find, though, mate. Thanks for the warning.

I have uploaded the diff file for the kernel source in the OP. It's right under the kernel source link. EET said it can be considered a temporary solution. I'll update the actual source some time soon. School started so I'm kinda busy right now.

@vr2008

It sucks to know that some of you (not pointing to anyone in particular) don't even read the posts by the OP in the first page. There were clear instructions on how to avoid the "assert getprop failed" error in the 3rd post. But I'm glad to know that you solved your problem. ;)

If you're still facing the kernel problem, can you tell me exactly which version you have flashed? I flash kernels pretty much around 15 times a day (pretty much every day) and I have never ever faced this problem. And if it still fails you can try formatting system, cache and data (factory reset in TWRP) from TWRP. It works for me.
[XPERIA X8 Original Android Development] vr2008:
thanks for reply.i tried formatting from TWRP but not solved problem.I flashed latest version of the OXYDO kernel.after that every other kernel [JB or GB] i flash reboots on logo and even not enter cwm by pressing back button.just with this kernel i can go to cwm.i tried formatting system , cache and data from cmw.restoring my GB rom solved asserts problem but not this.i'm so confused!
[XPERIA X8 Original Android Development] pilu1978:
You are righ, the biggest part of the ramdisk compiled with the rom what covered with Apache licence. But sometime the ramdisk contains GPL protected binaries (kernel modules or other binaries what not included in the rom source). Not needed to share the ramdisk content, but if you want to be correct better if upload it. An average ramdisk uploadable less than 15-30 minutes with a really sh!t connection (5MB size with an extreme slow connection (5kb/sec) is less than 20 minutes).