Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12606 Discussions

boot nios2 linux kernel fail

Altera_Forum
Honored Contributor II
1,483 Views

hi all: 

 

Why I run nios2 linux kernel fail When I use "nios2-download -g zImage" or "nios2-download -g vmlinux"? 

 

Who can give me some advice?Thanks a lot 

 

The follow is some of the fail informations: 

 

vmlinux: (error) 

Altera Nios II support © 2004 Microtronix Datacom Ltd. 

Built 1 zonelists 

Kernel command line: 

PID hash table entries: 128 (order: 7, 2048 bytes) 

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) 

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) 

Memory available: 14928k/16384k RAM, 0k/0k ROM (739k kernel code, 547k data) 

Mount-cache hash table entries: 512 

Kernel panic - not syncing: crc error 

 

Altera Nios II support © 2004 Microtronix Datacom Ltd. 

Built 1 zonelists 

Kernel command line: 

PID hash table entries: 128 (order: 7, 2048 bytes) 

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) 

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) 

Memory available: 14928k/16384k RAM, 0k/0k ROM (739k kernel code, 547k data) 

Mount-cache hash table entries: 512 

Kernel panic - not syncing: broken padding  

 

zImage:(error)# Uncompressing Linux... 

ERROR 

crc error 

 

-- System halted  

 

 

 

uClinux/Nios II 

Altera Nios II support © 2004 Microtronix Datacom Ltd. 

Built 1 zonelists 

Kernel command line: 

PID hash table entries: 128 (order: 7, 2048 bytes) 

Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) 

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) 

Memory available: 14928k/16384k RAM, 0k/0k ROM (739k kernel code, 547k data) 

Mount-cache hash table entries: 512 

Kernel panic - not syncing: junk in compressed archive
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
391 Views

Check kernel usr/initramfs_list, 

Try remove old rootfs and rebuild kernel. 

 

rm -rf ~/rootfs cp -a ~/buildroot/build_nios2/root ~/rootfs cd ~/rootfs# remove include and lib to save space# the dev nodes are generated via ~/download/rootfs_list rm -rf dev usr/include usr/lib# you may use this instead of the one from buildroot cp ~/download/inittab etc# check rootfs size du ~/rootfs
0 Kudos
Altera_Forum
Honored Contributor II
391 Views

I do it follow hippo's advice. 

It seems resultful. But I will still test more.
0 Kudos
Reply