4 Sep 2006 08:07
Can I change 'RedBoot Config' using MTD driver. ?
Amitesh Singh <singh.amitesh <at> gmail.com>
2006-09-04 06:07:31 GMT
2006-09-04 06:07:31 GMT
Hi all My Task is to set "Boot script" (RedBoot config) value via a linux command. As on RedBoot prompt,we set configurations using 'fconfig',is there any Linux tool which does the same ? i tried to do it in my way. # cat /proc/mtd dev: size erasesize name mtd0: 00040000 00020000 "RedBoot" mtd1: 00f80000 00020000 "unallocated" mtd2: 00001000 00020000 "RedBoot config" mtd3: 00020000 00020000 "FIS directory" First i copied 'mtd2' using 'dd' and then changed the binary using 'hexedit' (just changed Boot script). Before booting,I unlocked RedBoot partitions. +++++++++++++++++++++++++++++++++++++++++++++++++++++++ RedBoot> fis list Name FLASH addr Mem addr Length Entry point RedBoot 0x50000000 0x50000000 0x00040000 0x00000000 RedBoot config 0x50FC0000 0x50FC0000 0x00001000 0x00000000 FIS directory 0x50FE0000 0x50FE0000 0x00020000 0x00000000 RedBoot> fis unlock RedBoot ... Unlock from 0x50000000-0x50040000: .. RedBoot> fis unlock "RedBoot config" ... Unlock from 0x50fc0000-0x50fc1000: . RedBoot> fis unlock "FIS directory"(Continue reading)
\n",
parts[i].name);
}
Now,I am able to read/write "RedBoot config" partition.
RSS Feed