On Fri, Apr 26, 2013 at 7:15 PM, Sreevidya N <[email protected]> wrote: > Hi > > We created an embedded Linux system using build root tool. > We integrate wine as we have to load our windows application > from the linux system.
OK, so now you have a fully functional system on a hard disk that boots, right? If yes, then you should create an "image" of this 'pristine' installation with dd into a file and on the other end dd this file on to a hard disk and you should be done! > > We wrote a shell script to initially boot from the bootable CD > and then copy the contents of the CD into the harddisk, The shell script could be improved with the contents of the menu.lst as a "Here Document" or simply copy a template from the CD. Too many echos IMO to create a file :( > and then unmount the CD and eject it and reboot the system. > Now onwards it should boot from hard disk and load the application so that > user can use it. > > We used grub command but for some reason we get the following error and it > does not boot from the hard disk. > It is not sufficient to copy the Grub files /boot/grub/*. Grub installs it own boot loader in the disk's MBR. You also need to dd the Grub's MBR to the boot sector of the new disk. I did not see it in your script (unless I am missing something). > Running "intall /boot/grub/stage1 (hd0) > (hd0) 1+18 p (hd0,0)/boot/grub/stage2 > /boot/grub/menu.lst"....failed > Error 6:Mismatched or corrupt version of stage1/stage2. > > We would like to know if we have missed out some packages in buildroot > compilation or is there a problem in the shell script, > I have attached the shell script for your reference > > How to solve this error? See above. Alternately, you can switch to the 'extlinux' boot loader; much smaller foot print and less complicated. HTH -- Arun Khan Sent from my non-iphone/non-android device (অরুণ খান্/अरुण खान) _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
