Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,769,124 Members 38,934 Now Online
XDA Developers Android and Mobile Development Forum

Compiling X10 kernel sources

Tip us?
 
alx5962
Old
(Last edited by alx5962; 2nd July 2010 at 07:45 PM.) Reason: path typo
#1  
Senior Member - OP
Thanks Meter 104
Posts: 246
Join Date: Jun 2007
Location: Lille
Default Compiling X10 kernel sources

As I was told Sony released Xperias X100 kernel sources I decided to play a little with them. This tutorial is for advanced users by the way as you need some linux knowledge (wrote it from memory as I did it one day ago).
As I'm new to cross compiling it took me a while to configure the platform correctly (I did it on Ubuntu 10.04).

- Get the sources here : http://developer.sonyericsson.com/wp...01?cc=gb&lc=en

- Tutorial to set up the environment correctly : : http://source.android.com/source/download.html

- the make config file is available in the phone under '/proc/config.gz'
and 'adb pull /proc/config.gz'

* So after you set up everything as described in the android.com page in ubuntu :
- mkdir x10
- copy the kernel sources and config.gz to the x10 folder
- gunzip X10_Donut_100325_01.tar.gz
- tar -xvf X10_Donut_100325_01.tar
- go to the kernel directory in the X10_Donut_100325_01 folder
- gunzip config.gz
- rename it to .config and move it to the kernel folder (mv config X10_Donut_100325_01/esheep_linux/LINUX/android/kernel/.config)

- make ARCH=arm CROSS_COMPILE=path-to-git-repo/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi- menuconfig to choose what to compile as module
- make ARCH=arm CROSS_COMPILE=path-to-git-repo/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi- modules
'path-to-git-rep' is the folder where your placed your git repository files

a long time after this modules are compiled from source !

* I know usb host mode was already made for nexus one :
http://sven.killig.de/android/N1/2.2/usb_host/
So I looked in the Xperia kernel config and noticed usb-host was compiled with the current kernel.
I compiled the sources and added kernel modules as an attached file.

Unluckily I don't have a Powered USB 2.0 hub providing its power to the upstream port and a female usb connector to mini-usb so I cannot test if my kernel module is correctly compiled.
So if someone has this hardware please :
- copy those attached files to sdcard then
- adb shell
- su to get root
- 'busybox insmod /sdcard/usb-storage.ko'
- 'busybox lsmod' to check if module is loaded
- plug the usb hub to your X10
- plug an usb stick
- ' busybox dmesg | busybox tail' to get more infos and check if the stick is detected, if yes tell me

I also compiled the usb-serial modules so if someone has an Arduino board you may plug it to your X10 now

Of course I have no guarantee this will work (this is my first cross compiling!) so feedback is welcome !

Also my tutorial is not very great, but I hope it may help few people here.
Attached Files
File Type: zip modules1.zip - [Click for QR Code] (488.4 KB, 377 views)
Samsung Note II
Nexus 5
Nexus 7

I don't ask for donation, but at least fill my thanks meter
The Following 2 Users Say Thank You to alx5962 For This Useful Post: [ Click to Expand ]
 
thor2002ro
Old
#2  
thor2002ro's Avatar
Senior Member
Thanks Meter 518
Posts: 717
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
niiiiiceee what about smb module so we can mount stuff from network video streaming over wifi here we come
_________________________
Dropbox! So useful for sharing files among multiple computers and ANDROID Phone get 2.30GB storage -> LINK

Samsung Galaxy Note - [glow=red]Drowned[/glow]

Samsung Galaxy Note 2(EMMC FRIED THX SAMSUNG FOR THE GREAT EMMC FW.... ALSO NOTE TO SELF KERNEL FW PATCH ... USELESS!!!)
FW: Tegraowners JB ROM
Kernel: thor-kernel

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners 4.4.4 ROM
Recovery: touch recovery 2.0b1

Asus Google Nexus 7 Wifi
FW: Tegraowners JB-MR2 ROM
 
alx5962
Old
#3  
Senior Member - OP
Thanks Meter 104
Posts: 246
Join Date: Jun 2007
Location: Lille
Quote:
Originally Posted by thor2002ro View Post
niiiiiceee what about smb module so we can mount stuff from network video streaming over wifi here we come
if someone tells me my compiled modules work, I will compile what's possible (as some modules depend on how kernel was compiled).
Samsung Note II
Nexus 5
Nexus 7

I don't ask for donation, but at least fill my thanks meter
 
alx5962
Old
#4  
Senior Member - OP
Thanks Meter 104
Posts: 246
Join Date: Jun 2007
Location: Lille
it's working !!!!!!!!!!!!!!!!!
I just compiled the samba cifs kernel module, installed and mounted it !
Now I'm seeing all my files shared on the computer

The attached file is the kernel module managing samba :

So you need to follow these steps :

- adb shell
- su
- busybox insmod /sdcard/modules/cifs.ko
- mkdir /data/local/share
- mount -t cifs -o username="myuser",password="mypass" //192.168.0.1/files /data/local/share
Attached Files
File Type: zip cifs.zip - [Click for QR Code] (1,000.9 KB, 153 views)
Samsung Note II
Nexus 5
Nexus 7

I don't ask for donation, but at least fill my thanks meter
 
tuxStyle
Old
#5  
Senior Member
Thanks Meter 23
Posts: 690
Join Date: Apr 2010
Location: Montreal
It will be nice if you make it work the other way around.
To share the phone sdcard
 
thor2002ro
Old
#6  
thor2002ro's Avatar
Senior Member
Thanks Meter 518
Posts: 717
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
THANK YOUUUU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Guess i have to start making mounting scripts
_________________________
Dropbox! So useful for sharing files among multiple computers and ANDROID Phone get 2.30GB storage -> LINK

Samsung Galaxy Note - [glow=red]Drowned[/glow]

Samsung Galaxy Note 2(EMMC FRIED THX SAMSUNG FOR THE GREAT EMMC FW.... ALSO NOTE TO SELF KERNEL FW PATCH ... USELESS!!!)
FW: Tegraowners JB ROM
Kernel: thor-kernel

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners 4.4.4 ROM
Recovery: touch recovery 2.0b1

Asus Google Nexus 7 Wifi
FW: Tegraowners JB-MR2 ROM
 
thor2002ro
Old
#7  
thor2002ro's Avatar
Senior Member
Thanks Meter 518
Posts: 717
Join Date: Oct 2007
Location: 127.0.0.1

 
DONATE TO ME
Quote:
Originally Posted by tuxStyle View Post
It will be nice if you make it work the other way around.
To share the phone sdcard
that is not module related....
making modules for this kernel is actually a big deal we can add more functionality to the kernel
_________________________
Dropbox! So useful for sharing files among multiple computers and ANDROID Phone get 2.30GB storage -> LINK

Samsung Galaxy Note - [glow=red]Drowned[/glow]

Samsung Galaxy Note 2(EMMC FRIED THX SAMSUNG FOR THE GREAT EMMC FW.... ALSO NOTE TO SELF KERNEL FW PATCH ... USELESS!!!)
FW: Tegraowners JB ROM
Kernel: thor-kernel

Acer ICONIA A500 TAB WIFI Only
FW: Tegraowners 4.4.4 ROM
Recovery: touch recovery 2.0b1

Asus Google Nexus 7 Wifi
FW: Tegraowners JB-MR2 ROM
 
tuxStyle
Old
#8  
Senior Member
Thanks Meter 23
Posts: 690
Join Date: Apr 2010
Location: Montreal
Quote:
Originally Posted by thor2002ro View Post
that is not module related....
making modules for this kernel is actually a big deal we can add more functionality to the kernel
I know don't worry.
The idea was to use cross-compiling to compile samba for android

By the way: tot asa scumpi sunt aia de la Orange?
 
instigator008
Old
#9  
instigator008's Avatar
Senior Member
Thanks Meter 35
Posts: 650
Join Date: Jan 2010
Location: Mississauga
Nice work!

Is USB Host also on the cards, as well as overclocking?
Current Phone: HTC One
ROM: Ordroid
Previous Phone: Galaxy Note 2 I317M
Carrier: Bell Mobility
 
alx5962
Old
#10  
Senior Member - OP
Thanks Meter 104
Posts: 246
Join Date: Jun 2007
Location: Lille
Quote:
Originally Posted by instigator008 View Post
Nice work!

Is USB Host also on the cards, as well as overclocking?
usb host is on first post but as i don't have a female usb to mini usb cable i cannot test it myself...

about overclocking i have no idea what's linked to it in kernel.
Samsung Note II
Nexus 5
Nexus 7

I don't ask for donation, but at least fill my thanks meter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes