Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20704 Discussions

linux socfpga 4.9 stops at bootconsole [early0] disabled

Altera_Forum
Honored Contributor II
1,493 Views

I built linux from altera's github and loaded the file vmlinux (it didn't work to load the /arch/nios2/boot/vmImage).  

 

I see the following at the console and I want to know why it stops.  

Linux version 4.9.0-00104-g84d4f8a-dirty (developer@1604) (gcc version 6.2.0 (Sourcery CodeBench Lite 2016.11-32) )# 10 Tue Apr 4 11:38:13 CEST 2017 bootconsole enabled early_console initialized at 0xe8001400 On node 0 totalpages: 32768 free_area_init_node: node 0, pgdat c02216ec, node_mem_map c0254b80 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: 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: 127528K/131072K available (1753K kernel code, 67K rwdata, 284K rodata, 76K init, 192K bss, 3544K reserved, 0K cma-reserved) SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:64 nr_irqs:64 0 clocksource: nios2-clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 38225208935 ns Console: colour dummy device 80x25 console enabled bootconsole disabled  

 

Can you help me?
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
645 Views

 

--- Quote Start ---  

I built linux from altera's github and loaded the file vmlinux (it didn't work to load the /arch/nios2/boot/vmImage).  

 

I see the following at the console and I want to know why it stops.  

Linux version 4.9.0-00104-g84d4f8a-dirty (developer@1604) (gcc version 6.2.0 (Sourcery CodeBench Lite 2016.11-32) )# 10 Tue Apr 4 11:38:13 CEST 2017 bootconsole enabled early_console initialized at 0xe8001400 On node 0 totalpages: 32768 free_area_init_node: node 0, pgdat c02216ec, node_mem_map c0254b80 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: 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: 127528K/131072K available (1753K kernel code, 67K rwdata, 284K rodata, 76K init, 192K bss, 3544K reserved, 0K cma-reserved) SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:64 nr_irqs:64 0 clocksource: nios2-clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 38225208935 ns Console: colour dummy device 80x25 console enabled bootconsole disabled  

 

Can you help me? 

--- Quote End ---  

 

 

 

Ok, it was the kernel command line I had to select "Passed kernel command line from u-boot" 

 

https://alteraforum.com/forum/attachment.php?attachmentid=13477&stc=1  

 

Now I get kernel panic because of filesystem instead.  

Linux version 4.9.0-00104-g84d4f8a-dirty (developer@1604) (gcc version 6.2.0 (Sourcery CodeBench Lite 2016.11-32) )# 28 Wed Apr 5 04:23:07 CEST 2017 bootconsole enabled early_console initialized at 0xe8001440 On node 0 totalpages: 32768 free_area_init_node: node 0, pgdat c022166c, node_mem_map c0254b80 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: debug 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: 127528K/131072K available (1750K kernel code, 66K rwdata, 284K rodata, 76K init, 191K bss, 3544K reserved, 0K cma-reserved) SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:64 nr_irqs:64 0 clocksource: nios2-clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 38225208935 ns Console: colour dummy device 80x25 Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=50000) 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) cpu cpu0: Error -2 creating of_node link clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns 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 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) 8001440.serial: ttyJ0 at MMIO 0x8001440 (irq = 2, base_baud = 0) is a Altera JTAG UART mousedev: PS/2 mouse device common for all mice Warning: unable to open an initial console. List of all partitions: No filesystem could mount root, tried: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) random: crng init done
0 Kudos
Reply