Loongson-specific instructions haven't implememted now. So, if want to boot a linux kernel, we should built a 32bit one and drop -march=loongson2e compiler flags. For simplification, please use the kernel patch (for 2.6.33) in the attachment and then use arch/mips/configs/fuloong2e_defconfig to compile a kernel. Besides, the disk image I used is debian-lenny built by you which is available at http://people.debian.org/~aurel32/qemu/mipsel/debian_lenny_mipsel_small.qcow2.
On Mon, Jun 21, 2010 at 6:39 AM, Aurelien Jarno <aurel...@aurel32.net> wrote: > All the patches except the PMON one seems fine, but I am unable to boot > a kernel. I had to add support for the missing Godson integer > instructions but the kernel (I tried a 2.6.33 one) goes into panic > during the boot: > > [ 0.724000] Checking for the daddi bug... no. > [ 0.892000] Cache error exception: > [ 0.892000] cp0_errorepc == 0000000000000000 > [ 0.892000] c0_cacheerr == 00000000 > [ 0.892000] Decoded c0_cacheerr: primary cache fault in insn reference. > [ 0.892000] Error bits: > [ 0.892000] IDX: 0x00000000 > [ 0.892000] Kernel panic - not syncing: Can't handle the cache error! > > I got this problem both booting the kernel directly and via PMON. Is > there any other patches missing to be able to use the Fulong 2E > emulation? > > -- > Aurelien Jarno GPG: 1024D/F1BCDB73 > aurel...@aurel32.net http://www.aurel32.net > -- Huacai Chen
2.6.33.3-forqemu.patch
Description: Binary data