RE: [U-Boot-Users] u-boot & linux kernel help on mpc860

Hi wofgang Just a note to say that my kernel is not hanging anymore. The problem i belive was down to the u-boot IMMR config and the TQM860L immr value.
As I mentioned before i am using some custom hardware. In the linux source there is a configuraiton for the platform. How can this be expanded to allow custom hardware do you have any idea ? Editing say for example tqm8xx.h for custom hardware seems undesirable.
Now i just have to get the PHY configured and a root FS. :)
thanks again Steve gray
-- Original Message -- From: Steve Gray steve.gray@westell.co.uk To: "U-Boot-Users (E-mail)" u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] u-boot & linux kernel help on mpc860 Date: Wed, 10 Dec 2003 09:37:15 -0000
Hi everyone. This is my first post onto this mailing list, so please forgive me in advance if i am not following the correct protocol with posts and such.
I have u-boot working it seems almost 100%, however i have a problem with starting the linux kernel using bootm.
I am using eldk 2.1.0 patched upto 2.2.0. Linux_2_4_devel cvs (snapshot 09/12/03) Hardware setup Flash Base address 0xa00000000 -> 0xa1000000 ( AMD29LV640 x2 16-bit wide) SDRAM 0x00000000 -> 0x01000000 Serial SMC1 @ 38k4 Net FEC
I can tftp the uImage into RAM, then cp.b into flash. This process is fine. But when running the image bootm command, it seems not to continue.
## Booting image at a0100000 ... Image Name: Linux-2.4.23 Created: 2003-12-09 16:44:24 UTC Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 637255 Bytes = 622.3 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK
From this point everything stops. There is no more output and the console is not responding to anything I have what i believe to be the correct environment.
baudrate=38400 ethaddr=00:a0:13:00:0a:8c preboot=echo;echo clocks_in_mhz=1 kernel_addr=a0100000 bootargs=root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) ip=$(ipaddr):$(serveri p):$(gatewayip):$(netmask):$(hostname)::off bootcmd=bootm a0100000 filesize=9b949 ipaddr=168.10.10.6 serverip=168.10.1.240 stdin=serial stdout=serial stderr=serial
Environment size: 340/4092 bytes
I have a number of questions about the interaction with u-boot and the kernel, which i am hoping can be answered.
Does the kernel require configuration for custom hardware ? By custom hardware i mean not an off shelf the standard development board. How does the kernel find out the flash base address. serial port is running at 38k4 on smc1, the FEC is to be used. IP address etc etc ?
This depends on the actual hardware. Parameters like IP address, flash base address or baudrate are passed via info structure to Linux, basically what is listed with "=> bdinfo". Serial ports and ethernet configuration is defined via Linux kernel parameters (make config).
Wolfgang.

Dear Steve,
in message 2E6FE17ED9336449B70E4AC6C5CF50020591E6@TBSMAIL you wrote:
Just a note to say that my kernel is not hanging anymore.
Congratulations.
The problem i belive was down to the u-boot IMMR config and the TQM860L immr value.
I think this is mentioned in the FAQ section, too.
As I mentioned before i am using some custom hardware. In the linux source there is a configuraiton for the platform. How can this be expanded to allow custom hardware do you have any idea ? Editing say for example tqm8xx.h for custom hardware seems undesirable.
Add your own board support definitions and files.
Now i just have to get the PHY configured and a root FS. :)
The root FS is simple: install/use the ELDK.
Best regards,
Wolfgang Denk
participants (2)
-
Steve Gray
-
Wolfgang Denk