[U-Boot-Users] JFFS2 Image Howto

Hi..
i m still tring with RAMDisk. I cant see " Loading Ramdisk to 00xxxxx, end 00xxxxx ... OK" message while loading my RAMDisk. I want to know howto boot my board with jffs2 file system..
And also i want to know how to integrate RAMDISK n kernel as a single exectuable using mkimage.
Thanks Prakash

In message 1086083340.14769.5.camel@Gargouille.comodoindia you wrote:
i m still tring with RAMDisk. I cant see " Loading Ramdisk to
00xxxxx, end 00xxxxx ... OK" message while loading my RAMDisk. I want to know howto boot my board with jffs2 file system..
I think this is NOT a good strategy. It would be better to bring ONE configurationup and working first, before addressing the next (and even more complex) setup.
And also i want to know how to integrate RAMDISK n kernel as a
single exectuable using mkimage.
Read the FAQ. Especially http://www.denx.de/twiki/bin/view/DULG/CombiningKernelAndRamdisk And please don't tell me this was difficult to find!!
Best regards,
Wolfgang Denk

Hi
Thanks for ur reply. i want to know is there any special procedure to create my own RAMDISK.
I followed this link. http://www.vanemery.com/Linux/Ramdisk/ramdisk.html
and done pMulti image (linux.bin.gz+ramdisk.gz). i have passed the following as my commandline args.
root=/dev/ram0 rw console=ttyS0,115200
I dont know ..where u-boot load the RAMDISK n pass the address to Kernel. i tried this one also ...
root=/dev/ram0 rw initrd=0x00800000,4M console=ttyS0,115200
No use ...
On Tue, 2004-06-01 at 20:10, Wolfgang Denk wrote:
In message 1086083340.14769.5.camel@Gargouille.comodoindia you wrote:
i m still tring with RAMDisk. I cant see " Loading Ramdisk to
00xxxxx, end 00xxxxx ... OK" message while loading my RAMDisk. I want to know howto boot my board with jffs2 file system..
I think this is NOT a good strategy. It would be better to bring ONE configurationup and working first, before addressing the next (and even more complex) setup.
And also i want to know how to integrate RAMDISK n kernel as a
single exectuable using mkimage.
Read the FAQ. Especially http://www.denx.de/twiki/bin/view/DULG/CombiningKernelAndRamdisk And please don't tell me this was difficult to find!!
Best regards,
Wolfgang Denk
Thanks Prakash Comodo Research Lab, Ltd,
---------------------------------------------------------------------- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.If you have received this email in error please notify the sender by replying to the e-mail containing this attachment. Replies to this email may be monitored by Comodo for operational or business reasons. Whilst every endeavour is taken to ensure that e-mails are free from viruses, no liability can be accepted and the recipient is requested to use their own virus checking software.

Hi
Thanks for ur reply. i want to know is there any special
procedure to create my own RAMDISK.
I create my RAMDISK using loop back device, like this: # dd if=/dev/zero of=initrd.img bs=1k count=4096 # mkfs.ext2 -F -v -M0 initrd.img # mount -o loop initrd.img <path to mount point> Now copy all the files needed for RAMDISK to the <path to mount point> Also create the linuxrc script on the /, which will get started when the initrd is mounted. # umount <path to mount point> # gzip -9 < initrd.img > initrd.bin
Use initrd.bin as the image for the RAMDISK.
root=/dev/ram0 rw console=ttyS0,115200
I dont know ..where u-boot load the RAMDISK n pass the address to
Kernel. i tried this one also ...
root=/dev/ram0 rw initrd=0x00800000,4M console=ttyS0,115200
I use this cmd line:
ip=bootp; root=/dev/hda2 rw initrd=0xa1200000,0x400000 console=ttyS00,115200n8
I use my RAMDISK to set up the CF card, which has the rootfs on the second partition. I checked the Linux source code and if you are using the initrd, the linuxrc on the initrd will automatically be called, so there is no need to explicitly state the the root is /dev/ram0.
Check the prepare_namespace in the init/do_mounts.c When initrd is loaded it calls handle_initrd which then creates the kernel thread, do_linuxrc, which executes the linuxrc script on the /.
Hope that helps.
Regards, Matej

In message 1086159710.3796.120.camel@mbmatejdebian.ultra.si you wrote:
I use this cmd line:
ip=bootp; root=/dev/hda2 rw initrd=0xa1200000,0x400000 console=ttyS00,115200n8
Why do you need a ramdisk when your root filesystem is on an IDE device?
Best regards,
Wolfgang Denk

Hi
I use this cmd line:
ip=bootp; root=/dev/hda2 rw initrd=0xa1200000,0x400000 console=ttyS00,115200n8
Why do you need a ramdisk when your root filesystem is on an IDE device?
It is on CF card.
I have to load modules for the PCMCIA support, then start cardmngr which configures the CF card as and IDE drive.
Here is relevant the log: -------------------------- RAMDISK: Compressed image found at block 0 Freeing initrd memory: 4096K VFS: Mounted root (ext2 filesystem). Mounted devfs on /dev /linuxrc: Setting up CF rootfs /linuxrc: Installing modules... Using /lib/modules/2.4.19-rmk7-pxa2-bolfenk3/kernel/drivers/pcmcia/pcmcia_core.o Linux Kernel Card Services 3.1.22 options: [pm] Using /lib/modules/2.4.19-rmk7-pxa2-bolfenk3/kernel/drivers/pcmcia/pxa/pxa_cs.o Intel PXA250/210 PCMCIA (CS release 3.1.22) Using /lib/modules/2.4.19-rmk7-pxa2-bolfenk3/kernel/drivers/pcmcia/pcmcia_core.o Using /lib/modules/2.4.19-rmk7-pxa2-bolfenk3/kernel/drivers/pcmcia/ds.o /linuxrc: Starting cardmanager... cardmgr[24]: watching 1 sockets cardmgr[24]: starting, version is 3.2.3 cardmgr[24]: socket 0: ATA/IDE Fixed Disk cardmgr[24]: executing: 'modprobe ide-cs' cardmgr[24]: + Using /lib/modules/2.4.19-rmk7-pxa2-bolfenk3/kernel/drivers/pcmcia/pcmcia_core.o cardmgr[24]: + Using /lib/modules/2.4.19-rmk7-pxa2-bolfenk3/kernel/drivers/pcmcia/ds.o cardmgr[24]: + Using /lib/modules/2.4.19-rmk7-pxa2-bolfenk3/kernel/drivers/ide/ide-cs.o cardmgr[24]: modprobe exited with status 1 cardmgr[24]: module /lib/modules /2.4.19-rmk7-pxa2-bolfenk3/pcmcia/ide-cs.o not available Trying to free nonexistent resource <f6000000-f600000f> hda: SAMSUNG CF/ATA, ATA DISK drive ide0 at 0xf6000000-0xf6000007,0xf600000e on irq 45 hda: 253952 sectors (130 MB) w/1KiB Cache, CHS=496/16/32 Partition check: /dev/ide/host0/bus0/target0/lun0: p1 p2 ide_cs: hda: Vcc = 3.3, Vpp = 0.0 cardmgr[24]: executing: './ide start hda' /dev/ide/host0/bus0/target0/lun0: p1 p2 /dev/ide/host0/bus0/target0/lun0: p1 p2 cardmgr[24]: + mount -v /dev/hda1 /mnt/hda cardmgr[24]: + mount: Mounting /dev/hda1 on /mnt/hda failed: Invalid argument cardmgr[24]: exiting /dev/ide/host0/bus0/target0/lun0: p1 p2 /dev/ide/host0/bus0/target0/lun0: p1 p2 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Trying to move old root to /initrd ... failed Unmounting old root Trying to free ramdisk memory ... okay --------------------------
Regards, Matej

In message 1086156876.18747.9.camel@Gargouille.comodoindia you wrote:
Thanks for ur reply. i want to know is there any special
procedure to create my own RAMDISK.
No, any standard ramdisk *with* *the* required* *content* is OK.
I dont know ..where u-boot load the RAMDISK n pass the address to
Kernel. i tried this one also ...
Then attach a debugger, and debug the problem in the kernel.
I give up here.
Best regards,
Wolfgang Denk
participants (3)
-
Annamalai Prakash
-
Matej Kupljen
-
Wolfgang Denk