~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

Viewing changes to fi/install-methods/usb-setup/powerpc.xml

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- retain these comments for translator revision tracking -->
 
2
<!-- original version: 27345 untranslated -->
 
3
 
 
4
   <sect3 arch="powerpc">
 
5
   <title>USB stick partitioning on &arch-title;</title>
 
6
<para>
 
7
 
 
8
Most USB sticks do not come pre-configured in such a way that Open
 
9
Firmware can boot from them, so you will need to repartition the stick.
 
10
On Mac systems, run <userinput>mac-fdisk /dev/sda</userinput>,
 
11
initialise a new partition map using the <userinput>i</userinput>
 
12
command, and create a new partition of type Apple_Bootstrap using the
 
13
<userinput>C</userinput> command. (Note that the first "partition" will
 
14
always be the partition map itself.) Then type
 
15
 
 
16
<informalexample><screen>
 
17
$ hformat /dev/<replaceable>sda2</replaceable>
 
18
</screen></informalexample>
 
19
 
 
20
Take care that you use the correct device name for your USB stick. The
 
21
<command>hformat</command> command is contained in the
 
22
<classname>hfsutils</classname> Debian package.
 
23
 
 
24
</para><para>
 
25
 
 
26
In order to start the kernel after booting from the USB stick, we will
 
27
put a boot loader on the stick. The <command>yaboot</command> boot
 
28
loader can be installed on an HFS filesystem and can be reconfigured by
 
29
just editing a text file. Any operating system which supports the HFS
 
30
file system can be used to make changes to the configuration of the boot
 
31
loader.
 
32
 
 
33
</para><para>
 
34
 
 
35
The normal <command>ybin</command> tool that comes with
 
36
<command>yaboot</command> does not yet understand USB storage devices,
 
37
so you will have to install <command>yaboot</command> by hand using the
 
38
<classname>hfsutils</classname> tools. Type
 
39
 
 
40
<informalexample><screen>
 
41
$ hmount /dev/sda2
 
42
$ hcopy -r /usr/lib/yaboot/yaboot :
 
43
$ hattrib -c UNIX -t tbxi :yaboot
 
44
$ hattrib -b :
 
45
$ humount
 
46
</screen></informalexample>
 
47
 
 
48
Again, take care that you use the correct device name. The partition
 
49
must not be otherwise mounted during this procedure. This procedure
 
50
writes the boot loader to the partition, and uses the HFS utilities to
 
51
mark it in such a way that Open Firmware will boot it. Having done this,
 
52
the rest of the USB stick may be prepared using the normal Unix
 
53
utilities.
 
54
 
 
55
</para><para>
 
56
 
 
57
Mount the partition (<userinput>mount /dev/sda2 /mnt</userinput>) and
 
58
copy the following files from the Debian archives to the stick:
 
59
 
 
60
<itemizedlist>
 
61
<listitem><para>
 
62
 
 
63
<filename>vmlinux</filename> (kernel binary)
 
64
 
 
65
</para></listitem>
 
66
<listitem><para>
 
67
 
 
68
<filename>initrd.gz</filename> (initial ramdisk image)
 
69
 
 
70
</para></listitem>
 
71
<listitem><para>
 
72
 
 
73
<filename>yaboot.conf</filename> (yaboot configuration file)
 
74
 
 
75
</para></listitem>
 
76
<listitem><para>
 
77
 
 
78
<filename>boot.msg</filename> (optional boot message)
 
79
 
 
80
</para></listitem>
 
81
<listitem><para>
 
82
 
 
83
Optional kernel modules
 
84
 
 
85
</para></listitem>
 
86
</itemizedlist>
 
87
 
 
88
</para><para>
 
89
 
 
90
The <filename>yaboot.conf</filename> configuration file should
 
91
contain the following lines:
 
92
 
 
93
<informalexample><screen>
 
94
default=install
 
95
root=/dev/ram
 
96
 
 
97
message=/boot.msg
 
98
 
 
99
image=/vmlinux
 
100
        label=install
 
101
        initrd=/initrd.gz
 
102
        initrd-size=10000<phrase condition="sarge">
 
103
        append="devfs=mount,dall --"</phrase>
 
104
        read-only
 
105
</screen></informalexample>
 
106
 
 
107
Please note that the <userinput>initrd-size</userinput> parameter
 
108
may need to be increased, depending on the image you are booting.
 
109
 
 
110
</para>
 
111
   </sect3>