[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [microblaze-uclinux]Problems mounting Xilinx SysAce
Hi,
>I am still struggling with the partition table. I found that
> the different formatting tools (DOS and LINUX) I have, give
> quite different results, none of them is accepted by the
> uClinux with the Xilinx SysAce controller. Which fdisk under
> which Linux you used to format? And did you make 4 primary
> partions or extend ones? The one I have under Suse 9.1 for
> example the o option doesn't work. I have to use the t option
> and then select the FAT. But I noticed that even if it reports
> then a partition table it doesn't change the entries in the
> MRB (sector 0), it seems to work with entries of the boot sectors.
obviously the seems to be some confusion how to use fdisk.
So here is what I do, when I generate a CF-Card for the
use with uClinux
Start fdisk (assuming your CF-Card is at /dev/sda ):
[root@mybox root]# fdisk /dev/sda
Fdisk then will ask you for a command.
Pressing m will list you all the commands:
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Pressing o will build a new DOS disklabel:
Command (m for help): o
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
With p you will get the list of the partitions.
At this stage the list should be empty:
Command (m for help): p
Disk /dev/sda: 256 MB, 256901120 bytes
16 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
Your create a new partition with the command n.
With p you select a primary partition. You make it
the first by pressing 1. Then fdisk will ask you for
the first and last cylinder for that partition, by
pressing two times enter, the partition will use the
whole disc:
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-980, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-980, default 980):
Using default value 980
Now you will have to set the partition type. You may do so by
using the command t and entering 6 (FAT16) as partition type:
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 6
You may verify your new partition table by pressing p once
more:
Command (m for help): p
Disk /dev/sda: 256 MB, 256901120 bytes
16 heads, 32 sectors/track, 980 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 980 250864 6 FAT16
Then write the partition table to the disc by the command w:
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
Finally you will have to make the filesystem on your disc.
For MSDOS you may use mkfs.msdos
[root@mybox root]# mkfs.msdos /dev/sda1
mkfs.msdos 2.8 (28 Feb 2001)
That is the way how it works for me.
Cheers,
Erik
****************************
Erik Hansen
SHF Communication Technologies AG
Wilhelm-von-Siemens-Str. 23D
12277 Berlin
Germany
phone: +49 (30) 77 20 51 0
fax : +49 (30) 75 31 07 8
****************************
> -----Original Message-----
> From: owner-microblaze-uclinux@itee.uq.edu.au
> [mailto:owner-microblaze-uclinux@itee.uq.edu.au] On Behalf Of
> Alfred Grünewald
> Sent: Thursday, February 24, 2005 10:11 AM
> To: microblaze-uclinux@itee.uq.edu.au
> Subject: Re: [microblaze-uclinux]Problems mounting Xilinx SysAce
>
>
> Hello Erik,
>
> thanks for your answer!
> I am still struggling with the partition table. I found that
> the different
> formating tools (DOS and LINUX) I have, give quite different
> results, none
> of them is accepted by the uClinux with the Xilinx SysAce controller.
> Which fdisk under which Linux you used to format? And did you
> make 4 primary
> partions or extend ones? The one I have under Suse 9.1 for
> example the o
> option doesn't work. I have to use the t option and then
> select the FAT. But
> I notized that even if it reports then a partition table it
> doesn't change
> the entries in the MRB (sector 0), it seems to work with
> entries of the boot
> sectors.
>
> Regards
>
> Alfred
>
> ----- Original Message -----
> From: "Hansen Eric" <hansen@shf-communication.de>
> To: <microblaze-uclinux@itee.uq.edu.au>
> Sent: Monday, February 21, 2005 9:24 AM
> Subject: RE: [microblaze-uclinux]Problems mounting Xilinx SysAce
>
>
> > Dear Alfred,
> >
> > there seems to be some problem with your partition table:
> >
> >> Partition check:
> >> xsysacea: unknown partition table
> >
> > Just to check, whether some partions where detected or not,
> > you may also have an look at /proc/partitions.
> >
> > In my case it looks something like:
> >
> > /> cat /proc/partitions
> > major minor #blocks name rio rmerge rsect ruse wio
> wmerge wsect wuse
> > running use aveq
> >
> > 254 0 250880 xsysacea 117 17 138 1150 4 0 4 100 0 1200 1250
> > 254 1 33008 xsysacea1 38 0 38 250 0 0 0 0 0 250 250
> > 254 2 8448 xsysacea2 0 0 0 0 0 0 0 0 0 0 0
> > 254 3 8448 xsysacea3 0 0 0 0 0 0 0 0 0 0 0
> > 254 4 200960 xsysacea4 78 14 92 860 4 0 4 100 0 910 960
> >
> > We have been using a CF card with 4 partions on it
> > and it worked well. I always used fdisk to create
> > the partition table. With fdisk a created a new
> > empty msdos partition table (command o) and within
> > that created the 4 primary partitions.
> >
> > Cheers
> > Erik
> >
> > ****************************
> > Erik Hansen
> > SHF Communication Technologies AG
> > Wilhelm-von-Siemens-Str. 23D
> > 12277 Berlin
> > Germany
> > phone: +49 (30) 77 20 51 0
> > fax : +49 (30) 75 31 07 8
> > ****************************
> >
> >
> >> -----Original Message-----
> >> From: owner-microblaze-uclinux@itee.uq.edu.au
> >> [mailto:owner-microblaze-uclinux@itee.uq.edu.au] On Behalf Of
> >> Alfred Grünewald
> >> Sent: Sunday, February 20, 2005 1:57 PM
> >> To: microblaze-uclinux@itee.uq.edu.au
> >> Subject: [microblaze-uclinux]Problems mounting Xilinx SysAce
> >>
> >>
> >> Hi to all,
> >>
> >> I added a Xilinx Sys-Ace-controller to my system (very
> >> similar to MB-Vanilla). I know that the hardware works fine,
> >> because I load my FPGA configuration out of the Compact Flash
> >> card and I wrote a bootloader program to load uClinux from
> >> the card aswell.
> >>
> >> I now also would like to use the Compact Flash card under
> >> uClinux to store measurement data. Therefor I enabled in
> >> menuconfig the xilinx SYS ACE, DOS FAT fs support and MSDOS
> >> fs support.
> >>
> >> the system boots normal and in my bootlog I now see:
> >>
> >> Initializing SystemAce driver
> >> Partition check:
> >> xsysacea: unknown partition table
> >> System ACE at 0xFFFE0400 mapped to 0xFFFE0400, irq=4, 125440KB
> >>
> >> if I now try to mount the Compact Flash Card with
> >> mount -t msdos /dev/xsysacea0 /mnt
> >> the system hang and only a restart helps.
> >>
> >> I traced this through /busybox/mount.c downto an extern
> >> subroutine call
> >> mount(/dev/xsysacea0, /mnt, msdos, C0ED0000,.) from where it
> >> never returns.
> >> I don't find this subroutine, where is it hidden?
> >>
> >> Does anyone use allready the Sys Ace System?
> >> Any help is welcome!
> >>
> >> Regards
> >>
> >> Alfred
> >>
> >> --
> >> This message has been scanned for viruses and
> >> dangerous content by Mailscanner and is
> >> believed to be clean.
> >>
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> >
> > ___________________________
> > microblaze-uclinux mailing list
> > microblaze-uclinux@itee.uq.edu.au
> > Project Home Page :
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> > Mailing List Archive :
> > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> >
>
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@itee.uq.edu.au
> Project Home Page :
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/