yashsingh1/xdaforums huggingface dataset:
[Sony Xperia S, Acro S, Ion] Apology11:
Of course, but I will test it first before uploading the repack, because I resolved the Installation bug for v 2.51 but it crashed at the boot screen, so I will try it again with version 2.51 and see if I can solve the problem.
[Sony Xperia S, Acro S, Ion] Felimenta97:
Oh, OK.
[Sony Xperia S, Acro S, Ion] letama:
Which one ? alpha 2 or beta 1 ?
[Sony Xperia S, Acro S, Ion] letama:
Lol, wrong link ? weird :) Bad copy paste somewhere I guess.
[Sony Xperia S, Acro S, Ion] Felimenta97:
Maybe. Well, let's wait. The dev hasn't sent me the link for testing yet...
[Sony Xperia S, Acro S, Ion] Apology11:
Did you repacked PA 2.51 too? If yes do you got it to work?

for me it goes till bootanimation (not the kernel bootlogo, but the system startup logo with the eyes and the PA logo) and then it just shuts down :confused:
[Sony Xperia S, Acro S, Ion] letama:
I only repacked one... I don't know what I repacked though :). It wasn't working very well too, but it went up to the main screen. It crashes quite quickly, no idea why...

Filename is pa_nozomi-2.51-25OCT2012-215600.zip, I named it pac but it's only the name I did put.

Well, I'll repack PA 2.52 and we'll see how it works.
[Sony Xperia S, Acro S, Ion] Apology11:
Something strange happened:

I installed PA on loop and it didn´t boot.

So I installed AOKP on loop again, as I had before.

Then I tried again to install PA, because I wanted to test, if it works if I install it over AOKP and didn´t wipe data before.

So I installed it and it failed to boot again.

When It rebooted, I wanted to go on my native AOKP again, which worked fine the whole time. But now I didn´t boot as well!

So I tried to install AOKP on native again, that worked before and installed fine. but now I get Status 7 error.

assert failed: run_program("/sbin/kf", "1", "/tmp/zImage", "/tmp ... and so on.

So I will tryed to install it manually and thats what I got:

I tryed to flash the update5.zip again but I got Status 7 also :eek:

flashed original boot.img of aokp that i installed native and no bad blocks as I feared.

But still don´t know what happened.
[Sony Xperia S, Acro S, Ion] letama:
Very strange!

Error, invalid kernel signature

This means that you lost somehow internal boot manager structure. I have a signature to make sure that I don't write at an invalid location, it's installed when you flash dual.elf. Somehow, this signature was overwritten and I have no explanation on how it can happen. It seems that your native kernel has been overwritten by some part of loop kernel. (physically, bootloader kernel is first, loop kernel is second, native is last).

How big was your loop kernel ?

I would be

very

interested to troubleshoot this. If you can reproduce the problem, please tell me how, I'll try to reproduce it on my side.
[Sony Xperia S, Acro S, Ion] Jazz Like That:
Someone please provide a mirror for repacked MiUi. Any version is fine!!
[Sony Xperia S, Acro S, Ion] mericon:
On both.
[Sony Xperia S, Acro S, Ion] letama:
I re-tested aokp ics alpha 2 on native, it works fine here. Can you provide me the content of twrp /tmp/recovery.log ?
[Sony Xperia S, Acro S, Ion] mericon:
I will Do wehen im home
[Sony Xperia S, Acro S, Ion] Apology11:
Kernel of PA Rom was 7.683.535 Bytes because it didn´t worked the first time, so I repacked it again and didn´t deleted res folder and the things in sbin because I thought I maby deleted something, that I shouldn´t.

I will try again today. So it´s nothing that can´t be fixed with flashing a kernel again?
[Sony Xperia S, Acro S, Ion] letama:
Ok, so you're flirting with the limits and that's probably why it happened. I checked my code and I think I know why: I used kernel 1 to compute maximum size for 1 and 2 as it was the smallest one. Now, with the new 0x41500000 layout, kernel 1 has more space than 2, so when you flashed a big kernel 2, kf didn't complain and overwrote kernel 1.

I will fix that in next release and properly compute both size for kernel 1 and kernel 2.

In the meantime, to fix that you have to reflash dual.elf in fastboot, then re-flash your both kernels in recoveries.

Sorry about the mess!

*edit* if you have a cwm or twrp backup from before the flash, you can restore it, it will restore both kernels properly. Twrp let you restore only kernel (uncheck system and data, keep boot checked), I believe cwm can too in advanced restore.
[Sony Xperia S, Acro S, Ion] Apology11:
Thanks :good: No problem with that. because AOKP still works without dual kernel and i have the native kernel for it repacked and on loop isn´t anything, because I was testing PA. And the size was only that big for testing purposes.

The only thing left I wonder about is: What did I do wrong, that the PA rom doesn´t boot?

Any ideas? Did you do anything new as you repacked it?
[Sony Xperia S, Acro S, Ion] letama:
Good!

Regarding PA, no, I can't remember doing anything special, it's mostly aokp style initrd if I remember well. I'll take a second look..
[Sony Xperia S, Acro S, Ion] utsav911:
@Letama,

can you post wifi modules for SSpeed kernel v7?
[Sony Xperia S, Acro S, Ion] mericon:
Herr is The Log. http://pastebin.com/V91AMSQ7
[Sony Xperia S, Acro S, Ion] letama:
Hum... it looks bad:

Creating filesystem with parameters: Size: 1073741824 Block size: 4096 Blocks per group: 32768 Inodes per group: 8192 Inode size: 256 Journal blocks: 4096 Label: Blocks: 262144 Block groups: 8 Reserved block group size: 63 Created filesystem with 11/65536 inodes and 8536/262144 blocks warning: wipe_block_device: Discard failed

error: file_write: write: I/O error format: make_ext4fs failed (1) on /dev/block/mmcblk0p12
mount: failed to mount /dev/block/mmcblk0p12 at /system: Invalid argument

Can you give me the result of dmesg also after trying to install or format system partition?

I'm not 100% sure, so don't take what I say as gold, but It looks like an hardware problem with your internal storage. I'd suggest to flash a stock rom as soon as possible and be prepared to return the device to warranty. If you manage to flash stock rom, try to e2fsck the system partition to see if it has bad blocks.
[Sony Xperia S, Acro S, Ion] letama:
Well, I didn't manage to make wifi work with SSpeed kernel v7. Don't know why...
[Sony Xperia S, Acro S, Ion] utsav911:
Nevermind. Back to stock kernel :p
[Sony Xperia S, Acro S, Ion] mericon:
well will try it when i have time to do it.

wiping /system in twrp without installing a new rom works well thats crazy.

For e2fsck i need ubuntu right? Now i downloading vbox :D
[Sony Xperia S, Acro S, Ion] letama:
So no error on wipe system ? You should try to mount it just afterwards and you should look at recovery.log after doing it, the format error is only visible in log. Your previous log show format failure then mount failure, and the error that cwm displays is only when it fails to mount.

Let's see also dmesg.

Last, regarding fsck, there should be a way to check it from recovery directly. We need a fsck.ext4 -c for bad blocks but I'm not sure stock busybox can do that. FlashTool could help on this maybe.
[Sony Xperia S, Acro S, Ion] mericon:
finaly i got it ...

removed the format and mount comand from update-script and did those manualy.

will do some diagnostics these days now i have not enought time
[Sony Xperia S, Acro S, Ion] Apology11:
Did you found something?

Still doesn´t work for 2.52

last_ksmg attached.
[Sony Xperia S, Acro S, Ion] letama:
Seems like a modem crash, ril problem or something like that (rmnet maybe)... It crashes also on mine (2.51, didn't try 2.52 yet), but only later and with audio (audio is also tightly coupled with modem). I don't know why it works if flashed directly and not using repackaged. Could be something new... The weird thing is that it's a cm kernel, and cm is working fine.
[Sony Xperia S, Acro S, Ion] krabappel2548:
I'm releasing KA19 tomorrow :) just to let you guys know kernel will still remain the same :) KA20 will have different kernel ;)
[Sony Xperia S, Acro S, Ion] Apology11:
I will try with original kernel and report back.

Tried to repack KA18 but it didn´t boot. Freezed on bootscreen like Paranoid Android. Maby it is the same problem.

---------- Post added at 10:44 PM ---------- Previous post was at 09:59 PM ----------

Paranoid Android works without problems with AOKP kernel.

I will put that in the repack and upload 2.52 tomorrow and will ask the dev about the booting error with original kernel.

Xperia S AOKP Tapatalk
[Sony Xperia S, Acro S, Ion] letama:
Interesting!

Original kernel is definitely cm based, as aokp is:

Linux version 3.0.8-FXP+ (vertigo@vertigo-laptop) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) )

However, it's cm9.x kernel ? But PA is supposed to be CM10 based and cm10 is using 3.0.31 kernel ?
[Sony Xperia S, Acro S, Ion] Apology11:
No, both are using 3.0.8 kernel. Cm 9 and cm 10 and all roms that are based on them. Or at least aokp jb is using 3.0.8.

But what is strange, that the boot logo (logo.rle) is the same on PA and on cm10. I think they didn't even changed the kernel.

so maby it i was compiled wrong?

Xperia S AOKP Tapatalk
[Sony Xperia S, Acro S, Ion] letama:
AOJP JB is definitely using 3.0.31:

Linux version 3.0.31-FXP+ (championswimmer@gooey.goo.im) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) )

Kernels are not the same at all between Ice and JB cm, they are using ION on JB.
[Sony Xperia S, Acro S, Ion] Apology11:
Strange. I am using Aokp build 5 kernel as I told you:

I know there not the same, but I thought the kernel version is.

Anyway the original pa kernel had the cm10 bootlogo (the coloured one not the cm9 one with only freexperia logo)

Xperia S AOKP Tapatalk
[Sony Xperia S, Acro S, Ion] letama:
Hum... Strange. Can you try dmesg ? The only display I really trust is uname -a or dmesg at start, the one I posted came from aok build 4.

I'll try to play with PA 2.5.2 and aokp b5 today, we'll see...
[Sony Xperia S, Acro S, Ion] Apology11:
Linux version 3.0.8-FXP+ (championswimmer@gooey.goo.im) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #1 SMP PREEMPT Sun Oct 21 21:41:42 MST 2012

From kmsg form Aokp build 5 kernel I use on loop.

Uname shows the same

u0_a39@android:/ $ uname -a
Linux localhost 3.0.8-FXP+ #1 SMP PREEMPT Sun Oct 21 21:41:42 MST 2012 armv7l GNU/Linux
u0_a39@android:/ $

Xperia S AOKP Tapatalk
[Sony Xperia S, Acro S, Ion] Apology11:
Paranoid Android 2.52 with AOKP Kernel to get it to work with bootmanager for loop:

http://www.mediafire.com/?wu04l6hghe94t4l
[Sony Xperia S, Acro S, Ion] elpelas:
any news with KA rom?
[Sony Xperia S, Acro S, Ion] Soheil_rf:
What about CM9.1 (144)?
[Sony Xperia S, Acro S, Ion] Apology11:
I can try again, but for me it didn't boot the last time I tried, but if I will upload it anyway this time, so u can try it with other kernel.

But I will have to split it into parts because it is too big to upload it to megafire.

I decided not to repack all builds, if there is no change in the changelog.

Xperia S AOKP Tapatalk
[Sony Xperia S, Acro S, Ion] championswimmer:
Aokp beta1 for native please ;)
[Sony Xperia S, Acro S, Ion] Apology11:
Already did that ;) look at the first post, letama added the link there.

Xperia S AOKP Tapatalk
[Sony Xperia S, Acro S, Ion] fersy:
AOKP beta1 for loop would be great
[Sony Xperia S, Acro S, Ion] Apology11:
Will repack them again tomorrow!
[Sony Xperia S, Acro S, Ion] Giblet-dono:
Ka19 does not boot past the Xperia SSPeed kernel splash screen

Using bootmanager 5.0, TWRP, and the Xperia SSpeed kernel in the aroma menu
[Sony Xperia S, Acro S, Ion] Apology11:
I had the same problem with ka18. Try a different kernel (for examlpe stock kernel) be sure only to flash the kernel.

Xperia S AOKP Tapatalk
[Sony Xperia S, Acro S, Ion] letama:
Hi Apology11,

I repackaged ka19, it's working fine. I had the same issue because I forgot to relink ueventd to init, maybe you did the same ? you need ueventd in sbin, as a symlink to /init. I didn't see it on my repack example, maybe this is new. Anyway, it's in the repack example now...
[Sony Xperia S, Acro S, Ion] Apology11:
Open up the zip file and go to /META-INF/com/google/android

and replace the existing updater-script with this one:

http://xdaforums.com/attachment.php?attachmentid=1448904&stc=1&d=1351790851

and try again. if it still doesn´t work report back.
[Sony Xperia S, Acro S, Ion] Apology11:
Thanks for the info! :good:

I will repack it again, tomorrow, unless you want to upload your repack
[Sony Xperia S, Acro S, Ion] letama:
I'm uploading it currently yes. Not much tested though...
[Sony Xperia S, Acro S, Ion] Felimenta97:
@letama, what do you think of this:

When you turn the phone on, it would show directly the Sony logo (from the stock partition) and with that blue/purple light and vibration when booting. If the user don't do nothing, the device will boot directly into the stock partition (or maybe customizable which would be the default?). If the devices press Vol Up when that light appears, only then it show the boot manager menu. It could save time for quick reboots (such as applying some small mods, fix some possible lag) and you would be able to remove that bad-side-of-this "Longer boot times".

I don't know if anything of that could be implemented, based on how hard it would be, or maybe limited by space, but it's an suggestion.
[Sony Xperia S, Acro S, Ion] letama:
Well, unfortunately, that's not possible.

With boot manager, you have two added delays:

1) The first delay you are seeing is because I first boot one kernel (bootloader's one) that selects the final kernel that boots (stock or loop). I can't remove this delay as I need it to select the kernel I boot afterwards, stock or loop. It has to boot each time. I wanted to do boot selection without kernel, but it's very difficult with Sony XS, no way to flash a simple led without developing a pmem or I2C driver from scratch, and only one key (vol down) is easy to use (gpio), the others are I2C or worse. It's very difficult to do before kernel start, you don't have mmu, you don't have much initialized.

At the end, you end up developing a bootloader or a kernel, so I choose to reduce existing linux kernel instead of re-inventing the wheel. A real bootloader would be probably quicker to start but it would take me few month at best, not worth the effort when we see at what speed the linux kernel boots.

2) The second delay is boot menu. This one is strictly the same as flashing a led and wait for a key like you are proposing: imagine it as a big flash screen instead of led, wait 5 second to see a key then boot. It's better in fact: If you do vol down or vol up, you stop the timer and use the menu. If you do power, you stop timer and boot default. You wouldn't be faster with the led only and you would loose the feedback of which kernel boots, it will be very useful with 0.6 that memorize last kernel booted.
[Sony Xperia S, Acro S, Ion] Felimenta97:
I understand. Well, I don't have any knowledge, so it was a long shot. Thanks for the explanation :)
[Sony Xperia S, Acro S, Ion] fersy:
Ok, worked... thanks
[Sony Xperia S, Acro S, Ion] Apology11:
@ letama

I have a new idea:

Maby you could add a new Option in the Recovery that is named "flash sytem without kernel".

So what I think it should do is:

- Ignore the line "package_extract_file("boot.img", "/dev/block/mmcblk0p3");" or "write_raw_image("/tmp/zImage", "/dev/block/mmcblk0p3"),"

in every update script

- replace every "mmcblk0p12" with "loop2" (only for loop recovery)

So that people can try new releases of cm or roms with cm based kernel on their device, if they already have a cm kernel.

It would be easyer, because you would only have to repack the kernel, but till its uploaded people could try other roms.

I don´t know how difficult it is to implement new commands into recovery, but maby its possilbe.
[Sony Xperia S, Acro S, Ion] letama:
The ignore kernel flash part is easy, I added boot manager protection in 0.6 and these commands are ignored now, I just renamed mmcblk0p3 device before launching recovery. I also protect the same way the native system/data partition in loop cwm, so a mount system with explicit mmcblk0p12/p13 will fail.

The only "difficult" part is script patching for /dev/block/loop2: script is unzipped by the update-binary application so I can't hack it there, it has to be unzipped, patched, re-zipped before launching normal update.

What I don't like in this is that it's not a complete solution, kernels are evolving almost every time (on aokp/cm9/cm10 at least) and it's a bad idea to run newest versions with old kernels.

I started working on a repackage script, it handles currently Doomlord based cpio (ka and others...), cm10/aokp jb cpio, and generates both loop and native zips. Last part remaining is cm9/aokp ics, and maybe generating kernel only zips. Maybe I could make this script work directly on device, it would take quite a long time to convert a rom though. And I'm not sure it will handle every rom properly...
[Sony Xperia S, Acro S, Ion] Apology11:
Interesting. Can you somehow rename loop2 to mmcblk0p12? Just an idea, cause I dont know how you renamed it.

Of course it is better to use the newest kernel, but to upload kernel only is much faster than the whole rom.

Xperia S AOKP Tapatalk
[Sony Xperia S, Acro S, Ion] mharckk:
does anyone have wifi module for ka19? :), i flash this but my wifi now is not working, i have a wifi module on my external drive but its .45, and i think the ka19 is based on .50 :), hope its ok if i flash the .45 wifi module. or can someone upload the .50 :)

edit: no success, downloaded wifi module on ka7 kernel thread and tried my .45 wifi module, still not working, so heres what i think, if i flash the ka7 kernel then flash this dual boot again will my wifi be ok? cause i read a few back threads that letama didnt have success on making the wifi module on ka7 kernel working.

edit2: well didnt have success,:( so what i did is flash stock kernel to make wifi working, hope the wifi of ka7 will be working on native soon.
[Sony Xperia S, Acro S, Ion] Giblet-dono:
-- Sorry my mistake --
[Sony Xperia S, Acro S, Ion] mpttrung:
Apology11 ! CM10 145 is out. Can u make it work in boot loop :D ! Thanks so much.

Finally CM10 has camera working :))
[Sony Xperia S, Acro S, Ion] letama:
I'll try a copy yes. I can't rename as it would break compatibility with all the rom already repackaged, but I think I can duplicate.

So your idea is to have a separate kernel zip then install the full unmodified zip, then repackaged kernel zip? Yes, that could work... Good idea! If loop2 copy works, as kernel already doesn't install, I don't even have to modify recoveries to add an option.

Wifi module has to match kernel version, not specifically firmware version. I never managed to make wifi work with last SSpeed kernel.
[Sony Xperia S, Acro S, Ion] Cach123:
+1 !
[Sony Xperia S, Acro S, Ion] letama:
FXP145 cm10 uploaded, native and loop.

Mirrors coming soon.
[Sony Xperia S, Acro S, Ion] Soheil_rf:
Thanks but i get boot loop !

i wiped data & cache , still no success
[Sony Xperia S, Acro S, Ion] letama:
Strange, I tested both and they were working fine, which one doesn't work ?

Can you provide me a recovery log ?

Anyone with problem too ?
[Sony Xperia S, Acro S, Ion] Soheil_rf:
i use bm_loop_fxp145_cm10 for loop partition , boot loop on boot animation
[Sony Xperia S, Acro S, Ion] r-ikfoot:
same for me on loop

bootloop first at bootlogo then at lockscreen

and finally seems boot normal but 10 sec after a message come about gallery has stopped working then device reboot (tried 3 reflash with dalvik, data, system nothing to do)
[Sony Xperia S, Acro S, Ion] letama:
I confirm, problem on loop one, strange I didn't see it when I tested, but as I was running cm10 on both native and loop , maybe I didn't see the reboot.

I'll check that, sorry guys! It's a weird problem, same as PA one. Seems to be bootmanager specific, no clue why for now.
[Sony Xperia S, Acro S, Ion] Felimenta97:
PA 2.5.2 with kanged with CM10 camera is working already. Needs repacking. 12 Mp working.

http://d-h.st/G6C
[Sony Xperia S, Acro S, Ion] Apology11:
what do you mean with "with kanged" ? :)

I wont be able to upload it today, but I think tomorrow.
[Sony Xperia S, Acro S, Ion] Felimenta97:
He copied the fix from CM10 and applied into his ROM. Same what AOKP did. It's a common thing (from what I see). but, OK, thanks. Can't wait for it.
[Sony Xperia S, Acro S, Ion] letama:
After few tests, it's not related to boot manager, it has something to do with loobpacks. Running loop kernel with my alternative set of native partitions is working fine. Still trying to figure out why and how to solve it...
[Sony Xperia S, Acro S, Ion] mharckk:
cm10 fxp145 works on native partition, :)

used adb on fixing facebook and 12mp camera posted by Kali on cm10 thread :), only the front camera is not working for me at the moment.
[Sony Xperia S, Acro S, Ion] 1of16:
any chance for 145 CM9.1? Would love to use CM9.1 AND CM10 :)
[Sony Xperia S, Acro S, Ion] championswimmer:
Changing the way recovery parses or interprets the script would be the best solution and future proof (except we need cpio conversion too)

If boot space had been 30mb or something it would have been awesome
[Sony Xperia S, Acro S, Ion] Felimenta97:
How much we have?

Is it the same, more or less than other flagships? And it is an fault by Sony to use the actual size or not?

"What really matters in this world, anyway?"
[Sony Xperia S, Acro S, Ion] championswimmer:
We have 21mb

Possibly less than other flagships as htc stock kernel is bloated in ramdisk too so probably they keep more space
[Sony Xperia S, Acro S, Ion] Felimenta97:
In easy words, what is ramdisk? Sorry for all of this, I'm curious :P
[Sony Xperia S, Acro S, Ion] letama:
We have 20 MB. It's Sony's "fault", but we should consider us very lucky to have that much. Most devices have space for a single kernel only. S3 has 8 MB, Nexus 7 is about the same. Lower end Sony have less than 20 too.
[Sony Xperia S, Acro S, Ion] letama:
ramdisk is what I call cpio and/or initramfs. Basically, kernel is loaded and then uncompress initramfs in memory: imagine it as a ramdisk that contains root filesystem ("/") and necessary applications to start the os (init, mount tools, ...). In android world, it contains init binary, adb daemon, and init binary is responsible to mount flash partitions in ramdisk directories (/system, /data, ...).
[Sony Xperia S, Acro S, Ion] DooMLoRD:
so what happened?

20MB is a huge partition for the boot kernel.... and not to forget there is also the hidden additional FOTA partitions which contain the "recovery"/"fotakernel"...
[Sony Xperia S, Acro S, Ion] championswimmer:
Oh my gawd!!!

The lord returns!!!

Yeah if we could hack to bootloader to manually access the fotakernel it would have been awesome... We need someone like the_laser :D

And yeah not fault of sony... Considering kernels are hardly ever above 10mb, 20 is pretty huge.

I'm only saying if it had been 30 we could have kept 3 kernels without reducing the cpio too
[Sony Xperia S, Acro S, Ion] DooMLoRD:
:P

exams over so have a short break... just catching up on whats going on... ;)

what?

what do u guys want to do exactly?
[Sony Xperia S, Acro S, Ion] letama:
What happened what ? :)

I think the start of Felimenta97 discussion was why 20M only which requires us (boot manager users) to trim down current initramfs out there, preventing direct use of existing initramfs. I don't think it's a real issue, initramfs has to be modified anyway at least for mount points.

Yes, 20MB is a lot. Not that much when you fit 2.5 kernels and cpios especially with lasts kernel that grew a bit in size, but for a single kernel, that's plenty.

Afaik, FOTA is not booting if you unlock bootloader, right ? At least on Xperia S...
[Sony Xperia S, Acro S, Ion] DooMLoRD:
why dont u guys move to XZ/LZMA compression for the zImage & ramdisks?

i had got around 40% reduction in kernel size after i shifted to those for the Galaxy SL kernel...

P.S.: i have always wanted to get a proper bootmanager working for the devices i had (X10, Arc, etc..) so i very much interested in this project... i am mostly always busy with my studies but i can surely help out if and when i get time...