help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help-grub Digest, Vol 49, Issue 17


From: Mike Moorea
Subject: Re: Help-grub Digest, Vol 49, Issue 17
Date: Tue, 28 Feb 2012 19:02:56 +0530

On Mon, 27 Feb 2012 00:12:16 by satish kondapalli <address@hidden>

>Question:
> 1) When i installed my grub on disk I given /dev/sda. we are writing MBR on
>LBA0.  My partition is starting at LBA16.  so in my NOR flash from LBA1 to
>LBA15 are unuse. How to avoid this problem? I dont want to waste any of my
>NOR flash. But i have to represent this NOR flash as Bootable disk. Please
>give me some pointers to solve this issue.
>2) Is there a way to put the parttion table and created Partition in
>contiguous LBAs? (Beacuse  UEFI  will not execute MBR code.._ )

1. You format your USB with FAT file system which reserves some
sectors before partition.
2. After that your are Wrting MBR in it and install grub stage2 in partion.
3. You can do install stage1 in MBR and stage2 from sector 2 to onwards.
3. But it will boot and without filesystem on it.
4. Better to go with ext filesystem and control you partition boundary.

On 2/27/12, address@hidden <address@hidden> wrote:
> Send Help-grub mailing list submissions to
>       address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.gnu.org/mailman/listinfo/help-grub
> or, via email, send a message with subject or body 'help' to
>       address@hidden
>
> You can reach the person managing the list at
>       address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Help-grub digest..."
>
>
> Today's Topics:
>
>    1. Creating a image with grub. (satish kondapalli)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 27 Feb 2012 00:12:16 +0530
> From: satish kondapalli <address@hidden>
> To: address@hidden
> Subject: Creating a image with grub.
> Message-ID:
>       <address@hidden>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I am new to GRUB.
>
> I want to do one experiment with my Embedded system:
>
> i want to put GRUB and Kernel with initramfs file system in to the NOR
> flash.  I want to represent this NOR flash as a bootable hard disk to the
> UEFI.  I have written on BLOCK_IO_PROTOCOL driver in the UEFI that will
> represent my NOR flash as Hard disk.
>
> With GRUB one i have done this steps:
>
> 1) First I created one 6MB partition on USB disk with FAT file system
> (/dev/sda1) and I copied all the grub files  and  kernel image in to the
> partition.
> 2) I installed the grub on /dev/sda.( grub-install /dev/sda) and able to
> boot with this USB disk.
> 3))  Next step, i taken this USB disk and created a image from it ( dd
> if=/dev/sda of=file.img bs=1MB count=8). This image i am  programming in to
> my NOR flash and i am able to boot my system From NOR flash.
>
> Question:
> 1) When i installed my grub on disk I given /dev/sda. we are writing MBR on
> LBA0.  My partition is starting at LBA16.  so in my NOR flash from LBA1 to
> LBA15 are unuse. How to avoid this problem? I dont want to waste any of my
> NOR flash. But i have to represent this NOR flash as Bootable disk. Please
> give me some pointers to solve this issue.
> 2) Is there a way to put the parttion table and created Partition in
> contiguous LBAs? (Beacuse  UEFI  will not execute MBR code.._ )
>
> Thanks
> Sateesh
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://lists.gnu.org/archive/html/help-grub/attachments/20120227/4a239426/attachment.html>
>
> ------------------------------
>
> _______________________________________________
> Help-grub mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub
>
>
> End of Help-grub Digest, Vol 49, Issue 17
> *****************************************
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]