Android @ MoDaCo: Using 'make' to compile stuff - Android @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Using 'make' to compile stuff
-----


#1 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 14 November 2007 - 10:48 PM

Is it possible? I used the Debian etch repositories to install build-essential, but it borks out, I THINK because headers aren't installed. Any linux gurus?

I want to compile usb-rndis-lite on it ;)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0

Sponsored Links


#2 User is offline   Subliminal Aura 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 374
  • Joined: 08-October 07
  • Devices:ipaq 3630|Nokia 6210i|BooTooth

Posted 15 November 2007 - 10:00 AM

Moooo Haaaa

Best build it on another box and move the kernel over providing you're using similar architecture.

Otherwise I think it'll be a painful process of seeing what glibc libraries you have installed and yes you'll need kernel-headers etc etc

The later route is more simpler but depends on how much disk space you have left on your EEE.

SA

0


#3 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 15 November 2007 - 10:11 AM

Plenty of space, I guess the question is if / how I get the Kernel headers!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#4 User is offline   Subliminal Aura 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 374
  • Joined: 08-October 07
  • Devices:ipaq 3630|Nokia 6210i|BooTooth

Posted 15 November 2007 - 10:19 AM

root@XXXXX:/etc/apache2# dpkg -l | grep kern
ii iptables 1.2.11-10 Linux kernel 2.4+ iptables administration to
ii kernel-image-2 101 Linux kernel image for version 2.4 on PPro/C
ii kernel-image-2 2.4.27-10sarge Linux kernel image for version 2.4.27 on PPr
ii kernel-image-2 2.6.8-16sarge1 Linux kernel image for version 2.6.8 on PPro
ii linux-image-2. posi.1 Linux kernel binary image for version 2.6.18
ii linux-kernel-h 2.5.999-test7- Linux Kernel Headers for development
ii module-init-to 3.2.2-1bpo1 tools for managing Linux kernel modules

Wonder if they have it in their repositories... give it a try

apt-get install linux-kernel-headers

This post has been edited by Subliminal Aura: 15 November 2007 - 10:29 AM

0


#5 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 15 November 2007 - 10:32 AM

Hmm, apparently linux-kernel-headers is already the latest version, so I guess that's not the issue!

When I run make I get:

'/lib/modules/2.6.21.4-eeepc/build: No such file or directory.'

Sure enough, although /lib/modules/2.6.21.4-eeepc exists, the build subdir does not. Doh!

Extreme Linux newbie alert ;)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#6 User is offline   Subliminal Aura 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 374
  • Joined: 08-October 07
  • Devices:ipaq 3630|Nokia 6210i|BooTooth

Posted 15 November 2007 - 11:08 AM

Where are my kernel headers ?

dpkg -L linux-kernel-headers

Read TFM time ;) http://www.synce.org.../Kernel_Headers

Specifically this line : Creating the symlink to the the kernel headers

ln -sf /usr/src/linux- /lib/modules//build

However I get the feeling that you'll need the kernel source too ? :|

PS This is the easy bit wait until you try getting synce to work LOL

0


#7 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 15 November 2007 - 11:19 AM

/usr/src is empty ;)

I've got usb-rndis-lite working before, just getting the damn thing compiled from SVN is the issue atm!

So how do I get kernel source? Isn't it apt-get source or something?

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#8 User is offline   Subliminal Aura 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 374
  • Joined: 08-October 07
  • Devices:ipaq 3630|Nokia 6210i|BooTooth

Posted 15 November 2007 - 11:20 AM

View PostPaul (MVP), on Nov 15 2007, 11:19, said:

So how do I get kernel source? Isn't it apt-get source or something?


Indeed ;)

0


#9 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 15 November 2007 - 11:28 AM

No source repositories defined.

BAH!

There has to be an easier way of getting the latest version of usb-rndis-lite installed, aside from just installing Ubuntu on the Eee (which is looking more and more attractive I have to say!)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#10 User is offline   Subliminal Aura 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 374
  • Joined: 08-October 07
  • Devices:ipaq 3630|Nokia 6210i|BooTooth

Posted 15 November 2007 - 11:29 AM

View PostPaul (MVP), on Nov 15 2007, 11:28, said:

No source repositories define.

BAH!

There has to be an easier way of getting the latest version of usb-rndis-lite installed, aside from just installing Ubuntu on the Eee (which is looking more and more attractive I have to say!)

P


Mate I'd stick to Xandros if I were you.

Xandros looks like to be well suited and customised specifically to run on the EEE.

Now you're tempting me to buy 1 just so that I can configure 'stuff' ;)

This post has been edited by Subliminal Aura: 15 November 2007 - 11:41 AM

0


#11 User is offline   Subliminal Aura 

  • Diehard
  • PipPipPipPip
  • Group: Members
  • Posts: 374
  • Joined: 08-October 07
  • Devices:ipaq 3630|Nokia 6210i|BooTooth

Posted 15 November 2007 - 11:45 AM

If you want to go 'HARDCORE' then you can try building a new kernel for the EEE, to make life easier check if you've got a /proc/config (the kernel config)

If you have (which I doubt) then you can build your kernel by preparing .config with make oldconfig

This post has been edited by Subliminal Aura: 15 November 2007 - 11:46 AM

0


#12 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 16 November 2007 - 12:51 PM

Quote

Now you're tempting me to buy 1 just so that I can configure 'stuff' :(

Do it! Do it! ;)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#13 User is offline   MECX 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,077
  • Joined: 27-December 02
  • Location:Norwich (ish)
  • Interests:Phones Woman Cars etc

Posted 05 January 2008 - 01:21 AM

Hey Paul,

Im trying to do exactly the same thing as you and am stuck at the same point, did you by any chance find a fix or another way to get this working?

Cheers in advance ;-)

Lifes nothin but bitches and money
O:) :-# :-({|= =D> :D/ #-o =p~ :-s =; :^o [-X [-o< :-$ 8-[ :-& :cheesy: [-( :-k ](*,) :-" :arrow: :arrowd: :arrowl: :arrowu: :D :?: 8) :cry: :shock: :evil: :exclaim: :frown: :idea: :lol: :x :mrgreen: :| :??: :P :oops: :roll: :( :) :o :twisted: ;)
0


#14 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 05 January 2008 - 10:58 AM

I didn't, I kinda gave up and started playing with something else I imagine :(

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#15 User is offline   MECX 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,077
  • Joined: 27-December 02
  • Location:Norwich (ish)
  • Interests:Phones Woman Cars etc

Posted 05 January 2008 - 05:48 PM

ok figured it out,

http://dlsvr01.asus.com/pub/ASUS/EeePC/701...rnel_071127.rar

download the kernel from asus above, unrar it somewhere and run:-

sudo make
sudo make install

you then need to link it into the /build directory

ln -sf /usr/src/linux- /lib/modules//build

to get the kernel version run uname -r.



You can then install rndis-lite as per the following instructions.
http://forum.xda-dev...ad.php?t=340747



Issue im having is that even tho I add the following to /etc/network/interfaces

auto rndis0
iface rndis0 inet dhcp

I still cant get a connection when plugging the phone in with internet sharing on.

After some playing I can get internet sharing to work when running the following commands:-

dhclient3 -r -pf /var/run/dhclient.rndis0.pid -lf /var/run/dhclient.rndis0.leases rndis0
ifconfig rndis0 down
ifconfig rndis0 up
dhclient3 -cf /etc/dhcp3/dhclient.$LOGICAL.conf -pf /var/run/dhclient.rndis0.pid -lf /var/run/dhclient.rndis0.leases rndis0


Anyone come up with any suggestions on how to make WM6 internet sharing just work on pluging in the phone?

This post has been edited by MECX: 05 January 2008 - 05:55 PM

Lifes nothin but bitches and money
O:) :-# :-({|= =D> :D/ #-o =p~ :-s =; :^o [-X [-o< :-$ 8-[ :-& :cheesy: [-( :-k ](*,) :-" :arrow: :arrowd: :arrowl: :arrowu: :D :?: 8) :cry: :shock: :evil: :exclaim: :frown: :idea: :lol: :x :mrgreen: :| :??: :P :oops: :roll: :( :) :o :twisted: ;)
0


#16 User is online   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,355
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 07 January 2008 - 11:07 AM

Ah ha, nice one, will have a play!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#17 User is offline   MECX 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,077
  • Joined: 27-December 02
  • Location:Norwich (ish)
  • Interests:Phones Woman Cars etc

Posted 07 January 2008 - 02:27 PM

Any issues give me a shout.

Gave up on getting it to work when its plugged in, just stuck the commands in my last post in a .sh file, made it executable and stuck it on the desktop.


Getting over 1mbit with my Treo 750v on Vodafone :-)

Lifes nothin but bitches and money
O:) :-# :-({|= =D> :D/ #-o =p~ :-s =; :^o [-X [-o< :-$ 8-[ :-& :cheesy: [-( :-k ](*,) :-" :arrow: :arrowd: :arrowl: :arrowu: :D :?: 8) :cry: :shock: :evil: :exclaim: :frown: :idea: :lol: :x :mrgreen: :| :??: :P :oops: :roll: :( :) :o :twisted: ;)
0


#18 User is offline   clarkee 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 01-April 08

Posted 01 April 2008 - 05:14 PM

Hi,

I have a 2G Surf and I don't have the disk space to do a build of this nature.

Is there any chance you could post the kernel so I can use your pre-built one. I have a HTC Touch and REALLY want to get some internet-on-the-move over USB :D

This would probably be handy for a lot of other people with the same issue.


Thanks (in advance!)

0


#19 User is offline   MECX 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,077
  • Joined: 27-December 02
  • Location:Norwich (ish)
  • Interests:Phones Woman Cars etc

Posted 01 April 2008 - 06:16 PM

Im sorry mate, I feel dirty saying this but I wiped my linux install to put windows on :-P


I had issues with the (rather buggy) linux version of Skype which is why I switched.

My Windows install is about 1.3GB (nlited a little) so you might be able to squeeze it on to your 2GB............. Im actually very happy with it for web-browsing skype/messenger etc (and thats coming from someone who runs ubuntu on his main machine)

Lifes nothin but bitches and money
O:) :-# :-({|= =D> :D/ #-o =p~ :-s =; :^o [-X [-o< :-$ 8-[ :-& :cheesy: [-( :-k ](*,) :-" :arrow: :arrowd: :arrowl: :arrowu: :D :?: 8) :cry: :shock: :evil: :exclaim: :frown: :idea: :lol: :x :mrgreen: :| :??: :P :oops: :roll: :( :) :o :twisted: ;)
0


Sponsored Links

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!