public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] mpc8260 serial console works under uboot, but not under linux
@ 2006-03-14 15:28 jfaslist
  2006-03-14 15:54 ` Stephan Linz
  2006-03-14 17:50 ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: jfaslist @ 2006-03-14 15:28 UTC (permalink / raw)
  To: u-boot

Hi,
We have ported u-boot on  a mpc8260 based design of ours.
We try to boot linux on it (built with TQM8260_defconfig), as a 
first step. But when we use the u-boot "bootm" command to boot 
linux from flash,  we get nothing displayed after the kernel is 
uncompressed and jumped into. I know there is a FAQ:
http://www.denx.de/wiki/view/DULG/LinuxHangsAfterUncompressingKernel
But I don't think it applies as using the BDI2000 we can trace 
the kernel running all the way until around the point where it 
starts the init process.
We were surprised to see that a "make uImage" would use the 
vmlinux.gz kernel (linked at 0xc000.0000) and not the 
zImage.elf(linked at 0x0040.0000), which includes the files in 
arch/ppc/boot/simple.
The serial console is initialized and handled in 
./arch/ppc/boot/simple/m8260_tty.c, and we suspect that since 
this is not included in vmlinux, that is the reason why we don't 
see any messages.
Should we try to somehow add it to vmlinux (if this is possible)?

I know this is not the list, but why is the linux make file is 
generating these two different files? My guess is that zImage is 
for systems with no u-boot bootloader.
Thanks a lot,
-jf simon



[bmc at Linux188 linux-2.6.15.1]$ make
   CHK     include/linux/version.h
   CHK     include/linux/compile.h
   CHK     usr/initramfs_list
   UIMAGE  arch/ppc/boot/images/uImage
Image Name:   Linux-2.6.15.1
Created:      Tue Mar 14 07:01:49 2006
Image Type:   PowerPC Linux Kernel Image (gzip compressed)
Data Size:    869873 Bytes = 849.49 kB = 0.83 MB
Load Address: 0x00000000
Entry Point:  0x00000000
   Image: arch/ppc/boot/images/uImage is ready
   AS      arch/ppc/boot/simple/head.o
   AS      arch/ppc/boot/simple/relocate.o
   CC      arch/ppc/boot/simple/misc-embedded.o
   CC      arch/ppc/boot/simple/embed_config.o
arch/ppc/boot/simple/embed_config.c:29: warning: 'bdinfo' defined 
but not used
arch/ppc/boot/simple/embed_config.c:415: warning: 'clk_8260' 
defined but not use
d
arch/ppc/boot/simple/embed_config.c:457: warning: 'clk_8280' 
defined but not use
d
   CC      arch/ppc/boot/simple/m8260_tty.o
ppc_6xx-objcopy -O elf32-powerpc \
         --add-section=.image=arch/ppc/boot/images/vmlinux.gz \
 
--set-section-flags=.image=contents,alloc,load,readonly,data \
         arch/ppc/boot/simple/dummy.o arch/ppc/boot/simple/image.o
ppc_6xx-ld -m elf32ppc -T 
/home/bmc/tools/eldk4.0/ppc_6xx/usr/src/linux-2.6.15.1
/arch/ppc/boot/ld.script -Ttext 0x00400000 -Bstatic -o 
arch/ppc/boot/simple/zvml
inux arch/ppc/boot/simple/head.o arch/ppc/boot/simple/relocate.o 
arch/ppc/boot/s
imple/misc-embedded.o arch/ppc/boot/simple/embed_config.o 
arch/ppc/boot/simple/m
8260_tty.o arch/ppc/boot/simple/image.o 
arch/ppc/boot/common/lib.a arch/ppc/boot
/lib/lib.a
ppc_6xx-objcopy -O elf32-powerpc arch/ppc/boot/simple/zvmlinux 
arch/ppc/boot/sim
ple/zvmlinux -R .comment -R .stab \
         -R .stabstr -R .ramdisk
cp -f arch/ppc/boot/simple/zvmlinux arch/ppc/boot/images/zImage.elf
rm -f arch/ppc/boot/simple/zvmlinux
   Building modules, stage 2.
   MODPOST
[bmc at Linux188 linux-2.6.15.1]$


	

	
		
___________________________________________________________________________ 
Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.
T?l?chargez sur http://fr.messenger.yahoo.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] mpc8260 serial console works under uboot, but not under linux
  2006-03-14 15:28 [U-Boot-Users] mpc8260 serial console works under uboot, but not under linux jfaslist
@ 2006-03-14 15:54 ` Stephan Linz
  2006-03-14 16:24   ` jfaslist
  2006-03-14 17:50 ` Wolfgang Denk
  1 sibling, 1 reply; 4+ messages in thread
From: Stephan Linz @ 2006-03-14 15:54 UTC (permalink / raw)
  To: u-boot

Am Dienstag, 14. M??rz 2006 16:28 schrieb jfaslist:
> Hi,
> We have ported u-boot on  a mpc8260 based design of ours.
> We try to boot linux on it (built with TQM8260_defconfig), as a
> first step. But when we use the u-boot "bootm" command to boot
> linux from flash,  we get nothing displayed after the kernel is
> uncompressed and jumped into.

Hi,

is there a VGA adapter in your system with linux driver support enabled? If 
yes, you have to use the kernel parameter 'console=device,options' to use a 
serial port as console ... see linux/Documentation/serial-console.txt


best regards,
Stephan Linz


> I know there is a FAQ: 
> http://www.denx.de/wiki/view/DULG/LinuxHangsAfterUncompressingKernel
> But I don't think it applies as using the BDI2000 we can trace
> the kernel running all the way until around the point where it
> starts the init process.
> We were surprised to see that a "make uImage" would use the
> vmlinux.gz kernel (linked at 0xc000.0000) and not the
> zImage.elf(linked at 0x0040.0000), which includes the files in
> arch/ppc/boot/simple.
> The serial console is initialized and handled in
> ./arch/ppc/boot/simple/m8260_tty.c, and we suspect that since
> this is not included in vmlinux, that is the reason why we don't
> see any messages.
> Should we try to somehow add it to vmlinux (if this is possible)?
>
> I know this is not the list, but why is the linux make file is
> generating these two different files? My guess is that zImage is
> for systems with no u-boot bootloader.
> Thanks a lot,
> -jf simon
>
>
>
> [bmc at Linux188 linux-2.6.15.1]$ make
>    CHK     include/linux/version.h
>    CHK     include/linux/compile.h
>    CHK     usr/initramfs_list
>    UIMAGE  arch/ppc/boot/images/uImage
> Image Name:   Linux-2.6.15.1
> Created:      Tue Mar 14 07:01:49 2006
> Image Type:   PowerPC Linux Kernel Image (gzip compressed)
> Data Size:    869873 Bytes = 849.49 kB = 0.83 MB
> Load Address: 0x00000000
> Entry Point:  0x00000000
>    Image: arch/ppc/boot/images/uImage is ready
>    AS      arch/ppc/boot/simple/head.o
>    AS      arch/ppc/boot/simple/relocate.o
>    CC      arch/ppc/boot/simple/misc-embedded.o
>    CC      arch/ppc/boot/simple/embed_config.o
> arch/ppc/boot/simple/embed_config.c:29: warning: 'bdinfo' defined
> but not used
> arch/ppc/boot/simple/embed_config.c:415: warning: 'clk_8260'
> defined but not use
> d
> arch/ppc/boot/simple/embed_config.c:457: warning: 'clk_8280'
> defined but not use
> d
>    CC      arch/ppc/boot/simple/m8260_tty.o
> ppc_6xx-objcopy -O elf32-powerpc \
>          --add-section=.image=arch/ppc/boot/images/vmlinux.gz \
>
> --set-section-flags=.image=contents,alloc,load,readonly,data \
>          arch/ppc/boot/simple/dummy.o arch/ppc/boot/simple/image.o
> ppc_6xx-ld -m elf32ppc -T
> /home/bmc/tools/eldk4.0/ppc_6xx/usr/src/linux-2.6.15.1
> /arch/ppc/boot/ld.script -Ttext 0x00400000 -Bstatic -o
> arch/ppc/boot/simple/zvml
> inux arch/ppc/boot/simple/head.o arch/ppc/boot/simple/relocate.o
> arch/ppc/boot/s
> imple/misc-embedded.o arch/ppc/boot/simple/embed_config.o
> arch/ppc/boot/simple/m
> 8260_tty.o arch/ppc/boot/simple/image.o
> arch/ppc/boot/common/lib.a arch/ppc/boot
> /lib/lib.a
> ppc_6xx-objcopy -O elf32-powerpc arch/ppc/boot/simple/zvmlinux
> arch/ppc/boot/sim
> ple/zvmlinux -R .comment -R .stab \
>          -R .stabstr -R .ramdisk
> cp -f arch/ppc/boot/simple/zvmlinux arch/ppc/boot/images/zImage.elf
> rm -f arch/ppc/boot/simple/zvmlinux
>    Building modules, stage 2.
>    MODPOST
> [bmc at Linux188 linux-2.6.15.1]$
>
>
>
>
>
>
> ___________________________________________________________________________
> Nouveau : t??l??phonez moins cher avec Yahoo! Messenger ! D??couvez les tarifs
> exceptionnels pour appeler la France et l'international. T??l??chargez sur
> http://fr.messenger.yahoo.com
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live
> webcast and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users

-- 
Mit freundlichen Gruessen
Stephan Linz



=========================================================================
Stephan Linz
Softwareentwicklung

MAZeT GmbH                   Email: mailto:linz at mazet.de
G?schwitzer Str. 32          Tel. : (3641) 2809-55
D-07745 Jena                 Fax  : (3641) 2809-12

Besuchen Sie bitte unsere Web-Seiten: http://www.MAZeT.de
=========================================================================
pub  1024D/958C74A7 2004-08-04 Stephan Linz <linz@mazet.de>
     Key fingerprint = 49B7 9706 04FD 9540 C863 DECB B59F 7974 958C 74A7
=========================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] mpc8260 serial console works under uboot, but not under linux
  2006-03-14 15:54 ` Stephan Linz
@ 2006-03-14 16:24   ` jfaslist
  0 siblings, 0 replies; 4+ messages in thread
From: jfaslist @ 2006-03-14 16:24 UTC (permalink / raw)
  To: u-boot

Hi,
No, we don't use any graphic. We want the console on smc0.
Thanks,
-jfs

Stephan Linz wrote:

>Am Dienstag, 14. M??rz 2006 16:28 schrieb jfaslist:
>  
>
>>Hi,
>>We have ported u-boot on  a mpc8260 based design of ours.
>>We try to boot linux on it (built with TQM8260_defconfig), as a
>>first step. But when we use the u-boot "bootm" command to boot
>>linux from flash,  we get nothing displayed after the kernel is
>>uncompressed and jumped into.
>>    
>>
>
>Hi,
>
>is there a VGA adapter in your system with linux driver support enabled? If 
>yes, you have to use the kernel parameter 'console=device,options' to use a 
>serial port as console ... see linux/Documentation/serial-console.txt
>
>
>best regards,
>Stephan Linz
>
>
>  
>
>>I know there is a FAQ: 
>>http://www.denx.de/wiki/view/DULG/LinuxHangsAfterUncompressingKernel
>>But I don't think it applies as using the BDI2000 we can trace
>>the kernel running all the way until around the point where it
>>starts the init process.
>>We were surprised to see that a "make uImage" would use the
>>vmlinux.gz kernel (linked at 0xc000.0000) and not the
>>zImage.elf(linked at 0x0040.0000), which includes the files in
>>arch/ppc/boot/simple.
>>The serial console is initialized and handled in
>>./arch/ppc/boot/simple/m8260_tty.c, and we suspect that since
>>this is not included in vmlinux, that is the reason why we don't
>>see any messages.
>>Should we try to somehow add it to vmlinux (if this is possible)?
>>
>>I know this is not the list, but why is the linux make file is
>>generating these two different files? My guess is that zImage is
>>for systems with no u-boot bootloader.
>>Thanks a lot,
>>-jf simon
>>
>>
>>
>>[bmc at Linux188 linux-2.6.15.1]$ make
>>   CHK     include/linux/version.h
>>   CHK     include/linux/compile.h
>>   CHK     usr/initramfs_list
>>   UIMAGE  arch/ppc/boot/images/uImage
>>Image Name:   Linux-2.6.15.1
>>Created:      Tue Mar 14 07:01:49 2006
>>Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>>Data Size:    869873 Bytes = 849.49 kB = 0.83 MB
>>Load Address: 0x00000000
>>Entry Point:  0x00000000
>>   Image: arch/ppc/boot/images/uImage is ready
>>   AS      arch/ppc/boot/simple/head.o
>>   AS      arch/ppc/boot/simple/relocate.o
>>   CC      arch/ppc/boot/simple/misc-embedded.o
>>   CC      arch/ppc/boot/simple/embed_config.o
>>arch/ppc/boot/simple/embed_config.c:29: warning: 'bdinfo' defined
>>but not used
>>arch/ppc/boot/simple/embed_config.c:415: warning: 'clk_8260'
>>defined but not use
>>d
>>arch/ppc/boot/simple/embed_config.c:457: warning: 'clk_8280'
>>defined but not use
>>d
>>   CC      arch/ppc/boot/simple/m8260_tty.o
>>ppc_6xx-objcopy -O elf32-powerpc \
>>         --add-section=.image=arch/ppc/boot/images/vmlinux.gz \
>>
>>--set-section-flags=.image=contents,alloc,load,readonly,data \
>>         arch/ppc/boot/simple/dummy.o arch/ppc/boot/simple/image.o
>>ppc_6xx-ld -m elf32ppc -T
>>/home/bmc/tools/eldk4.0/ppc_6xx/usr/src/linux-2.6.15.1
>>/arch/ppc/boot/ld.script -Ttext 0x00400000 -Bstatic -o
>>arch/ppc/boot/simple/zvml
>>inux arch/ppc/boot/simple/head.o arch/ppc/boot/simple/relocate.o
>>arch/ppc/boot/s
>>imple/misc-embedded.o arch/ppc/boot/simple/embed_config.o
>>arch/ppc/boot/simple/m
>>8260_tty.o arch/ppc/boot/simple/image.o
>>arch/ppc/boot/common/lib.a arch/ppc/boot
>>/lib/lib.a
>>ppc_6xx-objcopy -O elf32-powerpc arch/ppc/boot/simple/zvmlinux
>>arch/ppc/boot/sim
>>ple/zvmlinux -R .comment -R .stab \
>>         -R .stabstr -R .ramdisk
>>cp -f arch/ppc/boot/simple/zvmlinux arch/ppc/boot/images/zImage.elf
>>rm -f arch/ppc/boot/simple/zvmlinux
>>   Building modules, stage 2.
>>   MODPOST
>>[bmc at Linux188 linux-2.6.15.1]$
>>
>>
>>
>>
>>    
>>


	

	
		
___________________________________________________________________________ 
Nouveau : t?l?phonez moins cher avec Yahoo! Messenger ! D?couvez les tarifs exceptionnels pour appeler la France et l'international.
T?l?chargez sur http://fr.messenger.yahoo.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot-Users] mpc8260 serial console works under uboot, but not under linux
  2006-03-14 15:28 [U-Boot-Users] mpc8260 serial console works under uboot, but not under linux jfaslist
  2006-03-14 15:54 ` Stephan Linz
@ 2006-03-14 17:50 ` Wolfgang Denk
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2006-03-14 17:50 UTC (permalink / raw)
  To: u-boot

In message <4416E11D.6060807@yahoo.fr> you wrote:
>
> We have ported u-boot on  a mpc8260 based design of ours.
> We try to boot linux on it (built with TQM8260_defconfig), as a 

This is off topic here. Please post to a Linux related list.

But I can tell you so much: just chosing a random board configuration
and hoping it would work is always a pretty reliable way  for  a  big
disappointment. You actually have to *port* Linux to your hardware.

> We were surprised to see that a "make uImage" would use the 
> vmlinux.gz kernel (linked at 0xc000.0000) and not the 
> zImage.elf(linked at 0x0040.0000), which includes the files in 
> arch/ppc/boot/simple.

Why are you surprised? 

> The serial console is initialized and handled in 
> ./arch/ppc/boot/simple/m8260_tty.c, and we suspect that since 
> this is not included in vmlinux, that is the reason why we don't 
> see any messages.

You misunderstand. The Linux bootstrap  loader  is  never  used  with
U-Boot.

> Should we try to somehow add it to vmlinux (if this is possible)?

Don't.

> I know this is not the list, but why is the linux make file is 
> generating these two different files? My guess is that zImage is 
> for systems with no u-boot bootloader.

Right.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"If you are afraid of loneliness, don't marry."             - Chekhov

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-14 17:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-14 15:28 [U-Boot-Users] mpc8260 serial console works under uboot, but not under linux jfaslist
2006-03-14 15:54 ` Stephan Linz
2006-03-14 16:24   ` jfaslist
2006-03-14 17:50 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox