Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34231 - PROM reports "The file just loaded does not appear to be executable" upon first reboot during install
Summary: PROM reports "The file just loaded does not appear to be executable" upon fir...
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux Sparc Installation Guide (show other bugs)
Hardware: Sparc Linux
: High minor (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-23 16:56 UTC by Chris Baker
Modified: 2003-12-20 12:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to gentoo-sparc-install.xml (gentoo-sparc-install.diff-34231,596 bytes, patch)
2003-11-24 01:36 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Patch to hb-install-finalise.xml (hb-install-finalise.diff-34231,681 bytes, patch)
2003-11-24 01:41 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Patch to gentoo-sparc-install.xml (gentoo-sparc-install.diff-34231,663 bytes, patch)
2003-11-24 05:38 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Patch to hb-install-finalise.xml (hb-install-finalise.diff-34231,696 bytes, patch)
2003-11-24 05:38 UTC, Sven Vermeulen (RETIRED)
Details | Diff
Output of fdisk -l /dev/discs/disc0/disc (fdisk_output,493 bytes, text/plain)
2003-11-25 14:56 UTC, Chris Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Baker 2003-11-23 16:56:19 UTC
See URL above for complete info.

In summary, the install instructions call for partitioning the /boot (or /) 
partition starting at block 1, and the Sun "whole disk" partition at block 0.  
When SILO is run, it installs the boot info at block 0.  If PROM is set to 
boot from partition 1 (e.g., /dev/hda1 for IDE), which is usually the case, it 
will search for the boot block at block 1 (the beginning of partition 1) and 
not block 0, resulting in the error message "The file just loaded does not 
appear to be executable."  The only partition containing block 0 is the "whole 
disk" partition, therefore, PROM must be told to boot from that (by default, 
according to the SPARC install guide, partition 3) by issuing "boot disk:c" or 
something analogous at the OK prompt.

This can be modified to be the default behavior by issuing "setenv boot-dev 
disk:c [floppy] [cdrom] [net]" at the OK prompt.

Recommend adding this info to Section 29 of the SPARC installation guide 
(http://www.gentoo.org/doc/en/gentoo-sparc-install.xml#doc_chap29).

Reproducible: Always
Steps to Reproduce:
1. Follow install instructions to the letter.
Actual Results:  
PROM reports: "The file just loaded does not appear to be executable"

Expected Results:  
SILO should boot.

This is using Open Boot PROM (OBP) 3.31.0 on an Ultra 5 with IDE disks.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-24 01:36:10 UTC
Created attachment 21196 [details, diff]
Patch to gentoo-sparc-install.xml

This should take care of it.

If a docdev and/or sparc dev can review?
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-24 01:41:19 UTC
Created attachment 21198 [details, diff]
Patch to hb-install-finalise.xml
Comment 3 Chris Baker 2003-11-24 03:30:24 UTC
Might want to follow that "setenv" command with either a "boot" or "reset" to complete the boot.

Also, I'm not sure what the appropriate values would be for a SCSI system (or for that matter a SPARC32 system).  In my Open Boot PROM (v. 3.31.0 on Ultra 5) the NVRAM defaults assigned correct aliases to "disk" and "disk:a" through "disk:d" (maybe through "disk:h" but I'm hesitant to check now because I'm compiling).  I'm not sure if this is standard for other configurations.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-24 05:38:11 UTC
Created attachment 21205 [details, diff]
Patch to gentoo-sparc-install.xml
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-24 05:38:37 UTC
Created attachment 21206 [details, diff]
Patch to hb-install-finalise.xml
Comment 6 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-25 10:55:41 UTC
Can a sparc dev (someone with doc experience -- Joe?) review these?
Comment 7 Joe Kallar (RETIRED) gentoo-dev 2003-11-25 11:55:12 UTC
Has this been verified? The "by-the-book" install should work. I have run into having to specify
"boot disk:a"
for example, but that's usually a silo.conf or SILO config error.

Can anybody else replicate this?

I would be concerned with adding a doc note about changing a PROM variable via set-env, since that is saved in prom and may cause issues with any subsequent disk installs on that disk.
Comment 8 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-25 12:03:29 UTC
I can totally agree on your points; does this mean that the forum (and in se the bugreport here) is invalid? I'm ofcourse totally in the dark here, I cannot reproduce this...
Comment 9 Ciaran McCreesh 2003-11-25 12:05:51 UTC
I've never had to do this. I suspect that it's only an issue if the disk is not set up correctly. Could someone who's needed to do this please post `fdisk -l /dev/discs/disc0/disc`?
Comment 10 Chris Baker 2003-11-25 14:56:23 UTC
Created attachment 21291 [details]
Output of fdisk -l /dev/discs/disc0/disc

I know you were looking for someone else's, but FWIW, here's mine for
verification.

Also, I was incorrect about the default aliases above.	They are not set up for
partitions,
but rather for disks, so I have disk, disk1, disk2, disk3 -- pointing to the
IDE disks in order.
The colon notation is apparently native to PROM for designating partitions,
i.e. there is
no disk:c alias.

Regarding setenv, you can just suggest "boot disk:c" and leave it as an
exercise to the
reader to figure out how to make PROM do that automagically.
Comment 11 Chris Baker 2003-11-25 15:02:11 UTC
Perhaps it is better to suggest it as a solution to a possible problem rather than make it a difinitive step, and to use boot disk:c instead of changing the NVRAM variable.  It is quite possible that this only manifests itself on IDE systems or some other small subset, and you could confuse others (and perhaps break their boots) by suggesting the procedure as mandatory before it's determined that the by-the-book install doesn't work.
Comment 12 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-25 21:30:11 UTC
I'm not in favor of using the docs to fix a problem that isn't documentation related :) So unless I am confident that this situation is not a user error because (s)he didn't read the documents correctly, I wont put this in the installation instructions.
Comment 13 Jason Wever (RETIRED) gentoo-dev 2003-11-26 03:35:31 UTC
This is something I see come up occasionally, but I have not found out what causes you to have to this.  None of the machines I've used (scsi and ide based) have needed this.  If we could narrow down why this is happening, we could make a note about that in the docs.

On a side note, you can make an nvram alias to point to a particular disk and partiion.  An example of this is;

Currently, an Ultra 5 I use sees the disk1 alias as /pci/pci@1,1/ide/disk@0,0:a
Now, if we need to boot off of partition c (or partition 3 as linux sees it), then the following command would create a new alias called gentoo that points to partition c;

ok nvalias gentoo /pci/pci@1,1/ide/disk@0,0:c

Then you can set your boot-device to the alias gentoo

ok setenv boot-device gentoo

Then reset the box to make sure the changes have taken effect

ok reset


Comment 14 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-26 12:32:34 UTC
All nice and well, but it is perhaps better to write up a SPARC FAQ? Or SPARC Tips & Tricks? This is something all architectures can benefit from imho.

I'm sure the SPARC team has a nice mailbox filled with Q&A that they could place on some special document to refer to :)
Comment 15 Jason Wever (RETIRED) gentoo-dev 2003-11-26 14:41:25 UTC
Yeah, Blademan and I had started one, need to ping him on the status.
Comment 16 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-20 11:05:07 UTC
I'm going to mark this as INVALID. As long as I don't hear from the sparc team, I can't act. Sparc-dudes, if the SPARC Faq/Tips 'n Tricks is somewhere, just ping me :)
Comment 17 Sven Vermeulen (RETIRED) gentoo-dev 2003-12-20 12:42:55 UTC
Forgot to select the right option :/