Compiling kernel modules for F series

Here for general support for F series TVs, request and problem solve area.

User avatar
bugficks
Official SamyGO Developer
Posts: 1062
Joined: Tue Jun 25, 2013 3:56 pm

Re: Compiling kernel modules for F series

Post by bugficks » Tue Oct 22, 2013 6:19 pm

i dont use nfs at all, cant even remember why i tried to build it in first place :) maybe juuso or denny did ask.

levi
Posts: 24
Joined: Tue Oct 01, 2013 11:27 pm

Re: Compiling kernel modules for F series

Post by levi » Tue Oct 22, 2013 6:53 pm

Hi arris69,
My current firmware is 1110.4:

Code: Select all

shell>cat /mtd_rwarea/Version.1
SWU_T-MST12UABC_001110_I06_CK000DK000KK000RK000EK000UK000_130911
My TV is an UA40F6400, originally it came with 1101.4, I've rooted it with that version. At time I've bought this TV it was offering an update to version 1102. After a while of playing with that original version I've gone crazy and decided to upgrade the firmware. Surprisingly there was a newer version (current one) and here I am. All i can tell from this version is that the widgets are much faster (particularly youtube) compared to old one. I lost root and SamyGo widget couple of times after resetting the SmartHub but i was still able to regain root access. Not sure if it is because of initial root or not.
P.S.
Currently TV is offering another update, this time version 1111, but I will not upgrade to it for a while.

levi
Posts: 24
Joined: Tue Oct 01, 2013 11:27 pm

Re: Compiling kernel modules for F series

Post by levi » Sat Oct 26, 2013 8:14 pm

Hi,
After getting in with serial cable now i can see what's happening when i try to mount nfs share and why TV is hanging. Obviously a kernel exception is happening.
Any ideas what can cause it?
SpoilerShow

Code: Select all

Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
================================================================================
 SMP Send Stop Other CPU!
================================================================================
CPU1: stopping
Process MTSMonitor (pid: 1266, stack limit = 0xc76be2f0)
================================================================================
 KERNEL Version : 0115, release
================================================================================
--------------------------------------------------------------------------------------
[VDLP] DISPLAY PC, LR in KERNEL Level
pc:bf48f4e0, ra:bf48f4cc
--------------------------------------------------------------------------------------
PC meminfo in kernel(0xbf48f4d0 to 0xbf48f4e0)
f4c0:                                     e5953020 e5952064 e50b102c e50b3028 
f4e0: e1923f9f                                                                
--------------------------------------------------------------------------------------
PC meminfo in kernel(0xbf48f4e4 to 0xbf48f500)
f4e0:          e2833001 e1821f93 e3310000 1afffffa e5943010 e50b2024 e24b102c 
f500: e1a02006                                                                
--------------------------------------------------------------------------------------
LR meminfo in kernel(0xbf48eccc to 0xbf48f4cc)
ecc0:                            bf4a5664 c03400c0 bf4a5e18 e1a0c00d e92ddff0 
ece0: e24cb004 e24dd01c e8910048 e24ba034 e50ba034 e50ba030 e20330d0 e35300d0 
ed00: 0a000004 e3560000 13e06000 e1a00006 e24bd028 e89daff0 e59f41e0 e5943024 
ed20: e2849024 e1530009 03a06000 0afffff6 e59f01cc eb38ae30 e5944024 e30000c0 
ed40: e34c0034 e5903000 e1540009 e1a05004 e4147008 0a000048 e3560000 0a000064 
ed60: e2433dea e59f819c e2477008 e2433018 e50b3038 ea000007 e1a05007 e1a04007 
ed80: e5b57008 e1550009 e2477008 0a00003c e2566001 0a00003a e59f1168 e5943024 
eda0: e50b103c e51b1038 e0612003 e3520000 ba000008 e30000c0 e34c0034 e5902000 
edc0: e0633002 e3530000 ba000002 e5943028 e3130004 1a000044 e594300c e5942008 
ede0: e5981010 e5823004 e5832000 e594302c e2411001 e5845008 e584500c e5881010 
ee00: e3530000 1affffdb e5943018 e593201c e2822008 e1a00002 e50b2040 eb38adf6 
ee20: e594302c e51b2040 e3530000 0a000002 e1a00002 eb38ac93 eaffffce e284002c 
ee40: e1903f9f e2833001 e1801f93 e3310000 1afffffa e51b3030 e584a008 e1a00004 
ee60: e50b5030 e584300c e5835000 e50b2040 ebfffeb8 e51b2040 eaffffec e59f1084 
ee80: e50b103c e51b203c e308351f e34531eb e5921010 e59f2070 e0830193 e5926000 
eea0: e1a032a3 e0060396 e59f0054 eb38ac75 e51b3034 e153000a 0affff93 e5932004 
eec0: e2430008 e5931000 e5812004 e5821000 e5833000 e5833004 ebffff27 e51b3034 
eee0: e153000a 1afffff4 eaffff87 e3a06000 eaffffec e59f200c e50b203c eaffffe0 
ef00: bf4a5664 bf4a5e18 bf4a5e10 c0348638 e1a0c00d e92ddff0 e24cb004 e24dd01c 
ef20: e590801c e24b5034 e1a06001 e5911000 e3a03001 e1a07002 e50b5030 e3493e37 
ef40: e50b0038 e5982004 e50b5034 e0030193 e2622020 e1a09233 eb2fecaf e5983000 
ef60: e1a00109 e50b003c e7934109 e3540000 1288a008 1a000003 ea000014 e5944000 
ef80: e3540000 0a000011 e594301c e1a00006 e1a01004 e1a02007 e593300c e12fff33 
efa0: e3500000 0afffff4 e1a0000a eb38ad92 e5943028 e1a0000a e3130004 1a000030 
efc0: eb38ac30 e5944000 e3540000 1affffed eb2fef28 e51b2038 e1a01006 e5923010 
efe0: e1a00002 e1a02007 e5933018 e12fff33 e3700a01 e1a0a000 81a04000 8a000042 
f000: e2883008 e1a00003 e50b3040 eb38ad7a e5983000 e7934109 e3540000 0a000049 
f020: e594301c e1a00006 e1a01004 e1a02007 e593300c e12fff33 e3500000 0a00003e 
f040: e284302c e1932f9f e2822001 e1831f92 e3310000 1afffffa e3540000 0a000039 
f060: e51b3030 e28a2008 e58a5008 e50b2030 e58a300c e5832000 e51b0040 eb38ac01 
f080: ea00000a e284302c e1932f9f e2822001 e1831f92 e3310000 1afffffa e1a0000a 
f0a0: eb38abf8 eb2feef3 e3540000 0affffc8 e5943028 e3130001 0a000005 e594301c 
f0c0: e5933004 e3530000 0a000001 e3170001 0a000010 e51b3034 e1530005 0a00000a 
f0e0: e5932004 e2430008 e5931000 e5812004 e5821000 e5833000 e5833004 ebfffe9e 
f100: e51b3034 e1530005 1afffff4 e1a00004 e24bd028 e89daff0 e51b0038 e1a01004 
f120: e12fff33 e2503000 aaffffe9 e1a00004 e1a04003 ebfffe90 eaffffe5 e5944000 
f140: e3540000 1affffb5 e28a1028 e3a00002 eb342142 e5982000 e51b003c e7923109 
f160: e0821000 e58a1004 e58a3000 f57ff05f e3530000 e782a109 11a0400a 1583a004 
f180: 01a0400a eaffffbb e1a0c00d e92dd800 e24cb004 e2802018 f57ff05f e1921f9f 
f1a0: e2411001 e182cf91 e33c0000 1afffffa f57ff05f e3510000 189da800 e5903010 
f1c0: e5933010 e12fff33 e89da800 e1a0c00d e92dd8f0 e24cb004 e59f611c e3500007 
f1e0: e1a04000 91a05000 83a05006 e1a07001 e7963105 e3530000 0a000038 e59f00fc 
f200: eb38acfd e7965105 e3550000 0a00001c e5952000 e3520000 0a00001e e1a0100d 
f220: e3c13d7f e3c3303f e5931004 e2811001 e5831004 e5921000 e3510002 03a06000 
f240: 0a000007 e5930014 e3a06001 e59f10b0 e5922108 e7911100 e7920001 e0800006 
f260: e7820001 e5932004 e2422001 e5832004 e5933000 e3130002 1a00001d e3560000 
f280: 1a000004 e59f0074 e3e04015 eb38ab7d e1a00004 e89da8f0 e59f0060 eb38ab79 
f2a0: e1a01004 e595300c e1a00007 e12fff33 e1a04000 e5950000 eb2fb606 e3740a01 
f2c0: 8afffff2 e5970038 e3500000 0a000000 ebffffac e5874038 e1a00004 e89da8f0 
f2e0: e59f1020 e1a02005 e3a00001 eb2f3e30 eaffffc1 eb38a3eb eaffffdf bf4a5664 
f300: bf4a5e10 c03485f0 bf4a35cc e1a0c00d e92ddff0 e24cb004 e24dd00c e1a08000 
f320: e24b5034 e59f0110 e5983004 e3a0a001 e2889008 e50b5034 e50b5030 e1a0a31a 
f340: eb38acad e1a00009 eb38acab e35a0000 0a000025 e59f40e4 e3a02000 e1a07002 
f360: e5986000 e7963102 e0866102 e3530000 0a000019 e283202c e1921f9f e2811001 
f380: e1820f91 e3300000 1afffffa e5931008 e2832008 e1a00003 e1520001 0a000005 
f3a0: e594e010 e593c00c e24ee001 e581c004 e584e010 e58c1000 e51b1030 e5835008 
f3c0: e50b2030 e583100c e5812000 ebfffd61 e5963000 e3530000 1affffe5 e2877001 
f3e0: e157000a e1a02007 1affffdc e1a00009 eb38ab24 e59f0040 eb38ab22 e51b3034 
f400: e1530005 0a00000a e5932004 e2430008 e5931000 e5812004 e5821000 e5833000 
f420: e5833004 ebfffdd4 e51b3034 e1530005 1afffff4 e24bd028 e89daff0 bf4a5e18 
f440: bf4a5e10 e1a0c00d e92dd818 e24cb004 e590401c e1a03000 e3540000 089da818 
f460: e3a02000 e1a00004 e583201c ebffffa6 e5940000 eb30b54d e1a00004 eb30b54b 
f480: e89da818 e1a0c00d e92dd870 e24cb004 e24dd014 e59f30c8 e1a0c00d e1a04000 
f4a0: e3cc2d7f e1a06001 e3c2203f e592200c e5933000 e59251dc e3130010 1a000023 
f4c0: e3a01010 e24b002c eb342024 e595101c                                     
--------------------------------------------------------------------------------------

Internal error: Oops: 17 [#1] PREEMPT SMP
Modules linked in:
 nfs(0xbf4f0000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 exportfs(0xbf4ee000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 lockd(0xbf4dd000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 auth_rpcgss(0xbf4d3000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 sunrpc(0xbf485000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 ARS_module(P)(0xbf471000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 usb_storage(0xbf3da000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 exfat_fs(P)(0xbf3d3000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 exfat_core(P)(0xbf3c4000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 tntfs(P)(0xbf35a000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 ftdi_sio(0xbf350000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 usbserial(0xbf347000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 mdrv_emac(0xbf33f000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 bthid(0xbf33b000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 hid_chicony(0xbf337000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 hid_apple(0xbf333000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 hid_microsoft(0xbf32f000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 mousedev(0xbf32a000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 evdev(0xbf325000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 usbhid(0xbf31e000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 hid(0xbf311000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 snd_pcm(0xbf2f4000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 snd_page_alloc(0xbf2f0000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 snd_hwdep(0xbf2ec000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 snd_rawmidi(0xbf2e5000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 snd_seq_device(0xbf2e1000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 snd_timer(0xbf2da000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 snd(0xbf2d0000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 soundcore(0xbf2cc000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 v4l2_common(0xbf2c9000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 videodev(0xbf2b6000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 v4l2_int_device(0xbf2b4000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 ath6kl_usb(0xbf23b000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 cfg80211(0xbf212000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 samsung_mstar(0xbf06f000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 btusb(0xbf063000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 compat(0xbf05f000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 samsung_mali(0xbf045000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 tzdrv(0xbf03d000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 ehci_hcd(0xbf02f000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 usbcore(0xbf013000) kernel version : 0115, release SMP preempt mod_unload ARMv7 
 PreInit(0xbf000000) kernel version : 0115, release SMP preempt mod_unload ARMv7 

CPU: 0    Tainted: P             (3.0.33 #1)
pc : [<bf48f4e0>]    lr : [<bf48f4cc>]    psr: 40000153
sp : d08f5e70  ip : 00000000  fp : d08f5e9c
r10: 00000000  r9 : bf48e310  r8 : 00000001
r7 : bf4a5708  r6 : 00000001  r5 : d08eba00  r4 : bf4a5708
r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : d08f5e80
Flags: nZcv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment kernel
Control: 18c53c7d  Table: bed2004a  DAC: 00000015
Process kworker/0:2 (pid: 1657, stack limit = 0xd08f42f0)
Stack: (0xd08f5e70 to 0xd08f6000)
5e60:                                     00000000 00000000 00000000 00000000
5e80: d9b582e8 d836ea00 00000001 d94cd000 d08f5ecc d08f5ea0 bf48f8d4 bf48f490
5ea0: bf488fd4 c02ba094 bf48537c d836ea00 d836ea00 c0c1a240 bf4a8be8 c03483c0
5ec0: d08f5ee4 d08f5ed0 bf4854cc bf48f7bc bf485480 d836ea00 d08f5f1c d08f5ee8
5ee0: bf48e038 bf48548c d08f5f5c d08f5ef8 c02b7e0c dae11400 c0c1a240 c0c20400
5f00: d08f4000 00000000 bf48e310 d836ea44 d08f5f2c d08f5f20 bf48e324 bf48dfe8
5f20: d08f5f6c d08f5f30 c00611b4 bf48e31c c0c1a248 dae11400 dae11400 c0c20405
5f40: d08f5f5c dae11400 c0c1a240 c0c1a248 dae11410 d08f4000 c00271c0 c03485f0
5f60: d08f5fb4 d08f5f70 c00617c8 c00610ac 00000013 00000001 00000000 c00271c0
5f80: c00271c0 c00271c0 00000013 dae13eb8 dae11400 c0061648 00000013 00000000
5fa0: 00000000 00000000 d08f5ff4 d08f5fb8 c0065cc4 c0061654 00000000 00000000
5fc0: dae11400 00000000 00000000 00000000 d08f5fd0 d08f5fd0 00000000 dae13eb8
5fe0: c0065c38 c004e8c0 00000000 d08f5ff8 c004e8c0 c0065c44 6062801a b780c014
Backtrace: 
Function entered at [<bf48f484>] from [<bf48f8d4>]
 r6:d94cd000 r5:00000001 r4:d836ea00
Function entered at [<bf48f7b0>] from [<bf4854cc>]
 r7:c03483c0 r6:bf4a8be8 r5:c0c1a240 r4:d836ea00
Function entered at [<bf485480>] from [<bf48e038>]
 r4:d836ea00 r3:bf485480
Function entered at [<bf48dfdc>] from [<bf48e324>]
Function entered at [<bf48e310>] from [<c00611b4>]
Function entered at [<c00610a0>] from [<c00617c8>]
Function entered at [<c0061648>] from [<c0065cc4>]
Function entered at [<c0065c38>] from [<c004e8c0>]
 r6:c004e8c0 r5:c0065c38 r4:dae13eb8
Code: e5953020 e5952064 e50b102c e50b3028 (e1923f9f) 
[SELP] while loop ... please attach T32...

User avatar
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Compiling kernel modules for F series

Post by arris69 » Sat Oct 26, 2013 8:59 pm

levi wrote:Hi,
After getting in with serial cable now i can see what's happening when i try to mount nfs share and why TV is hanging. Obviously a kernel exception is happening.
Any ideas what can cause it?
....]
guess the authnull_ops struct is not alocated....

try to remove the umount stuff what some stupid samsung devs made there....

levi
Posts: 24
Joined: Tue Oct 01, 2013 11:27 pm

Re: Compiling kernel modules for F series

Post by levi » Mon Oct 28, 2013 12:58 pm

Thanks arris69,
Unfortunately i was not able to do

Code: Select all

patch -p1 -D < $the_patch_set_from_your_link
all patch set was rejected. I've gone into trouble to manually delete sections in patch. During this I've found that there are some files which are patched twice (exact same lines are repeated twice), some files missing declarations from the link. :?
Anyway i've been able to successfully compile new modules with removed code and will try to load/mount them at evening (i am at work right now).
Also i will try to add missing code and try that way too.

Thank You very much for ideas!
what some stupid samsung devs made there....
Are You sure that this changes are made by samsung?
Here i can read that this patch is made by someone called Namjae Jeon.

User avatar
juusso
SamyGO Moderator
Posts: 10093
Joined: Sun Mar 07, 2010 6:20 pm

Re: Compiling kernel modules for F series

Post by juusso » Mon Oct 28, 2013 3:05 pm

Namjae Jeon | LinkedIn
http://www.linkedin.com/pub/namjae-jeon/65/118/191?
???? - ?Samsung Electronics? SW Engineer(Linux Kernel)
:)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

User avatar
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Compiling kernel modules for F series

Post by arris69 » Mon Oct 28, 2013 5:24 pm

levi wrote:Thanks arris69,
Unfortunately i was not able to do

Code: Select all

patch -p1 -D < $the_patch_set_from_your_link
all patch set was rejected. I've gone into trouble to manually delete sections in patch. During this I've found that there are some files which are patched twice (exact same lines are repeated twice), some files missing declarations from the link. :?
Anyway i've been able to successfully compile new modules with removed code and will try to load/mount them at evening (i am at work right now).
Also i will try to add missing code and try that way too.
probably there are some more (later) patches applied too, smasung use the nfs stuff for the evo-kit so don't wonder that it's "dead patched"

Here i can read that this patch is made by someone called Namjae Jeon.
yes, and the patch was rejected by nfs maintainer.... so it just can came from ignorant korean people.

levi
Posts: 24
Joined: Tue Oct 01, 2013 11:27 pm

Re: Compiling kernel modules for F series

Post by levi » Tue Oct 29, 2013 9:56 am

That was funny! :-D
Unfortunately removing the patch did not helped... still the same...
Is it wise to try to replace fs/nfs/ directory from git tree? I am sure there will be much problems with that, but still worth to try...

User avatar
arris69
Official SamyGO Developer
Posts: 1700
Joined: Fri Oct 02, 2009 8:52 am
Location: Austria/Vienna (no Kangaroos here)
Contact:

Re: Compiling kernel modules for F series

Post by arris69 » Tue Oct 29, 2013 4:19 pm

levi wrote:That was funny! :-D
Unfortunately removing the patch did not helped... still the same...
Is it wise to try to replace fs/nfs/ directory from git tree? I am sure there will be much problems with that, but still worth to try...
you can try it, but think there are also some files in include directory affected?

you can try anything you like, loading of a non working nfs module won't brick your tv :-)

User avatar
juusso
SamyGO Moderator
Posts: 10093
Joined: Sun Mar 07, 2010 6:20 pm

Re: Compiling kernel modules for F series

Post by juusso » Wed Nov 13, 2013 8:24 pm

solevi, have you got any success with "authnull_ops"?

Btw, if you repeat compilation of nfs modules after that error, this time module is compilled

Code: Select all

<...>
ERROR: "authnull_ops" [fs/nfs/nfs.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
root@iam-desktop:/opt/project/user_firmware_T-MST12/VDLinux_3.0.20/linux-3.0.20#
root@iam-desktop:/opt/project/user_firmware_T-MST12/VDLinux_3.0.20/linux-3.0.20#make ARCH=arm CROSS_COMPILE=arm-v7a8v3r1-linux-gnueabi- modules M=fs/nfs
  Building modules, stage 2.
  MODPOST 2 modules
WARNING: "authnull_ops" [fs/nfs/nfs.ko] undefined!
  CC      fs/nfs/nfs.mod.o
  LD [M]  fs/nfs/nfs.ko
  CC      fs/nfs/nfs_layout_nfsv41_files.mod.o
  LD [M]  fs/nfs/nfs_layout_nfsv41_files.ko
Problem is, that even compiled, nfs.ko fails to insmod telling dmesg about Unknown symbol authnull_ops (err 0)
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

Post Reply

Return to “[F] Support”