[uClinux-dev] hard disk, e2fsprogs on M5249C3

Richard Klingler richard.klingler at violasystems.com
Wed Mar 19 10:48:49 EST 2003


Hi again (o;

> Hi all,
> 
> I would like to use a hard disk attached to the M5249C3 eval board.
> The driver for ide is compiled into the kernel and detects the
> drive:
> ...
> ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
> hda: probing with STATUS(0x50) instead of ALTSTATUS(0x7f)
> hda: QUANTUM FIREBALL EX6.4A, ATA DISK drive
> hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x7f)
> hdb: probing with STATUS(0x00) instead of ALTSTATUS(0x7f)

Looks like you don't use the second chip select signal?

> ide0 at 50000020 on irq 0x000000a5
> hda: 12594960 sectors (6449 MB) w/418KiB Cache, CHS=13328/15/63
> ...
> Question 1: Does this looks ok until here?
> 
> Then it gives:
> ...
> Partition check:
>    hda: unknown partition table
> ...
> May be this is not really important, because:
> ...
> 
> /> fdisk -l /dev/hda
> 
> Disk /dev/hda: 15 heads, 63 sectors, 13328 cylinders
> Units = cylinders of 945 * 512 bytes
> 
> Device Boot    Start       End    Blocks   Id  System
> /dev/hda1          1       217    102501   83  Linux
> /dev/hda2        218       434    102532+  83  Linux
> /dev/hda3        435      4769   2048287+  83  Linux
> /dev/hda4       4770     13328   4044127+  83  Linux
> />
> 
> Question 2: Do I have to worry about this "unknown partition table"
> error if fdisk finally seems to find the partitions quiet well?

Yes you have...otherwise you can't mount your file system...

> 
> Question 3: I would like to use the e2fsprogs (at least mke2fs and
> e2fsck) on the target, because allways transfering the disk to a pc
> to create/check the fs seems to be a bit - aehem - inconvenient ;).
> But if I set 
> 
> CONFIG_USER_E2FSPROGS_E2FSCK_E2FSCK=y
> CONFIG_USER_E2FSPROGS_MISC_MKE2FS=y
> 
> in config/.config I get:
> 
> e2fsck.elf2flt: In function `init_resource_track':
> /home/hede/uClinux/uClinux-dist-20030305/user/e2fsprogs/e2fsck/util.c:216:
> undefined reference to `sbrk'
> 
> I've seen in the archive that there was an issue with that, but I
> couldn't find the solution. May be I have to set something else too
> in the "User/Vendor Settings"? Or has it to do with uClibc, as the
> old thread in the archive seems to indicate?

Have you tried with uC-libc instead of uClibc?


Rick


Richard Klingler             mail: richard.klingler at violasystems.com
Viola Systems Ltd.           http://www.violasystems.com/
Lemminkäisenkatu 32          phon: +358 (0)201 226 226
20520 Turku, Finland         mobile: +358 (0)40 748 4711



More information about the uClinux-dev mailing list