Modify

Opened 8 years ago

Closed 8 years ago

#6442 closed enhancement (fixed)

Fix Serial Flash support

Reported by: Tony Butler <spudz76@…> Owned by: developers
Priority: high Milestone: Kamikaze 8.09
Component: kernel Version: Kamikaze 8.09
Keywords: sflash, serial flash Cc:

Description

This patch adds two files and changes the existing one (which is actually in the wrong place) and enables working serial flash support for brcm-2.4

This is similar to an available sflash patch floating around the Internet but is patched further to support JFFS2 (original patch would fail on zero-length requests made by JFFS2 code)

Attachments (3)

sflash.patch (51.2 KB) - added by Tony Butler <spudz76@…> 8 years ago.
kamikaze-trunk-brcm24-sflash.patch (51.9 KB) - added by Tony Butler <spudz76@…> 8 years ago.
(same effect, for trunk)
kamikaze-809-brcm24-sflash.patch (51.8 KB) - added by Tony Butler <spudz76@…> 8 years ago.
repaired version of previous 809 patch

Download all attachments as: .zip

Change History (7)

Changed 8 years ago by Tony Butler <spudz76@…>

comment:1 Changed 8 years ago by florian

Your patch does not apply cleanly to trunk, could you please respin? It is ok for 8.09 though.

comment:2 Changed 8 years ago by Tony Butler <spudz76@…>

Will do shortly, must get my trunk buildroot working again or check out a new one - currently only builds completely broken images for some reason. Will respin patch and test on an sflash router with trunk to be sure before posting.

Changed 8 years ago by Tony Butler <spudz76@…>

(same effect, for trunk)

Changed 8 years ago by Tony Butler <spudz76@…>

repaired version of previous 809 patch

comment:3 Changed 8 years ago by Tony Butler <spudz76@…>

OK, ignore the previous "sflash.patch" for 809 - I missed a change in one file which would have lead to incomplete link and kernel build crash. Use the repaired "kamikaze-809-brcm24-sflash.patch" version (same thing with the missing file change included).

Built the "kamikaze-trunk-brcm24-sflash.patch" on current trunk and tested, works great.

This adds sflash detection regardless of any option to select it (not needed), so if there are any routers out there with both pflash and sflash on board (probably not) it should pick them both up, otherwise it will automatically find whichever it has available. It should not do anything besides an additional "sflash: not found" kmsg line following the pflash detection lines during boot for existing pflash routers.

comment:4 Changed 8 years ago by jow

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

I committed your changes to trunk, r19171.

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.