linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re:Re: my port problem
@ 2000-05-19  5:58 zzh
  2000-05-19 13:25 ` Dan Malek
  0 siblings, 1 reply; 4+ messages in thread
From: zzh @ 2000-05-19  5:58 UTC (permalink / raw)
  To: Dan Malek; +Cc: linuxppc-embedded


>zzh wrote:
>>
>>      Hi,my port of linux on 8260 ads board run successfully
>> after free_init_mem.I mount root on a ram disk init from
>> initrd.It cannot open the console driver(it is a symbolic
>> to /dev/ttyS0) .
>
>What is the text of the error message.  The entire text of the
>kernel messages during boot would be helpful as well.  This is
>the very first access to the file system, perhaps initrd isn't
>working.
>
>
>	-- Dan
0x00200000 0x002e0f77 'vmlinux'
0x002e0f78 0x002e0f94 board information
0x00000000 0x000d0f94 relocated vmlinux and board info
0x00c00000 0x01000000 relocated initrd
(0x0000000c)(0x000d0f78, 0x00c00000, 0x00400000, 0x00000000, 0x00000000)
Total Memoty = 16MB;unsing 64kb for hash table (at c00d0000).
Linux version 2.2.11.......
Boot arguments:
Calibrating delay loop...14.44 BogoMIPS
remove_mem_piece: bad overlap [c8000,f4000) with [c8000, d0000) [e0000, 1000000)

Memory: 15408k available (552k kernel code, 396k data, 28k init) [c0000000,c1000
000]
DENTRY hash table entries: 262144 (order: 9, 2097152 bytes)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.2
Based upon Sw<6>NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 16384 bhash 16384)
Starting kswapd v 1.5
CPM UART driver version 0.02
ttyS00 at 0x0100 is a SCC        //i use scc2 as ttyS0
info in rs_8xx_init c01d85e0
RAM disk driver initialized:  16 RAM disks of 4096K size
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 4096 blocks [1 disk] into ram disk... done.
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 28k init
After free_initmem
Warning: unable to open an initial console.
/*open("/dev/console",...);*/

In init!      /*this printk calls before execve("/bin/bash",...);


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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re:Re: my port problem
@ 2000-05-21  3:58 zzh
  0 siblings, 0 replies; 4+ messages in thread
From: zzh @ 2000-05-21  3:58 UTC (permalink / raw)
  To: Dan Malek; +Cc: linuxppc-embedded


>zzh wrote:
>
>> 0x00200000 0x002e0f77 'vmlinux'
>> 0x002e0f78 0x002e0f94 board information
>> 0x00000000 0x000d0f94 relocated vmlinux and board info
>> 0x00c00000 0x01000000 relocated initrd
>> (0x0000000c)(0x000d0f78, 0x00c00000, 0x00400000, 0x00000000, 0x00000000)
>
>I don't know where these came from.  I guess someone modified misc.c?
>I don't know what they indicate, either.
>
I choose to not uncompressing kernel.I modified 8xxrom to load vmlinux
and initrd.
Memory layout is : 0x0-0xd0f94 vmlinux+bdinfo
                   0xc00000-0x1000000 initrd
>> Total Memoty = 16MB;unsing 64kb for hash table (at c00d0000).
>> Linux version 2.2.11.......
>> Boot arguments:
>> Calibrating delay loop...14.44 BogoMIPS
>> remove_mem_piece: bad overlap [c8000,f4000) with [c8000, d0000) [e0000, 1000000)
>
I will check this.maybe this is the reason.
>Don't messages like this get your attention?  Something is wrong with
>the memory map, board information structure, or where you loaded the
>software kernel and ram disk.
>
>>
>> Memory: 15408k available (552k kernel code, 396k data, 28k init) [c0000000,c1000
>> 000]
>> DENTRY hash table entries: 262144 (order: 9, 2097152 bytes)
>> Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
>> Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
>> POSIX conformance testing by UNIFIX
>> Linux NET4.0 for Linux 2.2
>> Based upon Sw<6>NET4: Unix domain sockets 1.0 for Linux NET4.0.
>> NET4: Linux TCP/IP 1.0 for NET4.0
>> IP Protocols: ICMP, UDP, TCP
>> TCP: Hash tables configured (ehash 16384 bhash 16384)
>> Starting kswapd v 1.5
>> CPM UART driver version 0.02
>> ttyS00 at 0x0100 is a SCC        //i use scc2 as ttyS0
>
>Really?  So, you modified arch/ppc/mbxboot/m8260_tty.c to use an SCC?
>You have to make lots of changes to use SCC as a console.  I don't have
>any board that uses the SCC for a serial port (easily, without some
>hardware hacking), so I haven't tried this.
>
>
Why? Because motorola ads board has no smc,so i modified 8xxio/uart.c
.I seems to me that scc can be used as a console and ttyS0 simulataneously.
I cannot find 8260 stuff in kernel.org when i began this port,
now i have pre7,should i read it?I know it is done on a EST board.
>> Warning: unable to open an initial console.
>> /*open("/dev/console",...);*/
>
>Not surprised if this is an SCC.  You have some work to contribute :-).
Explain to me why.rs_8xx_open not get called although i registered
it as c 4 64
>
>
>	-- Dan


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

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re:Re: my port problem
@ 2000-05-24  6:12 zzh
  0 siblings, 0 replies; 4+ messages in thread
From: zzh @ 2000-05-24  6:12 UTC (permalink / raw)
  To: Steve Tarr; +Cc: linuxppc-embedded


>David--
>I'm also trying to port to Motorola MPC8260ADS board. You seem to be >a bit ahead
>of me .  I am working off the 2.3.99-pre7 release. I have modified >8260_io/uart.c to
>support both SCC1 and SCC2 only. Have not gotten the FCC  Ethernet >working yet.
How did you boot the kernel?What boot message did you get?
I find something wrong with get_free_page() now.
I cannot return from get_free_page() in init_dev() in tty_io.c.
I display the free mem ,it report it has 0kb nonDMAable mem,buf above
8000k DMAable mems(i based on 2.2 kernel,i see in 2.3,it does not
has two array for these two type of mem),although __get_free_page()
will try this two array one by one,but is does not return.So i am
checking it now.Does someone can give me some hints?


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

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

end of thread, other threads:[~2000-05-24  6:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-19  5:58 Re:Re: my port problem zzh
2000-05-19 13:25 ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2000-05-21  3:58 zzh
2000-05-24  6:12 zzh

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