public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] change default RedBoot "fis load" and "exec" - how?
@ 2006-07-10 11:19 Tomasz Chmielewski
  2006-07-10 11:52 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Tomasz Chmielewski @ 2006-07-10 11:19 UTC (permalink / raw)
  To: ecos-discuss

I have a Freecom FSG-3 device (ARM, IXP425 network, RedBoot).

By default, RedBoot starts Linux in the following way:

RedBoot> fis load kern1
RedBoot> exec -c "console=ttyS0,115200 root=/dev/hda1 mem=64M@0x00000000"

kern1 sits on /dev/mtd1, as seen here from Linux:


# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00020000 "RedBoot"
mtd1: 00180000 00020000 "kern1"
mtd2: 00180000 00020000 "kern2"
mtd3: 00020000 00020000 "RedBoot config"
mtd4: 00020000 00020000 "FIS directory"


I compiled my own kernel, saved it to /dev/mtd2 (kern2), and boot it as 
follows:

RedBoot> fis load -b 0x00020000 kern2
RedBoot> exec

To do this, I have to ctrl+C when device boots, and type the appropriate 
"fis load..." and "exec" commands.

Is there an easy way to make these new "fis load..." and "exec" commands 
the default ones for RedBoot?

I don't have a JTAG pinout for this device, so I wouldn't like to 
compile RedBoot from scratch, then flash it, and possibly brick the device.

I checked RedBoot documentation, but didn't find any commands to just 
update the default startup commands.



-- 
Tomasz Chmielewski
http://wpkg.org

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] change default RedBoot "fis load" and "exec" - how?
  2006-07-10 11:19 [ECOS] change default RedBoot "fis load" and "exec" - how? Tomasz Chmielewski
@ 2006-07-10 11:52 ` Gary Thomas
  2006-07-10 12:12   ` Tomasz Chmielewski
  0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2006-07-10 11:52 UTC (permalink / raw)
  To: Tomasz Chmielewski; +Cc: ecos-discuss

Tomasz Chmielewski wrote:
> I have a Freecom FSG-3 device (ARM, IXP425 network, RedBoot).
> 
> By default, RedBoot starts Linux in the following way:
> 
> RedBoot> fis load kern1
> RedBoot> exec -c "console=ttyS0,115200 root=/dev/hda1 mem=64M@0x00000000"
> 
> kern1 sits on /dev/mtd1, as seen here from Linux:
> 
> 
> # cat /proc/mtd
> dev:    size   erasesize  name
> mtd0: 00040000 00020000 "RedBoot"
> mtd1: 00180000 00020000 "kern1"
> mtd2: 00180000 00020000 "kern2"
> mtd3: 00020000 00020000 "RedBoot config"
> mtd4: 00020000 00020000 "FIS directory"
> 
> 
> I compiled my own kernel, saved it to /dev/mtd2 (kern2), and boot it as 
> follows:
> 
> RedBoot> fis load -b 0x00020000 kern2
> RedBoot> exec
> 
> To do this, I have to ctrl+C when device boots, and type the appropriate 
> "fis load..." and "exec" commands.
> 
> Is there an easy way to make these new "fis load..." and "exec" commands 
> the default ones for RedBoot?
> 
> I don't have a JTAG pinout for this device, so I wouldn't like to 
> compile RedBoot from scratch, then flash it, and possibly brick the device.
> 
> I checked RedBoot documentation, but didn't find any commands to just 
> update the default startup commands.
>

These commands are modified using the 'fconfig' command.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] change default RedBoot "fis load" and "exec" - how?
  2006-07-10 11:52 ` Gary Thomas
@ 2006-07-10 12:12   ` Tomasz Chmielewski
  0 siblings, 0 replies; 3+ messages in thread
From: Tomasz Chmielewski @ 2006-07-10 12:12 UTC (permalink / raw)
  Cc: ecos-discuss

Gary Thomas wrote:

>> I compiled my own kernel, saved it to /dev/mtd2 (kern2), and boot it 
>> as follows:
>>
>> RedBoot> fis load -b 0x00020000 kern2
>> RedBoot> exec
>>
>> To do this, I have to ctrl+C when device boots, and type the 
>> appropriate "fis load..." and "exec" commands.
>>
>> Is there an easy way to make these new "fis load..." and "exec" 
>> commands the default ones for RedBoot?
>>
>> I don't have a JTAG pinout for this device, so I wouldn't like to 
>> compile RedBoot from scratch, then flash it, and possibly brick the 
>> device.
>>
>> I checked RedBoot documentation, but didn't find any commands to just 
>> update the default startup commands.
>>
> 
> These commands are modified using the 'fconfig' command.

Thanks a lot, that was it!


-- 
Tomasz Chmielewski

Software deployment with Samba
http://wpkg.org


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-10 12:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-10 11:19 [ECOS] change default RedBoot "fis load" and "exec" - how? Tomasz Chmielewski
2006-07-10 11:52 ` Gary Thomas
2006-07-10 12:12   ` Tomasz Chmielewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).