ts-7000
[Top] [All Lists]

Re: [ts-7000] Digest Number 128

To:
Subject: Re: [ts-7000] Digest Number 128
From: Jim Jackson <>
Date: Sun, 27 Mar 2005 12:59:02 +0100 (BST)


This isn't a linux thing.
I always treat my compact flash cards as I would real hard drives,
and linux treats hardrives much the same as windows etc do as far as
partitioning is concerned.

As in MS Dos and windows and Linux, with a hard drive you have to
partition the drive and then set up the partitions how you want.
Under linux and windows you can use "fdisk" to partition (or just list the
partitions of) your drive. There are other tools.

However you can treat CFdisks as you would floppy disks - which, while
having a possible boot sector don't have partitions - you just use the
whole disk as one partition. I've never done this, and whenever I've heard
of people doing it, it is usually when they are complaining something
doesn't work :-(.

So I would start again. On your development machine:

 - setup the partition information on your cfdisk using fdisk
   you will need to know the device name of the raw cfdisk - which will
   depend on how you connect it to your development box. (on my system
   when I plug it into my USB cf disk reader it appears as /dev/sda)

   I'd setup just one partition - (in my case this will then be /dev/sda1)

 - run mkfs -t ext2 on the partition to make the file system

 - mount the partition

 - unbzip the fileimage onto the partition

 - umount the partition . You must do this! Don't just pull the cfdisk
   out of the reader, otherwise the filesystem will appear "dirty".
   The umount write stuff to the partition to say it was cleanly unmounted
   and shouldn't need checking.

 - take the cfdisk out and try the stuff out again on the ts7200

HTH
Jim


On Sun, 27 Mar 2005  wrote:

>
> Hi Jim!
>
> Thanks for your comments. Sorry, but my linux know-how is still at the
> beginning. What am I fighting now is that I formatted the CF at my Fedora Core
> 3 machine with ext2 and "unbzipped" the debian image I took from EmbeddedARM's
> site there. When I boot to the CF card as Jesse told me some boot message
> appear saying that I need to CHKDSK (or the equivalent on the Linux side) my 
> CF
> card but the program that does this is old and it cannot execute.
>
> Am I doing something wrong at this time or I need to format with an old 
> version
> of ext2? If so, how can I do it?
>
> Thanks again in advance.
>
> #Marcus.
>
> | ________________________________________________________________________
> |
> | Message: 1
> |    Date: Sat, 26 Mar 2005 21:47:58 +0000 (GMT)
> |    From: Jim Jackson <>
> | Subject: Re: Re: Python and Compact Flash
> |
> |
> | On Fri, 25 Mar 2005, Jesse Off wrote:
> |
> | > > Thanks but I still have a question: what you mean by "...booted to the
> | > > CF card".
> | >
> | > You change the redboot boot script to call:
> | >
> | > exec -c "console=ttyAM0,115200 root=/dev/hda"
> |
> | With a usual setup of a partition table with just one partition on the
> | cfdisk, the boot command should be
> |
> | exec -c "console=ttyAM0,115200 root=/dev/hda1"
> |
> | Though I have heard about people just putting a singe filesystem on the
> | whole disk (/dev/hda), I tend to treat them like harddisks and fdisk them,
> | with one or more partitions.
> |
> | If necessary, ou can also boot a different kernel contained on the cfdisk
> | by using this load command
> |
> | load -r -b 0x00218000 -m disk hda1:/vmlinux.bin
> |
> | immediately before the exec command - remember to substitute the full
> | pathname of the kernel file for "hda1:/vmlinux.bin" above.
> |
> | cheers
> | Jim
> |
> | >
> | > Noting the root= option which tells Linux to boot to this device.  Of
> | course
> | > this won't do you much good unless you have a CF with Debian on it.  I
> | doubt
> | > Python would fit in the space you have left on the onboard flash without
> | > majorly gutting and removing components you don't need.
> | >
> | > //Jesse Off
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


 
Yahoo! Groups Links

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

<*> 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