Forum Discussion

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

a problem when run uClinux on DE2 Board

When I do the uCLinux running acording to the http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174)

I think the tool-chain has been builded,because the test is OK:

[giantice@localhost linux-2.6.x]$ nios2-linux-uclibc-gcc -v Reading specs from /home/giantice/buildroot/build_nios2/staging_dir/lib/gcc/nios2-linux-uclibc/3.4.6/specs

Configured with: /home/giantice/buildroot/toolchain_build_nios2/gcc-3.4.6/configure --prefix=/home/giantice/buildroot/build_nios2/staging_dir --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=nios2-linux-uclibc --enable-languages=c,c++ --enable-shared --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-nls --disable-threads --disable-multilib --enable-cxx-flags=-static

Thread model: single

gcc version 3.4.6

[giantice@localhost linux-2.6.x]$ nios2-linux-uclibc-flthdr ~/rootfs/bin/busybox /home/giantice/rootfs/bin/busybox

Magic: bFLT

Rev: 4

Build Date: Sat Jul 1 09:37:27 2006

Entry: 0x40

Data Start: 0x681b8

Data End: 0x80e40

BSS End: 0x9e19c

Stack Size: 0x3e80

Reloc Start: 0x80e40

Reloc Count: 0x35ae

Flags: 0x1 ( Load-to-Ram )

[giantice@localhost linux-2.6.x]$

Then I make the confige :# config the kernel

make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- menuconfig

But when I download the image and run:

cd /cygdrive/h/linux-2.6.x/arch/nios2nommu/boot

nios2-download -g zImage

nios2-terminal

the process paused at :

Uncompressing Linux...

What' the problem?

I do need someone help me. Thanks!

5 Replies

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

    --- Quote Start ---

    originally posted by gaobing@Jul 1 2006, 12:25 AM

    when i do the uclinux running acording to the http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174)

    i

    the process paused at :

    uncompressing linux...

    what' the problem?

    i do need someone help me. thanks!

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

    --- quote end ---

    --- Quote End ---

    I&#39;ve seen this when the console device that the kernel was trying to talk to was not there and/or not configured. I would check this first.

    The problem is it could be many other issues as well. To compound matters, if the kernel is crashing before initializing the console, PrintK is not going to work.

    If you need to start tracing through the execution, the kernel jumps into head.s....

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

    What is the program address displayed in nios2-download?

    If the size of your sdram is smaller that 16MB, eg DEII with 8MB sdram, change the link address of the uncompress loader to 5M,

    Processor type and features-->(0x00500000) Link address offset for booting.

    The zImage load address is ( your sdram base address + link address offset ) . The zImage boot loader does not relocate itself.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Jul 3 2006, 10:27 AM

    what is the program address displayed in nios2-download?

    if the size of your sdram is smaller that 16mb, eg deii with 8mb sdram, change the link address of the uncompress loader to 5m,

    processor type and features-->(0x00500000) link address offset for booting.

    the zimage load address is ( your sdram base address + link address offset ) . the zimage boot loader does not relocate itself.

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

    --- quote end ---

    --- Quote End ---

    Thanks for your reply.

    the program address displayed in nios2-download is 0x00000200,I don&#39;t know why it is,because the sdram address is 0x00000020.

    the link address offset is 0x00800000,that my cfi flash address,should I change it lower?

    And should I change the reset address to the SDRAM in the SOPC Builder?

    I user the DE2_NET project in the DE2 demostration,QuartusII 5.1 vesion.

    Look forward to your reply again.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Jul 3 2006, 10:27 AM

    what is the program address displayed in nios2-download?

    if the size of your sdram is smaller that 16mb, eg deii with 8mb sdram, change the link address of the uncompress loader to 5m,

    processor type and features-->(0x00500000) link address offset for booting.

    the zimage load address is ( your sdram base address + link address offset ) . the zimage boot loader does not relocate itself.

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

    --- quote end ---

    --- Quote End ---

    Thanks to your reply,I have successful start uClinux on the DE2.

    But I found a problem when I turn on the series support on the menuconfig:

    I can the run uCLinux neither from the SDK shell(nios2-terminal) nor the super terminal (windows).

    Can you help me?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by gaobing+jul 6 2006, 04:11 pm--><div class='quotetop'>quote (gaobing @ jul 6 2006, 04:11 pm)</div>

    --- quote start ---

    <!--quotebegin-hippo@Jul 3 2006, 10:27 AM

    what is the program address displayed in nios2-download?

    if the size of your sdram is smaller that 16mb, eg deii with 8mb sdram, change the link address of the uncompress loader to 5m,

    processor type and features-->(0x00500000) link address offset for booting.

    the zimage load address is ( your sdram base address + link address offset ) . the zimage boot loader does not relocate itself.

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

    --- quote end ---

    --- Quote End ---

    Thanks to your reply,I have successful start uClinux on the DE2.

    But I found a problem when I turn on the series support on the menuconfig:

    I can the run uCLinux neither from the SDK shell(nios2-terminal) nor the super terminal (windows).

    Can you help me?

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

    [/b]

    --- Quote End ---

    if you want to use serial uart (with a 9-pin RS-232C cable) on a terminal emulator such as minicom or ckermit, (or hyper terminal on windows)

    in kernel menuconfig, drivers-->char-->serial-->

    [*] Nios serial support

    [*] Support for console on Nios UART

    [ ] Altera JTAG UART support

    [ ] Support for console on Altera JTAG UART