Forum Discussion

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

How can I go into the "hwselect" window ?

Hi,

Everyone

When I do the Step3,in which I need to do LinuxHwselect , I cannot make it.

Where can i find the right diretory to go into the following screen:

--- Please select which CPU you wish to build the kernel against:

(1) cpu - Class: altera_nios2 Type: s Version: 5.11

Selection: 1

--- Please select a device to upload the kernel to:

(1) ext_flash

Class: altera_avalon_cfi_flash

Size: 16777216 bytes

Selection: 1

--- Please select a device to execute kernel from:

(1) ext_ssram

Class: altera_avalon_cy7c1380_ssram

Size: 2097152 bytes

(2) ddr_sdram

Class: ddr_sdram_component

Size: 33554432 bytes

I tried the ~/uClinux-dist-test dir ,but I cannot go into.

So I tried ~/uClinux-dist-test/linux2.6.x,and see the correct acreen,

But is it all right???

Thanks!!

4 Replies

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

    I also have met the similar problem today , did not know how to solve.

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

    I have done with it porperly!

    [oneuser@RJ uClinux-dist-test]$make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- linux_hwselect SYSPTF=nios_0.ptf

    u can find a makefile file in dir "uClinux-dist-test",which contains

    info. like this:

    ...

    linux_xconfig:

    KCONFIG_NOTIMESTAMP=1 $(MAKEARCH_KERNEL) -C $(LINUXDIR) xconfig

    linux_menuconfig:

    KCONFIG_NOTIMESTAMP=1 $(MAKEARCH_KERNEL) -C $(LINUXDIR) menuconfig

    linux_config:

    KCONFIG_NOTIMESTAMP=1 $(MAKEARCH_KERNEL) -C $(LINUXDIR) config

    linux_hwselect:

    KCONFIG_NOTIMESTAMP=1 $(MAKEARCH_KERNEL) -C $(LINUXDIR) hwselect

    ...

    I think it will help you understand the command.

    Note: nios_0.ptf must be in the dir /uClinux-dist-test/linux-2.6.x
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The steps to rebuild completely from a clean set goes:

    make clean

    make linux_hwselect SYSPTF=insertyourptfhere.ptf

    make

    make linux

    make image

    The previous reply is correct that the PTF file needs to be in the kernel's base directory... in my case the linux-2.6.x directory.

    In case you would like to know more about it, the Makfile that eventually gets called to do the actual work is in uClinux-dist-test/linux-2.6.x/arch/nios2nommu/

    And the PERL scripts that it uses are in the scripts folder. The script that asks you the questions is hwselect.pl and the script that generates the nios2_system.h file are gen_nios2_system.h.pl.

    Your answers to the questions are stored in the hardware.mk file.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    make linux_hwselect SYSPTF=~/your_project/your_system.ptf

    no need to copy the ptf,

    but you should give the path to your ptf.