* Xilinx BSP for linux 2.6
2006-06-30 19:52 Xilinx SystemACE driver for 2.6 Ameet Patil
@ 2006-07-06 12:49 ` Ming Liu
2006-07-06 13:31 ` Ameet Patil
0 siblings, 1 reply; 10+ messages in thread
From: Ming Liu @ 2006-07-06 12:49 UTC (permalink / raw)
To: ammubhai; +Cc: linuxppc-embedded
Dear Ameet,
Now I am using your patch for SystemACE in Linux 2.6. My linux version is
2.6.16-rc5 and I have applied the patch for SystemACE and Temac.
When I generate BSP in EDK, how can I implement it in my linux kernel? I
know the EDK BSP is for Linux 2.4 and the directory stucture is the same as
2.4(e.g. arch/ppc/platform/xilinx_ocp/......) But in 2.6, the directory
tree is different and I cannot simply copy and replace the original files
there. Also, there is a file called xparameters_ml403.h in Linux kernel but
in BSP there is only xparameters_ml300.h. Shall I rename the
xparameters_ml300 as ml403, or configure the board as ml300 in menuconfig?
In these xparameters files, the peripheral addresses are defined. How can I
include these xparameters defination in the kernel? It looks complicate and
you didn't mention how to replace these files in your article. So if you
can provide some guidance, I will appreciate a lot because it will save me
much time.
By the way, I am still waiting for the last part of your article. Where are
they? :)
Thanks for your help.
Regards
Ming
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Xilinx BSP for linux 2.6
2006-07-06 12:49 ` Xilinx BSP for linux 2.6 Ming Liu
@ 2006-07-06 13:31 ` Ameet Patil
0 siblings, 0 replies; 10+ messages in thread
From: Ameet Patil @ 2006-07-06 13:31 UTC (permalink / raw)
Cc: linuxppc-embedded
Hi Ming,
I DONOT have a ML403 with me. But does Xilinx EDK generate
xparameters_ml300.h in the BSP instead of xparameters_ml403.h for the
ML403 board?
Anyway, for linux 2.6 theres no xilinx_ocp directory in the code tree.
You need to just copy the xparameters_ml300.h file (if that is what
xilinx EDK generates) as xparameters_ml403.h in
arch/ppc/platforms/4xx/xparameters/ folder. Configure the kernel as ML403.
Like I said to you before, if you want to get started quickly and
without much headache.. then please go step-by-step. Try the things I
mention in the article PART I without applying any patches.
http://www.linux.get2knowmore.com/2006/06/30/quick-guide-linux-26-on-xilinx-virtex-ii-pro-boards-part-i/
Then if your kernel boots and shows some messages, it would be much
easier to relate to problems after applying patches.
Please DONOT hesitate to ask further clarifications!
-Ameet
Ming Liu wrote:
> Dear Ameet,
> Now I am using your patch for SystemACE in Linux 2.6. My linux version
> is 2.6.16-rc5 and I have applied the patch for SystemACE and Temac.
> When I generate BSP in EDK, how can I implement it in my linux kernel? I
> know the EDK BSP is for Linux 2.4 and the directory stucture is the same
> as 2.4(e.g. arch/ppc/platform/xilinx_ocp/......) But in 2.6, the
> directory tree is different and I cannot simply copy and replace the
> original files there. Also, there is a file called xparameters_ml403.h
> in Linux kernel but in BSP there is only xparameters_ml300.h. Shall I
> rename the xparameters_ml300 as ml403, or configure the board as ml300
> in menuconfig? In these xparameters files, the peripheral addresses are
> defined. How can I include these xparameters defination in the kernel?
> It looks complicate and you didn't mention how to replace these files in
> your article. So if you can provide some guidance, I will appreciate a
> lot because it will save me much time.
> By the way, I am still waiting for the last part of your article. Where
> are they? :)
>
> Thanks for your help.
>
> Regards
> Ming
>
> _________________________________________________________________
> 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Xilinx BSP for linux 2.6
[not found] <44AD108A.8050802@gmail.com>
@ 2006-07-06 14:04 ` Ming Liu
2006-07-06 14:40 ` Ameet Patil
0 siblings, 1 reply; 10+ messages in thread
From: Ming Liu @ 2006-07-06 14:04 UTC (permalink / raw)
To: ammubhai; +Cc: linuxppc-embedded
Dear Ameet,
> I DONOT have a ML403 with me. But does Xilinx EDK generate
>xparameters_ml300.h in the BSP instead of xparameters_ml403.h for the
>ML403 board?
Yes. EKD only generates ml300.h instead of ml403.h, although you specify
the platform is ML403.
>You need to just copy the xparameters_ml300.h file (if that is what
>xilinx EDK generates) as xparameters_ml403.h in
>arch/ppc/platforms/4xx/xparameters/ folder. Configure the kernel as ML403.
I don't think so. I have looked into these two files. I found that there
are many differences between them. Not only the addresses for each
peripheral are different, but also the parameters' names. So If we just
simply copy ml300.h file as ml403.h, many parameters will be undefined.
>Like I said to you before, if you want to get started quickly and
>without much headache.. then please go step-by-step. Try the things I
>mention in the article PART I without applying any patches.
Thanks for your suggestion. I will start from the beginning.
>Please DONOT hesitate to ask further clarifications!
It is really like a big family in the Linux world because of the help among
the persons. Thanks for all the help from the friends in Linux world!
Regards
Ming
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Xilinx BSP for linux 2.6
2006-07-06 14:04 ` Xilinx BSP for linux 2.6 Ming Liu
@ 2006-07-06 14:40 ` Ameet Patil
2006-07-07 11:46 ` Ming Liu
0 siblings, 1 reply; 10+ messages in thread
From: Ameet Patil @ 2006-07-06 14:40 UTC (permalink / raw)
To: Ming Liu; +Cc: linuxppc-embedded
Hi Ming,
If your Xilinx EDK generates the xparameters_ml300.h file for the
ML403 board then it has been configured with the right parameters and
address required by Linux. Don't look at the existing
xparameters_ml403.h file in the kernel source. It has got too many
parameters with address initializations that might not suit you at all.
I think its safe to copy the ml300.h onto ml403.h. I tried it... the
kernel compiles without any problems.
-Ameet
Ming Liu wrote:
> Dear Ameet,
>
>> I DONOT have a ML403 with me. But does Xilinx EDK generate
>> xparameters_ml300.h in the BSP instead of xparameters_ml403.h for the
>> ML403 board?
>
> Yes. EKD only generates ml300.h instead of ml403.h, although you specify
> the platform is ML403.
>
>
>> You need to just copy the xparameters_ml300.h file (if that is what
>> xilinx EDK generates) as xparameters_ml403.h in
>> arch/ppc/platforms/4xx/xparameters/ folder. Configure the kernel as
>> ML403.
>
> I don't think so. I have looked into these two files. I found that there
> are many differences between them. Not only the addresses for each
> peripheral are different, but also the parameters' names. So If we just
> simply copy ml300.h file as ml403.h, many parameters will be undefined.
>> Like I said to you before, if you want to get started quickly and
>> without much headache.. then please go step-by-step. Try the things I
>> mention in the article PART I without applying any patches.
>
> Thanks for your suggestion. I will start from the beginning.
>> Please DONOT hesitate to ask further clarifications!
>
> It is really like a big family in the Linux world because of the help
> among the persons. Thanks for all the help from the friends in Linux world!
>
> Regards
> Ming
>
> _________________________________________________________________
> 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Xilinx BSP for linux 2.6
2006-07-06 14:40 ` Ameet Patil
@ 2006-07-07 11:46 ` Ming Liu
2006-07-07 12:42 ` Ameet Patil
0 siblings, 1 reply; 10+ messages in thread
From: Ming Liu @ 2006-07-07 11:46 UTC (permalink / raw)
To: ammubhai; +Cc: linuxppc-embedded
Dear Ameet,
A good news is that now my 2.6 kernel is running in my ML403 board!
According your guidance, first I made the kernel as simple as possible and
it works well. Then I included the patch for SystemACE and here is the
information shown on the hyper teminal:
Linux/PPC load: console=ttyS0,9600 root=/dev/xsa3
[ 0.000148] Console: colour dummy device 80x25
[ 0.000919] Dentry cache hash table entries: 16384 (order: 4, 65536
bytes)
[ 0.002277] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.012802] Memory: 63104k available (1340k kernel code, 384k data, 76k
init,
0k highmem)
[ 0.230310] Mount-cache hash table entries: 512
[ 0.238305] VFS: Disk quotas dquot_6.5.1
[ 0.238516] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.238817] JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
[ 0.239435] JFS: nTxBlock = 493, nTxLock = 3944
[ 0.241883] Initializing Cryptographic API
[ 0.241940] io scheduler noop registered (default)
[ 0.322864] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ
sharing
disabled
[ 0.324759] serial8250.0: ttyS0 at MMIO 0x40401003 (irq = 1) is a 16550A
[ 1.653644] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024
bloc
ksize
[ 1.745079] loop: loaded (max 8 devices)
[ 1.793392] xsa: xsa1 xsa2 xsa3
[ 1.839262] mice: PS/2 mouse device common for all mice
[ 1.935059] VFS: Mounted root (ext2 filesystem) readonly.
[ 2.000037] Freeing unused kernel memory: 76k init
[ 2.075656] Warning: unable to open an initial console.
I use xsa3 as the partition to store the file system. Now the file system
is the old one for my 2.4 kernel generated by busybox. Then I think that's
why the problem "unable to open an initial console" is generated. Do you
have some suggestion on how to solve it? Thanks for your opinion.
Also, when I compile the kernel, there is a error. That's in adapter.c
file, undefined reference to "XAssert". I checked the source code and found
that the function of XAssert is defined in the file xbasic_types.c, not the
xbasic_types.h. So it cannot be included into adapter.c. And also in the
makefile there is no dependency on xbasic_types.c. So I added the
defination for this function in adapter.c, copying it from xbasic_types.c.
It then worked well.
Waiting for your guidance. You know, an expert's opinion is always useful
for a novice, like me. :)
Regards
Ming
_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Xilinx BSP for linux 2.6
2006-07-07 11:46 ` Ming Liu
@ 2006-07-07 12:42 ` Ameet Patil
2006-07-07 13:56 ` Ming Liu
0 siblings, 1 reply; 10+ messages in thread
From: Ameet Patil @ 2006-07-07 12:42 UTC (permalink / raw)
To: Ming Liu; +Cc: linuxppc-embedded
Hi Ming,
Excellent News!
Don't worry... the problem you are facing could be because of missing
device files in your /dev folder.
Do as follows:
mount the CF card onto your PC and then goto the /dev folder on your
root filesystem in the card. Here run the following commands as root:
# mknod -m 660 console c 5 1
# mknod -m 660 xsa b 254 0
# mknod -m 660 xsa1 b 254 1
# mknod -m 660 xsa2 b 254 2
# mknod -m 660 xsa3 b 254 3
Now there should be a directory tts in your dev. If not create one
"mkdir tts". Then do this in the dev/tts folder,
# mknod -m 660 0 b 4 64
> Also, when I compile the kernel, there is a error. That's in adapter.c
> file, undefined reference to "XAssert". I checked the source code and
I think you have the old patch. If you download the new one, the
compilation problem should not occur. But you resolved it yourself,...
which is good.
Let me know if this works. I shall add this stuff in PART II of the article.
-Ameet
Ming Liu wrote:
> Dear Ameet,
> A good news is that now my 2.6 kernel is running in my ML403 board!
> According your guidance, first I made the kernel as simple as possible
> and it works well. Then I included the patch for SystemACE and here is
> the information shown on the hyper teminal:
>
>
> Linux/PPC load: console=ttyS0,9600 root=/dev/xsa3 [ 0.000148]
> Console: colour dummy device 80x25
> [ 0.000919] Dentry cache hash table entries: 16384 (order: 4, 65536
> bytes)
> [ 0.002277] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
> [ 0.012802] Memory: 63104k available (1340k kernel code, 384k data,
> 76k init,
> 0k highmem)
> [ 0.230310] Mount-cache hash table entries: 512
> [ 0.238305] VFS: Disk quotas dquot_6.5.1
> [ 0.238516] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> [ 0.238817] JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
> [ 0.239435] JFS: nTxBlock = 493, nTxLock = 3944
> [ 0.241883] Initializing Cryptographic API
> [ 0.241940] io scheduler noop registered (default)
> [ 0.322864] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ
> sharing
> disabled
> [ 0.324759] serial8250.0: ttyS0 at MMIO 0x40401003 (irq = 1) is a 16550A
> [ 1.653644] RAMDISK driver initialized: 16 RAM disks of 65536K size
> 1024 bloc
> ksize
> [ 1.745079] loop: loaded (max 8 devices)
> [ 1.793392] xsa: xsa1 xsa2 xsa3
> [ 1.839262] mice: PS/2 mouse device common for all mice
> [ 1.935059] VFS: Mounted root (ext2 filesystem) readonly.
> [ 2.000037] Freeing unused kernel memory: 76k init
> [ 2.075656] Warning: unable to open an initial console.
>
> I use xsa3 as the partition to store the file system. Now the file
> system is the old one for my 2.4 kernel generated by busybox. Then I
> think that's why the problem "unable to open an initial console" is
> generated. Do you have some suggestion on how to solve it? Thanks for
> your opinion.
> Also, when I compile the kernel, there is a error. That's in adapter.c
> file, undefined reference to "XAssert". I checked the source code and
> found that the function of XAssert is defined in the file
> xbasic_types.c, not the xbasic_types.h. So it cannot be included into
> adapter.c. And also in the makefile there is no dependency on
> xbasic_types.c. So I added the defination for this function in
> adapter.c, copying it from xbasic_types.c. It then worked well.
> Waiting for your guidance. You know, an expert's opinion is always
> useful for a novice, like me. :)
>
> Regards
> Ming
>
> _________________________________________________________________
> 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Xilinx BSP for linux 2.6
2006-07-07 12:42 ` Ameet Patil
@ 2006-07-07 13:56 ` Ming Liu
0 siblings, 0 replies; 10+ messages in thread
From: Ming Liu @ 2006-07-07 13:56 UTC (permalink / raw)
To: ammubhai; +Cc: linuxppc-embedded
Dear Ameet,
It Works now! By creating these character and block devices in /dev, the
system go further now. But another problem appears. That is, there is no
login prompt shown in hyper terminal. The information is listed as:
[ 1.745076] loop: loaded (max 8 devices)
[ 1.793385] xsa: xsa1 xsa2 xsa3
[ 1.839258] mice: PS/2 mouse device common for all mice
[ 1.925011] VFS: Mounted root (ext2 filesystem) readonly.
[ 1.990035] Freeing unused kernel memory: 76k init
Welcome to ML403 powerpc linux 2.6.16-rc5, E.I.S. edition
Starting system...
mounting /proc: done.
Mounting '/' read-write: mount: Cannot read /etc/mtab: No such file or
directory
done.
brining up loopback interface: ifconfig: socket: Function not implemented
done.
Mounting /tmp: done.
Starting syslogd: done.
Starting klogd: syslogd: Couldn't get file descriptor for socket /dev/log:
Funct
ion not implemented
done.
Starting inetd: done.
System started.
My inittab files looks like:
::sysinit:/etc/init.d/rcS
#::askfirst:-/bin/sh
::ctrlaltdel:/sbin/reboot
::shutdown:/sbin/swapoff -a
::shutdown:/bin/umount -a -r
::restart:/sbin/init
::respawn:/sbin/getty 9600 tts/0
Any suggestion about this problem? Thanks in advance.
Regards
Ming
>From: Ameet Patil <ammubhai@gmail.com>
>To: Ming Liu <eemingliu@hotmail.com>
>CC: linuxppc-embedded@ozlabs.org
>Subject: Re: Xilinx BSP for linux 2.6
>Date: Fri, 07 Jul 2006 13:42:42 +0100
>
>Hi Ming,
>
>Excellent News!
>
>Don't worry... the problem you are facing could be because of missing
>device files in your /dev folder.
>
>Do as follows:
>mount the CF card onto your PC and then goto the /dev folder on your
>root filesystem in the card. Here run the following commands as root:
># mknod -m 660 console c 5 1
># mknod -m 660 xsa b 254 0
># mknod -m 660 xsa1 b 254 1
># mknod -m 660 xsa2 b 254 2
># mknod -m 660 xsa3 b 254 3
>Now there should be a directory tts in your dev. If not create one
>"mkdir tts". Then do this in the dev/tts folder,
># mknod -m 660 0 b 4 64
>
> > Also, when I compile the kernel, there is a error. That's in adapter.c
> > file, undefined reference to "XAssert". I checked the source code and
>I think you have the old patch. If you download the new one, the
>compilation problem should not occur. But you resolved it yourself,...
>which is good.
>
>Let me know if this works. I shall add this stuff in PART II of the
article.
>
>-Ameet
>
>Ming Liu wrote:
> > Dear Ameet,
> > A good news is that now my 2.6 kernel is running in my ML403 board!
> > According your guidance, first I made the kernel as simple as possible
> > and it works well. Then I included the patch for SystemACE and here is
> > the information shown on the hyper teminal:
> >
> >
> > Linux/PPC load: console=ttyS0,9600 root=/dev/xsa3 [ 0.000148]
> > Console: colour dummy device 80x25
> > [ 0.000919] Dentry cache hash table entries: 16384 (order: 4, 65536
> > bytes)
> > [ 0.002277] Inode-cache hash table entries: 8192 (order: 3, 32768
bytes)
> > [ 0.012802] Memory: 63104k available (1340k kernel code, 384k data,
> > 76k init,
> > 0k highmem)
> > [ 0.230310] Mount-cache hash table entries: 512
> > [ 0.238305] VFS: Disk quotas dquot_6.5.1
> > [ 0.238516] Dquot-cache hash table entries: 1024 (order 0, 4096
bytes)
> > [ 0.238817] JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
> > [ 0.239435] JFS: nTxBlock = 493, nTxLock = 3944
> > [ 0.241883] Initializing Cryptographic API
> > [ 0.241940] io scheduler noop registered (default)
> > [ 0.322864] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ
> > sharing
> > disabled
> > [ 0.324759] serial8250.0: ttyS0 at MMIO 0x40401003 (irq = 1) is a
16550A
> > [ 1.653644] RAMDISK driver initialized: 16 RAM disks of 65536K size
> > 1024 bloc
> > ksize
> > [ 1.745079] loop: loaded (max 8 devices)
> > [ 1.793392] xsa: xsa1 xsa2 xsa3
> > [ 1.839262] mice: PS/2 mouse device common for all mice
> > [ 1.935059] VFS: Mounted root (ext2 filesystem) readonly.
> > [ 2.000037] Freeing unused kernel memory: 76k init
> > [ 2.075656] Warning: unable to open an initial console.
> >
> > I use xsa3 as the partition to store the file system. Now the file
> > system is the old one for my 2.4 kernel generated by busybox. Then I
> > think that's why the problem "unable to open an initial console" is
> > generated. Do you have some suggestion on how to solve it? Thanks for
> > your opinion.
> > Also, when I compile the kernel, there is a error. That's in adapter.c
> > file, undefined reference to "XAssert". I checked the source code and
> > found that the function of XAssert is defined in the file
> > xbasic_types.c, not the xbasic_types.h. So it cannot be included into
> > adapter.c. And also in the makefile there is no dependency on
> > xbasic_types.c. So I added the defination for this function in
> > adapter.c, copying it from xbasic_types.c. It then worked well.
> > Waiting for your guidance. You know, an expert's opinion is always
> > useful for a novice, like me. :)
> >
> > Regards
> > Ming
> >
> > _________________________________________________________________
> > 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
> >
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Xilinx BSP for linux 2.6
[not found] <BAY110-F2E51F50D2158DF44D3820B2740@phx.gbl>
@ 2006-07-07 15:55 ` Ameet Patil
2006-07-08 15:17 ` Kernel hangs after "Now booting the kernel" Ming Liu
0 siblings, 1 reply; 10+ messages in thread
From: Ameet Patil @ 2006-07-07 15:55 UTC (permalink / raw)
To: Ming Liu; +Cc: linuxppc-embedded
Its the same link as before! I just updated the file!
http://www.cs.york.ac.uk/rtslab/demos/amos/xupv2pro/patches/linuxppc-2.6.17_sysace.patch
-Ameet
Ming Liu wrote:
> Dear Ameet,
> Could you please give me a copy of your new driver for SystemACE?
> Regards
> Ming
>
>
>> From: Ameet Patil <ammubhai@gmail.com>
>> To: Ming Liu <eemingliu@hotmail.com>
>> Subject: Re: Xilinx BSP for linux 2.6
>> Date: Fri, 07 Jul 2006 15:17:31 +0100
>>
>> Thats right! Sorry about the error! :-)
>>
>> Good luck with TEMAC!
>>
>> -Ameet
>>
>> Ming Liu wrote:
>> > Dear Ameet,
>> > OK. I found the problem. tts/0 should be a char device, not a block
> one.
>> > so it should be c not b. I neglected that and just copied your
> commands. :)
>> >
>> > Next, I will try to implement the Temac driver. If any information, I
>> > will let you know.
>> >
>> > Regards
>> > Ming
>> >
>> >
>> >> From: Ameet Patil <ammubhai@gmail.com>
>> >> To: Ming Liu <eemingliu@hotmail.com>
>> >> CC: linuxppc-embedded@ozlabs.org
>> >> Subject: Re: Xilinx BSP for linux 2.6
>> >> Date: Fri, 07 Jul 2006 13:42:42 +0100
>> >>
>> >> Hi Ming,
>> >>
>> >> Excellent News!
>> >>
>> >> Don't worry... the problem you are facing could be because of missing
>> >> device files in your /dev folder.
>> >>
>> >> Do as follows:
>> >> mount the CF card onto your PC and then goto the /dev folder on your
>> >> root filesystem in the card. Here run the following commands as root:
>> >> # mknod -m 660 console c 5 1
>> >> # mknod -m 660 xsa b 254 0
>> >> # mknod -m 660 xsa1 b 254 1
>> >> # mknod -m 660 xsa2 b 254 2
>> >> # mknod -m 660 xsa3 b 254 3
>> >> Now there should be a directory tts in your dev. If not create one
>> >> "mkdir tts". Then do this in the dev/tts folder,
>> >> # mknod -m 660 0 b 4 64
>> >>
>> >> > Also, when I compile the kernel, there is a error. That's in
> adapter.c
>> >> > file, undefined reference to "XAssert". I checked the source code
> and
>> >> I think you have the old patch. If you download the new one, the
>> >> compilation problem should not occur. But you resolved it yourself,...
>> >> which is good.
>> >>
>> >> Let me know if this works. I shall add this stuff in PART II of the
>> > article.
>> >>
>> >> -Ameet
>> >>
>> >> Ming Liu wrote:
>> >> > Dear Ameet,
>> >> > A good news is that now my 2.6 kernel is running in my ML403 board!
>> >> > According your guidance, first I made the kernel as simple as
> possible
>> >> > and it works well. Then I included the patch for SystemACE and here
> is
>> >> > the information shown on the hyper teminal:
>> >> >
>> >> >
>> >> > Linux/PPC load: console=ttyS0,9600 root=/dev/xsa3 [ 0.000148]
>> >> > Console: colour dummy device 80x25
>> >> > [ 0.000919] Dentry cache hash table entries: 16384 (order: 4,
> 65536
>> >> > bytes)
>> >> > [ 0.002277] Inode-cache hash table entries: 8192 (order: 3, 32768
>> > bytes)
>> >> > [ 0.012802] Memory: 63104k available (1340k kernel code, 384k
> data,
>> >> > 76k init,
>> >> > 0k highmem)
>> >> > [ 0.230310] Mount-cache hash table entries: 512
>> >> > [ 0.238305] VFS: Disk quotas dquot_6.5.1
>> >> > [ 0.238516] Dquot-cache hash table entries: 1024 (order 0, 4096
>> > bytes)
>> >> > [ 0.238817] JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
>> >> > [ 0.239435] JFS: nTxBlock = 493, nTxLock = 3944
>> >> > [ 0.241883] Initializing Cryptographic API
>> >> > [ 0.241940] io scheduler noop registered (default)
>> >> > [ 0.322864] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports,
> IRQ
>> >> > sharing
>> >> > disabled
>> >> > [ 0.324759] serial8250.0: ttyS0 at MMIO 0x40401003 (irq = 1) is a
>> > 16550A
>> >> > [ 1.653644] RAMDISK driver initialized: 16 RAM disks of 65536K
> size
>> >> > 1024 bloc
>> >> > ksize
>> >> > [ 1.745079] loop: loaded (max 8 devices)
>> >> > [ 1.793392] xsa: xsa1 xsa2 xsa3
>> >> > [ 1.839262] mice: PS/2 mouse device common for all mice
>> >> > [ 1.935059] VFS: Mounted root (ext2 filesystem) readonly.
>> >> > [ 2.000037] Freeing unused kernel memory: 76k init
>> >> > [ 2.075656] Warning: unable to open an initial console.
>> >> >
>> >> > I use xsa3 as the partition to store the file system. Now the file
>> >> > system is the old one for my 2.4 kernel generated by busybox. Then I
>> >> > think that's why the problem "unable to open an initial console" is
>> >> > generated. Do you have some suggestion on how to solve it? Thanks
> for
>> >> > your opinion.
>> >> > Also, when I compile the kernel, there is a error. That's in
> adapter.c
>> >> > file, undefined reference to "XAssert". I checked the source code
> and
>> >> > found that the function of XAssert is defined in the file
>> >> > xbasic_types.c, not the xbasic_types.h. So it cannot be included
> into
>> >> > adapter.c. And also in the makefile there is no dependency on
>> >> > xbasic_types.c. So I added the defination for this function in
>> >> > adapter.c, copying it from xbasic_types.c. It then worked well.
>> >> > Waiting for your guidance. You know, an expert's opinion is always
>> >> > useful for a novice, like me. :)
>> >> >
>> >> > Regards
>> >> > Ming
>> >> >
>> >> > _________________________________________________________________
>> >> > 免费下载 MSN Explorer: http://explorer.msn.com/lccn/
>> >> >
>> >
>> > _________________________________________________________________
>> > 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
>> >
>
> _________________________________________________________________
> 免费下载 MSN Explorer: http://explorer.msn.com/lccn
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Kernel hangs after "Now booting the kernel".
2006-07-07 15:55 ` Xilinx BSP for linux 2.6 Ameet Patil
@ 2006-07-08 15:17 ` Ming Liu
2006-07-09 10:55 ` Ameet Patil
0 siblings, 1 reply; 10+ messages in thread
From: Ming Liu @ 2006-07-08 15:17 UTC (permalink / raw)
To: ammubhai; +Cc: linuxppc-embedded
Dear Ameet,
I really feel so sorry to take away much time from you. However, there are
really so many strange problems for my system.
I tried to implement the Temac option and recompiled the kernel. Then when
I boot the kernel from CF card, after the information "Now booting the
kernel", it hangs. I canceled the Temac again and recompiled the kernel,
restoring the former condition, this problem still existed. It's so
strange.
Any suggestion to solve this? Of course, suggestions from other friends are
also appreciated.
Thanks a lot again for your great help!
Regards
Ming
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Kernel hangs after "Now booting the kernel".
2006-07-08 15:17 ` Kernel hangs after "Now booting the kernel" Ming Liu
@ 2006-07-09 10:55 ` Ameet Patil
0 siblings, 0 replies; 10+ messages in thread
From: Ameet Patil @ 2006-07-09 10:55 UTC (permalink / raw)
To: Ming Liu; +Cc: linuxppc-embedded
Hi Ming,
Check if the kernel boot options are set right? (ie.
console=ttyS0,9600 root=/dev/xsa3). Sometimes the configuration is lost.
If this is intact, then another thing to try is to start from the
beginning: make mrproper and then make menuconfig, etc.
I have not looked into TEMAC patch yet, but don't think it would affect
your serial output messages. Double check the boot options and whether
you have included support for legacy serial device/ console on serial
deivce.
-Ameet
Ming Liu wrote:
> Dear Ameet,
> I really feel so sorry to take away much time from you. However, there
> are really so many strange problems for my system.
>
> I tried to implement the Temac option and recompiled the kernel. Then
> when I boot the kernel from CF card, after the information "Now booting
> the kernel", it hangs. I canceled the Temac again and recompiled the
> kernel, restoring the former condition, this problem still existed. It's
> so strange.
>
> Any suggestion to solve this? Of course, suggestions from other friends
> are also appreciated.
>
> Thanks a lot again for your great help!
>
> Regards
> Ming
>
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-07-09 10:58 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <BAY110-F2E51F50D2158DF44D3820B2740@phx.gbl>
2006-07-07 15:55 ` Xilinx BSP for linux 2.6 Ameet Patil
2006-07-08 15:17 ` Kernel hangs after "Now booting the kernel" Ming Liu
2006-07-09 10:55 ` Ameet Patil
[not found] <44AD108A.8050802@gmail.com>
2006-07-06 14:04 ` Xilinx BSP for linux 2.6 Ming Liu
2006-07-06 14:40 ` Ameet Patil
2006-07-07 11:46 ` Ming Liu
2006-07-07 12:42 ` Ameet Patil
2006-07-07 13:56 ` Ming Liu
2006-06-30 19:52 Xilinx SystemACE driver for 2.6 Ameet Patil
2006-07-06 12:49 ` Xilinx BSP for linux 2.6 Ming Liu
2006-07-06 13:31 ` Ameet Patil
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).