This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: i386 FAT HDD support
- From: "Scott Bailie" <bailie at ll dot mit dot edu>
- To: "'Andrew Lunn'" <andrew at lunn dot ch>
- Cc: <ecos-discuss at sourceware dot org>
- Date: Mon, 7 Nov 2005 08:37:50 -0500
- Subject: RE: [ECOS] i386 FAT HDD support
Sorry, what I did not realize is that the build did not actually finish
successfully and when I built my program it was using the previous build
which included only the RAMFS. When I look through the build output I see
only the following error:
/ecos-c/workdir/fatFs/ecos_install/include/cyg/io/disk.h:59:29:
pkgconf/io_disk.h: No such file or directory
make: Leaving directory `/ecos-c/workdir/fatFs/ecos_build'
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c: In function
`ide_ident':
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c:227:
`CYGDAT_DEVS_DISK_IDE_SECTOR_SIZE' undeclared (first use in this function)
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c:227: (Each
undeclared identifier is reported only once
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c:227: for each
function it appears in.)
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c: In function
`ide_read_sector':
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c:260:
`CYGDAT_DEVS_DISK_IDE_SECTOR_SIZE' undeclared (first use in this function)
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c: In function
`ide_write_sector':
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c:295:
`CYGDAT_DEVS_DISK_IDE_SECTOR_SIZE' undeclared (first use in this function)
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c: In function
`ide_disk_init':
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c:311:
`CYGDAT_DEVS_DISK_IDE_SECTOR_SIZE' undeclared (first use in this function)
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c:311: warning:
unused variable `id_buf'
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c: At top level:
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c:308: warning:
`ide_disk_init' defined but not used
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.c:386: warning:
`ide_disk_lookup' defined but not used
/ecos-c/ecos/packages/devs/disk/ide/current/src/ide_disk.h:160: warning:
`ide_disk_funs' defined but not used
Any thoughts?
Thanks again!
-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Andrew Lunn
Sent: Friday, November 04, 2005 4:35 PM
To: Scott Bailie
Cc: ecos-discuss@sourceware.org
Subject: Re: [ECOS] i386 FAT HDD support
On Fri, Nov 04, 2005 at 03:04:29PM -0500, Scott Bailie wrote:
> I'm attempting to mount an IDE hard drive on an i386 target. As a basic
test
> of file I/O I mounted a RAMFS first, which worked. Next I added the
> fat16.ecm in the \packages\fs\fat\current\doc directory. Now I'm using
the
> same program and trying - mount( "/dev/disk0/1", "/mymount", "fatfs" ),
> however mount() is failing. I'm booting via REDBOOT floppy and using TFTP
> to grab my program from my development box. And yes, I have a FAT
formatted
> HDD installed.
FAT what though? FAT16? FAT32? Plain old FAT?
Try enabling the DEBUG code in packages/io/disk/current/src/disk.c See
if it is correctly finding the partition table, etc.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss