Forum Discussion
Altera_Forum
Honored Contributor
17 years agoBoot failures when zImage size goes a little over 3MB?
Has anyone else seen an issue like this? A zImage that's 3.0MB (4.6MB uncompressed), the kernel boots without fault. The vmlinux image, when stored as a u-boot uImage also boots. When ...
Altera_Forum
Honored Contributor
17 years agoI'm not sure why this fixes the problem, but this does indeed result in a bootable kernel, even when I built a zImage that came out to 4.7MB.
Could someone pass the info on to the nios2-dev list? Thanks, --Steve diff --git a/arch/nios2/kernel/vmlinux.lds.S b/arch/nios2/kernel/vmlinux.lds.S --- a/arch/nios2/kernel/vmlinux.lds.S +++ b/arch/nios2/kernel/vmlinux.lds.S @@ -112,6 +112,7 @@ SECTIONS __con_initcall_end = .; } SECURITY_INIT + . = ALIGN(PAGE_SIZE); .init.ramfs : { . = ALIGN(4); @@ -119,6 +120,7 @@ SECTIONS *(.init.ramfs) __initramfs_end = .; } + . = ALIGN(PAGE_SIZE); __init_end = .; _end = . ;