Modify

Opened 6 years ago

Last modified 2 years ago

#8729 accepted enhancement

Leds, button and board id for WNR854T

Reported by: Tanguy Pruvot <tanguy.pruvot@…> Owned by: kaloz
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: wnr854t Cc:

Description

unified patch for WNR854T leds, ticket #8160

Attachments (19)

102-wnr854t_leds_button_and_boardid.patch (5.0 KB) - added by Tanguy Pruvot <tanguy.pruvot@…> 6 years ago.
Makefile (1.0 KB) - added by Tanguy Pruvot <tanguy.pruvot@…> 6 years ago.
Updated Orion Makefile
hardware (2.8 KB) - added by Tanguy Pruvot <tanguy.pruvot@…> 6 years ago.
target/linux/orion/generic/base-files/etc/uci-defaults
hardware.2 (2.8 KB) - added by Tanguy Pruvot <tanguy.pruvot@…> 6 years ago.
fixed uci default hardware file (mac address was bad)
wnr854t-setup.c (7.9 KB) - added by Tanguy Pruvot <tanguy.pruvot@…> 6 years ago.
hmm patch file had bad format... here is the final file…
102-wnr854t_leds_button_and_boardid.2.patch (4.8 KB) - added by Tanguy Pruvot <tanguy.pruvot@…> 6 years ago.
fixed patch (format), tested on 2.6.37
wnr854t-setup.2.c (7.6 KB) - added by Tanguy Pruvot <tanguy.pruvot@…> 6 years ago.
Updated Setup to handle IRQ on reset button without gpio_keys module (both modes)
wnr854t-setup.3.c (7.8 KB) - added by Tanguy Pruvot <tanguy.pruvot@…> 6 years ago.
In fact uboot command line is a normal kernel tag, but ignored by CONFIG_CMDLINE_FORCE
wnr854t-setup.4.c (7.9 KB) - added by Tanguy Pruvot <tanguy.pruvot@…> 6 years ago.
fixed variable declaration warnings in alternative #if defined(CONFIG_KEYBOARD_GPIO)
102-wnr854t_leds_and_resetbutton.patch (5.3 KB) - added by tanguy.pruvot@… 5 years ago.
just add this in target/linux/orion/patches (r26963)
Makefile.2 (1.1 KB) - added by tanguy.pruvot@… 5 years ago.
replace this in target/linux/orion/ (r26963)
102-wnr854t_leds_and_resetbutton.2.patch (4.7 KB) - added by tanguy.pruvot@… 5 years ago.
patch for linux 3.0 (r27933)
102-wnr854t-leds-uboot-and-reset-button.patch (5.4 KB) - added by tanguy.pruvot@… 4 years ago.
patch for 3.3.5
102-wnr854t-leds-uboot-and-reset-button.2.patch (5.4 KB) - added by tanguy.pruvot@… 4 years ago.
cleaner version for linux-3.3.5
102-wnr854t-leds-uboot-and-reset-button.3.patch (5.4 KB) - added by tanguy.pruvot@… 4 years ago.
fix the typo after real build test
wnr854t-setup.5.c (8.3 KB) - added by Tanguy Pruvot 4 years ago.
full file... the last patch is bad (initdata for leds removed and add sw blink)
000-upstream-fix-mpp9.patch (1.4 KB) - added by tanguy.pruvot@… 4 years ago.
recent patch from mainline
102-wnr854t-blinking-leds-and-reset-button.patch (6.1 KB) - added by tanguy.pruvot@… 4 years ago.
proper patch, fully working with blink timer for leds
diff_master_r31688.patch (100.1 KB) - added by tanguy.pruvot@… 4 years ago.
full diff of my tree

Download all attachments as: .zip

Change History (27)

Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

Updated Orion Makefile

Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

target/linux/orion/generic/base-files/etc/uci-defaults

Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

fixed uci default hardware file (mac address was bad)

comment:1 Changed 6 years ago by Nilfred <nilfred@…>

Psss, here we are. Please join us.

Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

hmm patch file had bad format... here is the final file...

Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

fixed patch (format), tested on 2.6.37

comment:2 Changed 6 years ago by kaloz

  • Milestone changed from Kamikaze Features Paradise to Attitude Adjustment (trunk)
  • Owner changed from developers to kaloz
  • Status changed from new to accepted

Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

Updated Setup to handle IRQ on reset button without gpio_keys module (both modes)

Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

In fact uboot command line is a normal kernel tag, but ignored by CONFIG_CMDLINE_FORCE

Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

fixed variable declaration warnings in alternative #if defined(CONFIG_KEYBOARD_GPIO)

comment:3 Changed 6 years ago by Tanguy Pruvot <tanguy.pruvot@…>

comment:4 Changed 5 years ago by tanguy.pruvot@…

Patch (tested on r26963, kernel 2.6.37.6) :

http://tanguy.tk/?q=system/files/102-wnr854t_leds_and_resetbutton.patch

just add this in target/linux/orion/patches

Changed 5 years ago by tanguy.pruvot@…

just add this in target/linux/orion/patches (r26963)

Changed 5 years ago by tanguy.pruvot@…

replace this in target/linux/orion/ (r26963)

Changed 5 years ago by tanguy.pruvot@…

patch for linux 3.0 (r27933)

comment:5 Changed 5 years ago by anonymous

will you continue to ignore this patch ?

comment:6 follow-up: Changed 5 years ago by Nilfred <nilfred@…>

dmesg | grep leds

leds-gpio: probe of leds-gpio failed with error -22

This is my setup:

echo "CONFIG_TARGET_orion=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-ddns=y
CONFIG_PACKAGE_luci-app-qos=y
CONFIG_PACKAGE_luci-app-vnstat=y
CONFIG_PACKAGE_luci-app-wol=y
CONFIG_PACKAGE_luci-i18n-spanish=y
CONFIG_PACKAGE_kmod-fs-cifs=y
CONFIG_PACKAGE_kmod-nls-utf8=y
# CONFIG_PACKAGE_kmod-ath is not set
# CONFIG_PACKAGE_kmod-ath9k is not set
# CONFIG_PACKAGE_kmod-ath9k-common is not set
CONFIG_PACKAGE_kmod-mwl8k=y
CONFIG_PACKAGE_kmod-leds-gpio=y
CONFIG_PACKAGE_kmod-ledtrig-netdev=y
CONFIG_PACKAGE_kmod-ledtrig-netfilter=y
CONFIG_PACKAGE_kmod-button-hotplug=y
CONFIG_PACKAGE_kmod-input-core=y
CONFIG_PACKAGE_kmod-input-gpio-buttons=y
CONFIG_PACKAGE_kmod-input-gpio-keys=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_OPENSSL_ENGINE=y
CONFIG_PACKAGE_prosody=y
CONFIG_PACKAGE_unrar=y" > .config
make defconfig
make world
cp ../../patches/102-wnr854t_leds_and_resetbutton.patch target/linux/orion/patches
make target/linux/clean
make world

Could I have a "svn status" and "svn diff" dump of your setup? Still orange leds @ r29473

Changed 4 years ago by tanguy.pruvot@…

patch for 3.3.5

Changed 4 years ago by tanguy.pruvot@…

cleaner version for linux-3.3.5

Changed 4 years ago by tanguy.pruvot@…

fix the typo after real build test

Changed 4 years ago by Tanguy Pruvot

full file... the last patch is bad (initdata for leds removed and add sw blink)

Changed 4 years ago by tanguy.pruvot@…

recent patch from mainline

Changed 4 years ago by tanguy.pruvot@…

proper patch, fully working with blink timer for leds

comment:7 in reply to: ↑ 6 Changed 4 years ago by Tanguy Pruvot

Replying to Nilfred <nilfred@…>:

dmesg | grep leds

leds-gpio: probe of leds-gpio failed with error -22

This is my setup:

echo "CONFIG_TARGET_orion=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-ddns=y
CONFIG_PACKAGE_luci-app-qos=y
CONFIG_PACKAGE_luci-app-vnstat=y
CONFIG_PACKAGE_luci-app-wol=y
CONFIG_PACKAGE_luci-i18n-spanish=y
CONFIG_PACKAGE_kmod-fs-cifs=y
CONFIG_PACKAGE_kmod-nls-utf8=y
# CONFIG_PACKAGE_kmod-ath is not set
# CONFIG_PACKAGE_kmod-ath9k is not set
# CONFIG_PACKAGE_kmod-ath9k-common is not set
CONFIG_PACKAGE_kmod-mwl8k=y
CONFIG_PACKAGE_kmod-leds-gpio=y
CONFIG_PACKAGE_kmod-ledtrig-netdev=y
CONFIG_PACKAGE_kmod-ledtrig-netfilter=y
CONFIG_PACKAGE_kmod-button-hotplug=y
CONFIG_PACKAGE_kmod-input-core=y
CONFIG_PACKAGE_kmod-input-gpio-buttons=y
CONFIG_PACKAGE_kmod-input-gpio-keys=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_OPENSSL_ENGINE=y
CONFIG_PACKAGE_prosody=y
CONFIG_PACKAGE_unrar=y" > .config
make defconfig
make world
cp ../../patches/102-wnr854t_leds_and_resetbutton.patch target/linux/orion/patches
make target/linux/clean
make world

Could I have a "svn status" and "svn diff" dump of your setup? Still orange leds @ r29473

see patch 000-upstream-fix-mpp9.patch

Changed 4 years ago by tanguy.pruvot@…

full diff of my tree

comment:8 Changed 2 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 accepted .
Author


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

 
Note: See TracTickets for help on using tickets.