* boot from jffs
@ 2002-06-19 2:25 Áº²¨
2002-06-19 17:02 ` Justin Wojdacki
0 siblings, 1 reply; 2+ messages in thread
From: Áº²¨ @ 2002-06-19 2:25 UTC (permalink / raw)
To: david; +Cc: linux-mtd
Hi,everybody
I would like to use mkfs.jffs to create a flash image I can burn into flash.
but the question is I don't know how to boot from this image.
the kernel of our system is 2.4.18 and the platform is ppc 8xx_io
series(ppc823)
How to setup jffs/mtd as the root filesystem/dev for our system?
Thanks,
-- nielsen
--http://www.eyou.com
--Îȶ¨¿É¿¿µÄÃâ·Ñµç×ÓÐÅÏä ÓïÒôÓʼþ ÒÆ¶¯ÊéÇ© ÈÕÀú·þÎñ ÍøÂç´æ´¢...ÒÚÓÊδ¾¡
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: boot from jffs
2002-06-19 2:25 boot from jffs Áº²¨
@ 2002-06-19 17:02 ` Justin Wojdacki
0 siblings, 0 replies; 2+ messages in thread
From: Justin Wojdacki @ 2002-06-19 17:02 UTC (permalink / raw)
To: Áº²¨; +Cc: david, linux-mtd
"Áº²¨" wrote:
>
> Hi,everybody
> I would like to use mkfs.jffs to create a flash image I can burn into flash.
>
> but the question is I don't know how to boot from this image.
>
> the kernel of our system is 2.4.18 and the platform is ppc 8xx_io
> series(ppc823)
>
> How to setup jffs/mtd as the root filesystem/dev for our system?
>
> Thanks,
>
> -- nielsen
>
Is your kernel in the filesystem? If it is, then your bootloader needs
to be able to load the kernel into memory from the filesystem. It's
not that hard to do. Easiest thing to do is the following:
1. Hardcode path to kernel. Let's use "/boot/vmlinuz" in this example.
2. Find the jffs2_raw_dirent for the "/boot" directory and record it's
inode number
3. Find the jffs2_raw_dirent for "vmlinuz" that has parent inode ==
"/boot"'s inode and record it's inode number
4. Process all the jffs2_raw_inode's that have the same above's inode
number
5. Jump to kernel entry point
Also, how are you partitioning your flash? You'll probably want to
setup an MTD map for the flash (drivers/mtd/maps), and as part of the
init function, you use MKDEV() to specify the root paritition.
--
-------------------------------------------------
Justin Wojdacki
justin.wojdacki@analog.com (408) 350-5032
Communications Processors Group -- Analog Devices
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-06-19 17:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-19 2:25 boot from jffs Áº²¨
2002-06-19 17:02 ` Justin Wojdacki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox