* EP440XS board boot problem(Note:similart to Sequoia)
@ 2009-12-01 22:38 Allan Wang
2009-12-01 23:10 ` Wolfgang Denk
0 siblings, 1 reply; 5+ messages in thread
From: Allan Wang @ 2009-12-01 22:38 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2096 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: EP440XS board boot problem(Note:similart to Sequoia) 2009-12-01 22:38 EP440XS board boot problem(Note:similart to Sequoia) Allan Wang @ 2009-12-01 23:10 ` Wolfgang Denk 2009-12-02 4:22 ` Allan Wang 0 siblings, 1 reply; 5+ messages in thread From: Wolfgang Denk @ 2009-12-01 23:10 UTC (permalink / raw) To: Allan Wang; +Cc: linuxppc-dev Dear Allan Wang, In message <401793.31718.qm@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: wd@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_ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EP440XS board boot problem(Note:similart to Sequoia) 2009-12-01 23:10 ` Wolfgang Denk @ 2009-12-02 4:22 ` Allan Wang 2009-12-02 20:09 ` Wolfgang Denk 0 siblings, 1 reply; 5+ messages in thread From: Allan Wang @ 2009-12-02 4:22 UTC (permalink / raw) To: Wolfgang Denk; +Cc: linuxppc-dev Hello, Mr Denk,=0A=0AThank you for your help. My answer to your questions a= re between the lines. Attached is the dts file I use.=0A=0ABest regards,=0A= =0AAllan=0A=0A=0A=0A----- Original Message ----=0AFrom: Wolfgang Denk <wd@d= enx.de>=0ATo: Allan Wang <aiyuanwang@yahoo.com>=0ACc: linuxppc-dev@lists.oz= labs.org=0ASent: Tue, December 1, 2009 6:10:22 PM=0ASubject: Re: EP440XS bo= ard boot problem(Note:similart to Sequoia)=0A=0ADear Allan Wang,=0A=0AIn me= ssage <401793.31718.qm@web52903.mail.re2.yahoo.com> you wrote:=0A>=0A> I am= new to the list. I am still newbie to embedded linux. I have=0A> bought an= ep440xs board which is similar to sequoia board. u-boot is=0A> working. I = am trying to make it run linux. I have the following=0A> problems and need = your help. Thank you very much:=0A=0AWhich exact version of U-Boot are you = running on this board?=0A=0A=3D> version=0A=0AU-Boot 1.1.6 (Oct 25 2009 - 1= 3:26:41)=0A=0A=0AI guess this is a out-of-tree port, i. e. not part of the = mainline=0AU-Boot repository - so are you sure that device tree support is= =0Aenabled in your version of U-Boot?=0A=0AThe device tree is not enabled i= n u-boot. I am building cuImage, so the device tree is supported in kernel(= 2.6.30.4).=0A=0A> =0A> I am using linux kernel 2.6.30.4. I encounter 2 prob= lems:=0A> 1. After console_init() is called inside start_kernel(), the cons= ole starts printing garbage like:=0A> Serial: 8250/16550 driver, 4 ports, I= RQ sharing enabled=0A> serial8250.0: ttyS0 at MMIO 0x1ef600300 (irq =3D 16)= is a 16550A=0A> =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF= =BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF= =BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD= =EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=EF=BF=BD=0A...=0A=0A= What is your exact boot command?=0A=0AI tftp the cuImage to address 0x20000= 0 and bootm to boot.=0A=0AWhich boot arguments do you pass to the kernel?= =0A=0Abootargs=3D$(bootargs) console=3DttyS0,$(baudrate)=0A=0AWhat is ytour= console baud rate in U-Boot, and what sort of "console=3D"=0Aboot argument= do you pass to the Linux kernel?=0A=0AThe u-boot sets it to 115.2k. the dt= s file is set to 115.2k. Here is the boot parameter:=0Abaudrate=3D115200=0A= =0AWhat does your device tree look like?=0A=0AI attached my dts file.=0A=0A= > 2. It pakics when mounting the root file system(NFS):=0A> (gdb) bt=0A> #0= panic (fmt=3D0xc0290e94 "VFS: Unable to mount root fs on %s")=0A=0ASo what= is the "%s" argument here? Which sort of root file system are=0Ayou trying= to mount - NFS, ramdisk, UBIFS, ... ?=0A=0AI try to use NFS for the root f= ile system.=0A=0ABest regards,=0A=0AWolfgang Denk=0A=0A-- =0ADENX Software = Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel=0AHRB 165235 Munich= , Office: Kirchenstr.5, D-82194 Groebenzell, Germany=0APhone: (+49)-8142-66= 989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de=0A"He only drinks when he= gets depressed." "Why does he get depressed?"=0A"Sometimes it's because he= hasn't had a drink."=0A - Terry Pratch= ett, _Men at Arms_=0A=0A=0A=0A ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EP440XS board boot problem(Note:similart to Sequoia) 2009-12-02 4:22 ` Allan Wang @ 2009-12-02 20:09 ` Wolfgang Denk 2009-12-13 7:18 ` Allan Wang 0 siblings, 1 reply; 5+ messages in thread From: Wolfgang Denk @ 2009-12-02 20:09 UTC (permalink / raw) To: Allan Wang; +Cc: linuxppc-dev Dear Allan Wang, In message <880531.39933.qm@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 0x200000 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: wd@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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: EP440XS board boot problem(Note:similart to Sequoia) 2009-12-02 20:09 ` Wolfgang Denk @ 2009-12-13 7:18 ` Allan Wang 0 siblings, 0 replies; 5+ messages in thread From: Allan Wang @ 2009-12-13 7:18 UTC (permalink / raw) To: Wolfgang Denk; +Cc: linuxppc-dev [-- Attachment #1: Type: text/plain, Size: 1929 bytes --] 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 200000 $(bootfile);run nfsargs addip addtty;bootm kernel_addr=fe000000 ramdisk_addr=fe180000 load=tftp 0x200000 u-boot.bin update=protect off 0xfff60000 0xffffffff;era 0xfffa0000 0xffffffff;cp.b 0x200000 fffa0000 60000 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 0x100000 0x87788252;mw 0x100004 0x0957a030;mw 0x100008 0x40082350;mw 0x10000c 0x0d050000;eeprom write 0x54 0x100000 0x0 0x10 diags=cp.b 0xFFF40000 0x40000 0x20000;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 [-- Attachment #2: Type: text/html, Size: 2347 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-12-13 7:18 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-12-01 22:38 EP440XS board boot problem(Note:similart to Sequoia) Allan Wang 2009-12-01 23:10 ` Wolfgang Denk 2009-12-02 4:22 ` Allan Wang 2009-12-02 20:09 ` Wolfgang Denk 2009-12-13 7:18 ` Allan Wang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).