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

H Hartley Sweeten hartleys at visionengravers.com
Thu Aug 20 00:30:47 UTC 2009


On Wednesday, August 19, 2009 2:31 PM, Thomas Petazzoni wrote:
>> The kernel and rootfs are both created with Buildroot.
>> 
>> For the kernel config I have:
>> 
>> CONFIG_AEABI=y
>> CONFIG_OABI_COMPAT=y
>> 
>> For buildroot's config I have:
>> 
>> # BR2_ARM_OABI is not set
>> BR2_ARM_EABI=y
>
> That's correct. When I fall into similar issue, I usually end up
> writing a very simple init program that does:
>
> int main(void)
> {
>	write(1, "Hello\n", 6);
>	while(1);
> }
>
> Compile it statically and put it in /sbin/init. Getting this first
> basic program to work is a first step.
>
>> Is there a similar configuration that needs to be set in Busybox?
>
> Not that I'm aware of.

Thomas,

Is it possible I need to pass the -march=armv4t flag to the compiler
in order to use the correct instruction set for my architecture?

If so, where do you set that in buildroot.  The kernel sets this
automatically.

Regards,
Hartley


More information about the buildroot mailing list