Re: EP440XS board boot problem(Note:similart to Sequoia)

2009-12-13 Thread Allan Wang
Hello, Mr. Denk,

I forgot to give you the uboot printenv output.
= printenv
bootcmd=run flash_self
bootdelay=5
baudrate=115200
loads_echo=1
preboot=run setup_phys;echo;echo Type run flash_nfs to mount root filesystem 
over NFS;echo
netdev=eth0
hostname=ep440xs
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
ramargs=setenv bootargs ramdisk=65536 root=/dev/ram rw
addip=setenv bootargs $(bootargs) 
ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off 
panic=1
addtty=setenv bootargs $(bootargs) console=ttyS0,$(baudrate)
flash_nfs=run nfsargs addip addtty;bootm $(kernel_addr)
flash_self=run ramargs addip addtty;bootm $(kernel_addr) $(ramdisk_addr)
net_nfs=tftp 20 $(bootfile);run nfsargs addip addtty;bootm
kernel_addr=fe00
ramdisk_addr=fe18
load=tftp 0x20 u-boot.bin
update=protect off 0xfff6 0x;era 0xfffa 0x;cp.b 
0x20 fffa 6
upd=run load;run update
usbact=hostdev
fixedip=setenv bootargs $(bootargs) 
ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off 
panic=1
dhcp=setenv bootargs $(bootargs) ip=dhcp
initphy=mii w ${phy} 14 e3;mii w ${phy} 18 4101;mii w ${phy} 9 e00;mii w ${phy} 
4 1e1;mii w ${phy} 0 9140;mii w ${phy} 0 1140
setup_phys=setenv phy 0;run initphy;setenv phy 1;run initphy;setenv phy
progee=mw 0x10 0x87788252;mw 0x14 0x0957a030;mw 0x18 0x40082350;mw 
0x1c 0x0d05;eeprom write 0x54 0x10 0x0 0x10
diags=cp.b 0xFFF4 0x4 0x2;go 0x40004
dhcp_user-class-id=u-boot_test
rootpath=/opt/ppc/ppc_4xx
bootfile=cuImage.ep440xs
ipaddr=192.168.0.201
netmask=255.255.255.0
ethaddr=00:01:ec:01:12:83
eth1addr=00:01:ec:81:12:83
ethact=ppc_4xx_eth0
gateway=192.168.0.1
bootargs=$(bootargs) console=ttyS0,$(baudrate)
serverip=192.168.0.196
gatewayip=192.168.0.1
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 1.1.6 (Oct 25 2009 - 13:26:41)

Thanks,

Allan


  ___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: EP440XS board boot problem(Note:similart to Sequoia)

2009-12-02 Thread Wolfgang Denk
Dear Allan Wang,

In message 880531.39933...@web52905.mail.re2.yahoo.com you wrote:
 
 Thank you for your help. My answer to your questions are between the lines.
  Attached is the dts file I use.

No, there is no attachment.

 Which exact version of U-Boot are you running on this board?
 
 = version
 
 U-Boot 1.1.6 (Oct 25 2009 - 13:26:41)

Um... why don't you update? This is really historic stuff...

 What is your exact boot command?
 
 I tftp the cuImage to address 0x20 and bootm to boot.
 
 Which boot arguments do you pass to the kernel?
 
 bootargs=$(bootargs) console=ttyS0,$(baudrate)

Please provide complete answers, and not only the snippets that seem
important to you. For example, what is the $(bootargs) above?

Maybe you provide a full boot log right from reset/power on, including
the output of the printenv command on your system.

 The u-boot sets it to 115.2k. the dts file is set to 115.2k. Here is the bo
 ot parameter:
 baudrate=115200

Arghhh.. Please provide the actual output fdrom your system, not just
some parts you copy.

 What does your device tree look like?
 
 I attached my dts file.

No, it's missing.

  2. It pakics when mounting the root file system(NFS):
  (gdb) bt
  #0 panic (fmt=0xc0290e94 VFS: Unable to mount root fs on %s)
 
 So what is the %s argument here? Which sort of root file system are
 you trying to mount - NFS, ramdisk, UBIFS, ... ?
 
 I try to use NFS for the root file system.

Then you can also run a packet sniffer (like wireshark) to see if any
NFS requests actually get sent to the targte, resp. where it stops).

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
Romulan women are not like Vulcan females. We are  not  dedicated  to
pure logic and the sterility of non-emotion.
-- Romulan Commander, The Enterprise Incident,
   stardate 5027.3
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


EP440XS board boot problem(Note:similart to Sequoia)

2009-12-01 Thread Allan Wang
I resend my message since my last message has wrong coding.


I am new to the list. I am still newbie to embedded linux. I have bought an 
ep440xs board which is similar to sequoia board. u-boot is working. I am trying 
to make it run linux.  I have the following problems and need your help. Thank 
you very much:


I am using linux kernel 2.6.30.4. I encounter 2 problems:
1. After console_init() is called inside start_kernel(), the console starts 
printing garbage like:
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x1ef600300 (irq = 16) is a 16550A
��

�
��
�.
2. It pakics when mounting the root file system(NFS):
(gdb) bt
#0  panic (fmt=0xc0290e94 VFS: Unable to mount root fs on %s)
at kernel/panic.c:70
#1  0xc02d8ce0 in mount_block_root (name=0xc0290de4 /dev/root, flags=0x8001)
at init/do_mounts.c:272
#2  0xc02d9084 in prepare_namespace () at init/do_mounts.c:415
#3  0xc02d81ec in kernel_init (unused=value optimized out) at init/main.c:885
#4  0xc000de60 in kernel_thread ()
There is a patch for Sequoia board to delete /chosen part in sequoia.dts, is 
/chosen required?

Allan



  ___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: EP440XS board boot problem(Note:similart to Sequoia)

2009-12-01 Thread Wolfgang Denk
Dear Allan Wang,

In message 401793.31718...@web52903.mail.re2.yahoo.com you wrote:

 I am new to the list. I am still newbie to embedded linux. I have
 bought an ep440xs board which is similar to sequoia board. u-boot is
 working. I am trying to make it run linux. I have the following
 problems and need your help. Thank you very much:

Which exact version of U-Boot are you running on this board?

I guess this is a out-of-tree port, i. e. not part of the mainline
U-Boot repository - so are you sure that device tree support is
enabled in your version of U-Boot?
 
 I am using linux kernel 2.6.30.4. I encounter 2 problems:
 1. After console_init() is called inside start_kernel(), the console starts 
 printing garbage like:
 Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
 serial8250.0: ttyS0 at MMIO 0x1ef600300 (irq = 16) is a 16550A
 ������������������������������
...

What is your exact boot command?

Which boot arguments do you pass to the kernel?

What is ytour console baud rate in U-Boot, and what sort of console=
boot argument do you pass to the Linux kernel?

What does your device tree look like?


 2. It pakics when mounting the root file system(NFS):
 (gdb) bt
 #0 panic (fmt=0xc0290e94 VFS: Unable to mount root fs on %s)

So what is the %s argument here? Which sort of root file system are
you trying to mount - NFS, ramdisk, UBIFS, ... ?

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
He only drinks when he gets depressed. Why does he get depressed?
Sometimes it's because he hasn't had a drink.
 - Terry Pratchett, _Men at Arms_
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


Re: EP440XS board boot problem(Note:similart to Sequoia)

2009-12-01 Thread Allan Wang
Hello, Mr Denk,

Thank you for your help. My answer to your questions are between the lines. 
Attached is the dts file I use.

Best regards,

Allan



- Original Message 
From: Wolfgang Denk w...@denx.de
To: Allan Wang aiyuanw...@yahoo.com
Cc: linuxppc-dev@lists.ozlabs.org
Sent: Tue, December 1, 2009 6:10:22 PM
Subject: Re: EP440XS board boot problem(Note:similart to Sequoia)

Dear Allan Wang,

In message 401793.31718...@web52903.mail.re2.yahoo.com you wrote:

 I am new to the list. I am still newbie to embedded linux. I have
 bought an ep440xs board which is similar to sequoia board. u-boot is
 working. I am trying to make it run linux. I have the following
 problems and need your help. Thank you very much:

Which exact version of U-Boot are you running on this board?

= version

U-Boot 1.1.6 (Oct 25 2009 - 13:26:41)


I guess this is a out-of-tree port, i. e. not part of the mainline
U-Boot repository - so are you sure that device tree support is
enabled in your version of U-Boot?

The device tree is not enabled in u-boot. I am building cuImage, so the device 
tree is supported in kernel(2.6.30.4).

 
 I am using linux kernel 2.6.30.4. I encounter 2 problems:
 1. After console_init() is called inside start_kernel(), the console starts 
 printing garbage like:
 Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
 serial8250.0: ttyS0 at MMIO 0x1ef600300 (irq = 16) is a 16550A
 ������������������������������
...

What is your exact boot command?

I tftp the cuImage to address 0x20 and bootm to boot.

Which boot arguments do you pass to the kernel?

bootargs=$(bootargs) console=ttyS0,$(baudrate)

What is ytour console baud rate in U-Boot, and what sort of console=
boot argument do you pass to the Linux kernel?

The u-boot sets it to 115.2k. the dts file is set to 115.2k. Here is the boot 
parameter:
baudrate=115200

What does your device tree look like?

I attached my dts file.

 2. It pakics when mounting the root file system(NFS):
 (gdb) bt
 #0 panic (fmt=0xc0290e94 VFS: Unable to mount root fs on %s)

So what is the %s argument here? Which sort of root file system are
you trying to mount - NFS, ramdisk, UBIFS, ... ?

I try to use NFS for the root file system.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
He only drinks when he gets depressed. Why does he get depressed?
Sometimes it's because he hasn't had a drink.
 - Terry Pratchett, _Men at Arms_



  
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev


ep440xs board boot problem

2009-11-30 Thread Allan Wang
Hello, All,

I am new to the list. I am still newbie to embedded linux. I have bought an 
ep440xs board which is similar to sequoia board. u-boot is working. I am trying 
to make it run linux.  I have the following problems and need your help. Thank 
you very much:


I am using linux kernel 2.6.30.4. I encounter 2 problems:
1. After console_init() is called inside start_kernel(), the console starts 
printing garbage like:
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x1ef600300 (irq = 16) is a 16550A
��

�
��
�.
2. It pakics when mounting the root file system(NFS):
(gdb) bt
#0  panic (fmt=0xc0290e94 VFS: Unable to mount root fs on %s)
at kernel/panic.c:70
#1  0xc02d8ce0 in mount_block_root (name=0xc0290de4 /dev/root, flags=0x8001)
at init/do_mounts.c:272
#2  0xc02d9084 in prepare_namespace () at init/do_mounts.c:415
#3  0xc02d81ec in kernel_init (unused=value optimized out) at init/main.c:885
#4  0xc000de60 in kernel_thread ()
There is a patch for Sequoia board to delete /chosen part in sequoia.dts, is 
/chosen required?

Allan



  
___
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev