Mounting PRAMFS support

Pieter phenning at vastech.co.za
Wed Aug 13 19:30:04 EST 2008


Hi Wolfgang

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

The boot message:

U-Boot 1.2.0 (Aug 12 2008 - 16:21:15)

CPU:   8548_E, Version: 1.1, (0x80390011)
Core:  E500, Version: 1.0, (0x80210010)
Clock Configuration:
       CPU: 990 MHz, CCB: 396 MHz,
       DDR: 198 MHz, LBC:  49 MHz
L1:    D-cache 32 kB enabled
       I-cache 32 kB enabled
Board: Equus MPC8548
    PCI1: 64 bit, 66 MHz, sync
I2C:   ready
DRAM:  Initializing
    DDR: 512 MB
FLASH: 128 MB
L2 cache 512KB: enabled
*** Warning - bad CRC, using default environment

BIE:
  serial number = EQ_0002
  build level   = EQUUS-1.1
  set ethaddr  to 00:50:C2:52:50:FC
  set eth1addr to 00:50:C2:52:50:FD
  set eth2addr to 00:50:C2:52:50:FE
  set bootsrc  to factory
Running boot diagnostics
In:    serial
Out:   serial
Err:   serial
Net:   eTSEC0, eTSEC1, eTSEC2
boot count loaded 1
boot count stored 2
Hit any key to stop autoboot:  0
### CRAMFS loading '/boot/uImage' to 0x200000
### CRAMFS load complete: 1067930 bytes loaded to 0x200000
## Booting image at 00200000 ...
   Image Name:   Linux-2.6.19.2
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1067866 Bytes =  1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Memory CAM mapping: CAM0=256Mb, CAM1=64Mb, CAM2=64Mb residual: 64Mb
Linux version 2.6.19.2 (root at sdh-ts2) (gcc version 4.0.0 (DENX ELDK 4.1
4.0.0)) #1 Tue Aug 12 15:56:47 SAST 2008
Zone PFN ranges:
  DMA             0 ->    98304
  Normal      98304 ->    98304
early_node_map[1] active PFN ranges
    0:        0 ->    98304
Built 1 zonelists.  Total pages: 97536
Kernel command line: root=/dev/mtdblock0 ro console=ttyS0,115200 mem=458752k
OpenPIC Version 1.2 (1 CPUs and 60 IRQ sources) at fcfbb000
PID hash table entries: 2048 (order: 11, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 387328k available (1712k kernel code, 500k data, 136k init, 0k
highmem)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
PCI: Probing PCI hardware
PCI: Cannot allocate resource region 0 of device 0000:00:00.0
PCI: Cannot allocate resource region 1 of device 0000:00:00.0
PCI: Failed to allocate mem resource #1:80000000 at 0 for 0000:00:00.0
Generic PHY: Registered new driver
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 16384 bind 8192)
TCP reno registered
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe0004500 (irq = 26) is a 16550A
serial8250.0: ttyS1 at MMIO 0xe0004600 (irq = 26) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
Gianfar MII Bus: probed
eth0: Gianfar Ethernet Controller Version 1.2(MW), 00:50:c2:52:50:fc
eth0: Running with NAPI enabled
eth0: 256/1024 RX/TX BD ring size
eth1: Gianfar Ethernet Controller Version 1.2(MW), 00:50:c2:52:50:fd
eth1: Running with NAPI enabled
eth1: 256/1024 RX/TX BD ring size
eth2: Gianfar Ethernet Controller Version 1.2(MW), 00:50:c2:52:50:fe
eth2: Running with NAPI enabled
eth2: 256/1024 RX/TX BD ring size
Cicada Cis8204: Registered new driver
Cicada Cis8201: Registered new driver
0: Found 2 x16 devices at 0x0 in 32-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
0: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Equus flash bank 0: Using static image bank1 partition definition
Creating 9 MTD partitions on "0":
0x00000000-0x01000000 : "factory-image"
mtd: Giving out device 0 to factory-image
0x01000000-0x02000000 : "app-image-1"
mtd: Giving out device 1 to app-image-1
0x02000000-0x03000000 : "app-image-2"
mtd: Giving out device 2 to app-image-2
0x03000000-0x04000000 : "jffs2"
mtd: Giving out device 3 to jffs2
0x04000000-0x05000000 : "testing"
mtd: Giving out device 4 to testing
0x05000000-0x07f40000 : "reserved"
mtd: Giving out device 5 to reserved
0x07f40000-0x07f80000 : "u-boot-env"
mtd: Giving out device 6 to u-boot-env
0x07f80000-0x08000000 : "u-boot-app"
mtd: Giving out device 7 to u-boot-app
0x00000000-0x08000000 : "all"
mtd: Giving out device 8 to all
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 136k init
INIT: version 2.85 booting
$Mounting /dev/mtdblock2 to /usr/config
jffs2 Mount Sucsesfull. Checking config files
cron.daily file missing - Copy from defaults
cron.hourly file missing - Copy from defaults
cron.weekly file missing - Copy from defaults
ifcfg-eth0 file exist - Skipping
ifcfg-eth1 file exist - Skipping
ifcfg-eth2 file exist - Skipping
logrotate.conf file exist - Skipping
ntp.conf file exist - Skipping
resolv.conf file exist - Skipping
syslog.conf file exist - Skipping
$               Welcome to $DENX Embedded$ Linux Environment
$               VAStech SDH Gateway
$               Press 'I' to enter interactive startup.
$ done[  $OK  ]
$Setting clock : Thu Jan  1 00:00:01 UTC 1970 [  $OK  ]
$Setting hostname sdh-gateway:  [  $OK  ]
$Mounting local filesystems:  [  $OK  ]
INIT: Entering runlevel: 3
current directory/etc/sysconfig/network-scripts
$Bringing up loopback interface:  Hardware Address
[  $OK  ]
$Bringing up interface eth0:  Hardware Address
[  $OK  ]
$Bringing up interface eth1:  Hardware Address
[  $OK  ]
$Bringing up interface eth2:  Hardware Address
[  $OK  ]
$Starting system logger: [  $OK  ]
$Starting kernel logger: [  $OK  ]
$Starting xinetd: [  $OK  ]
$Starting ntpd: [  $OK  ]
$Starting periodic command scheduler : [  $OK  ]

DENX ELDK version 4.0 build 2006-01-12
Linux 2.6.19.2 on a ppc


When i then try to mount  the PRAMFS i get the following:

sh\$ mount -t pramfs -o physaddr=0x1c000000,init=0x4000000 none /tmp/test/
mount: mounting none on /tmp/test/ failed: No such device
sh\$

I might be missing something simple. There are no recent documentation
regarding PRAMFS  is it still suported or has it been abandoned?

thanks for your time Pieter

Wolfgang Denk wrote:
> Dear Pieter,
>
> In message <48A15FC3.3060008 at vastech.co.za> you wrote:
>   
>> 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.
>>     
>
> So what are the exact boot messages of your kernel?
>
>   
>> I am unable to mount the PRAMFS - all documentation leads me to use
>>
>> mount -t pramfs -o physaddr=0x1c000000,init=0x4000000 none /mnt
>>     
> -------------------------------------------------------------^^^^
>   
>> witch fails with the message:
>> mounting none on /mtd failed: no such devise 
>>     
> -------------------^^^^
>
> /mnt != /mtd
>   
--------------^^^^
This was a typo
> 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
>
>   

-- 
Pieter Henning
VASTech

Tel: +27 (0)21 850 5921
Fax: +27 (0)86 503 8941
e-mail: phenning at vastech.co.za

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20080813/837210b7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2722 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20080813/837210b7/attachment.bin>


More information about the Linuxppc-embedded mailing list