Re: Lombard booting Debian Ports 2020-04-19 (was Re: Updated installation images for Debian Ports 2020-04-19)
On 4/20/20 8:12 AM, John Paul Adrian Glaubitz wrote:
> On 4/20/20 3:30 PM, userm57@yahoo.com wrote:
>>> Did you try loading GRUB directly from the OpenFirmware prompt?
>>
>> From the Open Firmware prompt, the Debian 7.8 CD can be booted using the
>> following command:
>> 0 > boot cd:,\install\yaboot
>>
>> From the Open Firmware prompt, the Debian SID CD can't be booted; I
>> tried these commands:
>> 0 > boot cd:,\boot\grub\powerpc.elf
>> MAC-PARTS: can't find a default partition
>> can't OPEN: cd:,\boot\grub\powerpc.elf
>
> This should actually work unless the system has issues reading the
> CD-ROM itself or the HFS+ filesystem used on the CD-ROM.
ok, thanks. The CD is recognized as HFS+ by Mac OS 9.2.2 (325,167,104
bytes for 1,284 items). Running Debian SID (installed from the 20190127
CD), this system reports the following:
root@lombard:~# sha1sum /dev/sr0
2df40b93c72942e735c1abf62f96a44973244edc /dev/sr0
dmesg reports this when I insert the CD:
[ 351.086038] sr 2:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE
[ 351.086498] sr 2:0:0:0: [sr0] tag#0 Sense Key : Illegal Request
[current]
[ 351.086773] sr 2:0:0:0: [sr0] tag#0 Add. Sense: Illegal mode for this
track
[ 351.087043] sr 2:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 02 70 f6
00 00 02 00
[ 351.087318] print_req_error: I/O error, dev sr0, sector 639960
[ 351.087645] attempt to access beyond end of device
[ 351.087836] sr0: rw=0, want=639968, limit=639960
[ 351.088008] Buffer I/O error on dev sr0, logical block 79995, async
page read
The CD can be mounted, but partx reports that its size is 1.2G:
root@lombard:/test/scripts# mount /dev/sr0
mount: /media/cdrom0: WARNING: device write-protected, mounted read-only.
root@lombard:/test/scripts# df /media/cdrom0
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sr0 319680 319680 0 100% /media/cdrom0
root@lombard:/test/scripts# partx -s /dev/sr0
NR START END SECTORS SIZE NAME UUID
1 0 2557439 2557440 1.2G
That may not be important, though, since the Debian 7.8 CD has similar
results:
root@lombard:/test/scripts# mount /dev/sr0
mount: /media/cdrom0: WARNING: device write-protected, mounted read-only.
root@lombard:/test/scripts# df /media/cdrom0
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sr0 664080 664080 0 100% /media/cdrom0
root@lombard:/test/scripts# partx -s /dev/sr0
NR START END SECTORS SIZE NAME UUID
1 0 5310239 5310240 2.5G
> ...
> If you want to verify that the updated version shows the paths correctly,
> you have to checkout the script from git and run it from there:
>
> # https://github.com/glaubitz/powerpc-utils.git
> # git checkout mac-support
> # ./scripts/ofpathname /dev/sda
> # ./scripts/ofpathname /dev/sda1
> ...
root@lombard:/test/scripts# ./ofpathname --version
ofpathname: Version 0.5
Written by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
root@lombard:/test/scripts# ./ofpathname /dev/sda
/pci@80000000/mac-io@10/ata-3@20000/scsi@0/sd@0,0
root@lombard:/test/scripts# ./ofpathname /dev/sda1
/pci@80000000/mac-io@10/ata-3@20000/scsi@0/sd@0,0
root@lombard:/test/scripts# ofpath --version
ofpath 1.0.7+debian3
Written by Ethan Benson, portions rewritten by Milan Kupcevic
Portions based on show_of_path.sh written by Olaf Hering
...
root@lombard:/test/scripts# ofpath /dev/sda
/pci@80000000/mac-io@10/ata-3@20000/@0
root@lombard:/test/scripts# ofpath /dev/sda1
/pci@80000000/mac-io@10/ata-3@20000/@0:1
Reply to: