All of lore.kernel.org
 help / color / mirror / Atom feed
* Boot Loader
@ 2002-12-09  6:05 Erik Christiansen
  2002-12-09  7:43 ` Wolfgang Denk
  0 siblings, 1 reply; 39+ 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] 39+ messages in thread
* boot loader
@ 2015-04-28 15:12 Thiago Farina
  2015-04-28 21:49 ` Richard Weinberger
                   ` (2 more replies)
  0 siblings, 3 replies; 39+ messages in thread
From: Thiago Farina @ 2015-04-28 15:12 UTC (permalink / raw)
  To: linux list

Hi,

Does the kernel include a simple boot loader like FreeBSD does?

-- 
Thiago Farina

^ permalink raw reply	[flat|nested] 39+ 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; 39+ 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] 39+ messages in thread
* RE: boot loader
@ 2002-04-22 12:43 Westerman, Mark
  0 siblings, 0 replies; 39+ messages in thread
From: Westerman, Mark @ 2002-04-22 12:43 UTC (permalink / raw)
  To: 'Stephen Smalley', Russell Coker; +Cc: SE Linux


Could you name the policy 
bootloader_t

This way we could include grub to

Mark

> -----Original Message-----
> From: Stephen Smalley [mailto:sds@tislabs.com]
> Sent: Monday, April 22, 2002 6:49 AM
> To: Russell Coker
> Cc: SE Linux
> Subject: Re: boot loader
> 
> 
> 
> On Sat, 20 Apr 2002, Russell Coker wrote:
> 
> > I am creating a policy for lilo.
> >
> > I have defined it's type as follows:
> > type lilo_t, domain, privlog, privmem, boot_loader;
> >
> > privmem is because lilo needs to read from /dev/mem to get 
> BIOS data about
> > boot devices.  I have defined "boot_loader" as a type 
> attribute for anything
> > that needs to write to raw hard drive devices to install a 
> boot loader (grub
> > etc would need that too).  Then I added boot_loader in 
> assert.te as being
> > allowed to write to fixed_disk_device_t.
> >
> > What do you think?
> 
> This sounds fine.  Once lilo has been moved into its own 
> domain, you might
> try removing direct access to fixed_disk_device_t from sysadm_t
> (the admin_domain macro).
> 
> --
> Stephen D. Smalley, NAI Labs
> ssmalley@nai.com
> 
> 
> 
> 
> --
> You have received this message because you are subscribed to 
> the selinux list.
> If you no longer wish to subscribe, send mail to 
> majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.
> 

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 39+ messages in thread
* boot loader
@ 2002-04-20 12:37 Russell Coker
  2002-04-20 15:24 ` Ivan Pulleyn
  2002-04-22 11:48 ` Stephen Smalley
  0 siblings, 2 replies; 39+ messages in thread
From: Russell Coker @ 2002-04-20 12:37 UTC (permalink / raw)
  To: SE Linux

I am creating a policy for lilo.

I have defined it's type as follows:
type lilo_t, domain, privlog, privmem, boot_loader;

privmem is because lilo needs to read from /dev/mem to get BIOS data about 
boot devices.  I have defined "boot_loader" as a type attribute for anything 
that needs to write to raw hard drive devices to install a boot loader (grub 
etc would need that too).  Then I added boot_loader in assert.te as being 
allowed to write to fixed_disk_device_t.

What do you think?

-- 
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 39+ messages in thread
[parent not found: <36E192B5.6C18381B@noaa.gov>]

end of thread, other threads:[~2015-05-13  7:59 UTC | newest]

Thread overview: 39+ 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-09  9:25   ` [U-Boot-Users] " Marius Groeger
2002-12-09  9:31     ` Wolfgang Denk
2002-12-10  7:54   ` Erik Christiansen
  -- strict thread matches above, loose matches on Subject: below --
2015-04-28 15:12 boot loader Thiago Farina
2015-04-28 21:49 ` Richard Weinberger
2015-04-28 23:44   ` Thiago Farina
2015-04-29  2:17     ` Ken Moffat
2015-04-29  8:28 ` Geert Uytterhoeven
2015-05-11 22:11 ` Pavel Machek
2015-05-12  0:17   ` Thiago Farina
2015-05-12 11:11     ` Enrico Weigelt, metux IT consult
2015-05-13  7:02       ` Pavel Machek
2015-05-13  7:53         ` Enrico Weigelt, metux IT consult
2015-05-13  7:56           ` Pavel Machek
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
2002-04-22 12:43 boot loader Westerman, Mark
2002-04-20 12:37 Russell Coker
2002-04-20 15:24 ` Ivan Pulleyn
2002-04-20 18:14   ` Russell Coker
2002-04-22 11:48 ` Stephen Smalley
2002-04-22 19:58   ` Russell Coker
2002-04-22 20:39     ` Stephen Smalley
2002-04-22 22:08       ` Russell Coker
2002-04-22 22:27         ` Stephen Smalley
2002-04-22 22:45           ` Russell Coker
2002-04-23  5:43             ` Tom
2002-04-23 11:55               ` Russell Coker
2002-04-23 12:20                 ` Tom
2002-04-23 12:44                   ` Russell Coker
2002-04-23 15:36                     ` Tom
2002-04-23 16:50                       ` Russell Coker
2002-04-23 17:03                         ` Stephen Smalley
2002-04-23  5:40           ` Tom
     [not found] <36E192B5.6C18381B@noaa.gov>
1999-03-07  1:04 ` Cort Dougan
1999-03-08 10:14   ` Gabriel Paubert
1999-03-08 19:33     ` Cort Dougan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.