linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 824x Sandpoint with 2.6.x
@ 2005-04-11  9:28 Sam Song
  2005-04-11 18:46 ` Mark A. Greer
  0 siblings, 1 reply; 16+ messages in thread
From: Sam Song @ 2005-04-11  9:28 UTC (permalink / raw)
  To: linuxppc-embedded

Hi all,

I'd like to know where I could get a good start on
824x Sandpoint board with 2.6.x? Is linuxppc-2.5 BK
tree nice for me to work?

Thanks in advance,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
  2005-04-11  9:28 Sam Song
@ 2005-04-11 18:46 ` Mark A. Greer
  0 siblings, 0 replies; 16+ messages in thread
From: Mark A. Greer @ 2005-04-11 18:46 UTC (permalink / raw)
  To: Sam Song; +Cc: linuxppc-embedded

Sam Song wrote:

>Hi all,
>
>I'd like to know where I could get a good start on
>824x Sandpoint board with 2.6.x? Is linuxppc-2.5 BK
>tree nice for me to work?
>  
>

No. Use linux-2.5/6.

Mark

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
@ 2005-04-12  4:10 Sam Song
  2005-04-13 16:48 ` Mark A. Greer
  0 siblings, 1 reply; 16+ messages in thread
From: Sam Song @ 2005-04-12  4:10 UTC (permalink / raw)
  To: Mark A. Greer; +Cc: linuxppc-embedded

--- "Mark A. Greer" <mgreer@mvista.com> wrote:
> Sam Song wrote:
> 
> >Hi all,
> >
> >I'd like to know where I could get a good start on
> >824x Sandpoint board with 2.6.x? Is linuxppc-2.5 BK
> >tree nice for me to work?
> 
> No. Use linux-2.5/6.

Thanks a lot, Mark.

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
  2005-04-12  4:10 824x Sandpoint with 2.6.x Sam Song
@ 2005-04-13 16:48 ` Mark A. Greer
  0 siblings, 0 replies; 16+ messages in thread
From: Mark A. Greer @ 2005-04-13 16:48 UTC (permalink / raw)
  To: Sam Song; +Cc: linuxppc-embedded

Sam Song wrote:

>--- "Mark A. Greer" <mgreer@mvista.com> wrote:
>  
>
>>Sam Song wrote:
>>
>>    
>>
>>>Hi all,
>>>
>>>I'd like to know where I could get a good start on
>>>824x Sandpoint board with 2.6.x? Is linuxppc-2.5 BK
>>>tree nice for me to work?
>>>      
>>>
>>No. Use linux-2.5/6.
>>    
>>
>
>Thanks a lot, Mark.
>

No problem, Sam. Let me know if you encounter any problems with it.

Mark

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
@ 2005-04-14  5:01 Sam Song
  0 siblings, 0 replies; 16+ messages in thread
From: Sam Song @ 2005-04-14  5:01 UTC (permalink / raw)
  To: Mark A. Greer; +Cc: linuxppc-embedded

--- "Mark A. Greer" <mgreer@mvista.com> wrote:
[snip]
> No problem, Sam. Let me know if you encounter any
> problems with it.

Well, encounter one puzzle on bd_info:-)

I use 2.6.11 release package on my custom Sandpoint
board with u-boot. In 2.6.11 ppcboot.h, I noticed 
that there were no CONFIG_8260 but CONFIG_CPM2, 
which had a conflict with bd_info of u-boot. Does
CONFIG_CPM2 means CONFIG_8260 in 2.6.x? If so, it
seems that I should use CPM2 UART driver rather 
than the one CONFIG_SERIAL_8250 which is defined by
sandpoint_defconfig. Well, CPM2 UART driver support
is off line from menuconfig:-(

I created one image only with 8250 serial and RAMDISK
support kernel. The console setting is "ttyS0,115200".
But hanged after loading the kernel... What could the
problem be?

Thanks for your kind help,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
@ 2005-04-15  2:24 Sam Song
  2005-04-18 19:54 ` Mark A. Greer
  0 siblings, 1 reply; 16+ messages in thread
From: Sam Song @ 2005-04-15  2:24 UTC (permalink / raw)
  To: Mark A. Greer; +Cc: linuxppc-embedded

"Mark A. Greer" <mgreer@mvista.com>

Re: 824x Sandpoint with 2.6.x


--- Sam Song <samlinuxppc@yahoo.com.cn> wrote:
[snip]
> which had a conflict with bd_info of u-boot. Does
> CONFIG_CPM2 means CONFIG_8260 in 2.6.x? If so, it
> seems that I should use CPM2 UART driver rather 
> than the one CONFIG_SERIAL_8250 which is defined by
> sandpoint_defconfig. Well, CPM2 UART driver support
> is off line from menuconfig:-(

I got the answer after a glance at the Manual itself.
824x is so different to 8260/8270. No CPM at all on
it. The DUART's program model is compatible with 
16550. Also no IMMR value... I thought 824x could have
a model as 8260 or even 8xx. New things learned!

> I created one image only with 8250 serial and
> RAMDISK support kernel. The console setting was
> "ttyS0,115200". But hanged after loading the 
> kernel... What could the problem be?

Still no luck. From the print message I set, it passed
MMU_init() and mpc10x_bridge_init(), then stopped.

Any clue on it? 

Thanks,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
  2005-04-15  2:24 Sam Song
@ 2005-04-18 19:54 ` Mark A. Greer
  2005-04-18 19:55   ` Mark A. Greer
  0 siblings, 1 reply; 16+ messages in thread
From: Mark A. Greer @ 2005-04-18 19:54 UTC (permalink / raw)
  To: Sam Song; +Cc: linuxppc-embedded

Sam,

Sorry for the delay, I was on vacation last week.
--

Sam Song wrote:

><snip>
>

>--- Sam Song <samlinuxppc@yahoo.com.cn> wrote:
>

><snip>
>

>>I created one image only with 8250 serial and
>>RAMDISK support kernel. The console setting was
>>"ttyS0,115200". But hanged after loading the 
>>kernel... What could the problem be?
>>    
>>
>
>Still no luck. From the print message I set, it passed
>MMU_init() and mpc10x_bridge_init(), then stopped.
>
>Any clue on it?
>

It could be lots of things. Can you dump __log_buf? If so, please dump
and send it so we can have a look. If not, try adding more progress
stmts and telling us exactly where its stopping.

Mark

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
  2005-04-18 19:54 ` Mark A. Greer
@ 2005-04-18 19:55   ` Mark A. Greer
  0 siblings, 0 replies; 16+ messages in thread
From: Mark A. Greer @ 2005-04-18 19:55 UTC (permalink / raw)
  To: Sam Song; +Cc: linuxppc-embedded

Mark A. Greer wrote:

>>>RAMDISK support kernel. The console setting was
>>>"ttyS0,115200". But hanged after loading the 
>>>kernel... What could the problem be?
>>>      
>>>

Also, are you sure 115200 is the correct baud rate?

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
@ 2005-04-19 13:52 Sam Song
  2005-04-19 18:27 ` Mark A. Greer
  0 siblings, 1 reply; 16+ messages in thread
From: Sam Song @ 2005-04-19 13:52 UTC (permalink / raw)
  To: Mark A. Greer; +Cc: linuxppc-embedded

"Mark A. Greer" <mgreer@mvista.com> wrote:
> Sorry for the delay, I was on vacation last week.

Not at all. I experienced a lot during your vacation:)

> It could be lots of things. Can you dump __log_buf?
> If so, please dump
> and send it so we can have a look. If not, try
> adding more progress
> stmts and telling us exactly where its stopping.

OK, I am now up to the joint of early_console and
normal console. Switch problem. Perhaps I miss sth
or what?

## Booting image at 01200000 ...
   Image Name:   Linux-2.6.11
   Image Type:   PowerPC Linux Kernel Image (gzip
compressed)
   Data Size:    442401 Bytes = 432 kB
   Load Address: 00000000
   Entry Point:  00000000
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at ff950000 ...
   Image Name:   Ramdisk Image
   Image Type:   PowerPC Linux RAMDisk Image (gzip
compressed)
   Data Size:    4479838 Bytes =  4.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Loading Ramdisk to 03b02000, end 03f47b5e ... OK
   Loading kernel ......
Linux version 2.6.11 (root@localhost.localdomain) (gcc
version 3.2.2 20030217 (Y
[snip]
Kernel command line:
console=uart,mmio,0xfdfce500,115200n8
console=ttyS0,115200
root=/dev/ram rw ramdisk_size=200000
ip=192.168.0.3:192.168..2:::sandpoint:et
h0:off panic=1
OpenPIC Version 1.2 (1 CPUs and 6 IRQ sources) at
fdfcf000
OpenPIC timer frequency is 100.000000 MHz
PID hash table entries: 512 (order: 9, 8192 bytes)
time_init: decrementer frequency = 25.000000 MHz
first init port.membase = 0x-34585344
Early serial console at MMIO 0xfdfce500 (options
'115200n8')
Dentry cache hash table entries: 16384 (order: 4,
65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768
bytes)
Memory: 63872k available (684k kernel code, 228k data,
92k init, 0k highmem)
Mount-cache hash table entries: 512 (order: 0, 4096
bytes)
Linux NoNET1.0 for Linux 2.6
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 1 of device
0000:00:00.0
Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports,
IRQ sharing enabled
io scheduler noop registered
RAMDISK driver initialized: 16 RAM disks of 200000K
size 1024 blocksize
No ttyS device at MMIO 0xfdfce500 for console

No matter how I changed the uart parameter, still no
luck to get any further info. I looked into 
old_serial_port value and found that all invaild. So
how to deal with it next?

Thanks,

Sam


_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
  2005-04-19 13:52 Sam Song
@ 2005-04-19 18:27 ` Mark A. Greer
  0 siblings, 0 replies; 16+ messages in thread
From: Mark A. Greer @ 2005-04-19 18:27 UTC (permalink / raw)
  To: Sam Song; +Cc: linuxppc-embedded

Sam Song wrote:

> <snip>
>
>
>OK, I am now up to the joint of early_console and
>normal console. Switch problem. Perhaps I miss sth
>or what?
>
><snip>
>
>
>Kernel command line:
>console=uart,mmio,0xfdfce500,115200n8
>console=ttyS0,115200
>root=/dev/ram rw ramdisk_size=200000
>ip=192.168.0.3:192.168..2:::sandpoint:et
>h0:off panic=1
>
<snip>

Get rid of the "console=uart,mmio,0xfdfce500,115200n8" part of the
cmdline and see what happens (keep the "console=ttyS0,115200" part).


Mark

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
@ 2005-04-20 13:54 Sam Song
  2005-04-20 17:46 ` Mark A. Greer
  0 siblings, 1 reply; 16+ messages in thread
From: Sam Song @ 2005-04-20 13:54 UTC (permalink / raw)
  To: Mark A. Greer; +Cc: linuxppc-embedded

"Mark A. Greer" <mgreer@mvista.com> wrote:
> >Kernel command line:
> >console=uart,mmio,0xfdfce500,115200n8
> >console=ttyS0,115200
> >root=/dev/ram rw ramdisk_size=200000
> >ip=192.168.0.3:192.168..2:::sandpoint:et
> >h0:off panic=1
> >
> <snip>
> 
> Get rid of the
> "console=uart,mmio,0xfdfce500,115200n8" part of the
> cmdline and see what happens (keep the
> "console=ttyS0,115200" part).

If so, kernel will hang after loading the kernel......
I cannot see any active info.Is early console output 
message not enough to find out something useful? 

Thanks,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
@ 2005-04-20 13:59 Sam Song
  0 siblings, 0 replies; 16+ messages in thread
From: Sam Song @ 2005-04-20 13:59 UTC (permalink / raw)
  To: Mark A. Greer; +Cc: linuxppc-embedded

"Mark A. Greer" <mgreer@mvista.com> wrote:
> Get rid of the
> "console=uart,mmio,0xfdfce500,115200n8" part of the
> cmdline and see what happens (keep the
> "console=ttyS0,115200" part).

I suspect there are sth wrong with uart iomem_base.
In my 2.4.24 porting, the following two lines must
be added in sandpoint_setup_arch, or I could get the
same result as 2.6.x.

rs_table[0].port = (ulong) ioremap (rs_table[0].port,
PAGE_SIZE);
rs_table[0].iomem_base = (u8 *) rs_table[0].port;

But the pity is that there are no rs_table used in
2.6.x serial driver.

Thanks again,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
  2005-04-20 13:54 Sam Song
@ 2005-04-20 17:46 ` Mark A. Greer
  0 siblings, 0 replies; 16+ messages in thread
From: Mark A. Greer @ 2005-04-20 17:46 UTC (permalink / raw)
  To: Sam Song; +Cc: linuxppc-embedded

Sam Song wrote:

>"Mark A. Greer" <mgreer@mvista.com> wrote:
>  
>
>>>Kernel command line:
>>>console=uart,mmio,0xfdfce500,115200n8
>>>console=ttyS0,115200
>>>root=/dev/ram rw ramdisk_size=200000
>>>ip=192.168.0.3:192.168..2:::sandpoint:et
>>>h0:off panic=1
>>>
>>>      
>>>
>><snip>
>>
>>Get rid of the
>>"console=uart,mmio,0xfdfce500,115200n8" part of the
>>cmdline and see what happens (keep the
>>"console=ttyS0,115200" part).
>>    
>>
>
>If so, kernel will hang after loading the kernel......
>

Okay, obviously something is wrong. Adding another console line isn't
fixing anything, its just allowing you to flounder on a little further.
IMHO, adding another console line isn't going to help and will only add
confusion.

>I cannot see any active info.Is early console output 
>message not enough to find out something useful? 
>  
>

Sure it does. You have to enable it, then add some progress lines to
help narrow down where you're panic'ing/hanging. You can even use the
progress facility to dump the __log_buf.

I'm taking your unwillingness to use a jtag/cops debugger as indication
that you don't have such a tool!?!?

Mark

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
@ 2005-04-21  2:40 Sam Song
  2005-04-21 19:57 ` Mark A. Greer
  0 siblings, 1 reply; 16+ messages in thread
From: Sam Song @ 2005-04-21  2:40 UTC (permalink / raw)
  To: Mark A. Greer; +Cc: linuxppc-embedded

"Mark A. Greer" <mgreer@mvista.com> wrote:
> > I cannot see any active info.Is early console
> > output message not enough to find out something 
> > useful? 
>
> Sure it does. You have to enable it, then add some
> progress lines to help narrow down where you're
> panic'ing/hanging. 

Well, the cmdline I added is the switch of early
console enable, which I should enable 
CONFIG_SERIAL_8250_CONSOLE in kernel config first. A
new and nice feature of 2.6.x to me.

> You can even use the
> progress facility to dump the __log_buf.

I don't have such experience. If possible, could u
give me a linkage or doc for me to have a look?

> I'm taking your unwillingness to use a jtag/cops
> debugger as indication
> that you don't have such a tool!?!?

For the moment, I don't have such a cute hardware 
tool which can support source code debug like 
BDI2000. To be frank, I haven't used a hardware tool 
to debug kernel. Perhaps the problem I met wasn't 
complicated to use it. But now it is another story:-)
BTW, Could I use KGDB to try it?

Thanks,

Sam

Best regards,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
  2005-04-21  2:40 Sam Song
@ 2005-04-21 19:57 ` Mark A. Greer
  0 siblings, 0 replies; 16+ messages in thread
From: Mark A. Greer @ 2005-04-21 19:57 UTC (permalink / raw)
  To: Sam Song; +Cc: linuxppc-embedded

Sam Song wrote:

>>You can even use the
>>progress facility to dump the __log_buf.
>>    
>>
>
>I don't have such experience. If possible, could u
>give me a linkage or doc for me to have a look?
>

The "doc" is the source code.

>BTW, Could I use KGDB to try it?
>  
>

It may help but it depends on how far you're getting and what your
problem is.

Mark

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: 824x Sandpoint with 2.6.x
@ 2005-04-22  2:21 Sam Song
  0 siblings, 0 replies; 16+ messages in thread
From: Sam Song @ 2005-04-22  2:21 UTC (permalink / raw)
  To: Mark A. Greer; +Cc: linuxppc-embedded

"Mark A. Greer" <mgreer@mvista.com> wrote:
> > BTW, Could I use KGDB to try it?
> >  
> 
> It may help but it depends on how far you're getting
> and what your problem is.

OK, Mark. Thanks so much for your help. Let me try
how far I could go:)

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-04-22  2:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-12  4:10 824x Sandpoint with 2.6.x Sam Song
2005-04-13 16:48 ` Mark A. Greer
  -- strict thread matches above, loose matches on Subject: below --
2005-04-22  2:21 Sam Song
2005-04-21  2:40 Sam Song
2005-04-21 19:57 ` Mark A. Greer
2005-04-20 13:59 Sam Song
2005-04-20 13:54 Sam Song
2005-04-20 17:46 ` Mark A. Greer
2005-04-19 13:52 Sam Song
2005-04-19 18:27 ` Mark A. Greer
2005-04-15  2:24 Sam Song
2005-04-18 19:54 ` Mark A. Greer
2005-04-18 19:55   ` Mark A. Greer
2005-04-14  5:01 Sam Song
2005-04-11  9:28 Sam Song
2005-04-11 18:46 ` Mark A. Greer

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).