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

Re: bootable CDs for mipsel [was: Reading fibmap]



On Wed, May 01, 2002 at 01:02:39AM +0200, Karsten Merker wrote:
> Yes, binutils-multiarch works - just booted my mipsel-box with a freshly
> generated woody CD. So the case differention between "obj(copy|dump)" 
> for native builds and "mipsel-linux-obj(copy|dump)" for non-native
> builds is unnecessary with binutils-multiarch. I will update my 
> patch accordingly.

Hey Karsten, *,

I found a way to create the boot sector without loop mounting the 
iso filesystem.

flo@split:~$ isoinfo -i /tmp/test -Rl   

Directory listing of /
drwxr-xr-x   3 1750 1750             4096 Mar 29 2002 [    28]  . 
drwxr-xr-x   3 1750 1750             4096 Mar 29 2002 [    28]  .. 
-rw-r--r--   1 1750 1750             1032 Jun 16 2001 [    34]  bmark.S 
-rw-r--r--   1 1750 1750            10919 Jun 16 2001 [    35]  cfg.c 
[...]

"isoinfo" lists the content of the disk - When you use the "-R" it shows
the full filename (Or -J if using Joliet Extensions).

The 5th column shows the size of the file. The 9th column shows the
extent of the file which is basically the block number. So retrieving
the bmark.S file one would do

dd if=/tmp/test of=/dev/null count=1 skip=34 bs=2048

The bootsector then would use columen (9 * 4) as the start block
and ((column 5+511)/512) as the no of blocks to read.

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
Nine nineth on september the 9th              Welcome to the new billenium

Attachment: pgpRednSupgry.pgp
Description: PGP signature


Reply to: