[U-Boot] Interrupt issue about bootvx command

Reinhard.Arlt at t-online.de Reinhard.Arlt at t-online.de
Sat Oct 15 12:10:40 CEST 2011


Hallo, 

	i am out of office at the moment, so i can not test, but i have
tracked all my vxWorks start problems down to cache issues, even if
they look like irq issues at a first glance, but disabling the irq's
may not harm. 

	Adding the boot parameter and a cache flush makes much more sense for
me. 

	I will come with a formal patch later next week. 

	Kind regards 

	Reinhard 

	-----Original-Nachricht----- 

	Von: Wolfgang Denk <wd at denx.de> 

	An: Peter Pan <pppeterpppan at gmail.com> 

	Cc: u-boot at lists.denx.de 

	Betreff: Re: [U-Boot] Interrupt issue about bootvx command 

	Datum: Fri, 14 Oct 2011 22:46:28 +0200 

	Dear Peter Pan, 

	In message
<CAGQXtZEXL+psHAL2RgcimeQo_CQdTw13agSRDT5fQ4tmkmzAjQ at mail.gmail.com>
you wrote: 

	> 

	> I've installed the git-email packet now, but I can not make it
work. 

	> The "Unable to initialize SMTP properly" always pop up. T_T 

	> This is the first time I send any patch to the community, sorry for


	> the incontinence. 

	> 

	> This is tested on our board, and I think at least for any Freescale


	> E500v2 core based board, this patch is needed. The TCR[DIE] is set
in 

	> function interrupt_init_cpu of mpc85xx/interrupts.c, which enables 

	> decrementer interrupts. 

	> 

	> The following is my patch. I've changed the printf to a comment. 

	We've been through a number of iterations now.  Your technical 

	problems aside, I don't understand why you cannot follow simple 

	instructions. 

	I pointed you at http://www.denx.de/wiki/U-Boot/Patches ; there you 

	can read: 

	* In the message body, include a description of your changes. 

	- For bug fixes: a description of the bug and how your 

	patch fixes this bug. Please try to include a way of 

	demonstrating that the patch actually fixes something. 

	- For new features: a description of the feature and your 

	implementation. 

	- Additional comments which you don't want included in 

	U-Boot's history can be included below the first "---" in 

	the message body. 

	Do you think above text should become part of the commit message? 

	Probably not.  So why don't you treat it as "Additional comments
which 

	you don't want included in U-Boot's history"? 

	> 

	> Subject: [PATCH] common/cmd_elf : Disable interrupts before bootup
vxWorks 

	> 

	> vxWorks needs all interrupts to be disabled before bootup. 

	> Signed-off-by: Ke Pan <pppeterpppan at gmail.com> 

	> --- 

	Here is the place where such comments should go... 

	And when reposting a patch, you are supposed to follow the steps 

	described here: 

	http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions


	>  common/cmd_elf.c |    2 ++ 

	>  1 files changed, 2 insertions(+), 0 deletions(-) 

	> 

	> diff --git a/common/cmd_elf.c b/common/cmd_elf.c 

	> index bf32612..7a7a6bb 100644 

	> --- a/common/cmd_elf.c 

	> +++ b/common/cmd_elf.c 

	> @@ -230,6 +230,8 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int 

	> argc, char * const argv[]) 

	>   (char *) bootaddr); 

	>   printf ("## Starting vxWorks at 0x%08lx ...n", addr); 

	> 

	> + /* Disable all interrupts before boot up vxWorks */ 

	> + disable_interrupts(); 

	>   ((void (*)(void)) addr) (); 

	> 

	>   puts ("## vxWorks terminatedn"); 

	Finally, as I wrote before, I would like to see some additional 

	feedback for other VxWorks users. 

	Any testers around? 

	Best regards, 

	Wolfgang Denk 

	-- 

	DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel


	HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


	Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de


	Computers are not intelligent.  They only think they are. 

	_______________________________________________ 

	U-Boot mailing list 

	U-Boot at lists.denx.de 

	http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list