<!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&nbsp; section 5.10
where the
environmental variable "pram" is defined,&nbsp; the documentation states "If
the
"Protected RAM" feature is enabled in your board's configuration"&nbsp; <br>
Is the PRAMFS support&nbsp; 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?.&nbsp; (mpc8548 board using&nbsp; 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:&nbsp;&nbsp; 8548_E, Version: 1.1, (0x80390011)<br>
Core:&nbsp; E500, Version: 1.0, (0x80210010)<br>
Clock Configuration:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CPU: 990 MHz, CCB: 396 MHz,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DDR: 198 MHz, LBC:&nbsp; 49 MHz<br>
L1:&nbsp;&nbsp;&nbsp; D-cache 32 kB enabled<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I-cache 32 kB enabled<br>
Board: Equus MPC8548<br>
&nbsp;&nbsp;&nbsp; PCI1: 64 bit, 66 MHz, sync<br>
I2C:&nbsp;&nbsp; ready<br>
DRAM:&nbsp; Initializing<br>
&nbsp;&nbsp;&nbsp; DDR: 512 MB<br>
FLASH: 128 MB<br>
L2 cache 512KB: enabled<br>
*** Warning - bad CRC, using default environment<br>
<br>
BIE:<br>
&nbsp; serial number = EQ_0002<br>
&nbsp; build level&nbsp;&nbsp; = EQUUS-1.1<br>
&nbsp; set ethaddr&nbsp; to 00:50:C2:52:50:FC<br>
&nbsp; set eth1addr to 00:50:C2:52:50:FD<br>
&nbsp; set eth2addr to 00:50:C2:52:50:FE<br>
&nbsp; set bootsrc&nbsp; to factory<br>
Running boot diagnostics <br>
In:&nbsp;&nbsp;&nbsp; serial<br>
Out:&nbsp;&nbsp; serial<br>
Err:&nbsp;&nbsp; serial<br>
Net:&nbsp;&nbsp; eTSEC0, eTSEC1, eTSEC2<br>
boot count loaded 1 <br>
boot count stored 2 <br>
Hit any key to stop autoboot:&nbsp; 0 <br>
### CRAMFS loading '/boot/uImage' to 0x200000<br>
### CRAMFS load complete: 1067930 bytes loaded to 0x200000<br>
## Booting image at 00200000 ...<br>
&nbsp;&nbsp; Image Name:&nbsp;&nbsp; Linux-2.6.19.2<br>
&nbsp;&nbsp; Image Type:&nbsp;&nbsp; PowerPC Linux Kernel Image (gzip compressed)<br>
&nbsp;&nbsp; Data Size:&nbsp;&nbsp;&nbsp; 1067866 Bytes =&nbsp; 1 MB<br>
&nbsp;&nbsp; Load Address: 00000000<br>
&nbsp;&nbsp; Entry Point:&nbsp; 00000000<br>
&nbsp;&nbsp; Verifying Checksum ... OK<br>
&nbsp;&nbsp; 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>
&nbsp; DMA&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 -&gt;&nbsp;&nbsp;&nbsp; 98304<br>
&nbsp; Normal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 98304 -&gt;&nbsp;&nbsp;&nbsp; 98304<br>
early_node_map[1] active PFN ranges<br>
&nbsp;&nbsp;&nbsp; 0:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 -&gt;&nbsp;&nbsp;&nbsp; 98304<br>
Built 1 zonelists.&nbsp; 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>
&nbsp;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>
$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Welcome to $DENX Embedded$ Linux Environment<br>
$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VAStech SDH Gateway<br>
$&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Press 'I' to enter interactive startup.<br>
$ done[&nbsp; $OK&nbsp; ]<br>
$Setting clock : Thu Jan&nbsp; 1 00:00:01 UTC 1970 [&nbsp; $OK&nbsp; ]<br>
$Setting hostname sdh-gateway:&nbsp; [&nbsp; $OK&nbsp; ]<br>
$Mounting local filesystems:&nbsp; [&nbsp; $OK&nbsp; ]<br>
INIT: Entering runlevel: 3<br>
current directory/etc/sysconfig/network-scripts<br>
$Bringing up loopback interface:&nbsp; Hardware Address <br>
[&nbsp; $OK&nbsp; ]<br>
$Bringing up interface eth0:&nbsp; Hardware Address <br>
[&nbsp; $OK&nbsp; ]<br>
$Bringing up interface eth1:&nbsp; Hardware Address <br>
[&nbsp; $OK&nbsp; ]<br>
$Bringing up interface eth2:&nbsp; Hardware Address <br>
[&nbsp; $OK&nbsp; ]<br>
$Starting system logger: [&nbsp; $OK&nbsp; ]<br>
$Starting kernel logger: [&nbsp; $OK&nbsp; ]<br>
$Starting xinetd: [&nbsp; $OK&nbsp; ]<br>
$Starting ntpd: [&nbsp; $OK&nbsp; ]<br>
$Starting periodic command scheduler : [&nbsp; $OK&nbsp; ]<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&nbsp; 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&nbsp; 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">&lt;48A15FC3.3060008@vastech.co.za&gt;</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>