|
From: | oOkami |
Subject: | Packing mods problem on Loonson 3A/B |
Date: | Mon, 12 Aug 2013 13:53:56 +0800 |
Hello, I'm working on 2.00src for Loongson 3A/B. So far, I can compiled them and run into "grub rescue" screen(by UEFI Bios LoadImage kernel.img), see attach. The problem is I can't pack mods with grub-mkimage command, it doesn't work neither loongson(2F?) nor EFI mode. For 1.99rc1 we used to pack mods into mips/efi/init.c and compile to a stand along kernel.img, it's not a smart idea at all. Now we are on the whole new source and 4.8.1 mips64el gcc, in my point of view we must build it in correct way like others. I need your suggestions about how to packing kernel.img with other mods, seems "objcopy" didn't work for me. Last week, I was tired to build my own mkimage tools, this website may help: https://dmz-portal.mips.com/wiki/MIPS_relocation_types , really hard and I don't know what if it's a wrong way or not. Awaiting for your reply, thanks. Regards, oOkami Aug.12 2013 Some console information: oOkami:Debug oOkami$ file grub-core/kernel.img grub-core/kernel.img: ELF 32-bit LSB executable, MIPS, N32 MIPS-III version 1 (SYSV), statically linked, with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x1040000, stripped oOkami:Debug oOkami$ file grub-core/part_msdos.mod grub-core/part_msdos.mod: ELF 32-bit LSB relocatable, MIPS, N32 MIPS-III version 1 (SYSV), with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x1040000, not stripped |
kernel.txt
Description: Text document
part_msdos.txt
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |