Problem to save file on the hard disk! What I have to set to do it ?

Matteo matteo.posterli at studenti.unipr.it
Thu Mar 16 23:07:04 UTC 2006


Sorry I didn't think it was so different.
So I search in the mailing list and I don't find something about the gcc 4.x and
problem with the samples. So I try to increase, like you say, the minimun stack
size in this way ;

#define CONFIGURE_EXTRA_TASK_STACKS         (100 * RTEMS_MINIMUM_STACK_SIZE)

but it's the same problem, may be I have to set another one costant ?

Thanks in advance  


Scrive "Thomas Doerfler (nt)" <Thomas.Doerfler at imd-systems.de>:

> Matteo,
> 
> I am VERY confused now, because I thought you would be running the
> fileio example already for some days.
> 
> There was an issue that most samples did not start at all because the
> new GCC 4.x needs a bigger minimum stack size, so this may be the
> problem with the original fileio example. (see previous postings on this
> mailing list).
> 
> So this is a totally different issue, I think. Can you try to fix it and
>  try the fileio example again with the fix?
> 
> wkr,
> Thomas.
> 
> Matteo schrieb:
> > Hi Thomas,
> > 
> > Ok I sent you the hda2_info.gz but with another one my email
> matte0pos at yahoo.it(
> > because with this I have a limit for the message).
> > Today I try to launch the full example fileio example and I see that it
> doesn't
> > work !
> > 
> > Every time I have try to launch my file example in which I put the three
> > function of the fileio example; 
> > to read the partion table -   fileio_part_table_initialize ()
> > to mount the partions - fileio_fsmount ()
> > to write the file - fileio_write_file (); 
> > And every time I have the error when I try to mount the partition.
> > Today I launch the full example of fileio and I look that nothing appened!
> Only
> > the first message:
> > " Initialized console on port CONSOLE " and stop. I look it today because
> I
> > always worked on my very simple example.. 
> > How it's possible ? Surely the error is here yet . 
> > Have you some idea? I forget to say you that I'm working on a notebook but
> the
> > hard disk are IDE, I try to launch the example on a normal computer and I
> have
> > the same result.
> > 
> > Really thanks.
> > 
> > Matteo
> > 
> > 
> > 
> > Scrive Thomas Doerfler <Thomas.Doerfler at imd-systems.de>:
> > 
> > 
> >>Matteo,
> >>
> >>I got no idea, what might go wrong on your machine. According to your 
> >>answer, the partiton table is read in correctly. Can you do the 
> >>following for me:
> >>
> >>under linux, can you log in as root and perform the following commands:
> >>  # dd if=/dev/hda of=hda_partition_table bs=512 count=1
> >>  # dd if=/dev/hda2 of=hda2_info bs=512 count=22000
> >>  # gzip <hda2_info >hda2_info.gz
> >>
> >>This will read the partition table and the start of hda2 (including the 
> >>boot sector, the FAT and some file contents of that partition) from your 
> >>disk. If you send me these two files (as private mail) I can try to 
> >>analyze the info stored there.
> >>
> >>Please note, with the above commands, some file content of your harddisk 
> >>will be sent to me aswell, so please do it only if you do not have 
> >>private or confidential information on this partiton.
> >>
> >>wkr,
> >>Thomas.
> >>
> >>
> >>Matteo wrote:
> >>
> >>>Hi Thomas,
> >>>
> >>>The result after reading the partition table is "RESULT = 0"
> >>>I create the /mnt/hda1 too, with linux I can write and mount without
> >>
> >>problem on
> >>
> >>>hda1(FAT16). So why with RTEMS I can't do it ?
> >>>
> >>>Have you some idea ?
> >>>
> >>>Thanks
> >>>
> >>>
> >>>
> >>>Scrive "Thomas Doerfler (nt)" <Thomas.Doerfler at imd-systems.de>:
> >>>
> >>>
> >>>
> > Matteo,
> > 
> > one other question:
> > 
> > After reading the partition table, the "fileio" sample will print a
> > result code. Can you tell me what is printed there as a result?
> > 
> > wkr,
> > Thomas.
> > 
> > Matteo schrieb:
> > 
> > 
> >>I have two FAT partition;
> >>- one is hda2, is for " windows xp " and is FAT32(is about 20GB), 
> >>- another one is hda1, is a free memory FAT16(is about 2.8 GB).
> >>I can mount hda2 and hda1 and  write a file on them without problem. 
> > 
> >>What's the problem about your opinion?
> >>May be I have to set some special options in my Grub(my linux bootloader)
> > 
> > when I
> > 
> > 
> >>have to launch the example?
> > 
> >>Really thanks in advance.
> > 
> >>Matteo
> > 
> > 
> > 
> >>Scrive "Thomas Doerfler (nt)" <Thomas.Doerfler at imd-systems.de>:
> > 
> > 
> > 
> > 
> >>>Matteo,
> >>>
> >>>it really looks like a difficult case to me :-((
> >>>
> >>>What is confusing me: Your FAT partition has a size of about 20GB. This
> >>>is MUCH to big for a FAT16 partition, so I would guess, that a program
> >>>that is asked to format the disk should complain about this.
> >>>
> >>>In your last posts, you have sent me information about what is written
> >>>in the partition table for partition hda1. For clarity, I have to ask
> >>>again: did you also:
> >>>
> >>>- format the partition
> >>>- mount it under linux to some mount point
> >>>- write files to it
> >>>
> >>>and everything without problems?
> >>>
> >>>wkr,
> >>>Thomas.
> >>>
> >>>
> >>>Matteo schrieb:
> >>>
> >>>
> >>>
> >>>>Thomas,
> >>>>
> >>>>Yes I can access to windows from linux. 
> >>>>I created hda1 using gparted formatting hda1 as FAT16. 
> >>>>Infact if I use gparted, like you can see, it says that is FAT16, but
> >>>
> >>>if
> >>>
> > I
> > 
> > 
> >>>use
> >>>
> >>>
> >>>
> >>>>only "cfdisk" says that is only linux.
> >>>>I try to see my memory using also qtparted and It says me that hda1 is
> >>>
> >>>FAT16
> >>>
> >>>
> >>>
> >>>>partition. 
> >>>>I don't know why "cfdisk -l /dev/hda" don't shows that hda1 is FAT16.
> >>>>But both gparted both qtparted program shows that hda1 is a FAT16 !
> >>>>
> >>>>Have you some idea about my problem ?
> >>>>
> >>>>Really Thanks in advance
> >>>>
> >>>>Matteo
> >>>>
> >>>>
> >>>>Scrive "Thomas Doerfler (nt)" <Thomas.Doerfler at imd-systems.de>:
> >>>>
> >>>>
> >>>>Matteo,
> >>>>
> >>>>I am a bit confused, your listing shows, that /dev/hda1 is a Linux ext3
> >>>>partition, but you write that gparted shows it as FAT16. But /dev/hda2
> >>>>looks fine in the partition table. can you access the filesystem on
> >>>>/dev/hda2 from linux?
> >>>>
> >>>>Thomas.
> >>>>
> >>>>Matteo schrieb:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Ok this is the result of the command "fdisk -l /dev/hda"
> >>>>
> >>>>>Disk /dev/hda: 40.0 GB, 40007761920 bytes
> >>>>>255 heads, 63 sectors/track, 4864 cylinders
> >>>>>Units = cilindri of 16065 * 512 = 8225280 bytes
> >>>>
> >>>>>Dispositivo Boot      Start         End      Blocks   Id  System
> >>>>>/dev/hda1            2678        3014     2706952+  83  Linux
> >>>>>/dev/hda2               1        2677    21502971    c  W95 FAT32
> >>>
> >>>(LBA)
> >>>
> >>>>>/dev/hda3            3015        4784    14217525   83  Linux
> >>>>>/dev/hda4            4785        4864      642600    5  Esteso
> >>>>>/dev/hda5            4785        4864      642568+  82  Linux swap /
> >>>>
> >>>>Solaris
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>looking with gparted I have the result that, hda1 is "FAT16", hda2 is
> >>>>
> >>>>"FAT32",
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>hda3 is "ext3", hda4 is "exetended", hda5 is "linux swap".
> >>>>
> >>>>>I created hda1 with FAT16 thinking to resolve the problem, but from
> >>>
> >>>the
> >>>
> >>>>fileio
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>example I have always the same error, 
> >>>>>" fsmount: mounting of "/dev/hda1" to "/mnt/hda1" failed: No such file
> >>>
> >>>or
> >>>
> >>>>>directory " but now hda1 is FAT16 so it could be right for RTEMS, but
> >>>
> >>>it
> >>>
> >>>>isn't.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>Why ?
> >>>>
> >>>>>Can you help me ?
> >>>>
> >>>>>Thanks advanced
> >>>>
> >>>>>MAtteo
> >>>>
> >>>-- 
> >>>--------------------------------------------
> >>>IMD Ingenieurbuero fuer Microcomputertechnik
> >>>Thomas Doerfler           Herbststrasse 8
> >>>D-82178 Puchheim          Germany
> >>>email:    Thomas.Doerfler at imd-systems.de
> >>>PGP public key available at:
> >>>   http://www.imd-systems.de/pgpkey_en.html
> >>>
> >>>
> > 
> > 
> > 
> > 
> > --
> > --------------------------------------------
> > IMD Ingenieurbuero fuer Microcomputertechnik
> > Thomas Doerfler           Herbststrasse 8
> > D-82178 Puchheim          Germany
> > email:    Thomas.Doerfler at imd-systems.de
> > PGP public key available at:
> >     http://www.imd-systems.de/pgpkey_en.html
> 
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>-- 
> >>--------------------------------------------
> >>IMD Ingenieurbuero fuer Microcomputertechnik
> >>Thomas Doerfler           Herbststrasse 8
> >>D-82178 Puchheim          Germany
> >>email:    Thomas.Doerfler at imd-systems.de
> >>PGP public key available at:
> >>      http://www.imd-systems.de/pgpkey_en.html
> 
> 
> 
> 
> -- 
> --------------------------------------------
> IMD Ingenieurbuero fuer Microcomputertechnik
> Thomas Doerfler           Herbststrasse 8
> D-82178 Puchheim          Germany
> email:    Thomas.Doerfler at imd-systems.de
> PGP public key available at:
>      http://www.imd-systems.de/pgpkey_en.html
> 
> 







More information about the users mailing list