From: Studencki (e. P. <Paw...@er...> - 2000-06-23 12:48:43
|
Hello, Jaswinder, thanks for your help. the problem is, i have already: int rd_size = 4096; /* Size of the RAM disks */ and wenn I'm trying to use RAM disk 4 MB I get these errors: ------------------------------------------------------------------- RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize RAMDISK: ext2 filesystem found at block 0 RAMDISK: Loading 4096 blocks [1 disk] into ram disk... <1>Unable to handle kernel NULL pointer dereference at virtual address 00000000 pc = 8c00d842 Oops: 0001 PC : 8c00d842 SP : 8c1fbb20 SR : 400001f1 TEA : 00000000 R0 : 400001f1 R1 : 00000000 R2 : 40000101 R3 : 8c1fbb34 R4 : 00000000 R5 : 00000000 R6 : 8c07fb14 R7 : 00000000 R8 : 00000000 R9 : 00000001 R10 : 00000400 R11 : 8ce8faa0 R12 : 8c1fa000 R13 : 8c081a3c R14 : 8c1fbb20 --------------------------------------------------------------------- After Your mail, I've increased size rd_size to 8192, but it doesn't help...and I'm still using 2 MB RAM disk... maybe has somebody tried to hard code kernel options (ramdisk_size, ramdisk_start, mem etc.) ?? ( I changed only arch/sh/kernel/setup.c, function parse_mem_cmdline, line memory_start = (unsigned long)PAGE_OFFSET+__MEMORY_START; /* Default is 4Mbyte. */ memory_end = (unsigned long)PAGE_OFFSET+0x01000000+__MEMORY_START; ^^^^^^^^^^^^----- 16 MB RAM should I also modify variables argv_init, envp_init in init/main.c ? or it is all a wrong way to solve this problem? Regards Pawel |