Forum Discussion

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

nano-X problem

Hello everyone,

I wanted to ask a little question on the forum about nano-X. I followed the complete tutorial on the nios wiki for the Framebuffer, but everytime I try to start "nano-X &" I get the following syntax error:

$ nios2-terminal
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster ", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
Linux version 2.6.34-00701-gc130879-dirty (hacor@localhost.localdomain) (gcc version 4.1.2)# 150 Fri Sep 10 10:25:37 CEST 2010
bootconsole  enabled
early_console initialized at 0xe8002000
Linux/Nios II-MMU
init_bootmem_node(?,0x5d2, 0x0, 0x2000)
free_bootmem(0x5d2000, 0x1a2e000)
reserve_bootmem(0x5d2000, 0x400)
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: 
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
We have 8192 pages of RAM
Memory available: 26516k/5959k RAM, 0k/0k ROM (1360k kernel code, 4598k data)
Hierarchical RCU implementation.
NR_IRQS:32
Console: colour dummy device 80x25
Calibrating delay loop... 48.94 BogoMIPS (lpj=244736)
Mount-cache hash table entries: 512
init_BSP(): registering device resources
bio: create slab <bio-0> at 0
Switching to clocksource timer
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 51
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
fb0: Altera FB frame buffer device
ttyJ0 at MMIO 0x8002000 (irq = 10) is a Altera JTAG UART
console  enabled, bootconsole disabled
console  enabled, bootconsole disabled
physmap platform flash device: 01000000 at 04000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x010A
 Intel/Sharp Extended Query Table at 0x010A
 Intel/Sharp Extended Query Table at 0x010A
 Intel/Sharp Extended Query Table at 0x010A
 Intel/Sharp Extended Query Table at 0x010A
Using buffer write method
Using auto-unlock on power-up/resume
cfi_cmdset_0001: Erase suspend on write enabled
RedBoot partition parsing not available
Using physmap partition information
Creating 4 MTD partitions on "physmap-flash.0":
0x000000d00000-0x000001000000 : "romfs/jffs2"
0x000000000000-0x000000020000 : "catalog"
0x000000180000-0x000000d00000 : "application"
0x000000020000-0x000000180000 : "selector"
Freeing unused kernel memory: 4200k freed (0xc0155000 - 0xc056e000)
ifconfig: socket: Function not implemented
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _ 
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|
For further information check:
http://www.uclinux.org/
BusyBox v1.16.2 (2010-09-07 22:27:30 CEST) hush - the humble shell
Enter 'help' for a list of built-in commands.
root:/> nano-X &
 690 nano-X
root:/> sh: syntax error at '&#65533;
nios2-terminal: exiting due to ^D on remote
~
$ nios2-terminal
nios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster ", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
 
 Done                   nano-X
root:/> nanowm &
 695 nanowm
root:/> sh: syntax error: unexpected )
I tried the tutorial with the neek_Web_server example design and with my custom design, both gave the same results. nios2-terminal automatically exits after giving the syntax error... I'm sure the hardware designs are ok, because when I follow the tutorial to show the console on the neek LCD, it works perfectly.

I did the following steps:

-in the uClinux-dist/user/microwin/src/ I did "make clean" and make, which worked perfectly.

- in the uClinux-dist/ I did "make"

I'm working on this problem for 4 days now, and it's really bothering me. Any help would really be appreciated.

Thanks!

Best,

Hans

1 Reply

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

    Hi!

    I don't know if you're still after this issue, but try to check the file type with 'file'. It seems your nano-X binary is not an ELF binary.

    steron.