Author Topic: Native Linux on GP one  (Read 10059 times)

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Native Linux on GP one
« on: December 30, 2010, 05:48:20 AM »
Hello my name is Bruno and im new at this community.
Im also a linux fan boy and i cant resist the temptation of having a linux box on my pocket. I like android, but i like linux more and i want to test kde mobile on it.
My question is, how can i make booteable image with gentoo or even debian or ubuntu to run a native linux on the device?
Is there a way to, lets say, dual boot android and linux?
I have some knowlidge about compilers and so and i am familiar with linux commands.
If anyone can point me on the right direction, it will be cool.
Oh! and sorry about my english, im argentinian.
kisses in the ass.
b0b.-
Windows is easier than Linux, just like crapping your pants is easier than going to the bathroom.

Offline talpa

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 59
  • Karma: 0
    • View Profile
    • My webpage
Re: Native Linux on GP one
« Reply #1 on: December 31, 2010, 05:16:50 AM »
I am no expert (I don't even have my GP One yet, expecting to get my dirty hands on it Tuesday)

But I too have an interest in running a "plain" Linux (Debian) on it.
Currently this is not possible.... However it is possible to build firmwares for the GP One

So it might be possible to replace the Android Linux kernel with UBoot making it a second stage bootloader?

The modified Android image could then be loaded by UBoot or some Linux distro from SD card.

But remember this is only theory and will most certainly require a lot of work.

Offline w

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Native Linux on GP one
« Reply #2 on: January 03, 2011, 04:23:25 PM »
I did manage to boot debian on the phone, get a serial console over USB and I also got Xfbdev to work (without input tho)

I used a special initrd to boot debian from an SD-card, but I was unable to get the RIL to work, which is needed for the phone-stuff, wifi and sound IIRC. If someone feel they want to play a bit more with it I'll see if I can find the initrd and the kernel config :-)

Offline talpa

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 59
  • Karma: 0
    • View Profile
    • My webpage
Re: Native Linux on GP one
« Reply #3 on: January 07, 2011, 11:33:11 AM »
I wouldn't mind taking a peek at how you did it :-)

Maybe you could start a wiki page on running "other" OS'es on th GP One

Offline Mosquito Fillano

  • Top Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1425
  • Karma: 38
  • ONE: CyanogenMod 7.1  ZERO: GZR 1.6
    • View Profile
Re: Native Linux on GP one
« Reply #4 on: January 07, 2011, 02:22:03 PM »
I would like to see linux in my GP1...

Unfortunately I have no time to do tests and contribute... The maximum I could do was to create a loop with debian and a chroot, so in fact, the kernel was the android one...

However, I would like to test your work, so it would be nice if you publish how to do it...
  ...porque me gustó la iniciativa de Juan Gómez-Jurado

andaluz27

  • Guest
Re: Native Linux on GP one
« Reply #5 on: January 08, 2011, 02:04:28 AM »
Hi, I also am interested and make for tester. Could you tell us the steps?.

Greetings

andaluz27

  • Guest
Re: Native Linux on GP one
« Reply #6 on: January 08, 2011, 04:06:14 AM »
¿Maemo o Meego?.

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Re: Native Linux on GP one
« Reply #7 on: January 11, 2011, 09:16:31 AM »
i found something that may help us with this.. i dont have time now to test this method but ill try this week end.
For u to enjoy: http://wiki.openmoko.org/wiki/OpenMoko_on_HTC-Dream
you can also enlight yourself with some of this thread: http://forum.geeksphone.com/index.php?topic=1245.15

its not our hardaware its not our kernel but i think the method may be the same for us.
Bruno.-
« Last Edit: January 11, 2011, 09:27:34 AM by b0b »
Windows is easier than Linux, just like crapping your pants is easier than going to the bathroom.

Offline talpa

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 59
  • Karma: 0
    • View Profile
    • My webpage
Re: Native Linux on GP one
« Reply #8 on: January 11, 2011, 12:46:32 PM »
The method uses FastBoot which I believe is not available on the GPOne  :(

However the updater.zip contains a compressed version of the Android FS?
And the Android kernel, exchanging the root FS should? be possible as well as replacing the kernel if we felt like it.

http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack%2C_Edit%2C_and_Re-Pack_Boot_Images
Contains some rather interesting information.

But I am actually more interested  in dual booting the Phone, having the Debian on the SD card.
Which may be slightly more tricky but probably not impossible.

Offline Burn2

  • Top Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1245
  • Karma: 8
  • RCmod 4.0.0pre3
    • View Profile
Re: Native Linux on GP one
« Reply #9 on: January 11, 2011, 12:54:43 PM »
It would be great to have such os like qtmoko or shr on the geeksphone one... 
Perdona me, soy frances y hablo español como una vaca francesa, pero hago esfuerzo para hablar correctamente. :)

Thanks to rmcc for all his work!!!! :)

Offline w

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Native Linux on GP one
« Reply #10 on: January 19, 2011, 04:29:24 AM »
http://www.sendspace.com/file/mg2bn8

ready to flash, put debian on the second partition on the SD-card

and good luck, you're gonna need it ;-)

Offline talpa

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 59
  • Karma: 0
    • View Profile
    • My webpage
Re: Native Linux on GP one
« Reply #11 on: January 19, 2011, 08:54:38 AM »
http://www.sendspace.com/file/mg2bn8

ready to flash, put debian on the second partition on the SD-card

and good luck, you're gonna need it ;-)

Is it intended as a boot or recovery image?
(both should be usable as a second bootloader I guess... perhaps slightly more dangerous to use the recovery partition, as it seems to be needed for "emergency" RUT flashing.)

Offline w

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Native Linux on GP one
« Reply #12 on: January 20, 2011, 08:23:19 AM »
I used it on the recovery partition

no need for a secondary bootloader, it's a kernel and a ramdisk, it just mounts the root partition, runs pivot_root (IIRC) and starts init on the root partition

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Re: Native Linux on GP one
« Reply #13 on: January 24, 2011, 07:23:33 PM »
aWesome with W!
thx mate.. i booted my gentoo custom made for the gpo. next step X.
Windows is easier than Linux, just like crapping your pants is easier than going to the bathroom.

Offline Burn2

  • Top Member
  • *****
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1245
  • Karma: 8
  • RCmod 4.0.0pre3
    • View Profile
Re: Native Linux on GP one
« Reply #14 on: January 24, 2011, 11:59:46 PM »
Great. :) I will follow this thread!!! :)
Perdona me, soy frances y hablo español como una vaca francesa, pero hago esfuerzo para hablar correctamente. :)

Thanks to rmcc for all his work!!!! :)