* Boot Loader
@ 2002-12-09 6:05 Erik Christiansen
2002-12-09 7:43 ` Wolfgang Denk
0 siblings, 1 reply; 8+ messages in thread
From: Erik Christiansen @ 2002-12-09 6:05 UTC (permalink / raw)
To: linuxppc-embedded
G'day,
Having proved the gnu powerpc-linux toolchain by building and
running a simple program on our custom ppc850SAR board, the next step
seems to be a boot loader.
Had a look at http://sourceforge.net/projects/u-boot , as recently
mentioned by Jerry Van Baren, but the site states "This Project Has Not
Released Any Files", and the cvs repository link states "Only project
developers can access the CVS tree via this method."
So, instead, I've downloaded ppcboot-2.0.0., which seems to be the
maiden name of u-boot, anyway.
Until the U-Boot surfaces, would this be a good way to go, when faced
with a custom board?
Regards,
Erik
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Boot Loader
2002-12-09 6:05 Boot Loader Erik Christiansen
@ 2002-12-09 7:43 ` Wolfgang Denk
2002-12-10 7:54 ` Erik Christiansen
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Denk @ 2002-12-09 7:43 UTC (permalink / raw)
To: Erik Christiansen; +Cc: linuxppc-embedded
In message <20021209060509.GA5743@dd•nec.com.au> you wrote:
>
> Had a look at http://sourceforge.net/projects/u-boot , as recently
> mentioned by Jerry Van Baren, but the site states "This Project Has Not
> Released Any Files", and the cvs repository link states "Only project
> developers can access the CVS tree via this method."
It is correct that we haven't released an official version of U-Boot
yet, but as you can see from the project page it is based on PPCBoot,
which has been around for _some_ time.
And of course the CVS repository _is_ available to everybody for
anonymous CVS access. The page you quote is pretty clear:
Anonymous CVS Access
This project's SourceForge.net CVS repository can be checked
out through anonymous (pserver) CVS with the following
instruction set. The module you wish to check out must be
specified as the modulename. When prompted for a password for
anonymous, simply press the Enter key.
cvs -d:pserver:anonymous@cvs•u-boot.sourceforge.net:/cvsroot/u-boot login
cvs -z3 -d:pserver:anonymous@cvs•u-boot.sourceforge.net:/cvsroot/u-boot co modulename
Updates from within the module's directory do not need the
-d parameter.
Developer access is indeed for developers only.
> Until the U-Boot surfaces, would this be a good way to go, when faced
> with a custom board?
No. You should not spend time on a project which has been
discontinued. Just download the latest (top of tree) version from the
U-Boot CVS server.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx•de
Ernest asks Frank how long he has been working for the company.
"Ever since they threatened to fire me."
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Executable delay
@ 2003-12-22 9:58 James Bates
2003-12-22 11:59 ` Boot Loader Kevin A. Sapp
0 siblings, 1 reply; 8+ messages in thread
From: James Bates @ 2003-12-22 9:58 UTC (permalink / raw)
To: linuxppc-embedded
Hi All,
I have had my first real poke around the kernel and it looks like I was
correct in saying that any task accessing the DOC drivers was put into an
incorrect state. The code that seemed to do the damage can be found in
drivers/mtd/devices/doc2000.c in the function _DoC_WaitReady().
The problem seems to be the call to cond_resched which is not in slightly
older kernel versions. To fix the bug I reverted this function back to the
code in version 2.4.10 of the kernel.
After making these changes it appears to work perfectly. My question now is.
Have I inadvertently broken something without knowing it.
Kind Regards,
James Bates
PS: My _DoC_WaitReady is as follows:
/* DOC_WaitReady: Wait for RDY line to be asserted by the flash chip */
static int _DoC_WaitReady(struct DiskOnChip *doc)
{
unsigned long docptr = doc->virtadr;
#ifndef CONFIG_MTD_DOCPROBE_SHORT_TIMEOUTS
unsigned long timeo = jiffies + (HZ * 10);
#else
unsigned long timeo = jiffies + 1;
#endif
DEBUG(MTD_DEBUG_LEVEL3,
"_DoC_WaitReady called for out-of-line wait\n");
/* Out-of-line routine to wait for chip response */
while (!(ReadDOC(docptr, CDSNControl) & CDSN_CTRL_FR_B)) {
if (time_after(jiffies, timeo)) {
DEBUG(MTD_DEBUG_LEVEL2, "_DoC_WaitReady timed out.\n");
return -EIO;
}
// This is the "new" code from version 2.4.23
// udelay(1);
// cond_resched();
// Revert back to old task state management in 2.4.10
if (current->need_resched) {
set_current_state(TASK_UNINTERRUPTIBLE);
schedule_timeout(1);
}
else
udelay(1);
// End of 2.4.10 code
}
return 0;
}
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread* Boot Loader
2003-12-22 9:58 Executable delay James Bates
@ 2003-12-22 11:59 ` Kevin A. Sapp
2003-12-22 13:08 ` Wolfgang Denk
0 siblings, 1 reply; 8+ messages in thread
From: Kevin A. Sapp @ 2003-12-22 11:59 UTC (permalink / raw)
To: linuxppc-embedded
Hello,
For my end target I have to boot across a shared memory
interface by placing the executable into RAM. This is
part of a multi processor system where the Linux board
is a cPCI slave. The Linux board will not have a flash
or a network connection. I is held in reset by the master
until the s/w is loaded and then released. This is an 8275
target. The "Master" is a Solaris Workstation or a PC
style Linux box or card.
Any suggestions on how to do this ?
Have to fill in my own board info in a bd_t struct,
pass it in R3, if I use and initrd it's start and end ptrs
go into R4, R5 and the cmd line params will
be hard coded and inserted into R6,R7...
I will be using a RAM disk for the root file system.
Instead of compressing and creating uImage for das u-boot,
I create a binary(?) image and just shove it into RAM at
0? Ensure the Reset vec is set to my initialization code
that will be part of the download...
Any ideas would be appreciated.
Thank you
Kevin
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Boot Loader
2003-12-22 11:59 ` Boot Loader Kevin A. Sapp
@ 2003-12-22 13:08 ` Wolfgang Denk
0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2003-12-22 13:08 UTC (permalink / raw)
To: Kevin A. Sapp; +Cc: linuxppc-embedded
Dear Kevin,
in message <3FE6DCB3.109@catapult•com> you wrote:
>
> For my end target I have to boot across a shared memory
> interface by placing the executable into RAM. This is
> part of a multi processor system where the Linux board
> is a cPCI slave. The Linux board will not have a flash
> or a network connection. I is held in reset by the master
> until the s/w is loaded and then released. This is an 8275
This has been done before. See for example the "PN62" configuration
in U-Boot.
> Any suggestions on how to do this ?
Use U-Boot...
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx•de
It all seemed, he thought, to be rather a lot of trouble to go to
just sharpen a razor blade. - Terry Pratchett, _The Light Fantastic_
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <36E192B5.6C18381B@noaa.gov>]
end of thread, other threads:[~2003-12-22 13:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-09 6:05 Boot Loader Erik Christiansen
2002-12-09 7:43 ` Wolfgang Denk
2002-12-10 7:54 ` Erik Christiansen
-- strict thread matches above, loose matches on Subject: below --
2003-12-22 9:58 Executable delay James Bates
2003-12-22 11:59 ` Boot Loader Kevin A. Sapp
2003-12-22 13:08 ` Wolfgang Denk
[not found] <36E192B5.6C18381B@noaa.gov>
1999-03-07 1:04 ` boot loader Cort Dougan
1999-03-08 10:14 ` Gabriel Paubert
1999-03-08 19:33 ` Cort Dougan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox