Hi
all,
I'm trying to port opensuse to mips(actually it's gdium running loongson2f). A basic bootable opensuse system is ready and able to do rpmbuild in qemu emulator. Now I'm trying
to make this newly built system running on Gdium. I did
the following steps but the OS couldn't be booting.
(I have two
G-keys, the black one has G-linux on it and the other one(white)
doesn't. Assume that on my laptop the black G-key is /dev/sdb and the white one is
/dev/sdc)
1. Copy G-key using dd.
dd if=/dev/sdb of=/dev/sdc bs=4k
2. Copy cross-compiled OpenSuSE to the partition labeled "mips" on sdc, it's mounted on /media/sdc2
cd /media/sdc2
rm -rf ./*
tar xjf /path/to/opensuse.tar.bz2
3. Copy fstab,kernel image,kernel modules from black G-key to white
cp /media/sdb2/etc/fstab /media/sdc2/etc/
cp -r /media/sdb2/boot/* /media/sdc2/boot/
cp -r /media/sdb2/lib/modules/* /media/sdc2/lib/modules/
4. Boot OpenSuSE on Gdium.
PMON> load /dev/fs/ext2@usbg0/boot/
vmlinux.32
PMON> initrd /dev/fs/ext2@usbg0/boot/initrd.gz
PMON> g console=tty1 root=/dev/sda2 video=sm501fb:1024x600@60
It is stuck on the following messages:
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
Splashy ERROR: Timeout (120 sec) occurred while waiting for a message on the Splashy socket
(!) [ 304: 0.000] ---> Caught signal 11 (sent by the kernel) <---
Splashy caught signal number 6. Exiting...
Then
I tried to copy kernel image and kernel modules from Debian(which is
usable, I booted up the cross-compiled OpenSuSE in qemu running the
Debian kernel and modules).
PMON> load /dev/fs/ext2@usbg0/boot/vmlinux-2.6.26-1-4kc-malta
PMON> g console=tty1 root=/dev/sda2 video=sm501fb:1024x600@60
It is stuck on the following messages:
BEV in SR set to zero.
PMON> load /dev/fs/ext2@usbg0/boot/vmlinux-2.6.26-1-4kc-malta
Loading file: /dev/fs/ext2@usbg0/boot/vmlinux-2.6.26-1-4kc-malta (elf)
0x80100000/4423813 + 0x80538085/244075(z) + 11264 syms
Entry address is 80432500
PMON> g console=tty1 root=/dev/sda2 video=sm501fb:1024x600@60
zero at v0 v1 a0 a1 a2 a3
00000000 00000000 00000000 00000000 00000004 aff7fd68 aff7fd7c 800790c8
t0 t1 t2 t3 t4 t5 t6 t7
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
s0 s1 s2 s3 s4 s5 s6 s7
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
t8 t9 k0 k1 gp sp s8 ra
00000000 00000000 00000000 00000000 00000000 aff7fd48 00000000 800500d0
I have read the documents on
OLPH wiki and still have no idea about what to do now. Could you please give me some tips or documents?
Thanks!
Guan Eryu