Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Hi, If you are going to implement the 'no-mmu' version of Linux Kernel (=uClinux), it is impossible to use shared libraries because each task is loaded into each (different) address. So you must give up to compile the library 'lzo'.
Kernel/Library/Defaluts Selection --->
Customize Application/Library Settings
Exit
Exit
Library Configuration --->
Build liblzo <=== Do not select
If you want to use shared libraries, please change the kernel to mmu version. But you must also change the build tool to 'toolchain-mmu'. Kazu --- Quote End --- ok it appears to work now. i built it with 64-bit ubuntu 16.04 $ nios2-download -g /home/developer/altera/nios2-linux/uClinux-dist/linux-2.6.x/arch/nios2/boot/zImage
Using cable "USB-Blaster ", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 3606KB in 18.1s (199.2KB/s)
Verified OK
Starting processor at address 0xC1000000
developer@1604:/opt/intelFPGA_lite/16.1/nios2eds$ 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 3.5.0-rc4-01329-ga227997-dirty (developer@1604) (gcc version 4.1.2)# 765 Thu Mar 30 10:37:36 CEST 2017
bootconsole enabled
early_console initialized at 0xe8001440
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c0486930, node_mem_map c0497960
DMA zone: 256 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 32512 pages, LIFO batch:7
�pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line:
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory available: 125212k/4693k RAM (1441k kernel code, 3251k data)
NR_IRQS:64
Calibrating delay loop... 19.32 BogoMIPS (lpj=9664)
pid_max: default: 32768 minimum: 301
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Mount-cache hash table entries: 512
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 244
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)
ttyAL0 at MMIO 0x8001400 (irq = 2) is a Altera UART
console enabled, bootconsole disabled
thanks for all the help!