Fixed
Created: Jul 10, 2014
Updated: Dec 3, 2018
Resolved Date: Aug 7, 2014
Found In Version: 6.0
Fix Version: 6.0.0.11
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP - Async
kexec load vmlinux failed due to 'Could not find a free area of memory of 10000 bytes'
--------
Wind River Linux 6.0.0.0 localhost console
localhost login: root
Password:
root@localhost:~#
root@localhost:~#
root@localhost:~#
root@localhost:~# cat /proc/cmdline
root=/dev/nfs rw nfsroot=128.224.178.20:/export/pxeboot/vlm-boards/22010/rootfs,nfsvers=3 ip=dhcp console=ttyS0,115200 mem=1024m@512m
root@localhost:~# cat /proc/version
Linux version 3.10.38-ltsi-WR6.0.0.0_cgl (gcc version 4.8.1 (Wind River Linux Sourcery CodeBench 4.8-30) ) #1 SMP PREEMPT Wed Jul 9 17:58:19 CST 2014
root@localhost:~#
root@localhost:~#
root@localhost:~# ls -l
total 27972
-rw-r--r--. 1 root root 14300848 Jul 10 03:32 bcm-xlp-vmlinux-WR6.0.0.0_cgl
-rw-r--r--. 1 root root 29838 Jul 10 07:43 kdump
-rw-r--r--. 1 root root 119 Jul 10 03:33 kexec.args
-rwxr-xr-x. 1 root root 14300848 Jul 10 08:15 vmlinux
root@localhost:~#
root@localhost:~# kexec -l ./vmlinux --append="$(<kexec.args)"
Could not find a free area of memory of 10000 bytes...
locate_hole failed
root@localhost:~#
root@localhost:~# dmesg | tail
[ 22.820000] SELinux: initialized (dev mtd_inodefs, type mtd_inodefs), not configured for labeling
[ 22.820000] SELinux: initialized (dev mtd_inodefs, type mtd_inodefs), not configured for labeling
[ 22.830000] SELinux: initialized (dev mtd_inodefs, type mtd_inodefs), not configured for labeling
[ 22.830000] SELinux: initialized (dev mtd_inodefs, type mtd_inodefs), not configured for labeling
[ 22.840000] SELinux: initialized (dev mtd_inodefs, type mtd_inodefs), not configured for labeling
[ 22.840000] SELinux: initialized (dev mtd_inodefs, type mtd_inodefs), not configured for labeling
[ 22.850000] SELinux: initialized (dev mtd_inodefs, type mtd_inodefs), not configured for labeling
[ 88.060000] audit_printk_skb: 4109 callbacks suppressed
[ 88.060000] type=1305 audit(1404982294.830:1402): audit_pid=943 old=0 auid=4294967295 ses=4294967295
subj=system_u:system_r:kernel_t:s15:c0.c1023 res=1
root@localhost:~#
root@localhost:~#
root@localhost:~#
root@localhost:~# ls -l
total 27972
-rw-r--r--. 1 root root 14300848 Jul 10 03:32 bcm-xlp-vmlinux-WR6.0.0.0_cgl
-rw-r--r--. 1 root root 29838 Jul 10 07:43 kdump
-rw-r--r--. 1 root root 119 Jul 10 03:33 kexec.args
-rwxr-xr-x. 1 root root 14300848 Jul 10 08:15 vmlinux
root@localhost:~# ls -lh
total 28M
-rw-r--r--. 1 root root 14M Jul 10 03:32 bcm-xlp-vmlinux-WR6.0.0.0_cgl
-rw-r--r--. 1 root root 30K Jul 10 07:43 kdump
-rw-r--r--. 1 root root 119 Jul 10 03:33 kexec.args
-rwxr-xr-x. 1 root root 14M Jul 10 08:15 vmlinux
root@localhost:~#
1) /buildarea1/wrlinux6async/wrlinux-x/wrlinux/configure --enable-board=bcm-xlp --enable-kernel=cgl --enable-rootfs=glibc-cgl --with-template=feature/kexec --enable-parallel-pkgbuilds=24 --enable-jobs=24
2) deploy images.
3) boot board.
4) copy striped vmlinux to board.
Follow steps in description.
Check the behaving and logs.