* Need help for Linux hangs
@ 2005-12-08 15:19 jimmy liu
  2005-12-08 16:05 ` Vitaly Bordug
  2005-12-08 23:19 ` Wolfgang Denk
  0 siblings, 2 replies; 10+ messages in thread
From: jimmy liu @ 2005-12-08 15:19 UTC (permalink / raw)
  To: linuxppc-embedded
I have U-Boot running on a board similar to
MPC8260ADS.
bootargs=root=/dev/ram rw console=ttyS0,115200
When I run command: bootm ff060000 ff260000, the
prompt shows message:
## Booting image at ff060000 ...
   Image Name:   Linux-2.4.25
   Image Type:   PowerPC Linux Kernel Image (gzip
compressed)
   Data Size:    621131 Bytes = 606.6 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at ff260000 ...
   Image Name:   Simple Embedded Linux Framework
   Image Type:   PowerPC Linux RAMDisk Image (gzip
compressed)
   Data Size:    1591658 Bytes = 1.5 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Ramdisk to 00e07000, end 00f8b96a ... OK
The system hangs here. I have checked in the FAQs
provided in the Denx's site, could not find the
similar case.
I would appreciate any help.
Thanks & Regards,
Jimmy
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
^ permalink raw reply	[flat|nested] 10+ messages in thread
- * Re: Need help for Linux hangs
  2005-12-08 15:19 Need help for Linux hangs jimmy liu
@ 2005-12-08 16:05 ` Vitaly Bordug
  2005-12-08 23:21   ` Wolfgang Denk
  2005-12-08 23:19 ` Wolfgang Denk
  1 sibling, 1 reply; 10+ messages in thread
From: Vitaly Bordug @ 2005-12-08 16:05 UTC (permalink / raw)
  To: jimmy liu; +Cc: linuxppc-embedded
jimmy liu wrote:
> I have U-Boot running on a board similar to
> MPC8260ADS.
> bootargs=root=/dev/ram rw console=ttyS0,115200
try to set console=ttyCPM0,115200 in the bootargs.
> When I run command: bootm ff060000 ff260000, the
> prompt shows message:
> ## Booting image at ff060000 ...
>    Image Name:   Linux-2.4.25
>    Image Type:   PowerPC Linux Kernel Image (gzip
> compressed)
>    Data Size:    621131 Bytes = 606.6 kB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... OK
> ## Loading RAMDisk Image at ff260000 ...
>    Image Name:   Simple Embedded Linux Framework
>    Image Type:   PowerPC Linux RAMDisk Image (gzip
> compressed)
>    Data Size:    1591658 Bytes = 1.5 MB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Loading Ramdisk to 00e07000, end 00f8b96a ... OK
> 
> The system hangs here. I have checked in the FAQs
> provided in the Denx's site, could not find the
> similar case.
> 
> I would appreciate any help.
> 
> Thanks & Regards,
> 
> Jimmy
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
> 
> 
-- 
Sincerely, 
Vitaly
^ permalink raw reply	[flat|nested] 10+ messages in thread 
- * Re: Need help for Linux hangs
  2005-12-08 16:05 ` Vitaly Bordug
@ 2005-12-08 23:21   ` Wolfgang Denk
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2005-12-08 23:21 UTC (permalink / raw)
  To: Vitaly Bordug; +Cc: jimmy liu, linuxppc-embedded
Dear Vitaly,
in message <439859BA.6060600@ru.mvista.com> you wrote:
> jimmy liu wrote:
> > I have U-Boot running on a board similar to
> > MPC8260ADS.
> > bootargs=root=/dev/ram rw console=ttyS0,115200
> try to set console=ttyCPM0,115200 in the bootargs.
                     ^^^^^^^
> > When I run command: bootm ff060000 ff260000, the
> > prompt shows message:
> > ## Booting image at ff060000 ...
> >    Image Name:   Linux-2.4.25
                           ^^^^^^
That's bad advice.
The 2.4.25 kernel will definitely NOT work with console=ttyCPM0
Best regards,
Wolfgang Denk
-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Immortality consists largely of boredom.
	-- Zefrem Cochrane, "Metamorphosis", stardate 3219.8
^ permalink raw reply	[flat|nested] 10+ messages in thread
 
- * Re: Need help for Linux hangs
  2005-12-08 15:19 Need help for Linux hangs jimmy liu
  2005-12-08 16:05 ` Vitaly Bordug
@ 2005-12-08 23:19 ` Wolfgang Denk
  2006-01-04  7:05   ` Problems starting /init David H. Lynch Jr.
                     ` (2 more replies)
  1 sibling, 3 replies; 10+ messages in thread
From: Wolfgang Denk @ 2005-12-08 23:19 UTC (permalink / raw)
  To: jimmy liu; +Cc: linuxppc-embedded
In message <20051208151926.74524.qmail@web53105.mail.yahoo.com> you wrote:
>
...
>    Loading Ramdisk to 00e07000, end 00f8b96a ... OK
> 
> The system hangs here. I have checked in the FAQs
> provided in the Denx's site, could not find the
> similar case.
Come on. "Linux hangs after uncompressing the kernel"
(http://www.denx.de/wiki/view/DULG/LinuxHangsAfterUncompressingKernel)
is not a "similar case"? To me it is.
Best regards,
Wolfgang Denk
-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Is the glass half empty, half full, or twice as large as it needs to
^ permalink raw reply	[flat|nested] 10+ messages in thread
- * Problems starting /init
  2005-12-08 23:19 ` Wolfgang Denk
@ 2006-01-04  7:05   ` David H. Lynch Jr.
       [not found]     ` <6AD9F6A5F6E096408F0B703773355A070E705B@CHN-SNR-MBX01.wipro.com>
  2006-01-04 23:03   ` Problems starting /init David H. Lynch Jr.
  2006-01-04 23:19   ` RESEND:Problems " David H. Lynch Jr.
  2 siblings, 1 reply; 10+ messages in thread
From: David H. Lynch Jr. @ 2006-01-04  7:05 UTC (permalink / raw)
  To: linuxppc-embedded
 I have  a kernel for a new board (Linux 2.6.14.5, Pico E12/Xilinx V4
PPC405) booting to the point of starting /init.
/init appears to be getting loaded correctly - the execve call seems
happy. But I get no output on the console.
I have tried:
	executing
		sys_write(1,"Test",4);
		inside init/main.c immediately before starting /init - works fine.
	starting a "hello World" application written in PPC asm as /init -
works fine. The kernel panics on exit but that is normal, /init is not
supposed to exit.
	starting a c "Hello World" application that uses glibc, fputs, printf,
fwrite, to display a string - again works fine.
	But I can not get busybox to output a thing either run as /init or run
as /bin/sh.
	I have aslo tried /bin/sash - no output.
	I have even cross compiled sash - with all kinds of "I am here"
debugging scattered through main(), If I runn it on a powerbook, I get
what I expect. If I run it as /bin/sh on the e12 I get no output.
	Does anyone even have any ideas what I can look at ?
	
^ permalink raw reply	[flat|nested] 10+ messages in thread
- * Problems starting /init
  2005-12-08 23:19 ` Wolfgang Denk
  2006-01-04  7:05   ` Problems starting /init David H. Lynch Jr.
@ 2006-01-04 23:03   ` David H. Lynch Jr.
  2006-01-04 23:20     ` Geoff Thorpe
  2006-01-04 23:19   ` RESEND:Problems " David H. Lynch Jr.
  2 siblings, 1 reply; 10+ messages in thread
From: David H. Lynch Jr. @ 2006-01-04 23:03 UTC (permalink / raw)
  To: linuxppc-embedded
 I have  a kernel for a new board (Linux 2.6.14.5, Pico E12/Xilinx V4
PPC405) booting to the point of starting /init.
/init appears to be getting loaded correctly - the execve call seems
happy. But I get no output on the console.
I have tried:
	executing
		sys_write(1,"Test",4);
		inside init/main.c immediately before starting /init - works fine.
	starting a "hello World" application written in PPC asm as /init -
works fine. The kernel panics on exit but that is normal, /init is not
supposed to exit.
	starting a c "Hello World" application that uses glibc, fputs, printf,
fwrite, to display a string - again works fine.
	But I can not get busybox to output a thing either run as /init or run
as /bin/sh.
	I have aslo tried /bin/sash - no output.
	I have even cross compiled sash - with all kinds of "I am here"
debugging scattered through main(), If I runn it on a powerbook, I get
what I expect. If I run it as /bin/sh on the e12 I get no output.
	Does anyone even have any ideas what I can look at ?
	
^ permalink raw reply	[flat|nested] 10+ messages in thread 
- * Re: Problems starting /init
  2006-01-04 23:03   ` Problems starting /init David H. Lynch Jr.
@ 2006-01-04 23:20     ` Geoff Thorpe
  0 siblings, 0 replies; 10+ messages in thread
From: Geoff Thorpe @ 2006-01-04 23:20 UTC (permalink / raw)
  To: linuxppc-embedded
On January 4, 2006 06:03 pm, David H. Lynch Jr. wrote:
[snip]
> 	starting a c "Hello World" application that uses glibc, fputs,
> printf, fwrite, to display a string - again works fine.
>
> 	But I can not get busybox to output a thing either run as /init or
> run as /bin/sh.
busybox tries to open the console device and does fairly extensive 
surgery with the stdio descriptors. So your apps that assume fds 
0,1,2 to be stdin/stdout/stderr are functioning fine, but busybox is 
probably choking because it's opening/configuring the console 
devices. I've worked through this with someone before when we wanted 
busybox to just run with the existing fds - we eventually beat it 
into submission but then ended up changing/replacing the console 
driver instead and going back to vanilla busybox. If you take a look 
through the busybox source, you should find the various 
fork/dup/ctrl/exit gymnastics and with a little patience, you might 
be able to hack around it. But it might be easier in the long run to 
figure out where the opening/manipulation of /dev/console (or 
whatever it's opening) is going wrong.
Sorry I can't help you further. Good luck.
Cheers,
Geoff
-- 
Geoff Thorpe
Freescale Semiconductor
^ permalink raw reply	[flat|nested] 10+ messages in thread 
 
- * RESEND:Problems starting /init
  2005-12-08 23:19 ` Wolfgang Denk
  2006-01-04  7:05   ` Problems starting /init David H. Lynch Jr.
  2006-01-04 23:03   ` Problems starting /init David H. Lynch Jr.
@ 2006-01-04 23:19   ` David H. Lynch Jr.
  2006-01-09 18:45     ` Shawn Jin
  2 siblings, 1 reply; 10+ messages in thread
From: David H. Lynch Jr. @ 2006-01-04 23:19 UTC (permalink / raw)
  To: linuxppc-embedded
 I have  a kernel for a new board (Linux 2.6.14.5, Pico E12/Xilinx V4
PPC405) booting to the point of starting /init.
/init appears to be getting loaded correctly - the execve call seems
happy. But I get no output on the console.
I have tried:
	executing
		sys_write(1,"Test",4);
		inside init/main.c immediately before starting /init - works fine.
	starting a "hello World" application written in PPC asm as /init -
works fine. The kernel panics on exit but that is normal, /init is not
supposed to exit.
	starting a c "Hello World" application that uses glibc, fputs, printf,
fwrite, to display a string - again works fine.
	But I can not get busybox to output a thing either run as /init or run
as /bin/sh.
	I have aslo tried /bin/sash - no output.
	I have even cross compiled sash - with all kinds of "I am here"
debugging scattered through main(), If I runn it on a powerbook, I get
what I expect. If I run it as /bin/sh on the e12 I get no output.
	Does anyone even have any ideas what I can look at ?
	
^ permalink raw reply	[flat|nested] 10+ messages in thread 
- * Re: RESEND:Problems starting /init
  2006-01-04 23:19   ` RESEND:Problems " David H. Lynch Jr.
@ 2006-01-09 18:45     ` Shawn Jin
  0 siblings, 0 replies; 10+ messages in thread
From: Shawn Jin @ 2006-01-09 18:45 UTC (permalink / raw)
  To: David H. Lynch Jr.; +Cc: linuxppc-embedded
>         But I can not get busybox to output a thing either run as /init o=
r run
> as /bin/sh.
>
>         I have aslo tried /bin/sash - no output.
>         I have even cross compiled sash - with all kinds of "I am here"
> debugging scattered through main(), If I runn it on a powerbook, I get
> what I expect. If I run it as /bin/sh on the e12 I get no output.
>
>
>         Does anyone even have any ideas what I can look at ?
Another thing you may try is to make sure the UART works correctly
with interrupt mode. So set some breakpoints in UART's IRS to see what
happens.
Regards,
-Shawn.
^ permalink raw reply	[flat|nested] 10+ messages in thread 
 
 
end of thread, other threads:[~2006-01-15  9:14 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-08 15:19 Need help for Linux hangs jimmy liu
2005-12-08 16:05 ` Vitaly Bordug
2005-12-08 23:21   ` Wolfgang Denk
2005-12-08 23:19 ` Wolfgang Denk
2006-01-04  7:05   ` Problems starting /init David H. Lynch Jr.
     [not found]     ` <6AD9F6A5F6E096408F0B703773355A070E705B@CHN-SNR-MBX01.wipro.com>
2006-01-15  9:13       ` Problems starting /sbin/init David H. Lynch Jr.
2006-01-04 23:03   ` Problems starting /init David H. Lynch Jr.
2006-01-04 23:20     ` Geoff Thorpe
2006-01-04 23:19   ` RESEND:Problems " David H. Lynch Jr.
2006-01-09 18:45     ` Shawn Jin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).