Forum Discussion

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

I'v got a problem ,at the last step to try out uClinux on DE2,who can help me?

:confused:In Ubuntu I have work out a download file renamed "down",base on system_0.ptf of DE2_NET,guided by some article on the Internet.i copied it back to windows .

take Nios II Command shell

type commands below

1) cd /cpydrive/d/uclinux_down/

2) nios2-configure-sof DE2_NET.sof

3) nios2-download -g down

all succeed

but affter commend "nios2-terminal"

it come out many lines

the last 2 lines is

No filesystem could mount root ,tried;

Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(0.0)

then have no response.

3 Replies

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

    Which file did you rename to down?

    The Linux build generates a few different images, including one with the kernel but no file system, so if you boot that it gives you an error similar to that.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    At the step of make ,there are some error follow

    ftpd.elf2flt(.text+0x6150): In function `logwtmp_keep_open':

    /home/niosii/uClinux-dist/user/ftpd/logwtmp.c:115: undefined reference to `bzero'

    ...

    boa.elf2flt(.text+0xd64): In function `auth_authorize':

    /home/niosii/uClinux-dist/user/boa/src/auth.c:358: undefined reference to `bzero'

    boa.elf2flt(.text+0x2584): In function `embedparse':

    /home/niosii/uClinux-dist/user/boa/src/config.c:325: undefined reference to `bzero'

    ...

    ftp.elf2flt(.text+0x18ec): In function `remglob':

    /home/niosii/uClinux-dist/user/ftp/ftp/cmds.c:949: undefined reference to `index'

    ftp.elf2flt(.text+0x3fa4): In function `setnmap':

    /home/niosii/uClinux-dist/user/ftp/ftp/cmds.c:2011: undefined reference to `index'

    ftp.elf2flt(.text+0x3fd0):/home/niosii/uClinux-dist/user/ftp/ftp/cmds.c:2015: undefined reference to `index'

    ftp.elf2flt(.text+0x58b0): In function `gunique':

    /home/niosii/uClinux-dist/user/ftp/ftp/ftp.c:1556: undefined reference to `rindex'

    ftp.elf2flt(.text+0x7670): In function `recvrequest':

    /home/niosii/uClinux-dist/user/ftp/ftp/ftp.c:797: undefined reference to `rindex'

    ftp.elf2flt(.text+0xa6b4): In function `xruserpass':

    /home/niosii/uClinux-dist/user/ftp/ftp/ruserpass.c:121: undefined reference to `index'

    ftp.elf2flt(.text+0xa6fc):/home/niosii/uClinux-dist/user/ftp/ftp/ruserpass.c:126: undefined reference to `index'

    ...

    ftpd.elf2flt(.text+0x6150): In function `logwtmp_keep_open':

    /home/niosii/uClinux-dist/user/ftpd/logwtmp.c:115: undefined reference to `bzero'
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Before I can help more I may need a couple of details:

    What article are you following? What version of Ubuntu? What version of Quartus (web edition)? Why can't you download the image from Ubuntu (why copy back to windows)? Are you using the pre-built toolchain, or did you compile it?

    I assume that the 'make' you are talking about is when compiling the zImage in Ubuntu? An 'undefined reference' means that there is some kind of function call that the compiler(linker) can't find the definition for. ie it can't find the file that has the code for the function 'auth_authorize'. However, you should not be getting a zImage. The compilation should stop.

    I suggest removing any image file from the 'images' folder in 'uClilnux_dist' and try compiling again. I'll watch this post for the results (and answers to my questions above...).