ts-7000
[Top] [All Lists]

[ts-7000] Re: Building a TS7300 file system from scratch

To:
Subject: [ts-7000] Re: Building a TS7300 file system from scratch
From: "Yan Seiner" <>
Date: Tue, 22 May 2007 13:33:35 -0000
--- In  Eddie Dawydiuk <> wrote:
>
> Hello,
> 
> > I'd like to put together a script that builds an SD card suitable for
> > booting for the TS7300.
> >
> > The way I understand it, I need to dd the first partition in its
> > entirety to the new SD card.  This contains the boot code.
> 
> The first 446 bytes is the bootcode. The partition table resides in
bytes 
> 447-512.
> 
> > The second partition contains the kernel.  How should I prepare the
> > kernel and partition?  Do I just dd vmlinuz to the partition after
> > setting up the partition table?  Or do I use some sort file system?
> 
> The kernel resides on the first patition, you don't need to do any
> setup. That is you don't want to use a file system, simply dd your
> kernel to the first partition after the partition table has been setup.
> 
> > The third partition contains the file system which I assume is just a
> > generic ext2.
> 
> The second partition contains an initial ramdisk, this is the fastboot
> environment. No setup needs to happen on this partition, just dd your
> initial ramdisk to this partition. The third partition contains an ext2
> file system...

Thanks!

One more question:  How do I get the bootcode and the partition table
into the right place?

I know very little about the low-level structure of various storage 
devices.  AFAIK, dd and fdisk won't give me control to that level....

So what can I do?

Can I just copy the first 512 byte block from a good SD card, dd it to
the new (blank) card, and then edit the partition table?

My goal is to build a script that allows a technician to pick a
handful of options from a menu, stick in an SD card, and have a custom
image put on the card.  That way we can build semi-custom images from
basic building blocks.

--Yan



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU