Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#6060 closed defect (fixed)

mtd makes RedBoot FIS partition corrupted

Reported by: manwe@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: mtd fis redboot routerstation flash Cc:


I'm trying to flash Ubiquiti RouterStation using mtd. Beside of writing kernel and rootfs I'm updating partition layout (in case if new data won't fit old layout).

Here's dump from my work. I'm using image built with trunk revision 18183. Same firmware is on device and image.

Partition "kernel" info:
Memory Address:80060000
Base Address:bf030000
Entry Address:80060000
Data Size:d0000
Partition Size:d0000

Partition "rootfs" info:
Memory Address:0
Base Address:bf100000
Entry Address:0
Data Size:6e0000
Partition Size:ef0000

#data is passed to mtd's stdin, -F values are gathered from firmware
Executing command: mtd -F kernel:851968:2147876864,rootfs:15663104:0 write - kernel:rootfs
Unlocking kernel ...
Unlocking rootfs ...
Writing from <stdin> to kernel ...
Writing from <stdin> to rootfs ...
Updating FIS table... # at this line sometimes I get Sg fault or info that mtd can not validate layout.

After rebooting device RedBoot can not find kernel.
Maybe I'm using mtd -F option in wrong way?
But if seg fault occures, there must be a bug somewhere there :-)

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by kaloz

  • Resolution set to fixed
  • Status changed from new to closed

theoritically nbd fixed this with [17659] long ago, if persist, please reopen

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.