Re: Building boot2 for ixp425

From: Jon Loeliger <jdl_at_jdl.com>
Date: Fri, 15 May 2009 13:51:09 -0500
> > 
> > > with a ufs bootable filesystem on it?
> > 
> > Maybe.  I think I successfully built that image using
> > the nanobsd.sh script with the G2348 kernel via the
> > tools/tools/nanobsd/gateworks/avila conf file.
> > 
> > Is there a tool that will take nanobsd's "full disk" image,
> > inspect it, and itemize what is really in it?
> 
> Ah, I forgot you were using nanobsd. The only thing I can think of is
> maybe the endian on the ufs filesystem is wrong

So, you think boot2 is fine and the CF image isn't right?
I kind of thought the boot2 wasn't right, and was trying
to find the real image in the wrong place.

How does boot2 know to look on the CF ?


> This is an image for an Xscale board
>  # file - < /dev/ad0s1a
>  /dev/stdin: Unix Fast File system [v2] (big-endian) ...
> 
> ARM can be big endian or little endian so you may want to check what
> type you need and if nanobsd has created it correctly.

So, I plopped into /usr/obj/nanobsd.avila-HEAD, where there are
these three files:
    _.disk.full
    _.disk.image1
    _.disk.image2

for which "file" says:

freebie# file _.disk.*

_.disk.full:   x86 boot sector; partition 1: ID=0xa5, active, starthead 1, startsector 63, 498897 sectors; partition 2: ID=0xa5, starthead 1, startsector 499023, 498897 sectors; partition 3: ID=0xa5, starthead 0, startsector 997920, 3024 sectors, code offset 0x31

_.disk.image1: Unix Fast File system [v1] (big-endian), last mounted on , last written at Tue May 12 12:58:59 2009, clean flag 1, number of blocks 498896, number of data blocks 490223, number of cylinder groups 20, block size 4096, fragment size 512, minimum percentage of free blocks 8, rotational delay 0ms, disk rotational speed 60rps, SPACE optimization

_.disk.image2: Unix Fast File system [v1] (big-endian), last mounted on , last written at Tue May 12 13:01:01 2009, clean flag 1, number of blocks 498896, number of data blocks 490223, number of cylinder groups 20, block size 4096, fragment size 512, minimum percentage of free blocks 8, rotational delay 0ms, disk rotational speed 60rps, SPACE optimization

A "strings" on that full disk image contains:

_at_(#)FreeBSD 8.0-CURRENT #0: Tue May 12 12:56:15 CDT 2009
FreeBSD 8.0-CURRENT #0: Tue May 12 12:56:15 CDT 2009
    jdl_at_freebie:/usr/obj/nanobsd.avila-HEAD/arm/usr/src/sys/G2348
FreeBSD
8.0-CURRENT
G2348
Received on Fri May 15 2009 - 16:51:15 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:47 UTC