cifs.ko for Abominable Snowman - Ouya Android Development

Desperate for proper cifs support, I tried out the STOCK PLUS rom from the forum but unfortunately it doesn't seem to support unicode characters (I assume the dev hasn't included nls_utf8.ko).
So what I'll do is to compile cifs.ko, nls_utf8.ko, md4.ko myself for the newest build of Ouya firmware that I can obtain, and share them here with people.
However since I'm a noob on this I need somebody to first give me a direction on how to compile the kernel modules. I've searched online but there doesn't seem to be a good tutorial anywhere. Apparently for many people it should be a piece-of-cake task though. If someone does respond and teache me the instructions then I'll do all the manual work and compile these things.
Hopefully eventually this post would be helpful for other people as well - I might compile other modules on demand and share here if I learn how in the end.
EDIT:
OK, apparently you'd need to configure the kernel and compile it with utf8 support.
1. clone this repo: https://github.com/ouya/ouya_1_1-kernel
2. follow the step-by-step kernel configuration tutorial at http://forum.xda-developers.com/showthread.php?t=2110842
3. note when you run 'make menuconfig'; remember to tick the utf8 option in the native language support section
I haven't had time to do this but theoretically it should give you the correct result.
Additional note:
Although STOCK PLUS does not support utf8 charset for smb (confirmed); it does support utf8 for nfs so you can instead do a nfs setup.

Related

Compatible cifs.ko

Can some one compile or point me to a cifs.ko that is compatible with the incredible. The ones I can find do not seem to be. Thanks in advance.
Interesting
http://linux.die.net/man/8/mount.cifs Not that I can help but if anyone wanted a quick reference.
Alot of the roms for other phones have it but its not compatible with out kernel. Is there a guide how to compile kernels? I made a couple in linux that worked. long ago..
here ya go...what app are you using to browse CIFS shares? I haven't tested this module, but just compiled it now.
Forgive me as I haven't actually tried this, but here is the 10,000 foot view:
At a minimum, you will need a linux system, with a gcc-arm cross compiler set up. I believe the android-sdk provides one. The version used by current kernels is gcc-4.4.4.
Then you will need the sources of the kernel you are running. The hydra kernel git tree is here: http://github.com/ejhart/Hydra-kernels.git , and the stock kernel sources are here: http://member.america.htc.com/download/RomCode/Source_and_Binaries/incrediblec_cc1c2268.tar.bz2
The hydra git tree doesn't seem to have a a working .config included, but this isn't so important if you are only building and installing kernel modules. From there, you'll need to configure the kernel in cross compiler mode, add the modules you want, and you will need to make sure the version magic string is identical to the kernel you are using. From there run make, and once the compile is finished, find the .ko 's you want, and push them to the /system/modules folder where you can insmod them.
Edit: You can use the .config from /proc/config.gz, didn't see it in there before.
mattwood2000 said:
here ya go...what app are you using to browse CIFS shares? I haven't tested this module, but just compiled it now.
Click to expand...
Click to collapse
I got one from another user but thanks do you still want me to try it? I mounted my share in a directory on the SDCARD so i can browse it with any file manager. I think any app that scans the sd card will also scan my server with about 8TB so that is a minor issue.
kernel compile guide
A guide for compiling kernels can be found here :
http://code.google.com/p/android-serialport-api/wiki/Htc
I not a techie and a newbie at any android development.
Since the guide is more or less a a set of instructions with no theory.
Got it to run, but not sure what I was doing.
Any assistance in provide either cifs.ko for the HTC Aria w/ kernel version :
liberty-2.6.29-21f066a6 or instructions on how to compile the module would be greatly
appreciated.
BTW - there an app on the store for automating the CIFS mount (CIFSManager
Regards,
-d
veli69 said:
I got one from another user but thanks do you still want me to try it? I mounted my share in a directory on the SDCARD so i can browse it with any file manager. I think any app that scans the sd card will also scan my server with about 8TB so that is a minor issue.
Click to expand...
Click to collapse
Could you please post the cifs.ko file that you have that works. Thanks.
OOMatter said:
Could you please post the cifs.ko file that you have that works.
Click to expand...
Click to collapse
Note that the post you quote was from before the 2.2 OTA, and hence that cifs.ko would be incompatible with the current kernel.
elborak said:
Note that the post you quote was from before the 2.2 OTA, and hence that cifs.ko would be incompatible with the current kernel.
Click to expand...
Click to collapse
Thanks for pointing that out. So does anyone have a compatible cifs.ko for the current DINC kernel?
OOMatter said:
Thanks for pointing that out. So does anyone have a compatible cifs.ko for the current DINC kernel?
Click to expand...
Click to collapse
I do. Check my blog. http://adrynalyne.us
Sent from my ADR6300 using XDA App
veli69 said:
Alot of the roms for other phones have it but its not compatible with out kernel. Is there a guide how to compile kernels? I made a couple in linux that worked. long ago..
Click to expand...
Click to collapse
http://marakana.com/forums/android/examples/111.html
GOOOOOOOOOOOOOOOOOOOOOOOOOOOGLE!!!!!!!!! YEAH!
Thats all fine and dandy except our source isn't on any git.
developer.htc.com
philips w732 vermagic '3.0.13 preempt mod_unload armv7' working cifs.ko and md4.ko modules
narod.ru/disk/63766749001.47b679339538b050028c3c7d87506dd2/md4.ko.html
narod.ru/disk/63743140001.693272f3661d5aac547ecc760f04db05/cifs.ko.html

[Q] Cifs-Support within Kernel

Hi,
I am just wondering why cifs-support does not apperar in any of the modded kernels? Is there no common request for it?
I for myself would love to stream media in my wifi-network at home. The available separate cifs.ko (and additional files like slow-work.ko) are installable by script for use in cifsmanager for example, but it is not convenient to install it after every reboot (and I dont get the sense of the additional files, too).
Is there any reason (kernel gets to slow/to big)? As far as I can see it is integrated in 2.2-Kernels for other mobiles.
Sorry for my english,
regards
GreyList
GreyList said:
Hi,
I am just wondering why cifs-support does not apperar in any of the modded kernels? Is there no common request for it?
I for myself would love to stream media in my wifi-network at home. The available separate cifs.ko (and additional files like slow-work.ko) are installable by script for use in cifsmanager for example, but it is not convenient to install it after every reboot (and I dont get the sense of the additional files, too).
Is there any reason (kernel gets to slow/to big)? As far as I can see it is integrated in 2.2-Kernels for other mobiles.
Sorry for my english,
regards
GreyList
Click to expand...
Click to collapse
it takes space, and imho it's less useful than tun.ko support. You can compile one with cifs support though.
sztupy said:
it takes space, and imho it's less useful than tun.ko support. You can compile one with cifs support though.
Click to expand...
Click to collapse
Maybe at least CONFIG_SLOW_WORK=y should be configured(I don't know if it is on custom kernels). This will remove the need for a second module for cifs and it's pretty small (130kb)

[Q][Sprint] Kernel compile

I'm having a problem compiling a kernel for a
Sprint CDMA 7" GT.
I use unpack-initramfs to grab the rootfs from
the original EF17 kernel.
I put that dir location in CONFIG_INITRAMFS_SOURCE=""
in the p1_defconfig file in Kernel/arch/arm/configs
In the kernel directory I issue the commands:
make clean
make p1_defconfig
make
The kernel compiles fine, but there's a 3Mb
difference between the original EF17 kernel
and the one I compile.
If I extract the rootfs from my kernel it's
the exact same as the one extracted from the
original. Have I missed a step? I've done this in the past for my Epic 4G.
i have similar issues that i've been battling with..the kernel coming out smaller isn't 100% indicative of a bad compile...i bet your kernel will boot but 3g (and possibly sound and more) don't work
i emailed samsung open source explaining what i did to compile and this was their response.
my query:
I downloaded the source code for the SPH-P100. I followed the directions in the README_kernel.txt to compile. As well as setting up the unmodified initramfs from the stock kernel. I can boot the kernel on the device however the resulting zImage size is 4.2MB compared to the 5.7MB zImage pulled from the device. I've not made any extra changes to the config or anything else other than what is needed to compile. Despite the size difference using the unmodified p1_defconfig (except setting the initramfs path), the problem that I have is the 3G radio will not start. I get a circle with the slash in the status bar and any dialer codes that pertain to the radio just force close. dmesg and logcats do not turn up any useful information or errors. Flashing the stock kernel back to the device alleviates the issue. So my questions are as follows: Is the source code complete? If so what could I be missing that would cause the radio to not start? Thank you in advance for any input on the issue.
Click to expand...
Click to collapse
and their response:
[SAMSUNG OSRC COMMENTS DELIVERY NOTIFICATION]
Dear customer,
Thank you for your continuous interest on our product.
We received your request on OSRC.
We reviewed your inquiry but unfortunately we couldnt publish the source code for some modules, because it is loadable kernel module and contains samsung proprietary code.
We published open source codes that are covered licenses which have obligation of publishing source code. (ex. GPL, LGPL, MPL...etc)
But we do not guarantee that open source code is excutable in target device. We are sorry for not giving you an correct anwser upto your satisfaction.
We are sorry for not giving you an correct anwser upto your satisfaction.
Thank you!
Sincerely yours
Click to expand...
Click to collapse
so for now until we can figure out what is missing we are out of luck as they are no help
when i have time i'll gladly work with you, oldmacnut, and any one else that can contribute into making a working base kernel from source
Thanks. This truly sucks and will impact my future choice of product purchases.

[Kernel] ElementalX+ (Some Help needed)

Hey,
first off, I'm not sure if this thread really belongs here, but I also thought its not something General and not a usual Q&A topic.
I see my self as a developer now, one really at the beginning, but I thought I can get the best help here.
So the most important step is already done, I know what I want to make. A better ElementalX (yes, hard do believe I know).
What i want to do? Add CPU OC Support (outside of the installer), GPU OC Support, GPU Voltage Control Support (for the KControl App) and more CPU and I/O Governors.
Also, if it works easy, I would try to add a short Boost of 2.8 GHz (or 2.6/2.7) like in faux123's Kernel, maybe for 2-5 Seconds, as it otherwise crashes (my nexus 5 at least).
So, are you interested? Yes? Cause so am I. I'm reading about how to make my own Kernel since a lot of time, but got back to it yesterday and today i installed Ubuntu 15.04 and updated it with anything needed.
GCC 4.9.2 was installed already, I followed this tutorials:
oh and before, i run Ubuntu 15.04 (Dual Boot) as I feel like in the totally wrong place with Linux and Ubuntu is easier for Windows people like me.
Code:
[URL="http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276"]http://forum.xda-developers.com/android/software/ultimate-guide-compile-android-kernel-t2871276[/URL]
the above link didnt gave me links to Google Devices Source Code so I searched for myself :
[URL="https://source.android.com/source/building-kernels.html"]https://source.android.com/source/building-kernels.html[/URL]
[URL="http://jhshi.me/2014/06/30/build-kernel-in-tree-with-aosp-for-nexus-5-hammerhead/"]http://jhshi.me/2014/06/30/build-kernel-in-tree-with-aosp-for-nexus-5-hammerhead/[/URL]
So, can someone give me a quick guide on how to get the source code of LMY48B Kernel?
I already did this:
Code:
sudo apt-get install openjdk-8-jre
sudo apt-get install openjdk-8-jdk
sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2
git clone https://android.googlesource.com/kernel/msm.git kernel
but i cant find that "Kernel" folder anywhere on my Ubuntu partition...
So what are my next steps? I could also try asking flar2 directly but I am not sure if he would give his source code to a noob like me
I would keep the Kernel private until I am confident with Updating it.
Is someone interested in working with me? would be more like me telling what I would like and him giving me the code oh well, maybe that's a bad idea :silly:
I am also open for Eclipse, as I already have that installed on Windows, sadly I'm unable to find the "Choose SDK location". Not in settings, not under help, not under any other tab. So I googled that problem and I just found out that other users seem also not able to find it. And I stopped using that thing. Maybe someone here knows how to do that, than I would start learning about how to do it in there again.
Help is very very appreciated.
https://dcrin3.com/unscrambled/?p=756
https://android.googlesource.com/kernel/msm/+/android-5.1.1_r0.6
xXDanielHDXx said:
I could also try asking flar2 directly but I am not sure if he would give his source code to a noob like me
I would keep the Kernel private until I am confident with Updating it.
Click to expand...
Click to collapse
All @flar2 work is already public. His N5 branch has been forked 26 times. Check his Github. As long as you give him credit if you ever release it as your own fork away.
garynych said:
https://dcrin3.com/unscrambled/?p=756
https://android.googlesource.com/kernel/msm/+/android-5.1.1_r0.6
Click to expand...
Click to collapse
thanks for the reply
the first page is really nice. Simple, yet anything I need is shown.
I already know the second one though. I tried to download the url with ubuntu but it said that that url doesnt include any git data.
Is there a correct url for that, or how to download it at all? That Question and maybe 1-2 more and I should have my Kernel ready

[Q] New Rookie Kernel Builder - seeking advice

Hi,
I am going to chance my arm and try and produce a modified kernel for my Z3C. The reason/incentive is because I want to add NFS filesystem support to my device for Kodi/XBMC. I've had a look at a guide that suggests all the necessary components are made available by Sony to do this.
1. Have I missed something and is there already something to provide NFS without me wasting my time?
2 Is this a stupid idea to start off on for someone with no dev experience?
3. Are there are any devs on here who would be open to offering limited support/advice if I get really stuck?
4. Assuming I am successful I will of course load the Kernel up on here for other people to use if they wish.
Cheers,
Ant

Categories

Resources