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: The details are as belows: |
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 |
|
65 |
2015-10-28 13:38 GMT+08:00 Kevin Zhao <kevin.zhaoshuai@×××××.com>: |
66 |
|
67 |
> OK , thanks Anthony😁 |
68 |
> |
69 |
> 2015-10-27 19:20 GMT+08:00 Anthony G. Basile <blueness@g.o>: |
70 |
> |
71 |
>> On 10/27/15 4:58 AM, Kevin Zhao wrote: |
72 |
>> |
73 |
>>> Hi Folks, |
74 |
>>> Last week we compiling a gentoo stage3 for ppc64le and I |
75 |
>>> send |
76 |
>>> it to the google drive. The one thing I have to say is that when I |
77 |
>>> compiling the stage3, I use the gcc flags "-mcpu=power8 -mtune=power8". |
78 |
>>> After I copy the stage3 to a power7 based ppc64le machine, |
79 |
>>> chroot to the stage3,running "emerge --info" it shows that "illegal |
80 |
>>> instruction" . I guess that the stage3 built with the gcc flag |
81 |
>>> "-mcpu=power8 -mtune=power8". |
82 |
>>> |
83 |
>> Yes. |
84 |
>> |
85 |
>>> As we know ,our community have a power7, so it may not be |
86 |
>>> able |
87 |
>>> to test the new stage3. Leno, Linda and I have some power8 based |
88 |
>>> machines, |
89 |
>>> but these machines can not be accessed from outer network, so we could |
90 |
>>> afford to take some work of stage3 test. If there is a guide of file |
91 |
>>> system or a instruction , it could be better :-). |
92 |
>>> Pls feel free to let me know if you have any question~ |
93 |
>>> Thanks~ |
94 |
>>> |
95 |
>> |
96 |
>> There are still two other issues with that work: the CHOST name and the |
97 |
>> structure of the profiles. I've communicated that to the |
98 |
>> gentoo-powerpc@×××××××××××.org and I believe I cc'ed people. Nonetheless |
99 |
>> I think I can fix all these issues, but I'm waiting for the osuosl power8 |
100 |
>> ppc64le to be made available. |
101 |
>> |
102 |
>> |
103 |
>> |
104 |
>>> 2015-10-21 13:33 GMT+08:00 Leno Hou <lenohou@×××××.com>: |
105 |
>>> |
106 |
>>> On Wed, Oct 21, 2015 at 10:53 AM, Kevin Zhao <kevin.zhaoshuai@×××××.com> |
107 |
>>>> wrote: |
108 |
>>>> |
109 |
>>>> Hi folks, |
110 |
>>>>> We have finish compiling stage3 by the catalyst. The process is |
111 |
>>>>> seed-stage3--> stage1 --> stage2 --> stage3. |
112 |
>>>>> Here is the link of stage3: |
113 |
>>>>> |
114 |
>>>>> |
115 |
>>>>> https://drive.google.com/file/d/0B2k84p6709AyTFlwLUF1WjlxUk0/view?usp=sharing |
116 |
>>>>> Also , the catalyst spec is in the accessory stage3.spec. The portage |
117 |
>>>>> profiles (/etc/portage)is in the accessory portage.tar. |
118 |
>>>>> |
119 |
>>>>> |
120 |
>>>> And the ppc64le profiles has been pushed to |
121 |
>>>> https://github.com/linux-on-power/gentoo |
122 |
>>>> |
123 |
>>>> |
124 |
>>>> |
125 |
>>>> |
126 |
>>>>> |
127 |
>>>>> 2015-09-29 19:47 GMT+08:00 Leno Hou <lenohou@×××××.com>: |
128 |
>>>>> |
129 |
>>>>> |
130 |
>>>>>> On Sat, Sep 26, 2015 at 6:58 PM, Anthony G. Basile < |
131 |
>>>>>> blueness@g.o> |
132 |
>>>>>> wrote: |
133 |
>>>>>> |
134 |
>>>>>> Hi Leno, Kevin and Linda, |
135 |
>>>>>>> |
136 |
>>>>>>> Let's start working towards becoming a Gentoo developer. The first |
137 |
>>>>>>> step is to read the developer manual and make sure you understand all |
138 |
>>>>>>> aspects of how Gentoo works. Even if you don't wind up doing |
139 |
>>>>>>> everything in |
140 |
>>>>>>> Gentoo, like writing lots of ebuilds or eclasses, its important to |
141 |
>>>>>>> have an |
142 |
>>>>>>> overview. The developer's manual is at |
143 |
>>>>>>> https://devmanual.gentoo.org/ |
144 |
>>>>>>> If you have questions, ask. |
145 |
>>>>>>> |
146 |
>>>>>>> |
147 |
>>>>>>> Hi all, |
148 |
>>>>>> |
149 |
>>>>>> Leno, Kevin and Linda will be OFF on Y2015 China National |
150 |
>>>>>> Holiday, |
151 |
>>>>>> from Oct 1 to Oct 11 :-) |
152 |
>>>>>> |
153 |
>>>>>> At this time, we'll read the developer manual and see you next |
154 |
>>>>>> time, thanks. |
155 |
>>>>>> |
156 |
>>>>>> -Leno Hou |
157 |
>>>>>> |
158 |
>>>>>> |
159 |
>>>>>> |
160 |
>>>>> |
161 |
>> |
162 |
>> -- |
163 |
>> Anthony G. Basile, Ph.D. |
164 |
>> Gentoo Linux Developer [Hardened] |
165 |
>> E-Mail : blueness@g.o |
166 |
>> GnuPG FP : 1FED FAD9 D82C 52A5 3BAB DC79 9384 FA6E F52D 4BBA |
167 |
>> GnuPG ID : F52D4BBA |
168 |
>> |
169 |
>> |
170 |
> |