[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <540B439C.8070204@roeck-us.net>
Date: Sat, 06 Sep 2014 10:25:48 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: Xuetao Guan <gxt@....edu.cn>
CC: linux-kernel@...r.kernel.org, Guan Xuetao <gxt@...c.pku.edu.cn>,
Chen Gang <gang.chen.5i5j@...il.com>,
Grant Likely <grant.likely@...aro.org>
Subject: Re: 回复: Re: 回复: Re: 回复: Re: 回复: Status of 'unicore32' architecture in Linux kernel
On 09/04/2014 11:13 PM, Xuetao Guan wrote:
>
> ----- Guenter Roeck <linux@...ck-us.net> 写道:
>> On 09/03/2014 01:32 AM, Xuetao Guan wrote:
>>>
>> [ ... ]
>>
>>>> Please try the following patch. That seems to do it.
>>>> I am sure it can be improved, but it is a start.
>>>>
>>>> Thanks,
>>>> Guenter
>>>
>>> Thanks. I'll test it.
>>> BTW, Qemu codestyle is different, and tab should be replaced with blanks.
>>>
>>
>> Here is where I am. User space code (busybox) was compiled
>> using the unicore toolchain available on the web.
>>
>> ...
>> serio: i8042 KBD port at 0x6eb00060,0x6eb00064 irq 22
>> mousedev: PS/2 mouse device common for all mice
>> Enable UniCore-F64 support.
>> Warning: unable to open an initial console.
>> Freeing unused kernel memory: 1156K (c0408000 - c0529000)
>>
>> Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
>>
>> ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
>>
>> The kernel tries to execute the init program, which fails with SIGSEGV.
>> I confirmed that the init program is loaded and starts to execute.
>>
>> Any idea what might cause such a problem ?
>>
>> Thanks,
>> Guenter
>>
> 'slink /init /bin/busybox 777 0 0' should be inserted in initramfs config
> Also, I recommend compile busybox statically for initramfs.
>
> I need more information, including full kmsg and initramfs configs
>
Hi,
I made everything I have available at http://server.roeck-us.net/qemu/unicore32/.
I tried multiple variants for creating the root file system, including the one
on https://github.com/gxt/UniCore32.git and the one using mkrootfs.sh in
the link above. No difference - I always see the same crash. Note that the
'init' program is loading, but crashes with above error (0x0000000b is SIGSEGV
unless I am missing something).
Note that I used the latest qemu for unicore from upstream sources; I was unable
to compile it from git@...hub.com:gxt/QEMU.git. Qemu configuration did not seem
to make a difference. The toolchain was extracted from uc4-1.0.5-hard.tgz.
Hope this helps,
Guenter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists