[haiku-development] Re: boot issues (both hdd and usb stick) on FX9850 cpu based system

On 2008-07-09 at 21:33:26 [+0200], Marcus Jacob <rossi@xxxxxxxxxxxxxxx> wrote:
> >On Wed, Jul 9, 2008 at 2:16 PM, Marcus Jacob <rossi@xxxxxxxxxxxxxxx> wrote:
> >> Actual installation on the desktop HDD was done by the build system from
> an
> >> Ubuntu install with the install-haiku target.
> >>
> >
> >I might be wrong, but afaik install-haiku is not the correct target to
> >be using from ubuntu, that one's only meant for installing Haiku to a
> >BFS partition directly from within BeOS or whatnot. Normally you want
> >to be using the haiku-image target, with HAIKU_IMAGE_DIR and friends
> >set appropriately as specified in the sample UserBuildConfig. You may
> >well have installed a boot sector and nothing else if you used that
> >target.
> 
> Well, that might be true, but as I said, I also can't boot from an USB 
> stick,
> which contained an image created with haiku-image target and copied to the
> stick using dd as well as the same drive, which is installed in my notebook
> and boots fine there, also exhibits the same problem, when connected to the
> desktops ide interface using an adapter to plug in a 2.5" hdd using a
> standard ide cable.
> 
> Therefore thanks for the hint, will not use the install-haiku target 
> anymore,
> but still need to figure out why the system doesn't boot at all.

If my memory serves me well, problems with the stage one boot loader not 
being able to load the stage two boot loader have always turned out to be 
installation problems so far. "install-haiku" is indeed the wrong build 
system target (now I understand why you mentioned ext3 in your private mail). 
"haiku-image" should work well, if you specify the respective device.

Regarding the USB stick, you mentioned dd'ing an image to it. If the stick 
contains a partitioning system you'll still have to run makebootable on it. 
The preferred method to install Haiku on a disk/partition is to use the build 
system directly, though. The file system won't be restricted to the size of 
the image and the build system should take care of correctly running 
makebootable.

BTW, the build system sports a feature called build profiles, which is quite 
handy, when one has different places where and/or different configurations 
how to install Haiku. E.g. adding the following two lines to your 
UserBuildConfig:

        DefineBuildProfile disk : disk : "/dev/sda57" ;
        DefineBuildProfile usb-stick : disk : "/dev/sdb1" ;

would allow you to build and install Haiku to /dev/sda57 via "jam @disk" or 
to /dev/sdb1 via "jam @usb-stick" (you would obviously want to use the 
appropriate devices :-)). It is also quite easy to further configure each 
build profile (like what optional packages or additional files to install). 
For more info have a look at the respective section of UserBuildConfig.ReadMe.

CU, Ingo

Other related posts: