[loongson-dev] 32bit kernel not boot

2011-12-21 Thread 李晖
Hi, all I am porting android to loongson2f, I use "Gcc 4.4.1 + Binutils 2.20 on X86" from loongson community compile 2.6.35 linux kernel, by setting the kernel model to 64bit, I got the vmlinux image, and it can boot up, but some drivers of the kernel are 32bit only(google android related), so

Re: [loongson-dev] 32bit kernel not boot

2011-12-21 Thread 晏华
In 32 bit mode, the pci window of loongson2F is too small for some devices such as sis315 driver. The sis315 claims 128MB pci memory, while loongson2f has only 128M(another 64MB is reserved for legacy use)。 Besides the sis315 graphics devies, still some other pci devices need pci resources. If you

Re: [loongson-dev] 32bit kernel not boot

2011-12-21 Thread zhangfx
于 2011-12-22 9:45, 晏华 写道: > In 32 bit mode, the pci window of loongson2F is too small for some > devices such as sis315 > driver. The sis315 claims 128MB pci memory, while loongson2f has only > 128M(another 64MB is reserved for legacy use)。 Besides the sis315 > graphics devies, still some other p

Re: [loongson-dev] 32bit kernel not boot

2011-12-21 Thread Zhen Xin
32bit MIPS may be short of address space, but the stock Loongson box actually comes with a 32bit Debian preinstalled. So that may not be the problem Lihui met :) 在 2011年12月22日 上午9:45,晏华 写道: > In 32 bit mode, the pci window of loongson2F is too small for some devices > such as sis315 > driver. Th

Re: [loongson-dev] failed to link /system/bin/sh CANNOT LINK EXECUTABLE

2011-12-21 Thread Zhen Xin
Just a tip: your system can boot with a regular OS, with the android partition mounted, and chroot into it, to have more details on what's happening on the linking stage. I added a lot of printf to bionic before eventually located into the pagesize issue in this way. 2011/12/17 李晖 : > hi, all >

Re: [loongson-dev] failed to link /system/bin/sh CANNOT LINK EXECUTABLE

2011-12-21 Thread zhangfx
于 2011-12-22 11:39, Zhen Xin 写道: Just a tip: your system can boot with a regular OS, with the android partition mounted, and chroot into it, to have more details on what's happening on the linking stage. Em, it is a good way for early bugs. It is not hard to help lihui out by giving him worki

Re: [loongson-dev] failed to link /system/bin/sh CANNOT LINK EXECUTABLE

2011-12-21 Thread Zhen Xin
在 2011年12月22日 上午11:45,zhangfx 写道: > > > 于 2011-12-22 11:39, Zhen Xin 写道: > >> Just a tip: your system can boot with a regular OS, with the android >> partition mounted, and chroot into it, to have more details on what's >> happening on the linking stage. > > Em, it is a good way for early bugs. >