Gentoo Archives: gentoo-catalyst

From: Kevin Zhao <kevin.zhaoshuai@×××××.com>
To: Mike Frysinger <vapier@g.o>, gentoo-catalyst@l.g.o, gentoo-releng@l.g.o
Subject: [gentoo-catalyst] Re: Seek for your advices : Make Gentoo LiveCD for ppc64le
Date: Mon, 07 Dec 2015 08:39:37
Message-Id: CAKe2hGAe1-Q+UiqnajJfLL-FUS_bue=N08NKtvvF7k6mnuYf4g@mail.gmail.com
In Reply to: [gentoo-catalyst] Seek for your advices : Make Gentoo LiveCD for ppc64le by Kevin Zhao
1 Hi All :
2 Long Time No See~Hope everything goes well:-)
3 Recently I am working on making ppc64le Gentoo Livecd. Now the newest
4 status is as below:
5 1 .I have followed catalyst , build--> livecd-stage1 and
6 livecd-stage2.
7 2. Replace the bootloader from yaboot to grub.
8 3. The grub binaries I have copyed from Rhel7.1-ppc64le
9 4. Change the boot_info.txt to a new one from Rhel7.1-ppc64le
10 5. Build a squashfs images.
11 6. Build a kernel and initramfs (I have check that the kernel is good
12 when using it replace a ubuntu-ppc64le kernel .)
13 7. use command "mkisofs -v -r -T -U -l -cache-inodes -chrp-boot -V {
14 clst_iso_volume_id} -o gentoolive.iso /path/" to generate a Livecd.
15
16 Now when loading iso to a guests, I can enter into grub, but have meet
17 problem when initramfs runs:* Couldn't mount /dev/sr0*
18
19 The *grub.cfg* file is as below:
20 =============================================================================================================
21
22 set default=0
23 set timeout=10
24
25 echo -e "\nWelcome to the Gentoo PPC64LE!\n\n"
26
27 menuentry "Gentoo PPC64LE" {
28 * linux /boot/vmlinux-4.2.1-aufs root=/dev/ram0 init=/linuxrc
29 looptype=squashfs loop=/image.squashfs cdroot ro
30 *
31 * echo 'Loading initial ramdisk ..............'*
32 * initrd /boot/initramfs-genkernel-ppc64le-4.2.1-aufs*
33 }
34
35 menuentry 'Reboot' {
36 reboot
37 }
38
39 menuentry 'Exit to Open Firmware' {
40 exit
41 }
42 ==============================================================================================================
43
44 I have loaded it with a guest,guest xml file is here(add two iso just
45 for compared,one is Gentoo and one is ubuntu ) :
46 https://bpaste.net/show/271874e8ca8b
47 But the initramfs will bolcked when mount cdrom device. The error log
48 Link is: https://bpaste.net/show/f029aff8e633
49 You can see that , mount -t auto /dev/sr0 /mnt/cdrom failed.
50 *Also, I enter into busybox, manally use command "mount -t iso9660
51 /dev/sr0 /mnt/cdrom", it shows "No such device"*
52 [image: 内嵌图片 1]
53 * ls -l /dev/ :*
54 * Find that there are : "/dev/sr0 /dev/sr1",but there is no
55 "/dev/cdrom"*
56 * But I 'm sure that kernel has the module "sr_mod" and "cdrom". Because
57 we have used this kernel and stage3 to make a workable gentoo image(running
58 in KVM).*
59
60 *So, *now I am thinking of asking you for some advice.I've blocked here for
61 about 2 weeks .Any advice will be really appreciated. Loooooooking forwards
62 to your reponse :-)
63
64 2015-10-28 13:26 GMT+08:00 Kevin Zhao <kevin.zhaoshuai@×××××.com>:
65
66 > Hi Mike && Hi Folks,
67 > First I want to thanks for your help and advices , we have finish
68 > make gentoo stage3 and it will be tests by our community.
69 > Now I am working for gentoo LiveCD using stage3 . After
70 > searching gentoo website, I can not find a very clearly method to make
71 > gentoo LiveCD .
72 > So ,if conveniently , could you give me some advices or some
73 > websites which cover the methods to LiveCD of other arch(e.g : x86 ,amd64
74 > etc..)
75 > Thanks very much ~ :-)
76 >

Attachments

File name MIME type
image.png image/png