Modify

Opened 10 years ago

Last modified 8 years ago

#2561 accepted enhancement

Various fixes for AR7

Reported by: Axel Gembe Owned by: florian
Priority: normal Milestone:
Component: kernel Version:
Keywords: !keywords Cc:

Description

I've updated the AR7 patches on my site for the trunk version.

ar7-atm-module-params.patch - This patch adds module params to AR7 ATM so it can be configured with other methods than PROM.

ar7-fritz-reduce-flash-size.patch - Reduces the flash size so it doesn't overwrite the TFFS partition on the FRITZ!Box (this is a bad workaround, help needed)

ar7-fritz-gpio-leds.patch - This adds support for model detection for the new leds-gpio

ar7-fritz-eva-loader.patch - This adds support for the EVA bootloader, this time integrated cleanly into the build system

You can get the patches at http://code.bastart.eu.org/fritz-wrt/

  • Ago

Attachments (4)

ar7-atm-module-params.patch (19.0 KB) - added by Axel Gembe 10 years ago.
ATM module params
ar7-fritz-eva-loader.patch (6.9 KB) - added by Axel Gembe 10 years ago.
EVA loader support
ar7-fritz-gpio-leds.patch (1.7 KB) - added by Axel Gembe 10 years ago.
leds-gpio model detection
ar7-fritz-reduce-flash-size.patch (435 bytes) - added by Axel Gembe 10 years ago.
reduce flash size

Download all attachments as: .zip

Change History (9)

comment:1 Changed 10 years ago by ejka

You can get the patches at http://code.bastart.eu.org/fritz-wrt/

That URL doesn't work. Please attach patches to the ticket.

Changed 10 years ago by Axel Gembe

ATM module params

Changed 10 years ago by Axel Gembe

EVA loader support

Changed 10 years ago by Axel Gembe

leds-gpio model detection

Changed 10 years ago by Axel Gembe

reduce flash size

comment:2 Changed 10 years ago by Axel Gembe

Here are the patches. Anyways, could you send me a traceroute from your location to code.bastart.eu.org to ago at bastart dot eu dot org ?

comment:3 follow-up: Changed 10 years ago by ejka

ar7-fritz-eva-loader.patch

lzma2eva.c should go to tools/firmware-utils. What is $(EVA_LOADADDR)? Kernel entry is always at $(KERNEL_ENTRY), no need for tricks with nm. And why do you need to align squashfs?

ar7-fritz-reduce-flash-size.patch

tffs detection should be added to ar7part.c, tffs partition dump would be nice to have for start. And this should go back to #2281.

comment:4 in reply to: ↑ 3 Changed 10 years ago by anonymous

Replying to ejka:

lzma2eva.c should go to tools/firmware-utils.

Sure, I can do that.

What is $(EVA_LOADADDR)?

EVA loads the kernel at a constant address (0x94100000), but I don't like unnamed magic constants in any code, thats why I added EVA_LOADADDR.

Kernel entry is always at $(KERNEL_ENTRY), no need for tricks with nm.

I don't really know how KERNEL_ENTRY is supposed to work, but are you sure that KERNEL_ENTRY is the same as the LOADADDR in this case ? Does the kernel have some kind of loader at offset 0 or is it LOADADDR + 0x00100000 ?

And why do you need to align squashfs?

I aligned squashfs because the startup always warned me that the filesystem didn't start on an erase boundary. But now that I think about it, I guess it doesn't matter because the SquashFS is read-only anyways.

tffs detection should be added to ar7part.c, tffs partition dump would be nice to have for start. And this should go back to #2281.

I'm trying to get a dump for this. Will post it in #2281 when I have more information.

comment:5 Changed 8 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to assigned

Add Comment

Modify Ticket

Action
as accepted .
Author


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

 
Note: See TracTickets for help on using tickets.