Forum Discussion
Altera_Forum
Honored Contributor
8 years agoi can confirm that it works now.
I could build and start the latest version of linux-socfpga. It took some time to understand the parameters. Now I get a nice login shell and can login with the password that I set in buildroot. There was no need for special configuration files, I could use the nios2-generic everywhere for the DE2-115. The startup log has some small mysteries what it means and I'm going to investigate it. For now I'm really glad that the kernel worked with DE2-115. It's version 4.9 from the github repository that I used. The boot sequence looks according to the following:
$ Linux version 4.9.0-00104-g84d4f8a-dirty (developer@1604) (gcc version 6.2.0 (Sourc7
bootconsole enabled
early_console initialized at 0xe8001400
ERROR: Nios II DIV different for kernel and DTS
Warning: icache size configuration mismatch (0x8000 vs 0x1000) of CONFIG_NIOS2_ICACHEe
Warning: dcache size configuration mismatch (0x8000 vs 0x800) of CONFIG_NIOS2_DCACHE_e
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c04aba44, node_mem_map c04c4b80
Normal zone: 256 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 32768 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: console=ttyAL0,115200
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)
Sorting __ex_table...
Memory: 125032K/131072K available (2172K kernel code, 68K rwdata, 492K rodata, 2048K )
NR_IRQS:64 nr_irqs:64 0
clocksource: nios2-clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822s
Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 Bog)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
devtmpfs: initialized
cpu cpu0: Error -2 creating of_node link
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126044s
NET: Registered protocol family 16
random: fast init done
clocksource: Switched to clocksource nios2-clksrc
futex hash table entries: 256 (order: -1, 3072 bytes)
workingset: timestamp_bits=30 max_order=15 bucket_order=0
jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
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)
random: crng init done
8001400.serial: ttyAL0 at MMIO 0x8001400 (irq = 3, base_baud = 3125000) is a Altera UT
console enabled
console enabled
bootconsole disabled
bootconsole disabled
8001440.serial: ttyJ0 at MMIO 0x8001440 (irq = 2, base_baud = 0) is a Altera JTAG UART
loop: module loaded
mousedev: PS/2 mouse device common for all mice
Freeing unused kernel memory: 2048K (c0220000 - c0420000)
This architecture does not have kernel memory protection.
Starting logging: OK
Initializing random number generator... done.
Starting network: ip: can't find device 'lo'
ip: socket: Address family not supported by protocol
FAIL
hello!
foo login: root
Password:
login: root login on 'ttyAL0'
# ls /
bin init linuxrc opt run tmp
dev lib media proc sbin usr
etc lib32 mnt root sys var
# gcc
-sh: gcc: not found
# ls /opt/
# echo $0
-sh
#
https://www.alteraforum.com/forum/attachment.php?attachmentid=13513