FORUMS
Remove All Ads from XDA

[dev][kernel][kexec]

186 posts
Thanks Meter: 235
 
By delewer, Senior Member on 23rd October 2013, 06:40 AM
Post Reply Email Thread
10th November 2013, 02:13 PM |#51  
delewer's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 235
 
More
Quote:
Originally Posted by onlyolli

No I didn't meant to compile and replace the kernel, that wouldn't work,obviously.. I meant, why isn't it possible to use the environment provided by those kernels headers and config to compile the required modules and tools? Or would any other problems arise from doing so?
Modifying source and header files sounds like compiling modules and tools against the wrong kernel version and ssources.

Because this change anything for modules.

The new compil will have news kallsyms adresses, and modules won't load in memory.

So, Sony kernel or DooMLoRD kernel is the same way for me, except this, i only one kernel to maintain for now. It's a easy way.

The only way to have a loading module in a kernel, is the kernel is compil with option witch grant external module.
It's the same issu that stock kernel won't grant, and won't kexec, because stock kernel don't have any option to be open to community (on locked bootloader of course)
Sony gives sources for unlocked only...

Nota :
"kexec_load.ko" is loaded in memory now. Now i try to converse with.

Edit : "procfs_rw.ko" work
I have a "/proc/atags" now
The Following 5 Users Say Thank You to delewer For This Useful Post: [ View ] Gift delewer Ad-Free
 
 
11th November 2013, 09:48 AM |#52  
king960's Avatar
Senior Member
Flag Warsaw
Thanks Meter: 72
 
More
Attempts on Xperia P (sorry IF i noob-ed with this post)

http://forum.xda-developers.com/show....php?t=2053466

Sent from my LT22i using xda app-developers app
The Following 2 Users Say Thank You to king960 For This Useful Post: [ View ] Gift king960 Ad-Free
11th November 2013, 02:51 PM |#53  
delewer's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 235
 
More
Quote:
Originally Posted by king960

Attempts on Xperia P (sorry IF i noob-ed with this post)

http://forum.xda-developers.com/show....php?t=2053466

Sent from my LT22i using xda app-developers app

It's a dead thread.
Because, it's a epic failed (for now).

********

Status of my attempts :

Modules loads : OK for two modules (kexec_load and procfs_rw)
- procfs_rw.ko => create "/proc/atags" => ok, but bad buf... it must be fix (easy part)
- kexec_load.ko => Loaded => ok but, the way to use is "syscall" add for kexec_load function => failed
why ? Because after 2.6 kernel (Z1 have 3.4.0 kernel), syscall_table is read only and had fixed size. So if i attempt to add value (kexec_load in our case), we have kernel panic.

But i have a solution to add function in LKM, is to add a "real" module call.

I have add a "kexec_driver" in "/dev" structure by :
Code:
insmod kexec_load.ko
mknod /dev/kexec_driver c 254 0
(...)
crw-rw-rw- root     root     254,   0 2013-11-11 15:26 kexec_driver
Driver is in alpha stage and highty experimental

To be continue...
The Following 12 Users Say Thank You to delewer For This Useful Post: [ View ] Gift delewer Ad-Free
14th November 2013, 06:08 PM |#54  
king960's Avatar
Senior Member
Flag Warsaw
Thanks Meter: 72
 
More
It would be great, IF this kexec method would be successful

Sent from my LT22i using xda app-developers app
14th November 2013, 11:04 PM |#55  
delewer's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 235
 
More
Quote:
Originally Posted by king960

It would be great, IF this kexec method would be successful

Sent from my LT22i using xda app-developers app



I don't know IF... but, kexec tool work..

I have kernel panic at load

Code:
<1>[  264.484778] Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>[  264.484796] pgd = da184000
<1>[  264.484803] [00000000] *pgd=29353831, *pte=00000000, *ppte=00000000
<0>[  264.484820] Internal error: Oops: 817 [#1] PREEMPT SMP ARM
<4>[  264.484829] Modules linked in: kexec_load(O) wlan(O) adsprpc adsp_loader cfg80211 texfat(PO) hid_sony(O)
<4>[  264.484857] CPU: 0    Tainted: P           O  (3.4.0-perf-g66807d4-02450-g9a218f1 #1)
<4>[  264.484873] PC is at __copy_from_user+0x70/0x3b8
<4>[  264.484881] LR is at 0x0
<4>[  264.484888] pc : [<c0355fd8>]    lr : [<00000000>]    psr: 20000013
<4>[  264.484890] sp : df0fff2c  ip : 00000000  fp : 00000000
<4>[  264.484901] r10: 00000000  r9 : df0fe000  r8 : 00000000
<4>[  264.484909] r7 : 00208000  r6 : 00000002  r5 : 000a8630  r4 : 00000003
<4>[  264.484917] r3 : 00b29858  r2 : 00000660  r1 : b6139020  r0 : 00000000
<4>[  264.484927] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
<4>[  264.484937] Control: 10c5787d  Table: 2258406a  DAC: 00000015
(...)
<0>[  264.485704] Kernel panic - not syncing: Fatal exception
<2>[  264.485715] CPU1: stopping
<4>[  264.485733] [<c010c12c>] (unwind_backtrace+0x0/0x11c) from [<c010abcc>] (handle_IPI+0x110/0x224)
<4>[  264.485749] [<c010abcc>] (handle_IPI+0x110/0x224) from [<c0100574>] (gic_handle_irq+0x104/0x110)
<4>[  264.485768] [<c0100574>] (gic_handle_irq+0x104/0x110) from [<c0857bc0>] (__irq_svc+0x40/0x70)
<4>[  264.485780] Exception stack(0xe1e35e68 to 0xe1e35eb0)
<4>[  264.485789] 5e60:                   e1e35ed4 bf2a047c c0ea6568 00000000 bf2a047c e1e35ed4
<4>[  264.485802] 5e80: e248d780 e50cdbac 00000001 000001ff bf264bac e2b98360 e248da40 e1e35eb0
<4>[  264.485813] 5ea0: bf083ba8 bf1cba08 60000013 ffffffff
<4>[  264.485951] [<c0857bc0>] (__irq_svc+0x40/0x70) from [<bf1cba08>] (wpalIteratorInit+0x98/0xc4 [wlan])
<4>[  264.486066] [<bf1cba08>] (wpalIteratorInit+0x98/0xc4 [wlan]) from [<bf083ba8>] (dxeTXEventHandler+0x4e4/0x6fc [wlan])
<4>[  264.486175] [<bf083ba8>] (dxeTXEventHandler+0x4e4/0x6fc [wlan]) from [<bf083c40>] (dxeTXEventHandler+0x57c/0x6fc [wlan])
<4>[  264.486282] [<bf083c40>] (dxeTXEventHandler+0x57c/0x6fc [wlan]) from [<bf083d3c>] (dxeTXEventHandler+0x678/0x6fc [wlan])
<4>[  264.486390] [<bf083d3c>] (dxeTXEventHandler+0x678/0x6fc [wlan]) from [<bf08458c>] (dxeChannelAllDescDump+0x138/0x3a8 [wlan])
<4>[  264.486499] [<bf08458c>] (dxeChannelAllDescDump+0x138/0x3a8 [wlan]) from [<bf084abc>] (dxeRXEventHandler+0x2c0/0x44c [wlan])
<4>[  264.486617] [<bf084abc>] (dxeRXEventHandler+0x2c0/0x44c [wlan]) from [<bf1977bc>] (VosRXThread+0x344/0x408 [wlan])
<4>[  264.486693] [<bf1977bc>] (VosRXThread+0x344/0x408 [wlan]) from [<c01a9c70>] (kthread+0x84/0x90)
<4>[  264.486712] [<c01a9c70>] (kthread+0x84/0x90) from [<c0106908>] (kernel_thread_exit+0x0/0x8)
<3>[  264.486725] &@running_process@cpu1:*RX_Thread*
<3>[  265.490223] wcnss crash shutdown 0
I thing i have a desynchr with my custom kernel send, and i have a load adress to "null"
The Following 4 Users Say Thank You to delewer For This Useful Post: [ View ] Gift delewer Ad-Free
15th November 2013, 11:38 AM |#56  
Knucklessg1's Avatar
Senior Member
Thanks Meter: 104
 
More
Great work! There's been progress.

Sent from my C6603 using xda app-developers app
16th November 2013, 01:00 PM |#57  
Junior Member
Thanks Meter: 1
 
More
Yes, Great work! Will wait for Z1 MoDaCo Switch...
16th November 2013, 02:13 PM |#58  
Senior Member
Thanks Meter: 22
 
More
Quote:
Originally Posted by noryn

Yes, Great work! Will wait for Z1 MoDaCo Switch...

Sorry to interupt your thread but how would i get this going on the xperia U.
Is there a guide or any imformation on how to develop it???

Thanks bobthecooldad
The Following User Says Thank You to bobthecooldad For This Useful Post: [ View ] Gift bobthecooldad Ad-Free
17th November 2013, 01:26 PM |#59  
Olivier's Avatar
Forum Moderator / Recognized Developer
Flag Linz
Thanks Meter: 6,849
 
Donate to Me
More
Hi,
I've been monitoring this thread for a few days now and I'm surprised how fast progress is going on. Respect!
One question though: Will this patch make AOSP-based ROMs on LB possible or not?

Gesendet von meinem LT26i mit Tapatalk
17th November 2013, 01:46 PM |#60  
delewer's Avatar
OP Senior Member
Flag Paris
Thanks Meter: 235
 
More
It's the purpose !
Install any custom rom (miui, aosp, CM, paranoid, etc..)
Without risk of brick, lost TA, brick if OTA, lost camera.
And perform the only way for a multiboot on LB UL bootloader

It's ambitious, i know...
The Following 3 Users Say Thank You to delewer For This Useful Post: [ View ] Gift delewer Ad-Free
17th November 2013, 04:05 PM |#61  
Olivier's Avatar
Forum Moderator / Recognized Developer
Flag Linz
Thanks Meter: 6,849
 
Donate to Me
More
Ok, good.
But just out of curiosity, what has been done here, here and here? Didn't they just take CM ramdisk and somehow boot it?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes