<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Wolfgang<br>
<br>
thanks for your quick reply. Below i have placed the boot message,
Another question I have that might help is that in DULG section 5.10
where the
environmental variable "pram" is defined, the documentation states "If
the
"Protected RAM" feature is enabled in your board's configuration" <br>
Is the PRAMFS support built in and available when CONFIG_PRAM and the
"pram" environmental variable is defined in the board config or are
there other elements to be configured or activated on the linux side
aswell?. (mpc8548 board using ELDK 4.1 ppc_85xx)<br>
<br>
The boot message:<br>
<br>
U-Boot 1.2.0 (Aug 12 2008 - 16:21:15)<br>
<br>
CPU: 8548_E, Version: 1.1, (0x80390011)<br>
Core: E500, Version: 1.0, (0x80210010)<br>
Clock Configuration:<br>
CPU: 990 MHz, CCB: 396 MHz,<br>
DDR: 198 MHz, LBC: 49 MHz<br>
L1: D-cache 32 kB enabled<br>
I-cache 32 kB enabled<br>
Board: Equus MPC8548<br>
PCI1: 64 bit, 66 MHz, sync<br>
I2C: ready<br>
DRAM: Initializing<br>
DDR: 512 MB<br>
FLASH: 128 MB<br>
L2 cache 512KB: enabled<br>
*** Warning - bad CRC, using default environment<br>
<br>
BIE:<br>
serial number = EQ_0002<br>
build level = EQUUS-1.1<br>
set ethaddr to 00:50:C2:52:50:FC<br>
set eth1addr to 00:50:C2:52:50:FD<br>
set eth2addr to 00:50:C2:52:50:FE<br>
set bootsrc to factory<br>
Running boot diagnostics <br>
In: serial<br>
Out: serial<br>
Err: serial<br>
Net: eTSEC0, eTSEC1, eTSEC2<br>
boot count loaded 1 <br>
boot count stored 2 <br>
Hit any key to stop autoboot: 0 <br>
### CRAMFS loading '/boot/uImage' to 0x200000<br>
### CRAMFS load complete: 1067930 bytes loaded to 0x200000<br>
## Booting image at 00200000 ...<br>
Image Name: Linux-2.6.19.2<br>
Image Type: PowerPC Linux Kernel Image (gzip compressed)<br>
Data Size: 1067866 Bytes = 1 MB<br>
Load Address: 00000000<br>
Entry Point: 00000000<br>
Verifying Checksum ... OK<br>
Uncompressing Kernel Image ... OK<br>
Memory CAM mapping: CAM0=256Mb, CAM1=64Mb, CAM2=64Mb residual: 64Mb<br>
Linux version 2.6.19.2 (root@sdh-ts2) (gcc version 4.0.0 (DENX ELDK 4.1
4.0.0)) #1 Tue Aug 12 15:56:47 SAST 2008<br>
Zone PFN ranges:<br>
DMA 0 -> 98304<br>
Normal 98304 -> 98304<br>
early_node_map[1] active PFN ranges<br>
0: 0 -> 98304<br>
Built 1 zonelists. Total pages: 97536<br>
Kernel command line: root=/dev/mtdblock0 ro console=ttyS0,115200
mem=458752k<br>
OpenPIC Version 1.2 (1 CPUs and 60 IRQ sources) at fcfbb000<br>
PID hash table entries: 2048 (order: 11, 8192 bytes)<br>
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)<br>
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)<br>
Memory: 387328k available (1712k kernel code, 500k data, 136k init, 0k
highmem)<br>
Mount-cache hash table entries: 512<br>
NET: Registered protocol family 16<br>
PCI: Probing PCI hardware<br>
PCI: Cannot allocate resource region 0 of device 0000:00:00.0<br>
PCI: Cannot allocate resource region 1 of device 0000:00:00.0<br>
PCI: Failed to allocate mem resource #1:80000000@0 for 0000:00:00.0<br>
Generic PHY: Registered new driver<br>
NET: Registered protocol family 2<br>
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)<br>
TCP established hash table entries: 16384 (order: 4, 65536 bytes)<br>
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)<br>
TCP: Hash tables configured (established 16384 bind 8192)<br>
TCP reno registered<br>
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.<br>
io scheduler noop registered<br>
io scheduler anticipatory registered (default)<br>
io scheduler deadline registered<br>
io scheduler cfq registered<br>
Generic RTC Driver v1.07<br>
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing
disabled<br>
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 26) is a 16550A<br>
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 26) is a 16550A<br>
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize<br>
loop: loaded (max 8 devices)<br>
Gianfar MII Bus: probed<br>
eth0: Gianfar Ethernet Controller Version 1.2(MW), 00:50:c2:52:50:fc <br>
eth0: Running with NAPI enabled<br>
eth0: 256/1024 RX/TX BD ring size<br>
eth1: Gianfar Ethernet Controller Version 1.2(MW), 00:50:c2:52:50:fd <br>
eth1: Running with NAPI enabled<br>
eth1: 256/1024 RX/TX BD ring size<br>
eth2: Gianfar Ethernet Controller Version 1.2(MW), 00:50:c2:52:50:fe <br>
eth2: Running with NAPI enabled<br>
eth2: 256/1024 RX/TX BD ring size<br>
Cicada Cis8204: Registered new driver<br>
Cicada Cis8201: Registered new driver<br>
0: Found 2 x16 devices at 0x0 in 32-bit bank<br>
Amd/Fujitsu Extended Query Table at 0x0040<br>
0: CFI does not contain boot bank location. Assuming top.<br>
number of CFI chips: 1<br>
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.<br>
Equus flash bank 0: Using static image bank1 partition definition<br>
Creating 9 MTD partitions on "0":<br>
0x00000000-0x01000000 : "factory-image"<br>
mtd: Giving out device 0 to factory-image<br>
0x01000000-0x02000000 : "app-image-1"<br>
mtd: Giving out device 1 to app-image-1<br>
0x02000000-0x03000000 : "app-image-2"<br>
mtd: Giving out device 2 to app-image-2<br>
0x03000000-0x04000000 : "jffs2"<br>
mtd: Giving out device 3 to jffs2<br>
0x04000000-0x05000000 : "testing"<br>
mtd: Giving out device 4 to testing<br>
0x05000000-0x07f40000 : "reserved"<br>
mtd: Giving out device 5 to reserved<br>
0x07f40000-0x07f80000 : "u-boot-env"<br>
mtd: Giving out device 6 to u-boot-env<br>
0x07f80000-0x08000000 : "u-boot-app"<br>
mtd: Giving out device 7 to u-boot-app<br>
0x00000000-0x08000000 : "all"<br>
mtd: Giving out device 8 to all<br>
i2c /dev entries driver<br>
TCP cubic registered<br>
NET: Registered protocol family 1<br>
NET: Registered protocol family 17<br>
VFS: Mounted root (cramfs filesystem) readonly.<br>
Freeing unused kernel memory: 136k init<br>
INIT: version 2.85 booting<br>
$Mounting /dev/mtdblock2 to /usr/config<br>
jffs2 Mount Sucsesfull. Checking config files<br>
cron.daily file missing - Copy from defaults<br>
cron.hourly file missing - Copy from defaults<br>
cron.weekly file missing - Copy from defaults<br>
ifcfg-eth0 file exist - Skipping<br>
ifcfg-eth1 file exist - Skipping<br>
ifcfg-eth2 file exist - Skipping<br>
logrotate.conf file exist - Skipping<br>
ntp.conf file exist - Skipping<br>
resolv.conf file exist - Skipping<br>
syslog.conf file exist - Skipping<br>
$ Welcome to $DENX Embedded$ Linux Environment<br>
$ VAStech SDH Gateway<br>
$ Press 'I' to enter interactive startup.<br>
$ done[ $OK ]<br>
$Setting clock : Thu Jan 1 00:00:01 UTC 1970 [ $OK ]<br>
$Setting hostname sdh-gateway: [ $OK ]<br>
$Mounting local filesystems: [ $OK ]<br>
INIT: Entering runlevel: 3<br>
current directory/etc/sysconfig/network-scripts<br>
$Bringing up loopback interface: Hardware Address <br>
[ $OK ]<br>
$Bringing up interface eth0: Hardware Address <br>
[ $OK ]<br>
$Bringing up interface eth1: Hardware Address <br>
[ $OK ]<br>
$Bringing up interface eth2: Hardware Address <br>
[ $OK ]<br>
$Starting system logger: [ $OK ]<br>
$Starting kernel logger: [ $OK ]<br>
$Starting xinetd: [ $OK ]<br>
$Starting ntpd: [ $OK ]<br>
$Starting periodic command scheduler : [ $OK ]<br>
<br>
DENX ELDK version 4.0 build 2006-01-12<br>
Linux 2.6.19.2 on a ppc<br>
<br>
<br>
When i then try to mount the PRAMFS i get the following: <br>
<br>
sh\$ mount -t pramfs -o physaddr=0x1c000000,init=0x4000000 none
/tmp/test/<br>
mount: mounting none on /tmp/test/ failed: No such device<br>
sh\$ <br>
<br>
I might be missing something simple. There are no recent documentation
regarding PRAMFS is it still suported or has it been abandoned?<br>
<br>
thanks for your time Pieter<br>
<br>
Wolfgang Denk wrote:
<blockquote cite="mid:20080812181138.BEF53248BF@gemini.denx.de"
type="cite">
<pre wrap="">Dear Pieter,
In message <a class="moz-txt-link-rfc2396E" href="mailto:48A15FC3.3060008@vastech.co.za"><48A15FC3.3060008@vastech.co.za></a> you wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Im using a ppc85xx processor with Denx ELDK (4.1) The board has 512MB
DDR2 and the board config reserves 64M for pram. during bootup the
mem=$mem argument is passed to the linux kernel command line and linux
boots successfully.
</pre>
</blockquote>
<pre wrap=""><!---->
So what are the exact boot messages of your kernel?
</pre>
<blockquote type="cite">
<pre wrap="">I am unable to mount the PRAMFS - all documentation leads me to use
mount -t pramfs -o physaddr=0x1c000000,init=0x4000000 none /mnt
</pre>
</blockquote>
<pre wrap=""><!---->-------------------------------------------------------------^^^^
</pre>
<blockquote type="cite">
<pre wrap="">witch fails with the message:
mounting none on /mtd failed: no such devise
</pre>
</blockquote>
<pre wrap=""><!---->-------------------^^^^
/mnt != /mtd
</pre>
</blockquote>
--------------^^^^<br>
This was a typo<br>
<blockquote cite="mid:20080812181138.BEF53248BF@gemini.denx.de"
type="cite">
<pre wrap="">
There is something worng, probably your description. It would be
better if you showed the precise commands and outpout from your
target system.
Best regards,
Wolfgang Denk
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Pieter Henning
VASTech
Tel: +27 (0)21 850 5921
Fax: +27 (0)86 503 8941
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:phenning@vastech.co.za">phenning@vastech.co.za</a>
</pre>
</body>
</html>