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

Offline w

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Native Linux on GP one
« Reply #15 on: February 14, 2011, 06:30:07 AM »
Any news? :-)

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Re: Native Linux on GP one
« Reply #16 on: March 26, 2011, 08:48:18 PM »
hello again w m8:
After a season of heavy work im back to the gpo hack. First of all i cant boot with ur boot.img.
Let me picture my scenario:
1.created 2 partitions.
                                 |-- 1º fat for musica and all kinda shit.
                                 |-- 2º ext3 for the system.
2. created on the second (ext3) partition a debian system with "deboostrap" command.
3. flashed ur boot.img to recovery
4.reboot.

At reboot the phone loads te splash and post **BOOTING RECOVERY SYSTEM**, then after a while (not much) it just moves the splas image like a space to the right and just freeze there. The only way to get to a working phone its to remove bat and power again to android.

As i cant c any system error i cant lets say "debug" the proble, so i started to learb about the kernel and the ramdisk. I unpacked the ramdisk u did in order un understand more about the prosses of booting and i only can c 3 files: old, gold.. and init .rc i tuke a look to the init.rc and looking to anithing related to partition (i had a feeling it may me a bad partition calling) i changed from 0 to 1. But i didnt have any luck. Then i figured out that i was just guessing in the dark, so  i desided to write this song. XD
If u can give me some tip or point me on the wright direction to succesfully boot linux will be great.
kiss in the ass
Bruno
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 #17 on: March 27, 2011, 12:24:12 PM »
How did you perform the debootstrap?
(You can't do both stages (1 and 2) from a non ARM host like your desktop for instance)

I have experimented a little using qemu to perform stage 2.
(But not used enough time on it to get a working install)

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Re: Native Linux on GP one
« Reply #18 on: March 30, 2011, 05:38:02 AM »
This is the entire prosses:

Code: [Select]
mount /dev/sdc2 /mnt/sdcard2
Code: [Select]
debootstrap --verbose --arch armel --foreign lenny /mnt/sdcard2 http://ftp.de.debian.org/debian
Im making an embedded gentoo system but as i have so short time to doit im going preaty slow.
It was my undestanding that the previous command grants u an allready functional system in stage 3. Maybe i was wrong and that's my problem.
Bruno.-
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 #19 on: March 30, 2011, 09:09:23 AM »
--foreign
              Do the initial unpack phase of bootstrapping only,  for  example
              if the target architecture does not match the host architecture.
              A copy of debootstrap sufficient for  completing  the  bootstrap
              process  will  be  installed  as /debootstrap/debootstrap in the
              target filesystem.  You  can  run  it  with  the  --second-stage
              option to complete the bootstrapping process.


So it is not quite a functional system I guess...
I am assuming that a boot from qemu (using a better initrd than I used) would give me a system capable of executing "--second-stage" and to set up misc stuff like "nodm" to bring up X11
(I am assuming that the plain Debian install won't be capable of using the keyboard out of the box)

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Re: Native Linux on GP one
« Reply #20 on: March 30, 2011, 01:20:05 PM »
ah, cool. So i guess ill follow up the gentoo method as its almost the same from the point im now on it.
Thx for data m8.
bruno
Windows is easier than Linux, just like crapping your pants is easier than going to the bathroom.

Offline w

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
  • Karma: 0
    • View Profile
Re: Native Linux on GP one
« Reply #21 on: March 30, 2011, 09:32:01 PM »
IIRC, I did the second stage in an chroot directly on the phone.

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Re: Native Linux on GP one
« Reply #22 on: March 31, 2011, 01:15:37 PM »
thats the way im building my gentoo system by a chroot. ^^
Bruno.-
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 #23 on: April 02, 2011, 03:11:20 AM »
IIRC, I did the second stage in an chroot directly on the phone.
Indeed there is a chroot built into the busybox of the one... how cool is that :)

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
  ...porque me gustó la iniciativa de Juan Gómez-Jurado

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Re: Native Linux on GP one
« Reply #25 on: April 05, 2011, 01:35:45 PM »
Interesting...

http://www.xda-developers.com/android/ubuntu-10-10-on-android-the-slightly-less-difficult-way/

yeah thats the non "native" way, we in this post are talking about the native way, it means not runing it with android under it.
Windows is easier than Linux, just like crapping your pants is easier than going to the bathroom.

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Re: Native Linux on GP one
« Reply #26 on: April 05, 2011, 03:24:54 PM »
w:
how did u configured fstab? After seccond--stage "stage" what did u do?
im kinda stuked here.. linux for desktop its so cool documented but for this odd devices its painfull.
Pls if u can port the entire path u take to boot debian on ur device.
thx

Edit: i made a fstab with info from mount on the chroot and configured some other things like net and so on but it wont boot anyway.
« Last Edit: April 10, 2011, 01:09:57 PM by b0b »
Windows is easier than Linux, just like crapping your pants is easier than going to the bathroom.

Offline pioj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 122
  • Karma: 1
    • View Profile
Re: Native Linux on GP one
« Reply #27 on: May 03, 2011, 04:27:51 PM »
I recommend you to take a look at TinyCore Linux Project. Maybe can help you guys to take it to our phones.

It's pretty fast, low memory consumption, uses busybox, loads itself to RAM...


I made a Chromium bare bone system  with that and it's really awesome (and pretty fast for a ~ 6 sec Boot Up!)

Offline b0b

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 16
  • Karma: -1
  • /dev/null
    • View Profile
Re: Native Linux on GP one
« Reply #28 on: July 12, 2011, 06:43:05 AM »
it was to much fighting for me, i just give up to the gpo linux porting, im also tired of the hardware poor perfomance.. siganl loss and the freaking android. Guys this is no "geek"phone its just a rooted android device. If u really want to hack some and test cuting edge apps i sugest gpo big dad: nokia n900.
Windows is easier than Linux, just like crapping your pants is easier than going to the bathroom.

Offline vquicksilver

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 84
  • Karma: 4
    • View Profile
Re: Native Linux on GP one
« Reply #29 on: December 18, 2011, 04:17:45 AM »