Skip to contentSkip to conversation

Need help booting linux on 8265 eval board

U-Boot-Users   2 participants 2 messages Apr 19, 2004

lore
Share & tools
lore

 

author
#0 lore raw

hello,Mr Wolfgang
thanks for your reply. I think i should describe the problem clearly.

First i explain why i modified the uboot/linux default values. I'm a
graduate student. the board is designed by my schoolfellow(the board use 8265,but it is very like the board MPC8266ADS-PCI-AI), but this board is not supported by uboot, I must modify the configuration of sdram,IMMR and some other registers(from motorola datasheet). now the uboot looks running well(it can read/write flash/sdram, scc and fcc is also working), but when i boot the linux kernel, i meet the problem. i think i must let imap_addr(linux kernel)=IMMR(uboot), so I modify some default values.
Now I want to know why linux mapped at 0xC0000000 , the uboot say "##
Transferring control to Linux (at address 00000000) ...", so KERNELLOAD should be 0xc0000000 or 0x00000000?
and if I use linux kernel 2.4.20, CONFIG_CLOCKS_IN_MHZ should be 0 or
1?

Best regards,
liu ming
liutomorrow at hotmail.com

Quoted 9 lines

From: Wolfgang Denk <[email protected]>
To:   <[email protected]>
CC: u-boot-users at lists.sourceforge.net
Subject: Re: [U-Boot-Users] Need help booting linux on 8265 eval board
Date: Sun, 18 Apr 2004 17:10:53 +0200

Quoted 2 lines · In message <[email protected]> you wrote:

I have problem booting linux on 8265 eval board. when I boot the

linux

Quoted 2 lines
Quoted 2 lines

kernel, the board be dead. the registers look like to be some default values(use powertap pro). I try u-boot1.1,

ppcboot1.1.5;

Quoted 19 lines

Be careful. User the default values as defined in U-Boot and Linux, and DON'T change these unless you know EXACTLY what you are doing.

Quoted 2 lines

vim Makefile, arch=ppc CROSS_COMPILE=ppc_82xx
vim arch/ppc/platforms/ads826x.h, IMAP_ADDR=0x04700000 BCSR=0x04500000

This cannot work. Please leave the mapping as defined by U-Boot and Linux.

Quoted 4 lines

then the board is dead and the LED(FCC link) coruscate . (I have modified clock calculations for this board. it's the reason?) any ideas? thanks a lot!

You seem to modify a lot of stuff without konwing exactly why - don;t do this. The default values are there for a reason - they are known to work.

Best regards,

Quoted 10 lines

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de "There are three principal ways to lose money: wine, women, and engi- neers. While the first two are more pleasant, the third is by far the
more certain." - Baron Rothschild, ca. 1800

Quoted 1 line

Hi,

I have problem booting linux on 8265 eval board. when I boot the linux
kernel, the board be dead. the registers look like

to be some default values(use powertap pro). I try u-boot1.1, ppcboot1.1.5; linux kernel 2.4.4 2.4.18 2.4.20.

(1)about kernel
vim Makefile, arch=ppc CROSS_COMPILE=ppc_82xx
vim arch/ppc/platforms/ads826x.h, IMAP_ADDR=0x04700000 BCSR=0x04500000 then make mrproper/make ads826x_config/make oldconfig/make dep/make pImage (bd info struct is quite same between uboot and linux)

Is there anything I had ignored?

(2)let's see!(I add some "printf" to display values, "console=ttyS0,9600" is added)
=> bootm ffa00000 ffc00000
## Booting image at ffa00000 ...

   Image Name:   Linux-2.4.20-pre7ncsd1
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    634729 Bytes = 619 kB = 0 MB

Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
## Current stack ends at 0x03F7FC48 => set upper limit to 0x00800000 ## cmdline at 0x007FFF00 ... 0x007FFF23

memstart    = 0x00000000
memsize     = 0x04000000
flashstart  = 0xFF800000
flashsize   = 0x00800000
flashoffset = 0x00000000
sramstart   = 0x00000000
sramsize    = 0x00000000
immr_base   = 0x04700000
bootflags   = 0x00000001
vco         = 266.666 MHz
sccfreq     = 66.666 MHz
brgfreq     = 16.666 MHz
intfreq     = 166.666 MHz
cpmfreq     = 133.333 MHz
busfreq     = 33.333 MHz
ethaddr     = 00:10:EC:00:30:8C
IP addr     = 8.6.0.1
baudrate    =   9600 bps
## Loading RAMDisk Image at ffc00000 ...
   Image Name:   Simple Ramdisk-Image
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    567988 Bytes = 554 kB = 0 MB

Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## initrd at 0xFFC00040 ... 0xFFC8AAF3 (len=567988=0x8AAB4)
Loading Ramdisk to 03ef4000, end 03f7eab4 ... OK
## Transferring control to Linux (at address 00000000) ...

then the board is dead and the LED(FCC link) coruscate . (I have modified clock calculations for this board. it's the reason?) any ideas? thanks a lot!

--
liu

Quoted 1 line
Quoted 1 line

liutomorrow at hotmail.com

_________________________________________________________________
???? MSN Explorer: http://explorer.msn.com/lccn/

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

thanks for your reply. I think i should describe the problem clearly.

Indeed.

Quoted 8 lines

First i explain why i modified the uboot/linux default values. I'm a
graduate student. the board is designed by my schoolfellow(the board use 8265,but it is very like the board MPC8266ADS-PCI-AI), but this board is not supported by uboot, I must modify the configuration of sdram,IMMR and some other registers(from motorola datasheet). now the uboot looks running well(it can read/write flash/sdram, scc and fcc is also working), but when i boot the linux kernel, i meet the problem. i think i must let imap_addr(linux kernel)=IMMR(uboot), so I modify some default values.

Correct. But when you change somethiung, you better understand what you change, and why, and how.

You must not try mapping the IMMR at such a low address. See
http://www.denx.de/twiki/bin/view/PPCEmbedded/Kernel#Section_10.2.
for some description about the Linux kernel's memory map.

Quoted 3 lines

Now I want to know why linux mapped at 0xC0000000 , the uboot say "##
Transferring control to Linux (at address 00000000) ...", so KERNELLOAD should be 0xc0000000 or 0x00000000?

Don;t even think of changing KERNELLOAD or things like that unless you really understand what's going on. Both 0x00000000 and 0xc0000000 are correct addresses - one being a physical one, the other a vrirtual one.

Quoted 2 lines

and if I use linux kernel 2.4.20, CONFIG_CLOCKS_IN_MHZ should be 0 or
1?

Neither 0 nor 1. It must be undefined.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Minds are like parachutes - they only function when open.