Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Hi, Did you setup your hardware correctly? You need the system at least with Nios2 f-core, MMU, on-chip memory for the TLB exceptions, main memory, timer and jtag-uart. And also you must inform those base addresses and irq No. to your kernel for its configuration. Please refer to the next video for example. https://www.youtube.com/watch?v=rxlyezof0rs Kazu --- Quote End --- Yes, I believe I have done that but I'm using Ubuntu 64-bit 16.04 to build the kernel. i'm very happy that it starts now but I wonder about " cp: can't stat '/etc/sc.cfg': No such file or directory". This is how it looks
Linux version 3.5.0-rc4-01329-ga227997-dirty (developer@1604) (gcc version 4.1.7
bootconsole enabled
early_console initialized at 0xe8001400
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c0578104, node_mem_map c058d960
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: 124228k/5678k RAM (2256k kernel code, 3421k data)
NR_IRQS:64
Calibrating delay loop... 19.32 BogoMIPS (lpj=9664)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource timer
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
msgmni has been set to 242
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
console enabled, bootconsole disabled
ttyJ0 at MMIO 0x8001440 (irq = 1) is a Altera JTAG UART
mousedev: PS/2 mouse device common for all mice
TCP: cubic registered
NET: Registered protocol family 17
Freeing unused kernel memory: 2824k freed (0xc0235000 - 0xc04f7000)
ifconfig: SIOCSIFADDR: No such device
ifconfig: SIOCSIFADDR: No such device
Welcome to
____ _ _
/ __| ||_|
_ _| | | | _ ____ _ _ _ _
| | | | | | || | _ \| | | |\ \/ /
| |_| | |__| || | | | | |_| |/ \
| ___\____|_||_|_| |_|\____|\_/\_/
| |
|_|
Symmetricom Demo
cp: can't stat '/etc/sc.cfg': No such file or directory
insmod: can't insert '/usr/sbin/fpga.ko': No such file or directory
BusyBox v1.18.4 (2017-03-30 15:19:20 CEST) multi-call binary.
Usage: mknod NAME TYPE MAJOR MINOR
sh: can't execute 'rsyslogd': No such file or directory
BusyBox v1.18.4 (2017-03-30 15:19:20 CEST) hush - the humble shell
Enter 'help' for a list of built-in commands.
root:~>