Looking for Help booting Kernel
Hi,
I am trying to boot the latest kernel for a MPC5200B based board from DENX. I built the latest UBoot which seems to run fine on my board.
With the new uboot, my same environment variables, I can still boot my old kernel.
U-Boot 1.3.0-rc2-dirty (Sep 24 2007 - 08:08:49)
CPU: MPC5200 v1.2, Core v1.1 at 462 MHz
Bus 132 MHz, IPB 132 MHz, PCI 33 MHz Board: MyBoard MPC5200 Controller I2C: 343 kHz, ready DRAM: 128 MB FLASH: 64 MB In: serial Out: serial Err: serial Net: FEC ETHERNET IDE: Bus 0: not available
Type "run net_nfs" to mount root filesystem over NFS
Hit any key to stop autoboot: 0
Using FEC ETHERNET device
TFTP from server 192.168.100.102; our IP address is 192.168.100.11 Filename 'uImage'.
Load address: 0x200000
Loading: #################################################################
############################################# done Bytes transferred = 1612360 (189a48 hex) ## Booting image at 00200000 ... Image Name: Linux-2.6.19.2 Created: 2007-09-21 8:11:59 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1612296 Bytes = 1.5 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:setio
MMU:exitsetup_arch: entersetup_arch: bootmem
arch: exit
Linux version 2.6.19.2 (nick at nick_lnx) (gcc version 4.0.0 (DENX ELDK 4.1
4.0.0)) \
#5 Fri Sep 21 04:11:50 EDT 2007Zone PFN ranges:
DMA 0 -> 32768
Normal 32768 -> 32768
early_node_map[1] active PFN ranges
0: 0 -> 32768
Built 1 zonelists. Total pages: 32512
Kernel command line: root=/dev/nfs rw
nfsroot=192.168.100.102:/opt/eldk/ppc_6xx \
ip=192.168.100.11:192.168.100.102:192.168.100.102:255.255.255.0:\
MyBoard:eth0:off console=ttyPSC0,115200 panic=1PID hash table entries: 512 (order: 9, 2048 bytes) I-pipe 1.5-00: pipeline enabled.
Console: colour dummy device 80x25
... and the kernel runs fine. With the latest kernel from Denx, I get the following:
U-Boot 1.3.0-rc2-dirty (Sep 24 2007 - 08:08:49)
CPU: MPC5200 v1.2, Core v1.1 at 462 MHz
Bus 132 MHz, IPB 132 MHz, PCI 33 MHz Board: MyBoard MPC5200 Controller I2C: 343 kHz, ready DRAM: 128 MB FLASH: 64 MB In: serial Out: serial Err: serial Net: FEC ETHERNET IDE: Bus 0: not available
Type "run net_nfs" to mount root filesystem over NFS
Hit any key to stop autoboot: 0
=> boot
Using FEC ETHERNET device
TFTP from server 192.168.100.102; our IP address is 192.168.100.11 Filename 'uImage'.
Load address: 0x200000
Loading: #################################################################
################## done Bytes transferred = 1212323 (127fa3 hex) ## Booting image at 00200000 ... Image Name: Linux-2.6.23-rc6-gea60adb5-dirty Created: 2007-09-26 9:53:02 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1212259 Bytes = 1.2 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Is there anything special I need to pass to the kernel for setting up the console on the MPC5200B? I had to change ttyS0 to ttyPSC0 for the old console to work. Is there anything I need to enable inside the kernel?
The kernel command line is:
root=/dev/nfs rw nfsroot=192.168.100.102:/opt/eldk/ppc_6xx \
ip=192.168.100.11:192.168.100.102:192.168.100.102:255.255.255.0:\
MyBoard:eth0:off console=ttyPSC0,115200 panic=1Many thanks,
Nick
Quoted 4 lines · In message <[email protected]> you wrote:
Is there anything special I need to pass to the kernel for setting up the console on the MPC5200B? I had to change ttyS0 to ttyPSC0 for the old console to work. Is there anything I need to enable inside the kernel?
What are you talking about - is this an arch/ppc or an arch/powerpc configuration? If you use an arch/powerpc configuration, you have to pass a device tree to Linux, too.
Best regards,
Wolfgang Denk
Signature · 4 lines
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 The universe is all a spin-off of the Big Bang.
[U-Boot-Users] Looking for Help booting Kernel - part 2
Quoted 7 lines · Wolfgang Denk
Quoted 4 lines · In message <[email protected]> you wrote:
Is there anything special I need to pass to the kernel for setting up the console on the MPC5200B? I had to change ttyS0 to ttyPSC0 for the old console to work. Is there anything I need to enable inside the kernel?
Quoted 10 lines
What are you talking about - is this an
arch/ppcor anarch/powerpcconfiguration? If you use anarch/powerpcconfiguration, you have to pass a device tree to Linux, too.Best regards,
Wolfgang Denk
Yes this is a arch/powerpc configuration. I got the device tree compiler, copied/configured a .dts file for my board and compiled it to a .dtb file.
I still don't see any output on my console.
Here are the commands from uboot:
Hit any key to stop autoboot: 0
=> tftp 00800000 myboard.dtb
Using FEC ETHERNET device
TFTP from server 192.168.100.102; our IP address is 192.168.100.11 Filename 'myboard.dtb'.
Load address: 0x800000
Loading: #
done
Bytes transferred = 12288 (3000 hex)
=> fdt addr 00800000 3000
=> fdt boardsetup
=> tftp 00200000 uImage
Using FEC ETHERNET device
TFTP from server 192.168.100.102; our IP address is 192.168.100.11 Filename 'uImage'.
Load address: 0x200000
Loading: #################################################################
##################
done
Bytes transferred = 1212322 (127fa2 hex)
=> bootm 00200000 - 00800000
## Booting image at 00200000 ...
Image Name: Linux-2.6.23-rc6-gea60adb5-dirty Created: 2007-09-26 23:21:49 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 1212258 Bytes = 1.2 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Booting using the fdt at 0x800000
Loading Device Tree to 007fc000, end 007fefff ... OK
I enclosed my .dts file as well
Thanks again,
Nick
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: myboard.dts
Url: http://lists.denx.de/pipermail/u-boot/attachments/20070927/7a7c959e/attachment.txt