Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

boot nios2 linux kernel fail

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

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I do it follow hippo's advice.

    It seems resultful. But I will still test more.