Porting Linux On MPC8266 custom board

Alex Zeffertt ajz at cambridgebroadband.com
Thu Jul 7 19:12:39 EST 2005


Apoorv,

You need to look in two places:

1.	linux/init/main.c

(which contains the following code
	#endif
#ifdef CONFIG_MTD
	{ "mtdblock", 0x1f00 },
#endif
	{ NULL, 0 }
};
)

and 

2.	http://www.denx.de/twiki/bin/view/DULG/LinuxKernelArgs

It looks to me that you're trying to use an mtdblock device for your root
filesystem.  For this to work you need CONFIG_MTD defined and - obviously - a
root file system image in the appropriate place in your flash.

It also appears that you are losing output shortly after the ttyS0 drivers are
created.  Maybe the problem is that your serial console program (e.g. minicom)
is not configured for 11520 .. or for some reason the driver is selecting
another rate.  Strangely, on my 82xx board I don't need the console argument on
the kernel command line, it just automatically uses ttyS0 at 9600.  Probably this
is because it detects u-boot is also using this, but I don't know.

Alex


On Thu, 7 Jul 2005 09:48:53 +0530
apoorv sangal <apoorvsangal at gmail.com> wrote:

> Hi All,
> 		I am porting Linux on MPC8266 custom board, after getting in to
> Linux the system seems to be struck at a point.
> Saved Environment variable:-
>       bootargs console=ttyS0,11520 root=1f00 and downloaded the Kernel
> image at address 0x02000000 in the RAM.
> From the u-boot prompt the bootm command is invoked as:- 
> 	bootm 0x02000000
> 
> After that what I get on the terminal is pasted below for your reference.
> I couldn't make out any thing from the output, can any body tell me
> where I am doing wrong, and also I don't have any idea about the
> bootargs argument "root". Can any body give the precise description of
> this argument?
> 
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> => bootm 02000000 ## Booting image at 02000000...
>    Image Name:   2.4.24 MPC8260ADS
>    Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>    Data Size:    725838 Bytes = 708.8 kB
>    Load Address: 00000000
>    Entry Point:  00000000
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... OK
> Memory BAT mapping: BAT2=128Mb, BAT3=0Mb, residual: 0Mb
> 
> Linux version 2.4.24-pre2 (root at pmcserver) (gcc version 3.3.4) #2 Tue
> Jul 5 15:05:10 IST 2005
> 
> On node 0 totalpages: 32768
> 
> zone(0): 32768 pages.
> 
> zone(1): 0 pages.
> 
> zone(2): 0 pages.
> 
> Kernel command line: console=ttyS0,115200 root=1f00
> 
> Warning: real time clock seems stuck!
> 
> Calibrating delay loop... 131.89 BogoMIPS
> 
> Memory: 127812k available (1232k kernel code, 412k data, 64k init, 0k highmem)
> 
> Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
> 
> Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
> 
> Mount cache hash table entries: 512 (order: 0, 4096 bytes)
> 
> Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)
> 
> Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
> 
> POSIX conformance testing by UNIFIX
> 
> Linux NET4.0 for Linux 2.4
> 
> Based upon Swansea University Computer Society NET3.039
> 
> Initializing RT netlink socket
> 
> Starting kswapd
> 
> JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
> 
> i2c-core.o: i2c core module version 2.6.1 (20010830)
> 
> i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830)
> 
> CPM UART driver version 0.01
> 
> ttyS0 on SMC1 at 0x0000, BRG7
> 
> ttyS1 on SMC2 at 0x0040, BRG8
> 
> ttyS2 on SCC1 at 0x8000, BRG1
> 
> ttyS3 on SCC2 at 0x8100, BRG2
> 
> pty: 256 Unix98 ptys configured
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 	
> Waiting eagerly,
> Regards,
> VB
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded



More information about the Linuxppc-embedded mailing list