Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Some problems with uclinux

Hi

I met following problems when I am building standard linux tasks.

->Creating a ram disk image of ext2 fs problem

My cf card is ok and creating an ext2 fs successfully.But the next step for creating a ram disk image always does not rool my hoop.

  #  dd if=/dev/zero of=/dev/ram0 bs=1k count=1024]

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

/dev/ram0:No space left on device

4097+0 records in

4096+0 records out [/b]

--- Quote End ---

 
   #  mke2fs -s0 -vm0 /dev/ram0 1024
   #  tune2fs -i 0 /dev/ram0
   #  mount /dev/ram0 /mnt
  #  umount /mnt
  #  dd if=/dev/ram0 of=ramfs1024.img count=1024

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

ramfs1024.img:Read-only file system[/b]

--- Quote End ---

# mount –n /dev/hda1 /mnt/ide0#  dd if=/ramfs1024.img of=/dev/ram0

<div class='quotetop'>QUOTE </div>

--- Quote Start ---

/ramfs1024.img:No such file or directory[/b]

--- Quote End ---

It seems that the ram image is not created.

-->Ftpd problem

I can connect and login Ok,but I can&#39;t upload. It&#39;s read-only.

How to create a rw fs?

Thank you!

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I login NiosII board OK and can creat new folders by ftp. I can&#39;t see them in the LeapFTP window,But they can be found by the console. Why? Can anyone help me?

    --- Quote Start ---

    originally posted by singerpop@Oct 22 2005, 02:17 PM

    hi

    i met following problems when i am building standard linux tasks.

    ->creating a ram disk image of ext2 fs problem

    my cf card is ok and creating an ext2 fs successfully.but the next step for creating a ram disk image always does not rool my hoop.

      #  dd if=/dev/zero of=/dev/ram0 bs=1k count=1024]

    <div class='quotetop'>quote </div>

    --- quote start ---

    /dev/ram0:no space left on device

    4097+0 records in

    4096+0 records out

    --- Quote End ---

     
       #  mke2fs -s0 -vm0 /dev/ram0 1024
       #  tune2fs -i 0 /dev/ram0
       #  mount /dev/ram0 /mnt
      #  umount /mnt
      #  dd if=/dev/ram0 of=ramfs1024.img count=1024

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    ramfs1024.img:Read-only file system[/b]

    --- Quote End ---

    # mount –n /dev/hda1 /mnt/ide0#  dd if=/ramfs1024.img of=/dev/ram0

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    /ramfs1024.img:No such file or directory[/b]

    --- Quote End ---

    It seems that the ram image is not created.

    -->Ftpd problem

    I can connect and login Ok,but I can&#39;t upload. It&#39;s read-only.

    How to create a rw fs?

    Thank you!

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=10524)</div>

    [/b]

    --- Quote End ---

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Singerpop!

    You have not the rights to write in every directory.

    I can upload via ftp files to "tmp" or "var" but e.g. not to "usr".

    In creating a ram disk on nios board i have no experiences,

    cause I am also a beginner.

    Bye, Lothar.