Gentoo Archives: gentoo-releng

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-releng@l.g.o
Subject: Re: [gentoo-releng] Re: Seek for your advices : Make Gentoo LiveCD for ppc64le
Date: Mon, 07 Dec 2015 23:53:35
Message-Id: 56661BF8.80601@gentoo.org
In Reply to: [gentoo-releng] Re: Seek for your advices : Make Gentoo LiveCD for ppc64le by Kevin Zhao
1 On 12/7/15 3:39 AM, Kevin Zhao wrote:
2 > Hi All :
3
4 Hi Kevin,
5
6 First let me say I haven't heard back from osuosl so I need to bug them
7 about our node!
8
9 > Long Time No See~Hope everything goes well:-)
10 > Recently I am working on making ppc64le Gentoo Livecd. Now the newest
11 > status is as below:
12 > 1 .I have followed catalyst , build--> livecd-stage1 and
13 > livecd-stage2.
14 > 2. Replace the bootloader from yaboot to grub.
15 > 3. The grub binaries I have copyed from Rhel7.1-ppc64le
16 > 4. Change the boot_info.txt to a new one from Rhel7.1-ppc64le
17 > 5. Build a squashfs images.
18 > 6. Build a kernel and initramfs (I have check that the kernel is good
19 > when using it replace a ubuntu-ppc64le kernel .)
20 > 7. use command "mkisofs -v -r -T -U -l -cache-inodes -chrp-boot -V {
21 > clst_iso_volume_id} -o gentoolive.iso /path/" to generate a Livecd.
22
23 This sounds correct, but I don't build my bootable isos with catalyst.
24 I do it the manual way or using GRS.
25
26 >
27 > Now when loading iso to a guests, I can enter into grub, but have meet
28 > problem when initramfs runs:* Couldn't mount /dev/sr0*
29
30 if you can get to the shell take a look what's in /dev. you may need to
31 tweak the kernel. i don't think this is due to the above. to get to
32 the shell, when you get to the point where it says that it can't mount
33 /dev/sr0, it says do you want to drop to a shell, type "shell" and youll
34 get a very basic ash shell.
35
36 let me know, or i can take a look at the image for you.
37
38 >
39 > The *grub.cfg* file is as below:
40 > =============================================================================================================
41 >
42 > set default=0
43 > set timeout=10
44 >
45 > echo -e "\nWelcome to the Gentoo PPC64LE!\n\n"
46 >
47 > menuentry "Gentoo PPC64LE" {
48 > * linux /boot/vmlinux-4.2.1-aufs root=/dev/ram0 init=/linuxrc
49 > looptype=squashfs loop=/image.squashfs cdroot ro
50 > *
51 > * echo 'Loading initial ramdisk ..............'*
52 > * initrd /boot/initramfs-genkernel-ppc64le-4.2.1-aufs*
53 > }
54 >
55 > menuentry 'Reboot' {
56 > reboot
57 > }
58 >
59 > menuentry 'Exit to Open Firmware' {
60 > exit
61 > }
62 > ==============================================================================================================
63 >
64 > I have loaded it with a guest,guest xml file is here(add two iso just
65 > for compared,one is Gentoo and one is ubuntu ) :
66 > https://bpaste.net/show/271874e8ca8b
67 > But the initramfs will bolcked when mount cdrom device. The error log
68 > Link is: https://bpaste.net/show/f029aff8e633
69 > You can see that , mount -t auto /dev/sr0 /mnt/cdrom failed.
70 > *Also, I enter into busybox, manally use command "mount -t iso9660
71 > /dev/sr0 /mnt/cdrom", it shows "No such device"*
72 > [image: 内嵌图片 1]
73 > * ls -l /dev/ :*
74 > * Find that there are : "/dev/sr0 /dev/sr1",but there is no
75 > "/dev/cdrom"*
76 > * But I 'm sure that kernel has the module "sr_mod" and "cdrom". Because
77 > we have used this kernel and stage3 to make a workable gentoo image(running
78 > in KVM).*
79 >
80 > *So, *now I am thinking of asking you for some advice.I've blocked here for
81 > about 2 weeks .Any advice will be really appreciated. Loooooooking forwards
82 > to your reponse :-)
83 >
84 > 2015-10-28 13:26 GMT+08:00 Kevin Zhao <kevin.zhaoshuai@×××××.com>:
85 >
86 >> Hi Mike && Hi Folks,
87 >> First I want to thanks for your help and advices , we have finish
88 >> make gentoo stage3 and it will be tests by our community.
89 >> Now I am working for gentoo LiveCD using stage3 . After
90 >> searching gentoo website, I can not find a very clearly method to make
91 >> gentoo LiveCD .
92 >> So ,if conveniently , could you give me some advices or some
93 >> websites which cover the methods to LiveCD of other arch(e.g : x86 ,amd64
94 >> etc..)
95 >> Thanks very much ~ :-)
96 >>
97
98
99 --
100 Anthony G. Basile, Ph.D.
101 Gentoo Linux Developer [Hardened]
102 E-Mail : blueness@g.o
103 GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA
104 GnuPG ID : F52D4BBA

Replies