All of lore.kernel.org
 help / color / mirror / Atom feed
* RamDisk
@ 2002-09-12 18:59 Aman
  2002-09-12 22:08 ` RamDisk Matt Porter
  0 siblings, 1 reply; 16+ messages in thread
From: Aman @ 2002-09-12 18:59 UTC (permalink / raw)
  To: linuxppc embedded


Hi All

I am using a PPC 440 evaluation Kit with openbios as the monitor code. I
have successfully download kernel image using the NFS. Now I want to create
a RAMDISK for the PPC 440. After which I want to download the RAMDISK and
the kernel image to the RAM. My question is, using the monitor
code(OpenBios), is it possible to download both the image ie RAMDISK and
Kernel image to the RAM.

Thanking you in advance

Regards
Aman


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

^ permalink raw reply	[flat|nested] 16+ messages in thread
* Problem porting 2.4.17 linux to MPC8260ADS
@ 2003-02-21 16:15 Kamalesh B
  2003-02-21 17:04 ` Dan Malek
  0 siblings, 1 reply; 16+ messages in thread
From: Kamalesh B @ 2003-02-21 16:15 UTC (permalink / raw)
  To: Coray Tate, linuxppc-embedded


Hello,

Iam porting Linux 2.4.17 on MPC8260ADS. I had already working
Linux-2.4.1 version on MPC8260ADS board.

I have patched all the board specific changes to 2.4.17 and compiled.
When i loaded the image on board using PPCBOOT and run it, it hangs in
function "MMU_init_hw" (arch/ppc/mm/ppc_mmu.c) which is called from
MMU_init (arch/ppc/mm/init.c). And MMU_init is called from "_start_here"
subroutine in head.S file.

I had rather taken an tedious process of identifying the problem by
glowing LEDs present on the board. I have identify the location of the
problem.

Problem:
In "MMU_init_hw" function, it checks for this condition
"cur_cpu_spec[0]->cpu_features & CPU_FTR_HPTE_TABLE" and panics by
blinking leds in specific pattern after accessing the structure.

--- Code begins ---
 if ((cur_cpu_spec[0]->cpu_features & CPU_FTR_HPTE_TABLE) == 0) {
  /*
   * Put a blr (procedure return) instruction at the
   * start of hash_page, since we can still get DSI
   * exceptions on a 603.
   */
  hash_page[0] = 0x4e800020;
  flush_icache_range((unsigned long) &hash_page[0],
       (unsigned long) &hash_page[1]);
  return;
 }
--- Code ends ---

"cur_cpu_spec" is a array of pointer to cpu_spec structure
(include/asm-ppc/cputable.h) containing CPU related informations. I
understand that this is something to do with multiple processors system.
I checked the value of cur_cpu_spec[0] pointer. It was zero. At this
time, MMU would be ON with SDRAM located at 0xc0000000 (Logical
address). So when processor access this sructure which is pointing to 0
(outside physical memory boundary), it throws machine check exception
and calls panic function to display leds in specific pattern. This is
where iam stuck.

I also tried commenting this line as this was not there in 2.4.1
version. Here control went till this point in "head.S" code

--- Code start ---
/*
 * Go back to running unmapped so we can load up new values
 * for SDR1 (hash table pointer) and the segment registers
 * and change to using our exception vectors.
 */
 lis r4,2f@h
 ori r4,r4,2f@l
 tophys(r4,r4)
 li r3,MSR_KERNEL & ~(MSR_IR|MSR_DR)
 FIX_SRR1(r3,r5)
 mtspr SRR0,r4
 mtspr SRR1,r3
 SYNC
 RFI
/* Load up the kernel context */
2:

--- Code ends ---

After RFI instruction executed, it stops or hangs without any
indication. Expected result was control should jumps to label "2:" and
then branch to "load_up_mmu" function and "start_kernel" function.

I suspect cpu setup problem and may be MMU also.

Any help will be appreciated,
thanks in advance,
with rgds,
kamal

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

^ permalink raw reply	[flat|nested] 16+ messages in thread
* ramdisk
@ 2007-09-03 13:04 Xu Yang
  2007-09-03 15:03 ` ramdisk Bill Davidsen
  2007-09-04 15:04 ` ramdisk linux-os (Dick Johnson)
  0 siblings, 2 replies; 16+ messages in thread
From: Xu Yang @ 2007-09-03 13:04 UTC (permalink / raw)
  To: LKML

Hi everyone,

I want to use ramdisk to boot my filesystem, as I can't use NFS and harddisk.

I have load the ramdisk into the ram memory (start address :0x4000000)

and in the boot options I specified : root =dev/ram0 initrd=0x4000000

but the kernel said it can not find any file system on it.

Here is the information I can supply :
U-Boot 1.2.0 (Aug 31 2007 - 20:54:55)

***  Auto-detects ethernet chip ***



DRAM:   0 kB
## Unknown FLASH on Bank 1 - Size = 0x00000000 = 0 MB
Flash:  0 kB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial

Hit any key to stop autoboot:  0
## Booting image at 00007fc0 ...
   Image Name:   Linux-2.6.19-arm2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    740372 Bytes = 723 kB
   Load Address: 00008000
   Entry Point:  00008000
OK


## Loading Ramdisk Image at 04000000 ...
   Image Name:   ramdisc
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    12582962 Bytes = 12 MB
   Load Address: 04000000
   Entry Point:  04000000

Starting kernel ...


.........................................................................................

RAMDISK driver initialized: 16 RAM disks of 10240K size 1024 blocksize
<6>loop: loaded (max 8 devices)
<6>mice: PS/2 mouse device common for all mice
<6>VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 3
No filesystem could mount root, tried:  ext2 cramfs vfat
<0>Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(1,0)


Who can give me some hints ? or point me some direction to handle this.

I appreciate this very much.

regards,

Yang

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

end of thread, other threads:[~2007-09-19 17:15 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-12 18:59 RamDisk Aman
2002-09-12 22:08 ` RamDisk Matt Porter
  -- strict thread matches above, loose matches on Subject: below --
2003-02-21 16:15 Problem porting 2.4.17 linux to MPC8260ADS Kamalesh B
2003-02-21 17:04 ` Dan Malek
2003-02-24  6:45   ` Kamalesh B
2003-02-24  8:10     ` Shen Rong
2003-02-28  5:31       ` RAMDISK Kamalesh B
2003-02-28 21:29         ` RAMDISK Wolfgang Denk
2007-09-03 13:04 ramdisk Xu Yang
2007-09-03 15:03 ` ramdisk Bill Davidsen
2007-09-03 17:03   ` ramdisk Xu Yang
2007-09-03 23:21     ` ramdisk Bill Davidsen
2007-09-04  8:52       ` ramdisk Xu Yang
2007-09-04 15:04 ` ramdisk linux-os (Dick Johnson)
2007-09-04 21:37   ` ramdisk Xu Yang
2007-09-04 22:43     ` ramdisk linux-os (Dick Johnson)
2007-09-05  8:07   ` ramdisk Uli Luckas
2007-09-05 11:22     ` ramdisk Xu Yang
2007-09-05 11:35       ` ramdisk Xu Yang
2007-09-19 17:14         ` ramdisk Midhun A

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.