[Buildroot] Kernel panic - not syncing: Attempted to kill init!

H Hartley Sweeten hartleys at visionengravers.com
Thu Aug 20 02:48:00 UTC 2009


On Wednesday, August 19, 2009 7:39 PM, Kelvin Cheung wrote:
>>> This problem happened to me before.
>>>
>>> You could use arm-linux-readelf to check out whether the kernel(vmlinux)
>>> and busybox were compiled with the same architecture version.
>>>
>>> In my case, the kernel was v4 while busybox was v5.
>>	
>>	
>> Ok.  That "seems" to be the problem.
>> 	
>> $ arm-none-linux-gnueabi-readelf -A project_build_arm/ep9307/linux-2.6.30.5/vmlinux
>> Attribute Section: aeabi
>> File Attributes
>>  Tag_CPU_name: "4T"
>>  Tag_CPU_arch: v4T
>>  Tag_ARM_ISA_use: Yes
>>  Tag_THUMB_ISA_use: Thumb-1
>>  Tag_ABI_PCS_wchar_t: 4
>>  Tag_ABI_FP_denormal: Needed
>>  Tag_ABI_FP_exceptions: Needed
>>  Tag_ABI_FP_number_model: IEEE 754
>>  Tag_ABI_align8_needed: Yes
>> Tag_ABI_enum_size: int
>> 	
>> $ arm-none-linux-gnueabi-readelf -A project_build_arm/ep9307/busybox-1.13.4/busybox
>> Attribute Section: aeabi
>> File Attributes
>>  Tag_CPU_name: "ARM10TDMI"
>>  Tag_CPU_arch: v5T
>>  Tag_ARM_ISA_use: Yes
>>  Tag_THUMB_ISA_use: Thumb-1
>>  Tag_ABI_PCS_wchar_t: 4
>>  Tag_ABI_FP_denormal: Needed
>>  Tag_ABI_FP_exceptions: Needed
>>  Tag_ABI_FP_number_model: IEEE 754
>>  Tag_ABI_align8_needed: Yes
>>  Tag_ABI_enum_size: int
>> 	
>> The question is how to fix it...
>> 
>> I tried setting:
>> 
>> BR2_TARGET_OPTIMIZATION="-march=armv4t"
>> 
>> Which is what I think the kernel build does.  The build went along for a while the
>> gave me an error about a lib file being the wrong version.
>> 
>> Arrgh... Any help?
>> 	
> Please set as follow:
>
> BR2_EXTRA_BINUTILS_CONFIG_OPTIONS="--with-arch=armv4t --with-cpu=arm920t"
> BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-arch=armv4t --with-cpu=arm920t"

I'm using an external toolchain so I don't think those config options are available.

Would the equivalent CFLAGS be:

-march=armv4t -mcpu=arm920t

If so do I just set BR2_TARGET_OPTIMIZATION with that?

Regards and thanks,
Hartley


More information about the buildroot mailing list