question about big initrd

2004-02-02 Thread Yuxiao Xi

Hi,all
I have trouble with big ramdisk when I port mvl-2.1(liux kernel
2.4.17) to my board with cpu mpc8240, which has 128Mbyte SDRAM.
I configure the linux kernel to support initrd and set initrd size
as 20480(kbytes). When the actual size of my total ramdisk files is
about 11Mbytes,the system boots up smoothly; but when the actual size
of the total files is greater than 15Mbytes,the system fails to boot
up and tells me "ramdisk invalid compressed format" or "crc error" or
"incomplete write", and so on.
Any suggestion?
Thanks in advance.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





Can not see any infomation on the console when using U-Boot 1.0.0 booting my board

2003-12-06 Thread Yuxiao Xi

hi,
   I am now porting U-Boot 1.0.0 to my custumized board with mpc8240.
My reference board is Sandpoint X2.
   First I created my u-boot.bin for Sandpoint X2 as following:
   $make Sandpoint8240_config
   $make all
and Sandpoint X2 was booted smoothly.
   Then I modified the serial port information in
~~/u-boot1.0.0/include/configs/sandpoint8240.h because the serial port
address on my board is different from that on Sandpoint X2. Below are my
modification:

#define CFG_NS16550_CLK 2400 /* 1843200 */

#define CFG_NS16550_COM10xff60 /*(CFG_ISA_IO + 
CFG_NS87308_UART1_BASE)*/
#define CFG_NS16550_COM20xff600040 /*(CFG_ISA_IO + 
CFG_NS87308_UART2_BASE)*/

Other parameters are not modified.

After "make" and "burn u-boot.bin in flash" I reset my board
and I saw nothing on my console:(
Any suggestion? Thanks in advance.

Yuxiao Xi
2003-12-06

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





dhcp help!

2003-11-05 Thread Yuxiao Xi

li
   Yes,I think that I configure the dhcp server correctly. I let one PC
to dynamically obtain IP address from the DHCP server I configured and
it got one smoothly from the server. Then I use 'ethereal' to capture
packets,and the result showed that "dhcp discover" packets and "dhcp
offer" packets were all correct.

>did you configure the dpcpd in the host properly?
>>
>> Can anyone tell me where the mumber in_device *ip_ptr of the
>> struct net_device is initialized?
>> I enable the DHCP and BOOTP kernel configurations,but I can not
>> boot my kernel successfully!
>> The target sent dhcp discover message packet to the host
>> server,and the host server replied it with a dhcp offer message
>> packet.The target's ethernet card received the dhcp offer packet
>> and sent it to the IP protocol stack correctly.But the network
>> layer dropped the packet!I traced the packet receive process
>> and found that when the function ip_rcv_finish() was called,it
>> called the function ip_route_input(),then ip_route_input() called
>> ip_route_input_slow(),then ip_route_input() called in_device *in_dev
>> = in_dev_get(dev) which returned NULL! the source code of the
>> function in_dev_get(dev) is shown below:
>>
>> static __inline__ struct in_device *
>> in_dev_get(const struct net_device *dev)
>> {
>>  struct in_device *in_dev;
>>
>>  read_lock(&inetdev_lock);
>>  in_dev = dev->ip_ptr;
>>  if (in_dev)
>>  atomic_inc(&in_dev->refcnt);
>>  read_unlock(&inetdev_lock);
>>  return in_dev;
>> }
>>
>> I checked the kernel startup code and I found that when the
>> target dynamicly went to obtain its IP address,and when function
>> in_dev_get(dev) was called,the mumber in_device *ip_ptr of the struct
>> net_device *dev had not been initialized. I am confused by this
>> trouble.Is DHCP really used as I described? Did I make any mistake?
>>
>> BTW: I use montavista linux 2.1

Yuxiao Xi
xiyuxiao at harbournetworks.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





question about KGDB for sandpoint with MPC8240

2003-10-14 Thread Yuxiao Xi

Hi,
Where can I find a KGDB patch to support kernel debugging MontaVista
2.1 for sandpoint with MPC8240? I selected "CONFIG_KGDB" when do "make
xconfig",but KGDB seemed not to work. I stole file gen550_kgdb.c and
gen550_dbg.c from linux-2.6.0, but KGDB seemed not to work yet.

????????Yuxiao Xi
xiyuxiao at harbournetworks.com
2003-10-14

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





UART prints very slow

2003-09-30 Thread Yuxiao Xi

Hello,all,
I am developing my board with CPU MPC8240 and a UART ST16C2552.
I use MontaVista Linux 2.1. Now I have successfully logged in the
shell.But there is a question that I can't resolve:( I am sure that the
UART is successfully initialized except that ST16C2552 is detected as
ST16650.I debugged the UART interrupt and the printk info showed that it
was OK.

QUESTION: when I input commands such as 'ls', 'cd /dev' on the shell,
the characters of these commands are printed very slow on the screen
and the command execution results as well. I think these commands and
their execution results are printed through UART interrupt.Is MPC8240
interrupt ACK so slow? BTW: while system booting,the UART prints very
quickly in polling print mode.

Yuxiao Xi
xiyuxiao at harbournetworks.com
2003-09-30

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





question about UART ST16C2552

2003-09-19 Thread Yuxiao Xi

Yes,I have an external DUART ST16C2552.
Kumar,should ST16C2552 be detected as 16550A?
When and where can I get the patch for the on-chip UART you said?
Thanks.

> -Original Message-
> From: Kumar Gala [mailto:kumar.gala at motorola.com]
>Thanks for the correction.  I guess my comments really apply to 8241,
>8245 and 8540 then.
>
>On Thursday, September 18, 2003, at 11:23 AM, Milliorn Gary-rxcr80 wrote:
>
>>  There is no DUART on the MPC8240, if 8240 is what he literally
>> meant. Some boards, like Unity, used to have an external DUART
>> for this reason.
>>
>> > -Original Message-
>> > From: Kumar Gala [mailto:kumar.gala at motorola.com]
>> > Sent: Thursday, September 18, 2003 11:01 AM
>> > Subject: Re: question about UART ST16C2552
>> >
>> > For 824x the detection code for the on-chip UART does NOT currently
>> > detect it as a 16550A.? There is a patch that Tom Rini and I are
>> > working on getting accepted by the serial maintainers, that should
>> > fix this.
>> >
>> > However, its not clear to me from your email if you also have a
>> > ST16C2552 in addition to the DUART on the 8240.

Yuxiao Xi
xiyuxiao at harbournetworks.com
2003-09-19

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





question about UART ST16C2552

2003-09-18 Thread Yuxiao Xi

Hi,all,
Does Linux support UART ST16C2552 ?
There is a UART ST16C2552 on my board with CPU ppc8240.
While the linux system booting,sometimes function autoconfig(struct
serial_state * state) in ./drivers/char/serial.c detected ST16C2552 as
16450,sometimes as 8250,can anyone tell me why?

Yuxiao Xi
xiyuxiao at harbournetworks.com
2003-09-18

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





DINK32 R13.1 on Sandpoint X2

2003-09-05 Thread Yuxiao Xi

hi,
I succeed in downloading my linux kernel image using DINK32 r13.1
tftp function to my Sandpoint X2 board. Before I used ftp servers which
need user name and password and I could not download anything.Today I
use Cisco ftp server which needs nothing and I succeed.

But there are another question yet: when I use command 'ping', to
ping my target from the host,I get info:destination address unreachable
to ping my host from the target??It's OK why?

>We have an 8139 and have successfully downloaded and run a kernel with
>DINK version 13.1.1.  I didn't do it but the instructions sent from the
>person who did are:
>
>To download via the network, DINK uses fixed IP
>address and Realtek8139 NIC. The steps are:
>
>1. do "ppr" verify NIC card has been identified vendor/device ID as
>10EC/8139
>2. do "env IO=COM1:9600 at 100, Then "reset".
>3. do "ni -i " to set up your network parameters.  For example:
>
> DINK32[MPC7457] {1} >>ni
> NETWORK INFORMATION
>   PCI CARD
> Type 8139/10EC on slot 16
>
>   SETTINGS
> SERVER(TFTP) : 192.168.  1.  1
> GATEWAY  : 192.168.  1.  1
> NETMASK  : 255.255.255.  0
> DHCP : 192.168.  1.  1
> CLIENT(DINK) : 192.168.  1.  7
>
>   DHCP: Disabled
>   SESSION TIMEOUT: Never
>
>4. set up you tftp server at host side
>5. The download command is "dl -nw -b -o80 -fzImage.sandpoint"
>6. "go 81"
>
>You can change IP addr, image name, to fit your setup.
>
>As far as differences in the X2 vs. X3, yes there are important
>differences.  Does DINK v13.1.1 run successfully & download via the
>network successfully on an X2?  I don't know, you'll have to figure that
>out for yourself or talk to Motorola.
>
>> From the mailing lists,I know that someone use DINK32's tftp
>>download function to download his image successfully on a Sandpoint X3
>>board.Is there any important differences between Sandpoint X3 and X2
>>board so that I can not use the DINK32's tftp function on X2 board?
>>
>>=== 2003-09-03 11:04:00 ??===
>>
>>>On Tue, Sep 02, 2003 at 05:22:08PM +0800, Yuxiao Xi wrote:
>>>
>>>>Now I'm working on a Motorola Sandpoint X2 board with ppc8240.
>>>>I use DINK32 r13.1 to boot my linux kernel image. From DINK32 r13.1
>>>>user manual,I know that DINK32 r13.1 supports ethernet card Realtek
>>>>8139,but after these steps:
>>>>
>>>What I would suggest is that instead of using the ethernet card
>>>support, you use the serial support still. DINK32 r13.0.0 and newer
>>>support 115200 baud, so loading a kernel via serial is now much less
>>>painful than it used to be.

= = = = = = = = = = = = = = = = = = = =

Yuxiao Xi
xiyuxiao at harbournetworks.com
2003-09-05

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





DINK32 R13.1 on Sandpoint X2

2003-09-04 Thread Yuxiao Xi

Hi,Tom,
 From the mailing lists,I know that someone use DINK32's tftp
download function to download his image successfully on a Sandpoint X3
board.Is there any important differences between Sandpoint X3 and X2
board so that I can not use the DINK32's tftp function on X2 board?

=== 2003-09-03 11:04:00 ??===

>On Tue, Sep 02, 2003 at 05:22:08PM +0800, Yuxiao Xi wrote:
>
>> Now I'm working on a Motorola Sandpoint X2 board with ppc8240.
>> I use DINK32 r13.1 to boot my linux kernel image. From DINK32 r13.1
>> user manual,I know that DINK32 r13.1 supports ethernet card Realtek
>> 8139,but after these steps:
>
>What I would suggest is that instead of using the ethernet card
>support, you use the serial support still. DINK32 r13.0.0 and newer
>support 115200 baud, so loading a kernel via serial is now much less
>painful than it used to be.

= = = = = = = = = = = = = = = = = = = =

Yuxiao Xi
xiyuxiao at harbournetworks.com
2003-09-04

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





DINK32 R13.1 on Sandpoint X2

2003-09-02 Thread Yuxiao Xi

Hi,all,
Now I'm working on a Motorola Sandpoint X2 board with ppc8240.
I use DINK32 r13.1 to boot my linux kernel image.
From DINK32 r13.1 user manual,I know that DINK32 r13.1 supports
ethernet card Realtek 8139,but after these steps:
   DINK32[MPC8240] {7} >>ni -i
some configrations..

   DINK32[MPC7455] {8} >>ni
   NETWORK INFORMATION
PCI CARD
Type 8139/10EC on slot 16
SETTINGS
SERVER(TFTP) : 10. 18.15.27
GATEWAY : 10. 18.15.254
NETMASK : 255.255.255. 0
DHCP : 0. 0. 0. 0
CLIENT(DINK) : 10. 18.15.201
DHCP: Disabled
SESSION TIMEOUT: Never

 Then I reset the system,but the Tealtek 8139 seems not to work correctly!:(
 I ping the board from my host computer with OS Redhat linux 9.0,but I can't
 get any response!
 Can anyone help me?

????Yuxiao Xi
xiyuxiao at harbournetworks.com
2003-09-02

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/