This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
change default RedBoot "fis load" and "exec" - how?
- From: Tomasz Chmielewski <mangoo at wpkg dot org>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 10 Jul 2006 13:19:31 +0200
- Subject: [ECOS] change default RedBoot "fis load" and "exec" - how?
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