Modify

Opened 5 years ago

Closed 13 months ago

Last modified 13 months ago

#8938 closed enhancement (not_a_bug)

WAG160Nv2: add params to imagetag tool and create binaries for the web i/f

Reported by: jal2@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: toolchain Version: Trunk
Keywords: Cc:

Description

The attached patches add some parameters to the imagetag tool in order to create binaries which can be uploaded in the vendor firmware webinterface and by sercomm tools into the bootloader if it is in download mode (by pressing reset during powerup). The last patch adds the creation of two WAG160Nv2 binaries (annex A and B) to the makefile using the new parameters of imagetag.

This change is required as:

a) the bootloader refuses to boot anything if it doesn't find a so-called pid2 at an flash offset >= 0x200000
As we add the pid2 in imagetag, we are restricted to a read-only rootfs right now.

b) the vendor web interface requires the binary to start with a 64 KByte CFE area, which may consist of zeros, except for a pid area at 0xff80 encoding the hardware id and a md5sum of the whole image at 0xffd0.

The patches applied correctly against svn trunk r25712.

Attachments (5)

0001-imagetag-added-new-option-cfe-prepend-to-prepend-the.patch (23.6 KB) - added by jal2@… 5 years ago.
imagetag: add new parameter --cfe-prepend
0002-imagetag-new-options-to-add-a-pid-in-a-prepended-CFE.patch (18.4 KB) - added by jal2@… 5 years ago.
imagetag: add new options --pid, --pid-hw-id and --pid-annex
0003-imagetag-add-option-cfe-add-md5-to-add-a-md5sum.patch (17.8 KB) - added by jal2@… 5 years ago.
imagetag: add new option --cfe-add-md5 to create the md5sum
0004-imagetag-fixed-pid2-magic.patch (13.0 KB) - added by jal2@… 5 years ago.
imagetag: added creation of pid2 and fixed some bugs introduced with 0002
0005-brcm63xx-add-images-for-WAG160Nv2-for-web-and-cfe-do.patch (2.3 KB) - added by jal2@… 5 years ago.
linux/brcm63xx/image/Makefile: add image generation for WAG160Nv2 annex A and B

Download all attachments as: .zip

Change History (10)

Changed 5 years ago by jal2@…

imagetag: add new parameter --cfe-prepend

Changed 5 years ago by jal2@…

imagetag: add new options --pid, --pid-hw-id and --pid-annex

Changed 5 years ago by jal2@…

imagetag: add new option --cfe-add-md5 to create the md5sum

Changed 5 years ago by jal2@…

imagetag: added creation of pid2 and fixed some bugs introduced with 0002

Changed 5 years ago by jal2@…

linux/brcm63xx/image/Makefile: add image generation for WAG160Nv2 annex A and B

comment:1 Changed 5 years ago by jal2@…

Just saw that the trunk currently overwrites the ath_data flash area (WLAN calibration) with the rootfs for the WAG160Nv2, so we need to fix this together with the above patches.

comment:2 Changed 2 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:3 Changed 13 months ago by anonymous

can all this patches included to actual trunk ?

comment:4 Changed 13 months ago by nbd

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

here's how to get changes into openwrt: https://dev.openwrt.org/wiki/SubmittingPatches

comment:5 Changed 13 months ago by jal2@…

@anonymous
We are currently revisiting these patches for the current trunk.

@nbd
Thanks for the reply. F'up on the patches will go the mailing list. Could someone please remove type == enhancement from this ticket system?

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.