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

Re: Lombard booting Debian Ports 2020-04-19 (was Re: Updated installation images for Debian Ports 2020-04-19)



On 4/20/20 5:07 PM, userm57@yahoo.com wrote:
>> 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

That doesn't look good. Try a different recordable CD.

> 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

Being able to mount it does not necessarily mean the boot sector
has been written properly.

>> ...
>> 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

I think you forgot to the "mac-support" branch as the OF path
string is missing the partition suffix.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: