Hi
   
  still cant get to ROMFS loaded, I downloaded a uClinux-dist-2005 and copyed 
my linux-2.6.x directory into it and now I can compile jffs2 but that still 
doesnt help me load the ROMFS
   
  I am currently loading the romfs image from flash @ 0x180000 into ram at 
0x1001c26c (_ebss) using the cp.b uboot command and then executing the kernel 
with go 0x80000.
  uclinux.c seems to be working however I get
   
  Kernel panic - not syncing: No init found.  Try passing init= option to kernel
   
  if I dont copy ROMFS from flash to ram before executing the kernel
   
  VFS fails to mount a file system, so the kernel must be seeing something has 
anyone get any ideas ? the full kernel output follows
   
  RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
uclinux[mtd]: RAM probe address=0x1001c26c size=0x100000
Creating 1 MTD partitions on "RAM":
0x00000000-0x00100000 : "ROMfs"
mtd: Giving out device 0 to ROMfs
uclinux[mtd]: set ROMfs to be root filesystem
*****
VFS: test  name = </dev/root>
VFS: fs_name = <romfs>
mtdblock_open
ok
mtdblock: read on "ROMfs" at 0x0, size 0x200
mtdblock: read on "ROMfs" at 0x200, size 0x200
VFS: Mounted root (romfs filesystem) readonly.
VFS: tried fs_name = <romfs> err 0
Freeing init memory: 4K
mtdblock: read on "ROMfs" at 0x3000, size 0x200
mtdblock: read on "ROMfs" at 0x3200, size 0x200
Warning: unable to open an initial console.
mtdblock: read on "ROMfs" at 0xc00, size 0x200
mtdblock: read on "ROMfs" at 0xe00, size 0x200
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

steven taffs <[EMAIL PROTECTED]> wrote:
  Greg thanks for the reply

I have now created my own MTD mapper file /driver/mtd/maps/actel_m7.c and added 
some lines to /driver/mtd/maps/Kconfig & Makefile so I can select the new 
mapper file however when I try to compile the kernel with the following JFFS2 
option set

Flash systems -> Miscellaneous file system -> JFFS2 support

I get the following compiler error

  In file included from 
/home/steve/uClinux-dist/lib/uClibc/include/linux/signal.h               :4,
                   from 
/home/steve/uClinux-dist/lib/uClibc/include/linux/sched.h:               27,
                   from 
/home/steve/uClinux-dist/lib/uClibc/include/linux/module.h               :10,
                   from 
/home/steve/uClinux-dist/lib/uClibc/include/linux/mtd/mtd.               h:19,
                   from erase.c:9:
  /home/steve/uClinux-dist/lib/uClibc/include/linux/list.h:705: warning: 
#warning                "don't include kernel headers in userspace"
  make[2]: *** [erase] Error 1
  make[2]: Leaving directory `/home/steve/uClinux-dist/user/mtd-utils'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/steve/uClinux-dist/user'
  make: *** [subdirs] Error 
1/home/steve/uClinux-dist/lib/uClibc/include/linux/jiffies.h:416: division by 
zer               o in #if
  /home/steve/uClinux-dist/lib/uClibc/include/linux/jiffies.h:432: division by 
zer               o in #if
  In file included from 
/home/steve/uClinux-dist/lib/uClibc/include/linux/signal.h               :4,
                   from 
/home/steve/uClinux-dist/lib/uClibc/include/linux/sched.h:               27,
                   from 
/home/steve/uClinux-dist/lib/uClibc/include/linux/module.h               :10,
                   from 
/home/steve/uClinux-dist/lib/uClibc/include/linux/mtd/mtd.               h:19,
                   from erase.c:9:
  /home/steve/uClinux-dist/lib/uClibc/include/linux/list.h:705: warning: 
#warning                "don't include kernel headers in userspace"
  make[2]: *** [erase] Error 1
  make[2]: Leaving directory `/home/steve/uClinux-dist/user/mtd-utils'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/home/steve/uClinux-dist/user'
  make: *** [subdirs] Error 1
without the JFFS2 options enabled the kernel compiles ok!

I am using the following sources / tools

Linux version 2.6.11.8-hsc0 
ARM-ELF toolchain 20040427
uClinux-dist-20040408

Have you seen or has anyone seen this problem before? would be greatful for any 
ideas as without the jffs2 kernel support I cant mount the rootfs so I am a bit 
stuck ;-(

Greg Ungerer <[EMAIL PROTECTED]> wrote:   Hi Steven,

steven taffs wrote:
> Ok I have tired changing kernel command line to
> 
> Kernel command line: root=/dev/rom0 initrd=0x00340000,289k 
> console=ttyS0,115200n8
> 
> however I still get the following errors
> 
> initrd (0x00340000 - 0x00388400) extends beyond physical memory - 
> disabling init

A ROMfs filesystem at a fixed address in flash is not a
"ramdisk", as suggested by the initrd= option. You need a
fixed physical mtd mapping to use that as you root fs.

A modern uclinux.c MTD map driver can do this, mapping a
ROMfs from a fixed flash address. I don't recall of hand
if the uclinux.c driver in 2.6.11 had this support. Look
for the config option MTD_UCLINUX_ADDRESS.

Using the normal uclinux.c from uClinux-dist then you
would not need any boot args at all, or if using the
standard main line kernel one then you might need
root=/dev/mtd0.

Regards
Greg




> and
> 
> VFS: Cannot open root device "rom0" or unknown-block(0,0)
> Please append a correct "root=" boot option
> Kernel panic - not syncing: VFS: Unable to mount root fs on 
> unknown-block(0,0)
> 
> 
> does anyone have an idea how I can boot the romfs.img from flash ? 
> 
> */steven taffs /* wrote:
> 
> Hi all
> 
> I am currently porting the uClinux patch from NXP (LPC22xx) to an
> Actel M7 A3P-DEV-KIT-SCS. This demo board is an ARM7TDMI-S enabled
> proASIC3. I am making good progress so far however I am a bit
> confused about how to mount the ROMFS.img file created within
> uClinux-dist.
> 
> The memory map of my system is as follows
> 
> 00000000 003FFFFF flash
> 10000000 10100000 ram (only one 1MB!)
> 
> I am using xip for the kernel which is loaded into flash at address
> 230000 and the data and bss areas are relocated to 10008000 and it
> all boots ok ;-) however its the next stage that I am having trouble
> with. I have loaded ROMFS.img into 340000 and hardcoded at
> kernel compile time the following command line kernel parameters
> 
> Kernel command line: root=/dev/ram0 initrd=0x00340000,289k
> console=ttyS0,115200n8
> 
> However I get the following errors from the kernel at boot up
> 
> initrd (0x00340000 - 0x00388400) extends beyond physical memory -
> disabling initrd
> 
> and
> 
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(1,0)
> 
> I think I need to change the command line somehow to get it to boot
> the ROMFS xip can anyone help? please
> 
> Below is the full kernel output
> 
> => go 230000
> ## Starting application at 0x00230000 ...
> Linux version 2.6.11.8-hsc0 ([EMAIL PROTECTED]) (gcc version 2.95.3
> 20010315 (release)(ColdFire patches - 20010318 from
> http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from
> http://www.snapgear.com/)) #3 Fri May 23 00:08:42 BST 2008
> CPU: Philips-LPC22xx [22000000] (ARMv3)
> Machine: LPC22xx, PHILIPS ELECTRONICS Co., Ltd.
> initrd (0x00340000 - 0x00388400) extends beyond physical memory -
> disabling initrd
> Built 1 zonelists
> Kernel command line: root=/dev/ram0 initrd=0x00340000,289k
> console=ttyS0,115200n8
> PID hash table entries: 16 (order: 4, 256 bytes)
> Dentry cache hash table entries: 256 (order: -2, 1024 bytes)
> Inode-cache hash table entries: 128 (order: -3, 512 bytes)
> Memory: 1MB = 1MB total
> Memory: 900KB available (574K code, 80K data, 4K init)
> Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
> Linux NoNET1.0 for Linux 2.6
> Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing
> disabled
> ?ttyS0 at MMIO 0x0 (irq = 1) is a 16550A
> io scheduler noop registered
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> loop: loaded (max 8 devices)
> Kernel panic - not syncing: VFS: Unable to mount root fs on
> unknown-block(1,0)
> 
> 
> 
> 
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev

-- 
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED]
Secure Computing Corporation PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

  _______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev


       
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to