mpc8260 serial console works under uboot, but not under linux
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 usedarch/ppc/boot/simple/embed_config.c:415: warning: 'clk_8260' defined but not use
darch/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/simple/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
Am Dienstag, 14. M??rz 2006 16:28 schrieb jfaslist:
Quoted 6 lines
Hi,
We have ported u-boot on a mpc8260 based design of ours. We try to boot linux on it (built withTQM8260_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
Quoted 96 lines
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 thezImage.elf(linked at 0x0040.0000), which includes the files inarch/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 usedarch/ppc/boot/simple/embed_config.c:415: warning: 'clk_8260' defined but not use
darch/ppc/boot/simple/embed_config.c:457: warning: 'clk_8280' defined but not use
d
CCarch/ppc/boot/simple/m8260_tty.oppc_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.oarch/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 -Ttext0x00400000-Bstatic -oarch/ppc/boot/simple/zvml
inuxarch/ppc/boot/simple/head.oarch/ppc/boot/simple/relocate.oarch/ppc/boot/simple/misc-embedded.oarch/ppc/boot/simple/embed_config.oarch/ppc/boot/simple/m
8260_tty.oarch/ppc/boot/simple/image.oarch/ppc/boot/common/lib.aarch/ppc/boot/lib/lib.a
ppc_6xx-objcopy -O elf32-powerpcarch/ppc/boot/simple/zvmlinuxarch/ppc/boot/sim
ple/zvmlinux -R .comment -R .stab \
-R .stabstr -R .ramdisk
cp -farch/ppc/boot/simple/zvmlinuxarch/ppc/boot/images/zImage.elfrm -farch/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
Signature · 18 lines
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 <[email protected]> Key fingerprint = 49B7 9706 04FD 9540 C863 DECB B59F 7974 958C 74A7 =========================================================================
Hi,
No, we don't use any graphic. We want the console on smc0. Thanks,
-jfs
Quoted 14 lines · Stephan Linz
Am Dienstag, 14. M??rz 2006 16:28 schrieb jfaslist:
Quoted 8 lines
Hi,
We have ported u-boot on a mpc8260 based design of ours. We try to boot linux on it (built withTQM8260_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,
Quoted 90 lines
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.txtbest regards,
Stephan LinzQuoted 79 lines
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 thezImage.elf(linked at 0x0040.0000), which includes the files inarch/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 usedarch/ppc/boot/simple/embed_config.c:415: warning: 'clk_8260' defined but not use
darch/ppc/boot/simple/embed_config.c:457: warning: 'clk_8280' defined but not use
d
CCarch/ppc/boot/simple/m8260_tty.oppc_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.oarch/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 -Ttext0x00400000-Bstatic -oarch/ppc/boot/simple/zvml
inuxarch/ppc/boot/simple/head.oarch/ppc/boot/simple/relocate.oarch/ppc/boot/simple/misc-embedded.oarch/ppc/boot/simple/embed_config.oarch/ppc/boot/simple/m
8260_tty.oarch/ppc/boot/simple/image.oarch/ppc/boot/common/lib.aarch/ppc/boot/lib/lib.a
ppc_6xx-objcopy -O elf32-powerpcarch/ppc/boot/simple/zvmlinuxarch/ppc/boot/sim
ple/zvmlinux -R .comment -R .stab \
-R .stabstr -R .ramdisk
cp -farch/ppc/boot/simple/zvmlinuxarch/ppc/boot/images/zImage.elfrm -farch/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
Quoted 3 lines · In message <[email protected]> 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.
Quoted 4 lines
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 inarch/ppc/boot/simple.
Why are you surprised?
Quoted 4 lines
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.
Quoted 1 line
Should we try to somehow add it to vmlinux (if this is possible)?
Don't.
Quoted 3 lines
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
Signature · 3 lines
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