yashsingh1/xdaforums huggingface dataset:
[G1 General] vaskas:
Hi!

I've got OpenMoko dual-booting natively on my G1.

When I first looked into the problem, I saw that:

1) OpenMoko option involved boot flashing that would disable booting into Android.

2) Debian option had no ready-to-use rootfs. You had to bring on the usbnet and install debian packages through netinstall. But Debian was able to dual boot, thanks to FukTheRegister's excellent recovery image.

I surely needed something in the middle :)

I had contacted the OpenMoko port developer, leviathan (a nice guy btw). He's doing some great job of hacking the forked Android kernel to work on HTC Dream together with some other guys. He told me that he was continuing his work on OpenMoko for HTC Dream and that made me want to try it instead of Debian. By the way, FukTheRegister's Debian and Ubuntu ports are based on leviathan's OpenMoko kernel.

What I did to install and dual-boot OpenMoko was:

1) I partitioned my microSD card into three partitions: FAT, ext3, ext3

2) I extracted the OpenMoko rootfs to the third partition (ext3)

3) I made myself a recovery image that would consist of the most recent OpenMoko kernel from gitorious AND FukTheRegister's ramdisk (I just glued them together and threw away some modules to make it fit into 5Mb - maximum for recovery partition images)

4) I copied the recent kernel modules to /lib/modules/ on the 3rd partition of the sd card

5) I copied my recovery image to the sd card and flashed it with flash_image recovery /sdcard/openmoko-recovery-partition3.img right on the phone (under root).

After that I was able to boot OpenMoko with holding HOME + END during the bootup or Android (holding nothing).

See http://vaskas.ru/om-g1/ for all the relevant files.

If you want to try it yourself:

- repeat stage 1) after me

- take the openmoko-rootfs-20091128.tar.gz and repeat stage 2) after me

- copy the openmoko-modules-20100128.tar.gz to /lib/modules/ on the 3rd partition and extract it there

- take the openmoko-recovery-partition3.img and repeat stage 5) after me

P.S. I am not 100% sure that it's going to work for you, because I experimented a lot. It's pretty likely to work though.
[G1 General] scheich:
hi again vaskas!

thx for work. Tried your setup, it worked for me. :)

Now it would be nice to have a recovery with an option to boot the second ext3.

Openmoko on Dream ----> nice!

Seems to get a usb connection:

http://wiki.openmoko.org/wiki/Usb_networking

Is a ssh/dropbear server already running on boot?
[G1 General] olvap377:
vaskas thx so much for the huge leap forward ecept im a little confused. so when i hold home + power using ur method it will boot into openmoko, butif i boot normally it wouild go into android, but what if i wanted to boot into normal recovery like amon_ra's?

if i boot into android normally and then run quickboot app and select recovery will it boot opoenmoko or amon_ra's recovery. also with your method does keeping apps on the first ext3 still work? while the second ext3 is for openmoko?

also when making second ext3 partition what size should i make it?

p.s this is sooooooo sick with open moko the possibilities are endless aswell as for people who prefer they can turn openmoko into debian and some time in the future android

so future = openmoko installed instead of android and then being able to boot debian/android or stay in openmoko environment.

also if it's not to much trouble vaskas can u please make a vid and put on you tube or here thx in advance andthx for ur hard work
[G1 General] vaskas:
No, normal recovery won't be there, since my image replaces it. As far as I know, it's the only way to dual-boot now. If you wish to use your normal recovery image (amon_ra's or cyanogen's), just flash it with flash_image recovery my.img. When you're done with it, flash it back to openmoko's.

I haven't tried quickboot yet.

Yes, Apps2SD still works perfectly with the first of ext3 partitions. I suggest that you make the second one at least 700Mb in size. I've got 500Mb taken by OpenMoko, for instance.

Well, you shouldn't really thank me since I only built a recovery image :) It's the kernel and ramdisk hackers who rock.

I'll make a vid when I have some free time, but I really suggest that you try it yourself :)
[G1 General] vaskas:
FukTheRegister's ramdisk has such an option. I can try to make such a recovery if you need it.

Yes, dropbear is started automatically.
[G1 General] vaskas:
I'd love to see a solid and stable distro that would provide all the things that Android doesn't have, with:

- A compact desktop environment, supposedly e17 or LXDE

- Midori or Google Chrome

- Pidgin

- Sylpheed or Claws for GPG-secured e-mail

- MPlayer or VLC

- FBReader

- evince

- AbiWord

- Gnumeric

- Conky

- Gpodder for podcasts

- Some music player like Sonata

- Cron, sshd, gcc, scripting languages like Python and Ruby

- Zhone for making calls, texting, storing the address book

See, I'm not advocating touch-oriented software. I think we still need touch-capable apps for calling, texting and the address book. The others can be easily manipulated with the trackball and keyboard on G1.

That's what we should aim for IMHO: http://wiki.openmoko.org/wiki/Image:Debian_lxde_zhone.png

OpenMoko project has all this stuff. And that's really awesome. The question is if such an OS should be based on Angstrom (like OpenMoko SHR) or Debian (see http://wiki.openmoko.org/wiki/Debian). My preference is Debian since I'm a long-time Debian/Ubuntu user.
[G1 General] olvap377:
i prefer debian too and i will try this when i get home
[G1 General] lolmensch:
i'm sorry for my really dumb question.

but how can i copy something from windows (7) to a ext2 partition?

and if you are creating those partitions, do both ext2 have to be primary or

one primary and one secondary?

thx in advance
[G1 General] vaskas:
They both have to be primary. I also recommend you to upgrade them to ext3 which is more stable thanks to journaling.

As far as I know, it's not possible to write to extX partitions from Windows. You can copy the files you need to the FAT partition and move them within the phone using Astro or other file manager.

You can mount the second ext3 partition from Terminal Emulator in Android like this:

$ su

# cd /sdcard

# mkdir SD2

# mount /dev/block/mmcblk0p3 /sdcard/SD2

Then it will be accessible from Astro in /sdcard/SD2.
[G1 General] olvap377:
i followed all the steps correctly but it just gets stuch at boot screen if i try to boot into recovery

any advice

maybe this has something to do with the fact that i have ebi1 phone?

pls help i really want this

EDIT:

wow im dumb i figured it out if u look at my sig ull see the way my partitions are setup

i followed all ur steps except each time i changed instructions from p3 to p4 becasue i also have a linux swap so when i installed this recovery it tried to boot from part3 which is my swap and obviously didn;t work

so vaskas can u please for everyone who has a linux swap release another recovery except that boots from part4?
[G1 General] scheich:
Have also a swap as the fourth partition.. That doesn't matter, I think. Its only important, that the second ext3 is the third partition.

Heres my partition table:

fdisk -l /dev/mmcblk0

Disk /dev/mmcblk0: 1977 MB, 1977614336 bytes
255 heads, 63 sectors/track, 240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ac1bc

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 64 514048+ b W95 FAT32
/dev/mmcblk0p2 65 131 538177+ 83 Linux
/dev/mmcblk0p3 132 223 738990 83 Linux
/dev/mmcblk0p4 224 240 136552+ 82 Linux swap / Solaris
[G1 General] vaskas:
Ok, try http://vaskas.ru/om-g1/openmoko-recovery-partition4.img - it should work.

I'll try to make a multiple-choice one soon.
[G1 General] olvap377:
thx alot il try when i get home from school

EDIT: still dosent work just freezes at boot screen

plzzzz help any advice
[G1 General] vaskas:
Do you mean you're stuck into the "G1" screen? If so, it's a recovery/kernel problem, not really connected with partitioning and stuff. I'm not sure if this openmoko kernel supports EBI1/32A, may be it's the problem :(
[G1 General] olvap377:
Well I have a dream which is 32b but with ebi1 radio I think this is the problem because amon_ra has a special recovery just for rogers dreams meaning something is different between them

If u could compare amon's rogers to normal recovery and find the differences could u chabge yours to make the latest part 4 file ebi1 compatible?
[G1 General] vaskas:
Frankly speaking, I don't think I'm going to have much time for this :( Since my radio is different, I won't be able to test it properly too.

Actually, I hope that more people join the thread so that we'll be able to solve much more problems together. I wonder where the guys from "Installing Debian on G1" are gone, I saw 2-3 people really interested in native Linux there.

Can you still rename the thread? If so, what do you think about appending something like " - Native OpenMoko and Debian" to it?

EDIT: compared Amon_Ra's recoveries in hex editor, they seem quite different :(
[G1 General] Scrotius:
I am having the same exact problem after following vaskas' instructions exactly. Did you find a solution to it?
[G1 General] olvap377:
big bump any updates?
[G1 General] lolmensch:
bumpidibump
[G1 General] ashleyglassel:
Sound is now working on the Dream with Openmojo

http://wiki.openmoko.org/wiki/Openmoko_on_HTC-Dream
[G1 General] geotherm:
New update has ALSA sound working.
[G1 General] unCoRrUpTeD:
Removed by me
[G1 General] x3maniac:
hi guys,

i have been doing a lot of seaching around the get my G1 to native boot into debian and i have put together a tutoial of what i have found.

*all credit goes to whom ever made this possible i just simplly put it together for my own sake of have to dig it up again!

hxxp://novaspirit.com/blog/?p=6#more-6

i'm not allowed to post up links so replace xx with tt
[G1 General] Rafase282:
Question, that would mean we dont get a recovery menu anymore?
[G1 General] kR105!:
Hey.. I'm fully interested on this!

I can help you in whatever you want.. testing, developing (Yeah, I'm a developer too), etc..

Just PM me or ping me at @kr105rlz on Twitter :)

I'll be glad to help in this cause!
[G1 General] Proxin:
Sounds awesome.

Maybe someone can talk to Amon_RA to see if he can incorporate an option to load this in his recovery...?

I am a bit skeptical about putting another patition on my card. I have a Debian image that I can load (is this what you guys mean by swap?) and if possible I'd love to load from another image for OpenMoko if dualbooting ever becomes an option.

Is this very possible?
[G1 General] vaskas:
Yes, it is, but it requires further recovery ramdisk tweaking. Thanks for these good ideas: storing an OpenMoko/Debian setup in an image and loading it from within a standard recovery. Should be much easier for a lot of people. I think it's really worth implementing when the OS reaches a usable state, at least beta.
[G1 General] olvap377:
damn im soo pissed off about the ebi1 news and please any help from anyone would be greatly appreciated and i will change the thread name for more views

nvm cant change sorry
[G1 General] SystemR89:
Hi,

Nokia n810 and iPhone 3G use the same processor of HTC Dream, so we should be able to get working the firmware image for these devices!

The only thing to understand is the boot process of these rom. I unpacked both and now I've access to any files content in firmwares.

Maemo is based on Linux so it should be easier to get working, iPhoneOS instead is a BSD kernel and the boot process is a little bit different.

In the iPhone Linux Project the team has developed OpeniBoot to boot Linux and iPhoneOS, we can port it to G1?

RESOURCES:

Maemo:

Maemo firmware: http://tablets-dev.nokia.com/nokia_N810.php

HowTo download firmware without code: http://news.cnet.com/8301-13739_3-9816300-46.html

Firmware unpacker: http://www.nopcode.org/0xFFFF/?p=down

HowTo mount rootfs jffs2: http://wiki.maemo.org/Modifying_the_root_image

iPhoneOS:

Firmware download: http://appldnld.apple.com.edgesuite...00202.pbnrt/iPhone1,2_3.1.3_7E18_Restore.ipsw

Firmware unpacking: http://wiki.birth-online.de/know-how/hardware/apple-iphone/firmware-unpacking

OpeniBoot: http://github.com/planetbeing/iphonelinux/
[G1 General] Che123:
wow...thats sounds really great :)

would be a nice challenge to get maemo or the iPhone OS working on a android phone :D
[G1 General] vaskas:
I think it won't be difficult to get Mer working (which is a fork off Maemo). We only need a kernel (and we do have the openmoko one) + userland. If Mer works on the Freerunner, it should run on G1 too.

The only serious question here is phone functionality. Without it, the G1 is just another PDA/MID ;)
[G1 General] Che123:
It's not important to know if we NEED this, it's only important if we CAN do it :D
[G1 General] olvap377:
i would be very excited about all of this and i am except that my g1 is rogers and therefour has the ebi1 radio so everything would have have to be changed for my specifics and it makes me deppressed that i still wasnt able to try the openmoko dual boot cause of this problem
[G1 General] vaskas:
Well, there isn't much to be upset about at the moment. What we have now is an early alpha with not much of stable stuff that you can use on day-to-day basis. The fully-featured kernel is still weeks or months away. Fully-featured distros will come only after the kernel and drivers are ready.

I'm personally very excited about the interest that OpenMoko community has about the HTC Dream. They even list it as a target platform on their Distributions wiki page.
[G1 General] vaskas:
The question is what each of us can do in order to help the development of Linux on G1? :)
[G1 General] SystemR89:
Where is the SPL source code?

We should modify the bootloader...
[G1 General] Che123:
Of course, but my knowledge with this kind of things is a bit limited, since I am no dev :)

But anyway, I do what I can :)
[G1 General] scheich:
Made a short youtubevideo of booting into it, just to show everybody, that it is possible. :-)

http://www.youtube.com/watch?v=iW6uBllUQcs

Mentioned this thread and the instructions of vaskas.

Hope you agree, vaskas? If not, I will remove it.
[G1 General] Che123:
Thx for uploading...hot stuff :)
[G1 General] vaskas:
Yep, of course I agree! :) Great stuff, thanks.
[G1 General] vaskas:
By the way, try searching for "HTC Dream" on http://planet.openmoko.org/ :)

scheich, I tried to create a multiple choice recovery, no success for now, so I will be returning to the issue from time to time.
[G1 General] kR105!:
I was searching for info about the boot process of the HTC Dream (AKA, T-Mobile G1, Board Trout, Google ADP-1) without luck.. So I was reading the source of some kernels that can run in this device (Principally Openmoko & OpenKernelLabs) and I'm guessing in what state the device call the boot image and If is possible to boot one or other OS.

Maybe I'm searching in the wrong place, and what we really need is:

BTW, If someone can provide some info about the booting process of this kind of devices, I will be very grateful!
[G1 General] scheich:
Wow, that sounds like great news: (Better) support for FSO on Dream. Probably we will have soon features like making a call, or so :D

I really would like to help you. I extracted the nomal ra-recovery to take a look at it. But Im a noob and don't know where to start. Can you give me some information(links), how to modify the recovery?

For example I could rewrite the keymap for the hardware keyboard.
[G1 General] olvap377:
thanks for the video it looks really sick and im glad this thread has gained some popularity since this is a really sweet possibility
[G1 General] .andreas:
htc magic

Hi, I have tried to run OpenMoko on my HTC MAGIC 32B (instructions from the Wiki)

After trying a few I have run it to get from the SD card.

X11 works, USBnet works, but at the moment are not working the input devices (keys trackball touchscreen).

Could you help me to get it running?

are there configfiles or special drivers needed to get it work correctly?

thanks

Update:

I just compiled the kernel, unfortunately I have neither USBnet still X11.

Is there a recommended combination from kernel version and system image?

I would like to test the system thoroughly and as far as I can contribute to the development ...
[G1 General] vaskas:
I used this one to assemble my recovery image: http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images

Don't forget to add the correct --cmdline arguments from http://wiki.openmoko.org/wiki/OpenMoko_on_HTC-Dream

The proper keymap would be really great!
[G1 General] vaskas:
Great job! These buttons need further hacking, I'm not sure if it's a kernel or userland task. You should ask leviathan and other devs about this issue.

I also tried the latest kernel with the same results as you. Leviathan told me that the latest kernel and rootfs images (Feb 06) are experimental with a lot of work-in-progress in them. If you feel like hacking the kernel or userland, you should coordinate with the devs (they may be available on #openmoko on freenode).
[G1 General] .andreas:
vaskas, wich Kernel and RootFS have you running?

I'll help as much as I can, but first I need a system where I can work with:)
[G1 General] olvap377:
vaskas

since you can umpack existing recoveries, couldnt you just unpack amon_ra's rogers one (latest) and change it so that it would be like you partition 4 recovery while keepin the necessary bits for ebi1 for all of us canada users

ps has anyone tried asking amon or bcrook for any help they both know alot about ebi1?
[G1 General] turtlesmank4:
help

could someone give me step by step instructions on how to boot or install dis

i already know how to install debain and lxde/icewm/gnome

i just want to know if ders step by step instructions on how to boot like u guys said
[G1 General] olvap377:
read before you post this was on page 2
[G1 General] vaskas:
The latest working combination for me is rootfs from Nov 28, 2009 + the kernel compiled from gitorious. The last time I compiled it dates back to January, 27 but I don't think the new kernel has anything broken.
[G1 General] vaskas:
I've built the kernel and recovery with EBI1 patch from http://xdaforums.com/showpost.php?p=4781792&postcount=1

Please test it.

The recovery is at http://vaskas.ru/om-g1/openmoko-recovery-EBI1-partition4-20100212.img

You may also need the new modules: http://vaskas.ru/om-g1/openmoko-modules-20100212.tgz (extract to / on OM partition)
[G1 General] olvap377:
thanks im going to try it right away and post results im so excited fingers crossed :)

EDIT: omg what is the prooblem, i keep trying and everytime it keeps getting stuck at the boot screen, please anybody any advice what could i be doing wrong

i install through fastboot

also used new modules
[G1 General] olvap377:
no new developments?

i dunno if anyone saw but maybe some of this can help us out

http://www.irregular-expression.com/?p=30
[G1 General] .andreas:
Hey, the development goes on in any case yet.

The current git-repository: gitorious.org/htc-msm-2-6-32

Current Root FS Images: ftp.o2s.ch/pub/openmoko/images

X11 you need to adjust the drivers in the xorg.conf: msm (or msmfb)

Your link is very interesting. I love Debian;)

On my Magic currently runs Debian, with kernel htc-msm-2-6-32, but unfortunately so far) without usbnet and X11 (own kernel.
[G1 General] olvap377:
i cant get the dual boot by vaskas working even with paartition 4 file with ebi1

its making me really mad
[G1 General] .andreas:
I have not tried dualboot atm,

But I made a nandroid backup and deleted the images of all partitions (not boot).

If I want to switch the OS restore the "android-boot" backup -and everything is fine:)

What is the Ebi1 patch?

My usbnet simply does not work :-( f*ck# &)!&"!!
[G1 General] olvap377:
ebi1 is a radio that canadain users have so rogers magic and rogers dream like mine

everyone else has ebi0 radio

due to this fact everything has to be made custom for us

the recovery aswell as all roms etc
[G1 General] lolmensch:
btw, when we are already talking about that, what is rogers exactly? you don't have a "normal" htc g1? is there anything different in hardware? or is it just the radio?

isn't it possible to hack it to make it a normal g1?

edit: searched in the forum and got my answers
[G1 General] olvap377:
Sorry I this thread isn't very active any more although I think this is a very worthy important topic but that's jus me

Btw its jus the radio that's diff and I can change to ebi0 radio but it worsens 3g and talk quality
[G1 General] olvap377:
bump

please anyone any information would be greatly appreciated
[G1 General] vaskas:
I can't get X11 to work with the latest kernel/rootfs combo from Feb, 15 (ftp). I tried putting msm in xorg.conf, but sadly the X server doesn't start: http://pastebin.com/Tz4V27eV. I don't have msmfb currently. Did you make any additional changes to the system? What kernel+rootfs combination are you currently using?

olvap377, current OpenMoko builds are non user-oriented. That said, you've always got to take extra steps to make stuff work on your device. Try "fastboot boot" method or reflash your radio to ebi0 to try OpenMoko so that you see if you are likely to use or hack it.
[G1 General] .andreas:
L
[G1 General] olvap377:
what is the fastboot method?
[G1 General] vaskas:
Install fastboot on your phone and PC: http://xdaforums.com/showthread.php?t=537508. Then enter the fastboot mode on your phone and run "fastboot boot /path/to/openmoko-recovery-partition4.img" from your PC.
[G1 General] olvap377:
thans i will try that soon and see if that atleast works
[G1 General] .andreas:
Mer running atm is not very good.

X11 works for me only with the standart framebuffer drivers= very slowly.

For USBnet you need to disable the network manager.

The only "advantage" is the Ubuntu base.

The display have to be rotated (CW). But then the axes of the touch screen and trackball are rotated.

I made my first phone call after I installed a lot of python-* packages, and installed FSO from the git.

There is no E17, no Zhone, etc in the repositories : - /

I think SHR is currently much better suited.
[G1 General] olvap377:
tried the fastboot method and am STILL having the same problem, it dosnt boot past the G1 screen (boot). so it dosent matter if i flash or boot ur recovery it jus dosent seem to work

do u have any advice to help please anyone...?
[G1 General] .andreas:
@olvap377:

I had exactly the same problems with my 32b.

The kernel will not support your board so far.

Now it would be good to see the Sourcecode of two Android-Kernels > one for your Rogers, one for the standard G1/Magic, to see the differences.

You could give a try to my kernel (rootfs must be based on mmcblk0p2).

Remove also views the contents of /var/log on your SD, perhaps the kernel writes something there. (should not be mountet as tmpfs in the fstab)

Kernel: http: // www. maemonews.de / htc-linux / boot32b.img.tar.bz2

(cant post URL's)
[G1 General] olvap377:
oh y does it have to be based on p2? il remove the contents of /var/log but it would be a huge ahassle to rearange all my partitions and apps all over again. i already have aeverything set up on p4 wich is 1000mb so please make a p4 partio kernel please

if u do this this i would be very greatful and try it as soon as i could
[G1 General] .andreas:
the place of the filesystem dosent matter, try my kernel if it will boot. i have to know the exactly name of your board to try other configs.
[G1 General] olvap377:
ok thx il let you know
[G1 General] azazel673:
hi

thks for all your works

with .andreas boot i managed to start openmoko on my SD part2 of my Magic 32B,

i used vaskas openmoko system and modules

right now, system boot, but i haven't touch screen or button working, so my magic stop on screen calibration

@.andreas : what have you do skip this screen ?

thks ;)
[G1 General] .andreas:
You can remove the "89xTs_Calibrate" file in "/etc/X11/Xsession.d" to skip the calibration-screen.

To have a "full" hardware-support with my kernel you have to copy the content of this file (http://www.maemonews.de/htc-linux/lib.tar.gz) to /lib/modules