Port-macppc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PowerBook G3 can't boot from hard drive



I answer to myself:
You need a nvram patch. It's attached to this mail.
If your PMU battery is dead, you have to install it each time you
reboot the machine.
You can install it using "nvedit". Alternatively, you can use a Mac OS
X 10.2 install CD to install it automatically. Just set "auto-boot?
false" to prevent the installer start.
Then boot with the command "boot ide0/disk@0:0"

If the network interface doesn't work you can use a trick. Try to boot
from network (boot enet:) and abort the process quickly; then boot
from the hard disk.

If the booting stops, set real-base to F00000, load-base to 600000,
and detach the CD-ROM drive from the bay.

2012/2/14 Pablo Cabrera <binchmod777%gmail.com@localhost>:
> My laptop is a PowerBook G3 PDQ. It's an Old-World Mac, OpenFirmware
> version 2.0.1
> I can boot from network, and install NetBSD in the laptop's hard drive
> but I can't boot from it.
hex
: $D find-device ;
: $E device-end ;
: $L BLpatch ; : $R BRpatch ;
: $X execute ;
: $P 0 to my-self property ;
: &a " /chosen" $D $P $E ;
: &c " ata-enable" $call-parent ;
: helpb " backlight-on" _pmu-ihandle $call-method ;
10 buffer: km
devalias ide0 /pci/@10/ata0
devalias ide1 /pci/@10/@34/ata1
devalias ide4 /pci/@d/@34/ata4
dev /aliases
: $M delete-property ;
" ata-int" $M
" ata0" $M
" ata1" $M
" ata4" $M
dev kbd
get-key-map km swap move
$E
: ck 0 do swap dup 3 >> km + c@ 1 rot 7 and << and or loop ;
: bootr 0d word count encode-string " machargs" &a
0 0 1 ck if 0 and else dup 1 = if 3d 0 1 else f 3d 0 2 then ck if 40 or then 
then
40 and if bye else helpb 1e 0 do ['] boot catch drop 1f4 ms loop then bye ;
: myboot boot-command eval ;
dev enet
62 ' READ 7 - c!
: READ { _p _n ; _a } begin _p _n bead -> _a _a 2+
if _p c@ 80 and 0= else 1 then until _a ;
$E
dev /packages/obp-tftp
: $M over + ['] noop $L ;
: $O ['] open + ;
: $M1 dup 24 - -1720 $O $X 6 move 14 + ;
-5BC $O ' $M1 $L
0 $O E8 $M EC $M F0 $M F4 $M F8 + ' true $L
$E
dev /packages/mac-parts
: $M -7E86F0 $X 8000 alloc-mem 7F00 + 4 -7E86F0 $X ;
' load 268 - ' $M $L
' load 160 + ' 0 $L
dev ide0
: open use-ata-interface 0 &c -1 ;
: set-device-ID set-drive-select ;
$E
dev mac-io/@34
1 value &f
: ata-enable &f if 1000 ms &c 1000 ms 0 to &f else drop then ;
$E
dev ide1
: open use-ata-interface 1 &c -1 ;
: set-device-ID set-drive-select ;
: reset-atapi-bus reset-ata-bus ;
$E
dev pci1/@d/@34
: ata-enable &c ;
$E
dev ide4
: open use-ata-interface 1 &c -1 ;
: set-device-ID set-drive-select ;
: reset-atapi-bus reset-ata-bus ;
$E
dev scsi
: $M ['] do-cmd + ;
: $M2 5 us -5f0 $M $X ;
: $M3 -710 $M f over $X $X ;
: $M4 1 ms ;
-1AC $M ' $M2 $L
100 $M ' $M3 $L
120 $M ' $M4 $L
124 $M ' 1 $L
$E
unselect-dev


Home | Main Index | Thread Index | Old Index