User Tools

Site Tools


redboot_recovery

Introduction

A lot of people have made the switch from Redboot to Fastboot on the TS-7260. I did that too. Kernel 2.4 seemed to work pretty well but I needed to run my own 2.6 kernel. After a lot of time trying to make the USB ports work with no success, I decided to go back to Redboot. Searching the Yahoo groups I found this post. The credit goes to Tom Hansen who did it, I just wanted to extend some steps and share some problems I had during the process.

Getting the files

Download the eeprom file for the 7250 (ts7260-default did not work for me):

cd

mkdir ts7260_recovery

cd ts7260_recovery

wget ftp://ftp.embeddedarm.com/images/preboot/ts7250-default

Download the bootrom image:

wget ftp://ftp.embeddedarm.com/images/tsbootrom/ts7260-32-default

Download the redboot image:

wget ftp://ftp.embeddedarm.com/images/redboot/ts7260-32-kernel

Download Serial Blaster and compile it

Download it from here:

wget http://ynezz.ibawizard.net/ts72xx/serial_blaster_1.0.tar.bz2

Make some changes to serial_blaster.c:

tar xvjf serial_blaster_1.0.tar.bz2

cd serial_blaster_1.0

gedit serial_blaster.c

Replace line 174

WriteByte(fd, ch, TRUE);

with:

WriteByte(fd, ch, ((x%1024) == 0) );

Make some changes to boot.S:

gedit boot.S

Uncomment the #define declarations to match your board (mine has 64MB of RAM and 32MB of flash):

@#define SDRAM_SIZE 32
#define SDRAM_SIZE 64

#define FLASH_SIZE 32
@#define FLASH_SIZE 128

Close, save, compile and run it:

make

sudo ./serial_blaster

Copy the files to the TS-7260

Boot the TS-7260 with JP1, JP2 and JP3 installed. Once the system has gotten into redboot over the serial link ignore the 'checksum' message and start minicom.

Load the eeprom image to the RAM on the TS-7260 with (TS-7260):

RedBoot>load -v -r -b 0x00200000 -m xmodem

Copy the 2k eeprom image file with xmodem (PC):

sx  ts7260-default

Write the eeprom image to the eeprom (TS-7260):

RedBoot>eeprom_write -b 0x00200000 -o 0 -l 2048

Load the bootrom image to the TS7260 with:

RedBoot>load -v -r -b 0x00200000 -m xmodem

Copy the bootrom image file with xmodem (PC):

sx ts7260-32-default

Write the bootrom image to the FLASH memory on the TS7260:

RedBoot>fis write -f 0x60000000 -b 0x00200000 -l 0x4000

Load the redboot image to the TS7260 with:

RedBoot>load -v -r -b 0x00200000 -m xmodem

Copy the redboot image file with xmodem (PC):

sx ts7260-32-kernel

Write the redboot image to the FLASH memory on the TS7260:

RedBoot>fis write -f 0x61D04000 -b 0x00200000 -l 0x40000

Turn off, remove JP1 and boot.

redboot_recovery.txt · Last modified: 2017/01/03 21:27 by admin