Modify

Opened 7 years ago

Last modified 4 years ago

#9461 new enhancement

New router Asus RT-G32 b1

Reported by: Sergiy <piratfm@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: ralink, spi, rt-g32, asus, fonera simpl Cc:

Description

This Ralink-based router already described at wiki:
RT-G32 B1

This device uses SPI-flash MX25L3205D. To run openwrt at this device, SPI-driver have to be added to Ralink target device.

ralink_spi.patch - adds SPI bus to RT305x/RT288x.

ralink_asus_rtg32b1.patch - adds "Asus RT-G32 b1" target device. This patch enables m25p80 kernel driver to interconnect with flash through SPI bus. Leds and buttons are not known, so they are commented.

Unfortunaly kernel starts fine only when it's just flashed, or when downloaded from tftp. If kernel started after reboot, or when power enabled, it hangs while detecting RAM:

Linux version 2.6.37.6 (tipok@mythbox) (gcc version 4.5.2 (Linaro GCC 4.5-2011.02-0) ) #1 Wed May 25 11:51:56 EEST 2011
bootconsole [early0] enabled
CPU revision is: 0001964c (MIPS 24Kc)
Ralink RT3350   id:1 rev:2 running at 320.00 MHz
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000

After it hangs...
But when I add some comments to init/main.c and mm/page_alloc.c, kernel starts fine in any case (added comments can viewable at 106-ramips_kernel_start_dirtyhack.patch). Seems there must be some delay while init kernel.

Attachments (5)

ralink_spi.patch (18.3 KB) - added by Sergiy <piratfm@…> 7 years ago.
SPI bus driver for RT305x/RT288x
ralink_asus_rtg32b1.patch (9.6 KB) - added by Sergiy <piratfm@…> 7 years ago.
Asus RT-G32 b1 device support
106-ramips_kernel_start_dirtyhack.patch (2.8 KB) - added by Sergiy <piratfm@…> 7 years ago.
Dirty hack to start kernel (after reboot or powerup)
901-rt2x00-mtd2eeprom.patch (1.5 KB) - added by Sergiy <piratfm@…> 7 years ago.
Patch for mac80211 to read eeprom data from SP. Just put it into package/mac80211/patches/
106-ramips_kernel_init_section_offset.patch (402 bytes) - added by Sergiy <piratfm@…> 7 years ago.
This patch - is replace for 106-ramips_kernel_start_dirtyhack.patch It adds offset to .init kernel section to 0x80220000

Download all attachments as: .zip

Change History (10)

Changed 7 years ago by Sergiy <piratfm@…>

SPI bus driver for RT305x/RT288x

Changed 7 years ago by Sergiy <piratfm@…>

Asus RT-G32 b1 device support

Changed 7 years ago by Sergiy <piratfm@…>

Dirty hack to start kernel (after reboot or powerup)

comment:1 in reply to: ↑ description Changed 7 years ago by Sergiy <piratfm@…>

Here is the real router description: http://wiki.openwrt.org/toh/asus/rt-g32 (not Atheros!)

Changed 7 years ago by Sergiy <piratfm@…>

Patch for mac80211 to read eeprom data from SP. Just put it into package/mac80211/patches/

comment:2 Changed 7 years ago by Sergiy <piratfm@…>

If SPI driver enabled, the stable kernel startup possible when "init" section located above 0x80220000 ram address.

The "hole" must be at addresses: 0x80200000...0x80220000.
This experimentaly proved by Wive-NL developers.

Changed 7 years ago by Sergiy <piratfm@…>

This patch - is replace for 106-ramips_kernel_start_dirtyhack.patch It adds offset to .init kernel section to 0x80220000

comment:3 Changed 7 years ago by anonymous

Does WLAN work with the chip of RT3350?

comment:4 Changed 7 years ago by Sergiy <piratfm@…>

Yes. It works fine.

comment:5 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

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.