ppcrcd/trunk/doc: README.usb_boot gendoc.pl
sparky
cvs at pld-linux.org
Thu Mar 16 15:39:33 CET 2006
Author: sparky
Date: Thu Mar 16 15:39:29 2006
New Revision: 7191
Modified:
ppcrcd/trunk/doc/README.usb_boot
ppcrcd/trunk/doc/gendoc.pl
Log:
- updated
Modified: ppcrcd/trunk/doc/README.usb_boot
==============================================================================
--- ppcrcd/trunk/doc/README.usb_boot (original)
+++ ppcrcd/trunk/doc/README.usb_boot Thu Mar 16 15:39:29 2006
@@ -1,79 +1,84 @@
-Prepare image on usb-storage:
- 1. the easiest way:
- $ dd if=ppcrcd.iso of=/dev/sda
- but you will not be able to put anything else on such device
-
- 2. prepare mac-partitions, like this:
- /dev/sda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
- /dev/sda2 Apple_HFS PPCRCD 122880 @ 64 ( 60.0M) HFS
- /dev/sda3 Apple_UNIX_SVR2 Data 880576 @ 122944 (430.0M) Linux native
-
- format as HFS
- $ hformat -l PPCRCD /dev/sda2
-
- mount destination and copy all files from CD image:
- $ sudo mount -t hfs /dev/sda2 mnt
- $ sudo cp -a /path/to/cd/* mnt/
- $ sudo umount mnt
-
- set chrp-script atribute:
- $ hmount /dev/sda2
- $ hattrib -b :ppc
- $ hcd ppc
- $ hattrib -t tbxi -c TBXI bootinfo.txt
- $ humount
-
- this way you have rest of disk for use under linux
-
- 3. prapare dos partition, it must be FAT:
- /dev/sda1 1 1011 501425 b W95 FAT32
-
- format as vfat
- $ mkfs.vfat -n PPCRCD /dev/sda1
-
- copy all files as they are to this partition
-
- NOTE 1:
- as it isn't hfs partition you won't be able to call tbxi to boot, you
- have to specify file manually:
- 0 > boot usb1/disk at 1:1,\ppc\bootinfo.txt
- or directly boot yaboot:
- 0 > boot usb1/disk at 1:1,\boot\yaboot
-
- NOTE 2:
- i don't know does all open firmwares have fat support, you can check if
- your has typing in OF:
- 0 > dev /packages ls
- or under linux:
- $ ls /proc/device-tree/packages
- and looking for /fat-files
-
-
-##############################################################################
-
-Now, how to boot:
-
-1. connect usb-disk and reboot
-
-2. press Command-Option-O-F (Apple-Alt-O-F) to enter open firmware
-
-3. look for usb* aliases:
- 0 > devalias
-
-4. check for one with usb-disk:
- 0 > dev usb0 ls
- ok
- 0 > dev usb1 ls
- ff9dc2c0: /disk at 1
- ok
- 0 > dev usb2 ls
- ok
-
-5. boot script:
- 0 > boot usb1/disk at 1:2,\\:tbxi
-
- where:
- "usb1/disk at 1" is device path
- "2" is partition where PPCRCD files are
- "\\:tbxi" is chrp-script file
+=== Booting from usb-storage device ===
+
+=== Prepare image on usb-storage ===
+
+== 1. the easiest way ==
+| $ <_<dd if=ppcrcd.iso of=/dev/sda>_>
+but you will not be able to put anything else on such device
+
+
+== 2. prepare mac-partitions ==
+like those:
+| /dev/sda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
+| /dev/sda2 Apple_HFS PPCRCD 122880 @ 64 ( 60.0M) HFS
+| /dev/sda3 Apple_UNIX_SVR2 Data 880576 @ 122944 (430.0M) Linux native
+
+format as HFS
+| $ <_<hformat -l PPCRCD /dev/sda2>_>
+
+mount destination and copy all files from CD image:
+| $ <_<sudo mount -t hfs /dev/sda2 mnt>_>
+| $ <_<sudo cp -a /path/to/cd/* mnt/>_>
+| $ <_<sudo umount mnt>_>
+
+set chrp-script atribute:
+| $ <_<hmount /dev/sda2>_>
+| $ <_<hattrib -b :ppc>_>
+| $ <_<hcd ppc>_>
+| $ <_<hattrib -t tbxi -c TBXI bootinfo.txt>_>
+| $ <_<humount>_>
+
+this way you have rest of disk for use under linux
+
+
+== 3. prapare dos partition ==
+it must be FAT
+| /dev/sda1 1 1011 501425 b W95 FAT32
+
+format as vfat
+| $ <_<mkfs.vfat -n PPCRCD /dev/sda1>_>
+
+copy all files as they are to this partition
+
+= NOTE 1: =
+As it isn't hfs partition you won't be able to call tbxi to boot, you
+have to specify file manually:
+| 0 > <_<boot usb1/disk at 1:1,\ppc\bootinfo.txt>_>
+or directly boot yaboot:
+| 0 > <_<boot usb1/disk at 1:1,\boot\yaboot>_>
+
+= NOTE 2: =
+I don't know does all open firmwares have fat support, you can check if
+your has typing in OF:
+| 0 > <_<dev /packages ls>_>
+or under linux:
+| $ <_<ls /proc/device-tree/packages>_>
+and looking for /fat-files
+
+
+=== Now, how to boot ===
+
+== 1. connect usb-disk and reboot ==
+
+== 2. press Command-Option-O-F (Apple-Alt-O-F) to enter open firmware ==
+
+== 3. look for usb* aliases ==
+| 0 > <_<devalias>_>
+
+== 4. check for one with usb-disk ==
+| 0 > <_<dev usb0 ls>_>
+| ok
+| 0 > <_<dev usb1 ls>_>
+| ff9dc2c0: /disk at 1
+| ok
+| 0 > <_<dev usb2 ls>_>
+| ok
+
+== 5. boot script ==
+| 0 > <_<boot usb1/disk at 1:2,\\:tbxi>_>
+
+where:
+ </<usb1/disk at 1>/> is device path
+ </<2>/> is partition where PPCRCD files are
+ </<\\:tbxi>/> is chrp-script file
Modified: ppcrcd/trunk/doc/gendoc.pl
==============================================================================
--- ppcrcd/trunk/doc/gendoc.pl (original)
+++ ppcrcd/trunk/doc/gendoc.pl Thu Mar 16 15:39:29 2006
@@ -39,9 +39,9 @@
s#<_<(.*?)>_>#<u>$1</u>#gs;
s#<\*<(.*?)>\*>#<b>$1</b>#gs;
s#</<(.*?)>/>#<i>$1</i>#gs;
- s#^===(.*)===$#<h1>$1</h1>#gm;
- s#^==(.*)==$#<h2>$1</h2>#gm;
- s#^=(.*)=$#<h3>$1</h3>#gm;
+ s#^===\s*(.*)\s*===$#<h1>$1</h1>#gm;
+ s#^==\s*(.*)\s*==$#<h2>$1</h2>#gm;
+ s#^=\s*(.*)\s*=$#<h3>$1</h3>#gm;
return $_;
}
More information about the pld-cvs-commit
mailing list