Multi-Boot on A1200 from SD Card

October 5, 2007 at 3:23 pm | Posted in OpenEZX, OpenMoko | 7 Comments
Tags:

Since daul boot was not ready on A1200, so I have to download OpenEZX’s Images via boot_usb. But in order to play with OpenMoko in bus not have to sit in the front of laptop. I was working hard on implementing Multi-Boot (NOT dual boot only ;)) on my A1200E past days. Now, I proudly announce that it’s almost ready.

Because I don’t want to flash my phone again and again when I update kernels. So I want to boot kernels from MicroSD card. I also want to put a file like menu.lst of GRUB to SD card, so I can easily control the kernel parameters.

It works like this:
1) Loads menu.lst from MicroSD card, and then show a boot menu which depends on the content of this file on screen for selecting which kernel and parameters will be booted.
2) Loads zImage from MicroSD card, and boot it.

Firstly, I met a problem, that’s though MMC card driver is ready in u-Boot but SD card driver for pxa2xx in either BLOB or U-Boot is not available (searched on Google several times but cannot find it, if anyone know there is a patch, please kindly let me know. So, I have to write a SD driver by myself. Luckily, I had debugged and researched the MMC driver in OpenEZX’ linux-2.6.21 for a long time, so I got the way to implement a SD drvier.
Secondly, I have to make Blob (which is released by Moto called apboot-hainan) work with boot_usb and act as the second bootloader (let’s just call it Blob2). And then Blob2 will load menu.lst and kernels from SD card and boot it.
Thirdly, I wrote an implementation to parse the menu.lst, and then show a boot menu on the screen just like GRUB.

OK! Don’t need to jaw-jaw too much about the detail ;), I have put the preview images on here: http://people.openezx.org/alexzhang/images/20070930.
And a short usage is here: http://lists.openezx.org/pipermail/openezx-devel/2007-September/001556.html

I will write another article to describe more detail about how to use it if need. 🙂

Enjoy it!

Below is the video:

Advertisements

7 Comments »

RSS feed for comments on this post. TrackBack URI

  1. Nice 🙂

  2. Was this functionality already available on A780, or will you try and port it there?

  3. Dual boot from Flash was available on A780 for a long time. But multi-boot from SD card is not available on A780 yet.
    I won’t port it to A780 because I don’t have an A780. But AFAIK drwyrm from OpenEZX will port it if he have spare time (seems like he’s very busy ATM ;))
    Do you have an A780? I think port it to A780 will be very easy. Will you try it? 🙂 Thanks!

  4. thanks for your help
    is a way to install open moco on a1200r for amators ?
    and where is software for this new os

  5. Openmoco??amators?
    I think you can find the OS here: openezx.org
    Thanks!

  6. Hi Alex,

    will you write another article for describe more tecnicals details?

    Thanks you!

  7. hi apostols,

    Sorry, I have no plan about that because I am a little busy these days, so don’t have space time to pick it up. But if you want to know some more details, I would pleasure to discuss with you by email. Thanks! 🙂

    Alex


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: