sorry for not being clear. I am using the make-live script to create bootable usb drive to run android. When the script creates the grub files, it creates it on the root file system and the grub related files are present in /boot/grub. What i want to do is have a separate partition for grub. Like this: sda1:grub sda2:root sda3:system sda4:data and so on
When the system boots it reads from the grub partition and then loads the android os. How can i do this and how can i tell grub to start the android os present in sda2? that is my question. I have another question for you. i am trying to run the make_boot_img.sh script and i keep getting an error msg: http://groups.google.com/group/android-porting/browse_thread/thread/778f6e833a08db6d What am i doing wrong when executing the script? Thanks for all the help, Gowtham On Apr 15, 9:32 am, Chen Yang <[email protected]> wrote: > hi Gowtham: > I don't understand your question. > My understand is that grub can be independant with the root file system. > -- > Chen > > On Wed, Apr 15, 2009 at 7:47 AM, gowtham gowda <[email protected]> wrote: > > > Hi Chen, > > > I have a question on creating live bootable usb. Can the gurb > > bootloader for android be on a separate partition? So instead of grub > > being in /boot/grub, can it be in sda1 and which in turn load android > > present in /sda2 ? > > > Thanks, > > Gowtham > > > On Apr 2, 12:13 am, Chen Yang <[email protected]> wrote: > >> hi Brian: > >> You may need to modify the framework/base/preloaded-classes to > >> remove those non existing classes. > >> And you can reference Androidphan's reply in this thread. > >> You may encounter the NFE and NPE, reference > >> this:http://groups.google.com/group/android-porting/msg/64eb5a0158e6b815 > >> and Androdphan's > >> thread:http://groups.google.com/group/android-porting/msg/97bd8c7c44a189ec > >> -- > >> Chen > > >> On Thu, Apr 2, 2009 at 12:05 PM, Brian <[email protected]> wrote: > > >> > The system is trying to run zygote, but I got the following error. > >> > I'm attaching my logcat output. > > >> > E/Zygote ( 2126): Zygote died with exception > >> > E/Zygote ( 2126): java.lang.IllegalStateException: Missing class(es) > >> > for preloading, update preloaded-classes > >> > [com.android.internal.policy.impl.PhoneLayoutInflater > >> > com.android.internal.policy.impl.PhoneWindow > >> > com.android.internal.policy.impl.PhoneWindow$1 > >> > com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback > >> > com.android.internal.policy.impl.PhoneWindow$DecorView > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > >> > com.android.internal.policy.impl.PhoneWindow$PanelFeatureState > >> > $SavedState com.android.internal.policy.impl.PhoneWindow > >> > $PanelFeatureState$SavedState$1] > >> > E/Zygote ( 2126): at > >> > com.android.internal.os.ZygoteInit.preloadClasses(ZygoteInit.java:299) > >> > E/Zygote ( 2126): at com.android.internal.os.ZygoteInit.main > >> > (ZygoteInit.java:512) > >> > E/Zygote ( 2126): at dalvik.system.NativeStart.main(Native > >> > Method) > >> > D/AndroidRuntime( 2126): Shutting down VM > >> > W/dalvikvm( 2126): threadid=3: thread exiting with uncaught exception > >> > (group=0xb00dfdf8) > >> > D/dalvikvm( 2126): DestroyJavaVM waiting for non-daemon threads to > >> > exit > >> > D/dalvikvm( 2126): DestroyJavaVM shutting VM down > >> > D/dalvikvm( 2126): VM cleaning up > >> > D/dalvikvm( 2126): LinearAlloc 0x0 used 2087468 of 4194304 (49%) > >> > D/skia ( 2126): purging 6K from font cache [1 entries] > > >> > Any suggestion? > > >> > Thanks, > >> > Brian > >> > On Apr 1, 5:13 pm, Chen Yang <[email protected]> wrote: > >> >> Cool. It seems that you don't have the essential process: zygote. You > >> >> can check the logcat messages to see what was happenning. Thanks. > >> >> -- > >> >> Chen > > >> >> On Thu, Apr 2, 2009 at 8:09 AM, Brian <[email protected]> wrote: > > >> >> > Hi all, > > >> >> > I finally managed to boot android x86 with vga=788 option without > >> >> > black screen in vmware. > >> >> > Thanks for all the help! > > >> >> > I'm trying to go to the next step. > >> >> > Even with vga=788 option, I don't see GUI. Why? Instead, I get a shell > >> >> > prompt. > >> >> > Here's the list of system processes stored under /system/bin/. > >> >> > /system/bin/sh > >> >> > /system/bin/servicemanager > >> >> > /system/bin/mountd > >> >> > /system/bin/mediaserver > >> >> > /system/bin/installd > > >> >> > I tried to do "ADBHOST=<ip> adb install app.apk", but I got the > >> >> > following error "Error: Could not access the Package Manager. Is the > >> >> > system running?". > > >> >> > I'd like to install this application with GUI and to start it. How can > >> >> > I do it? > > >> >> > Thanks, > >> >> > Brian > > >> >> > On Mar 30, 10:54 pm, Brian <[email protected]> wrote: > >> >> >> Hi Chen, > > >> >> >> I managed to compile kernel 2.6.25. > >> >> >> When I ran it without vga=788, I see a shell prompt. > >> >> >> The screen does not go to black one. > >> >> >> But I keep getting the following message. > >> >> >> [timestamp] android_power: wakeup (0->0) at ... > >> >> >> (Btw, how can I turn off this message?) > > >> >> >> I still have a problem with vga=788. > >> >> >> This time I'm getting a kernel panic, which I'm attaching. > >> >> >> Has anyone seen this problem? What's a proper approach to address > >> >> >> this > >> >> >> problem? > > >> >> >> Thanks, > >> >> >> Brian > > >> >> >> Process netcfg (pid: 2031, ti=cf17c000 task=cf3001b0 > >> >> >> task.ti=cf17c000) > >> >> >> Stack: ... > > >> >> >> Call Trace: > >> >> >> [<c01f12f2>] ? cursor_timer_handler+0x28/0x2b > >> >> >> ? run_timer_softirq+0x11d/0x176 > >> >> >> ? cursor_timer_handler+0x0/0x2b > >> >> >> ? __do_softirq+0x70/0xd5 > >> >> >> ? do_softirq+0x35/0x3a > >> >> >> ? local_bh_enable_ip+0x38/0x4f > >> >> >> ? _spin_unlock_bh+0x17/0x19 > >> >> >> ? dev_set_rx_mode+0x38/0x3c > >> >> >> ? dev_open+0x60/0x7e > >> >> >> ? dev_change_flags+0x9f/0x154 > >> >> >> ? devinet_ioctl+0x2da/0x5f8 > >> >> >> ? inet_ioctl+0x93/0xaf > >> >> >> ? sock_ioctl+0x1af/0x1d1 > >> >> >> ? sock_ioctl+0x0/0x1d1 > >> >> >> ? vfs_ioctl+0x22/0x69 > >> >> >> ? do_vfs_ioctl+0x222/0x235 > >> >> >> ? sys_socketcall+0x51/0x168 > >> >> >> ? sys_ioctl+0x40/0x5a > >> >> >> ? syscall_call+0x7/0xb > >> >> >> Code: .... > >> >> >> EIP: [<c012b22a>] mod_timer+0x9/0x27 SS:ESP 0068:cf17de18 > >> >> >> Kernel panic - not syncing: Fatal exception in interrupt > > >> >> >> On Mar 30, 8:49 am, Brian <[email protected]> wrote: > > >> >> >> > Thanks, Jerry! > > >> >> >> > I'm using kernel 2.6.27, and the modules have version 2.6.25 as you > >> >> >> > can see below. > >> >> >> > There are inconsistencies in the cupcake branch. > > >> >> >> > I will either get kernel 2.6.25 or try to compile 2.6.27 modules. > > >> >> >> > Thanks,Brian > > >> >> >> > ./kernel/include/config/kernel.release:2.6.27-00120-g453dc2b-dirty > > >> >> >> > $ modinfo ./out/target/product/eee_701/rootimg/lib/modules/i915.ko > >> >> >> > filename: ./out/target/product/eee_701/rootimg/lib/modules/ > >> >> >> > i915.ko > >> >> >> > license: GPL and additional rights > >> >> >> > description: Intel Graphics > >> >> >> > author: Tungsten Graphics, Inc. > >> >> >> > license: GPL > >> >> >> > srcversion: 73F81EDC4CAE593AA695C49 > >> >> >> > depends: drm,cfbfillrect,cfbimgblt,cfbcopyarea > >> >> >> > vermagic: 2.6.25-00101-gb6922fa SMP preempt mod_unload > >> >> >> > PENTIUMM > >> >> >> > parm: modeset:int > >> >> >> > parm: fbpercrtc:int > >> >> >> > parm: i915_rightof:int > > >> >> >> > On Mar 30, 8:39 am, Jerry Fan <[email protected]> wrote: > > >> >> >> > > HiBrian, > >> >> >> > > just type modinfo /path/to/anymodule.ko > >> >> >> > > compare modinfo output on any kernel ko files in your Android > >> >> >> > > kernel against > >> >> >> > > i915 from eeepc. In modinfo output, u will read vermagic at > >> >> >> > > last line. You > >> >> >> > > need to make sure every protperty in i915 vermagic matches > >> >> >> > > vermagic in your > >> >> >> > > android kernel. Any signle property mismatches will result in > >> >> >> > > the problem > >> >> >> > > you have. > > >> >> >> > > On Mon, Mar 30, 2009 at 11:15 PM,Brian<[email protected]> wrote: > > >> >> >> > > > Thanks, Jerry! > > >> >> >> > > > (I'm very sorry. I somehow got a wrong name.) > > >> >> >> > > > Please see the previous email. > > >> >> >> > > > Thanks, > >> >> >> > > >Brian > > >> >> >> > > > On Mar 30, 8:14 am,Brian<[email protected]> wrote: > >> >> >> > > > > Thanks, Jeff. > > >> >> >> > > > > It seems like that the modules are copied from > >> >> >> > > > > vendor/asus/eee_701/ > >> >> >> > > > > modules > >> >> >> > > > > How can I check magic numbers? > > >> >> >> > > > > I'm attaching files in the directory. There is the > >> >> >> > > > > module.versions > >> >> >> > > > > file and drm-patches. Maybe you can pinpoint what's going on > >> >> >> > > > > with > >> >> >> > > > > these files better. > > >> >> >> > > > > Thanks, > >> >> >> > > > >Brian > > >> >> >> > > > > vendor/asus/eee_701/modules$ ls > >> >> >> > > > > atl2.ko cfbcopyarea.ko cfbimgblt.ko drm-patches > >> >> >> > > > > font.ko > >> >> >> > > > > module.versions > >> >> >> > > > > bitblit.ko cfbfillrect.ko drm.ko fbcon.ko i915.ko > >> >> >> > > > > softcursor.ko > > >> >> >> > > > > vendor/asus/eee_701/modules$ cat module.versions > >> >> >> > > > > Modules: > >> >> >> > > > > atl2.ko > > >> >> >> > > > > Source: > >> >> >> > > > > http://people.redhat.com/csnook/atl2/atl2-2.0.5.tar.bz2 > > >> >> >> > > > > ---------------------------- > > >> >> >> > > > > Modules: > >> >> >> > > > > bitblit.ko > >> >> >> > > > > cfbcopyarea.ko > >> >> >> > > > > cfbfillrect.ko > >> >> >> > > > > cfbimgblt.ko > >> >> >> > > > > fbcon.ko > >> >> >> > > > > font.ko > >> >> >> > > > > softcursor.ko > > >> >> >> > > > > Source: > >> >> >> > > > > git://android.git.kernel.org/kernel/common.git > >> >> >> > > > > android-2.6.25 > > >> >> >> > > > > commit b6922faa7d617f11440ab8096b8797ccdcebd10d > >> >> >> > > > > Author: Nick Pelly <[email protected]> > >> >> >> > > > > Date: Mon Nov 10 21:59:54 2008 -0800 > > >> >> >> > > > > android_paranoid_network: Use in_egroup_p to check > >> >> >> > > > > gid's. > > >> >> >> > > > > groups_search is not exported from sys.c which causes > >> >> >> > > > > problems > >> >> >> > > > > for module > >> >> >> > > > > builds. in_egroup_p is exported and is just what we > >> >> >> > > > > need. > > >> >> >> > > > > ----------------------------- > > >> >> >> > > > > Modules: > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
