Forum Discussion

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

µclinux ,problem of script checkout

hello,

i would download linux distrubution for NIOS II procesor i followed the steps in nioswiki :

for new users who didn't used nios2 git before, please download the tarball (1.7GB) ,as a normal user,

wget http://www.niosftp.com/pub/linux/nios2-linux-20090929.tar

sha1sum nios2-linux-20090929.tar

2482512682f72a69dd96cdaf907bc614893d9af4 nios2-linux-20090929.tar

tar xf nios2-linux-20090929.tar

cd nios2-linux

./checkout all the steps is ok,just

when i would execute >> ./checkout

the message appear

./checkout: line 6: git : commande introuvable

please if someone have samilar problem can help me.

9 Replies

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

    Salut,

    Under ubuntu :

    sudo apt-get install git-core

    Is that working better ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    salut,

    thank's it's work better.

    just i have others problems after i configured the kernel for niosII with MMU

    when i type

    make

    the following messages appears :

    chmod +x tools/romfs-inst.sh tools/modules-alias.sh tools/build-udev-perms.sh

    . linux-2.6.x/.config; if [ "$CONFIG_INITRAMFS_SOURCE" != "" ]; then

    mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`;

    touch $CONFIG_INITRAMFS_SOURCE || exit 1;

    fi

    rm -f linux-2.6.x/usr/initramfs_data.cpio

    make ARCH=nios2 CROSS_COMPILE=nios2-linux-gnu- O=/opt/altera9.1sp1/nios2-linux/uClinux-dist/linux-2.6.x -j8 -C ../linux-2.6 || exit 1

    make[1]: entrant dans le répertoire « /opt/altera9.1sp1/nios2-linux/linux-2.6 »

    nios2-linux-gnu-gcc: command not found; perhaps you need to fix your PATH?

    GEN /opt/altera9.1sp1/nios2-linux/uClinux-dist/linux-2.6.x/Makefile

    CHK include/linux/version.h

    CHK include/linux/utsrelease.h

    SYMLINK include/asm -> include/asm-nios2

    Using /opt/altera9.1sp1/nios2-linux/linux-2.6 as source for kernel

    CC scripts/mod/empty.o

    nios2-linux-gnu-gcc: command not found; perhaps you need to fix your PATH?

    make[4]: *** [scripts/mod/empty.o] Erreur 127

    make[3]: *** [scripts/mod] Erreur 2

    make[2]: *** [scripts] Erreur 2

    make[1]: *** [sub-make] Erreur 2

    make[1]: quittant le répertoire « /opt/altera9.1sp1/nios2-linux/linux-2.6 »

    make: *** [linux] Erreur 1

    you have some solutions for this errors
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    This is the error :

    nios2-linux-gnu-gcc: command not found; perhaps you need to fix your PATH?

    Did you followed the guide step by step at http://www.nioswiki.com/linux ?

    In the Quick start page, the first thing you have to do is to set up the path to the toolchain :

    PATH=$PATH:~/nios2-linux/toolchain-mmu/x86-linux2/bin

    If you don't want to add it to your .bash_profile ok but then you have to set up the path in a terminal, bash. This command is useful to find program for the cross-compilation.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hello,

    yes i followed the step of the http://www.nioswiki.com/linux

    i change my PATH to

    PATH=$PATH:/opt/altera9.1sp1/nios2-linux/toolchain-mmu/x86-linux2/bin i also installe the pax-util

    apt -get install pax-utils

    now is work better

    without errors

    but i have others question ,

    after this step there is

    3. The images created are,

    images/linux.initramfs.gz is the elf image with initramfs built-in

    images/zImge.initramfs.gz is the compressed elf image with initramfs built-in

    images/vmImage is compressed u-boot image

    images/rootfs.jffs2 is jffs2 image, eg, cp rootfs.jffs2 /dev/mtd0. This is available when jffs2 is selected in kernel. Please note the flash erase sector size on 3c120 dev board is 128KB, you will have to specify "MKFS_JFFS2_FLAGS = -l -p -e 128" at the beginning of your product Makefile.

    Connect USB Blaster cable to 3C120 dev board, download the sof and elf.

    nios2-configure-sof ../3c120_default/nios2_linux_3c120_125mhz_top.sof

    nios2-download -g images/linux.initramfs.gz

    nios2-terminal

    I would know if this version can work with 2c35 board (cyclone ii) ?

    and how can download the sof and elf in borad ,we should use commande in linux or start the quartus II ?

    because at know we not build our NIOS II processor with MMU
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    So

    With windows, use the Nios II Command shell that has been installed at the same time you installed NIOS II EDS. It's located in a subdirectory of the NIOS II EDS in your start menu.

    I have the same question. I use a neek board and i don't know i can do it. With uClinux i did make vendor_hwselect to specify my ptf file. But here the guide don't talk about this. So i don't know how i can set up linux on my neek board or on your 2C35 board.

    Anyone has an answer ? (Or start a new thread)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    In uClinux with MMU you only have to specify custom_fpga.h, here it explains:

    http://www.nioswiki.com/linux/creating_a_nios_ii_design_with_an_mmu

    And to download to the FPGA and run uCLinux you can do it all by terminal, although you can also load your .sof by quartus and after download your image by terminal

    nios2-configure-sof NiosII_cycloneII_2c35_full_featured.sof

    nios2-download -g zImage

    nios2-terminal
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have been trying to run uClinux on DE0-Nano, for this i have to download nios2-linux20090929.tar(1.7GB), but because of my unstable net connection iam unable to download ,any help how to download nios2-linux-20090929.tar form the secured website.iam using ubuntu12.04 .

    Thanks

    Alex.