查看问题详情

编号项目分类查看权限最后更新
0000039Loongnix1.0[所有项目] 所有分类公开2016-08-22 10:34
报告员loongson777分派给jinguojie 
优先级严重性新功能出现频率没有试验
状态 已分配处理状况未处理 
平台Loongson 3B操作系统Debian操作系统版本Sid
摘要0000039: Fedora 21 Grub Not booting with Debian Sid kernel and initrd
描述Debian Sid runs on Loongson-3 with fc21 kernel 4.1.
Debian Sid does not boot with Debian Sid kernel 4.2, 4.3, 4.4 compiled for loongson-3 when it should.

My main bug is Debian mediatemple.net packages exist for kernel 4.2, 4.3, 4.4 for loongson-3. They have been installed, but no matter what I attempt they won't boot from Fedora 21's Grub Boot. I suspect the initrd initramfs format is different within fc21 from what the initramfs format is for debian sid.
Something cpio tar gz. It needs more investigation in this area to get the latest debian kernel 4-4 booting successfully from grub.
问题重现步骤I managed to create a second hard drive chrooted partitioned with Debian Sid.
Debian Sid OS on /dev/sdb1:
mount -t ext4 /dev/sdb1 /mnt/lap

NOTE: copied over the fc21 modules to the debian sid hard-drive.
THESE MODULES ARE NECESSARY IN ORDER FOR APT TO SUCCEED FOR CERTAIN PACKAGE INSTALLS ONCE CHROOT'ED.
cp -Rf /lib/modules/4.1* /mnt/lap/lib/modules/

NOTE: chrooted to debian sid hard-drive
chroot /mnt/lap

NOTE: applied these commands on the chroot:

NOTE: /etc/apt/sources.list changed on chroot
NOTE: I tried imagination technologies repo for mips64el packages
#deb http://mipsdebian.imgtec.com/debian sid main
#deb-src http://mipsdebian.imgtec.com/debian sid main
which has packages in the very same loongson-3 format uses "mips64el", but
intended for other boards called '5kc-malta' and there was no grub package
for mips64el at this site either. There are qemu binaries for emulating
mips64el available, BUT there are no qemu binaries available to run
directly on mips64el which grub depends on if I understood correctly.

FINALLY THESE WORK RELIABLY:
cat /etc/apt/sources.list
deb http://mirrors.mediatemple.net/debian sid main contrib non-free
deb-src http://mirrors.mediatemple.net/debian sid main contrib non-free

apt-get update
apt-get upgrade
apt-get install -f
apt-get dist-upgrade
apt-get install -f

sync
sync

exit
NOTE exited chroot.
reboot fedora fc21 from first hard-drive
Grub menu -> edit -> boot ...
linux /boot/fc21vmlinux4.1 root=/dev/sdb1 ro
The press F10 key

We now have working graphics from fc21 kernel4.1 running with all debian sid packages.

My main bug is Debian mediatemple.net packages exist for kernel 4.2, 4.3, 4.4 for loongson-3. They have been installed, but no matter what I attempt they won't boot from Fedora 21's Grub Boot. I suspect the initrd initramfs format is different within fc21 from what the initramfs format is for debian sid.
Something cpio tar gz. It needs more investigation in this area to get the latest debian kernel 4-4 booting successfully from grub.
附注There are two tools to create initrd file. update-initramfs and dracut-update-initramfs. The problem resides with the older fc21 grub wanting the initrd possibly in a different older format. I believe A different initrd file needs to be created to make it fc21 grub compatible.

This is necessary since there are no grub/qemu packages available with Debian Sid that function correctly it seems. I believe we need a newer grub/qemu for loongson-3. Once these are up, there are better possibilities for ArchLinux to also build and install on loongson-3 motherboards.

标签没加标签.

活动

loongson777

2016-04-15 19:47

报告者   ~0000186

Before chrooting, do these mounts first:
mount --bind /dev /mnt/lap/dev
mount --bind /sys /mnt/lap/sys
mount --bind /proc /mnt/lap/proc
mount devpts /mnt/lap/dev/pts -t devpts

问题历史

日期 用户名 字段 更改
2016-04-15 19:39 loongson777 新建问题
2016-04-15 19:47 loongson777 注释已添加: 0000186
2016-08-22 10:34 administrator 分派给 => jinguojie
2016-08-22 10:34 administrator 状态 新建 => 已分配
2016-11-22 16:31 administrator 分类 General => 所有分类