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