ts-7000
[Top] [All Lists]

Re: [ts-7000] [Newbie question]How to bundle jffs2 image into kernel ima

To:
Subject: Re: [ts-7000] [Newbie question]How to bundle jffs2 image into kernel image
From: Christopher Friedt <>
Date: Tue, 30 Oct 2007 19:57:23 +0100
The first thing you should do is put the original kernel back on.

If you want to run a 2.6 kernel, it would be better to first load it
into RAM (with load -r -b 0x00218000 -m xmodem), and then run it from
RAM, without writing it to on-board flash. You'll probably also have to
create a new root filesystem to play with, instead of using the default
TS filesystem.

When you run the linux kernel, you can ask it to run init from a usb
flash device with something like

exec -c "console=ttyAM0,115200 root=/dev/sda1 rootdelay=5s init=/bin/sh"

Just make sure your root filesystem has /dev/ttyAM[012] with the correct
major and minor numbers. The above command would run a shell directly
after the linux kernel loads. If you omit the init= option, then linux
will try to run /sbin/init or something along those lines.

Also, using an external usb flash device as root would probably lengthen
the lifespan of your on-board flash, especially when you're
experimenting ;-)

Cheers,

Chris


bin_huang828 wrote:
> Hi,
> I am trying to port kernel 2.6.19 onto my 7200 with the help of old
> messages. Here is what I did and what I am confusing about:
> 1. I use "fis delete" command to erase current kernel image 2.4 on my
> 7200.
> 2. I followed Christ¡¯s guide and get zimage compiled successfully.
> 3. Use "load -m xmodem -r -b 0x218000" to download zimage into flash.
> Then created a portion called zimage in flash
>
> When I reboot my 7200 I realized I did not bundle root file system
> since a panic showed up:
>  "No file system to mount, tried ext2¡±.
>
> Then I download mtd utility onto my host and use mkfs.jffs2 to create
> a root file system image which I named jffs2.image. Now how can I
> bundle this image in the kernel zimage?
>
> I want to do it this way because I think TS-7200 flash device is
> divided into three partitions and only the second partition
> (mtdblock1) will keep both linux zimage and my jffs2 root file system.
> There is not way to keep zimage and root file system separately in the
> flash. I cannot tell redboot to go fetch linux kernel in one partition
> and then execute the root file system from another one.
>
> So am I thinking it in the wrong way? I did not try TFTP boot or HTTP
> boot since I want to study jffs2.
>
> Thanks
> Bin
>
>
>



Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/


<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU