Boot from SD card

665 views
Skip to first unread message

Frédéric

unread,
Nov 21, 2009, 3:47:36 PM11/21/09
to android-porting
Hi,

I just compiled Android and I want to put files on SD card in order to
make it starting up. Is there any procedure?

regards,



Frederic

abhishek srivastav

unread,
Nov 21, 2009, 6:08:17 PM11/21/09
to android...@googlegroups.com
Fredric,

Please make sure that you follow following steps for booting Android from SD card.

-Your bootargs<boot parameters in bootloader> should be set to SD card.
-For booting Android from SD card your SD card should be formatted in ext2 format.
-Copy the following files/directory from  out/target/product/generic

cp -a root/*   <SDCARD>
cp -a data/*   <SDCARD>
cp -a system/* <SDCARD>

Now, you are set to boot Android from SDcard.

Regards,
Abhishek

Frédéric

unread,
Nov 22, 2009, 6:14:10 AM11/22/09
to android-porting
Abhishek,

Where should I set bootargs? Is this documented somewhere?


regards
Frédéric

On Nov 22, 12:08 am, abhishek srivastav <srivastaabhis...@gmail.com>
wrote:
> Fredric,
>
> Please make sure that you follow following steps for booting Android from SD
> card.
>
> -Your bootargs<boot parameters in bootloader> should be set to SD card.
> -For booting Android from SD card your SD card should be formatted in ext2
> format.
> -Copy the following files/directory from  *out/target/product/generic*
> *
> *
> *cp -a root/*   <SDCARD>
> *cp -a data/*   <SDCARD>
> cp -a system/* <SDCARD>
>
> Now, you are set to boot Android from SDcard.
>
> Regards,
> Abhishek
>
> On Sat, Nov 21, 2009 at 2:47 PM, Frédéric <fsos...@gmail.com> wrote:
> > Hi,
>
> > I just compiled Android and I want to put files on SD card in order to
> > make it starting up.  Is there any procedure?
>
> > regards,
>
> > Frederic
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

abhishek srivastav

unread,
Nov 22, 2009, 12:49:20 PM11/22/09
to android...@googlegroups.com
You should change this in your bootloader. BTW what bootloader you are using ?

Frédéric

unread,
Nov 23, 2009, 2:01:51 PM11/23/09
to android-porting
I do not know... I was just thinking the boot loader was compiled with
Android.

GRUB is maybe the best way to boot Android. Isn't it?

On Nov 22, 6:49 pm, abhishek srivastav <srivastaabhis...@gmail.com>
wrote:
> You should change this in your bootloader. BTW what bootloader you are using
> ?
>
> > <android-porting%2Bunsu...@googlegroups.com<android-porting%252Buns...@googlegroups.com>
>
> > > > website:http://groups.google.com/group/android-porting
>
> > --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

?? ?

unread,
Nov 23, 2009, 8:07:28 PM11/23/09
to android...@googlegroups.com
hi,
   first u have to format your sd card with ext2.
 then copy the rootfs files to the card,and modify your linux BOOT_CMD_LINE  root=/dev/mmcblk0p1 to specify the sd card as the root device. Be sure your sdcard device work.
 
regards,
tony
2009/11/22 Frédéric <fso...@gmail.com>

?? ?

unread,
Nov 23, 2009, 8:12:34 PM11/23/09
to android...@googlegroups.com
are u use the uboot as the bootloader? bootloader trans the bootargs to the kernel .
If u are using uboot as your bootlaoder,u can set it in uboot,
this following cmd:
setenv bootargs.
 
If u are using the default cmd line in kernel .then u should can it in make menuconfig .
 
 


 
2009/11/24 ?? ? <tonypo...@gmail.com>

Dennis.Yxun

unread,
Nov 23, 2009, 10:35:03 PM11/23/09
to android...@googlegroups.com
I don't think you should specify any kernel bootargs in the bootloader,
just make sure kernel have built in ext2 fs
and customize your own init.rc scripts, edit the line related to "mount"

Frédéric

unread,
Nov 24, 2009, 5:11:05 AM11/24/09
to android-porting
I need to know how boot loading works. Is there any specific things
related to Android and SD cards?

I saw "bootable" folder. What should I do with this?

On Nov 24, 4:35 am, "Dennis.Yxun" <dennis.y...@gmail.com> wrote:
> I don't think you should specify any kernel bootargs in the bootloader,
> just make sure kernel have built in ext2 fs
> and customize your own init.rc scripts, edit the line related to "mount"
>
> On Sun, Nov 22, 2009 at 7:08 AM, abhishek srivastav <
>
> srivastaabhis...@gmail.com> wrote:
> > Fredric,
>
> > Please make sure that you follow following steps for booting Android from
> > SD card.
>
> > -Your bootargs<boot parameters in bootloader> should be set to SD card.
> > -For booting Android from SD card your SD card should be formatted in ext2
> > format.
> > -Copy the following files/directory from  *out/target/product/generic*
> > *
> > *
> > *cp -a root/*   <SDCARD>
> > *cp -a data/*   <SDCARD>
> > cp -a system/* <SDCARD>
>
> > Now, you are set to boot Android from SDcard.
>
> > Regards,
> > Abhishek
> > On Sat, Nov 21, 2009 at 2:47 PM, Frédéric <fsos...@gmail.com> wrote:
>
> >> Hi,
>
> >> I just compiled Android and I want to put files on SD card in order to
> >> make it starting up.  Is there any procedure?
>
> >> regards,
>
> >> Frederic
>
> >> --
> >> unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> >> website:http://groups.google.com/group/android-porting
>
> >  --
> > unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> > website:http://groups.google.com/group/android-porting

Frédéric

unread,
Nov 25, 2009, 3:16:06 AM11/25/09
to android-porting
Is the bootloader provided with android sources? maybe stupid
question...

On Nov 24, 2:12 am, "?? ?" <tonypopso...@gmail.com> wrote:
> are u use the uboot as the bootloader? bootloader trans the bootargs to the
> kernel .
> If u are using uboot as your bootlaoder,u can set it in uboot,
> this following cmd:
> setenv bootargs.
>
> If u are using the default cmd line in kernel .then u should can it in make
> menuconfig .
>
> 2009/11/24 ?? ? <tonypopso...@gmail.com>
>
> > hi,
> >    first u have to format your sd card with ext2.
> >  then copy the rootfs files to the card,and modify your linux
> > BOOT_CMD_LINE  root=/dev/mmcblk0p1 to specify the sd card as the root
> > device. Be sure your sdcard device work.
>
> > regards,
> > tony
> > 2009/11/22 Frédéric <fsos...@gmail.com>
>
> > Hi,
>
> >> I just compiled Android and I want to put files on SD card in order to
> >> make it starting up.  Is there any procedure?
>
> >> regards,
>
> >> Frederic
>
> >> --
> >> unsubscribe: android-porti...@googlegroups.com<android-porting%2Bunsu...@googlegroups.com>
> >> website:http://groups.google.com/group/android-porting

Mark Hartman

unread,
Feb 12, 2016, 3:10:35 PM2/12/16
to android-porting, fso...@gmail.com
I was just searching the net and saw this group...  Thank you for existing...  I have a question about "Side-Boot-Loading" on android tablets.  I oem unlocked my bootloader and it is now brick material.  The question is can I place a bootloader on an sd card to get it to turn on again?  If its on then accessible I can flash it with "whatever" rom etc...  But tight now its a brick..  Fully charged and all just wont turn on..  tried reset button and all combos of buttons.  I have windows and linux and a spare 4 gb sd card.....  with that (RCA Voyager btw...) Could it work?
Reply all
Reply to author
Forward
0 new messages