From: benoar@dolka.fr (Benjamin Cama)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH] ARM: dts: Convert Linkstation Mini to Device Tree
Date: Sun, 21 Jun 2015 19:49:16 +0200 [thread overview]
Message-ID: <1434908956.5657.28.camel@dolka.fr> (raw)
In-Reply-To: <CAO10kszcRzLDcWijb6PMQ45YBmTKzx-wXbnMs5r1-wtsoSsKVw@mail.gmail.com>
Le dimanche 21 juin 2015 ? 10:05 +0900, Alexey Kopytko a ?crit :
> >
> > On 20 june 2015 ?., at 10:53, Benjamin Cama <benoar@dolka.fr> wrote:
> >
> > as I had a problem with the hardware that I am
> > going to fix soon, but I wanted some comments on it. I included
> > Andrew's remarks, even though I do not know what to do about the
> > buttons name for now: I don't know how the switch is wired exactly for
> > now, and FYI the ?auto-power? is an intermediate position between off
> > and power that in the original firmware does some wake-up/sleep of the
> > disks when the backup utility is run from the PC connected to the NAS.
> > I never used it and do not know what to do with it, and what ?key?
> > should be associated with it.
> >
>
> 1. These buttons shall be dealt with from the userspace. Actually
> there is a userspace daemon in the original firmware that reboots the
> whole thing if you turn the switch to off position. That's clearly not
> a kernel's job so don't just worry about this switch for now. Moreover
> I don't think this button does anything at all if there's no daemon.
Sorry, I didn't mean to handle it in the kernel, but to associate a
correct _keycode_ with it. I mean, 0 (KEY_RESERVED) for power and 1
(KEY_ESC) for auto-power don't seem right to me.
> Running evtest against this button and wiggling it gives this:
>
> # evtest /dev/input/event0
> Input driver version is 1.0.1
> Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
> Input device name: "gpio-keys"
> Supported events:
> Event type 0 (Sync)
> Event type 1 (Key)
> Event code 357 (Option)
> Event type 5 (?)
> Event code 0 (?)
> Event code 1 (?)
> Testing ... (interrupt to exit)
> Event: time 1434848366.955536, type 5 (?), code 0 (?), value 0
> Event: time 1434848366.955557, -------------- Report Sync ------------
> Event: time 1434848366.955576, type 5 (?), code 0 (?), value 1
> Event: time 1434848366.955589, -------------- Report Sync ------------
> Event: time 1434848366.955593, type 5 (?), code 0 (?), value 0
>
>
> 2. As far as I remember in my patch I intentionally changed states of
> some of the lights to be able to see if a kernel is booting or we have
> a bad build. Can't tell if you did this too, but if I would that will
> be nice for those people who don't have a serial soldered.
Well, there is the basic blinking blue power (from bootloader) named
now lswsgl:power:blue:bottom that transitions to solid blue, that IIRC
the original firmware does too.
Regarding people without serial access: this is the main problem I
think, that make people not use anything else than their stock
firmware; it is too easy to fuck things up and need serial for repair.
Personally, *every* board that I tried toying with ended up needing
some serial access for recovery, so I understand that less
knowledgeable people don't want to risk ?bricking? their device.
Furthermore, Buffalo are really vicious with serial access: traces cut
under a capacitor for this Mini, but for the newer one (LS-WSXL),
traces cut under the SOIC-8 NOR Flash (more difficult to solder) _and_
bootloader not outputting anything on serial port!
No wonder these boards don't get tested much, only crazy people like
me, you and some others do it.
--
benjamin
prev parent reply other threads:[~2015-06-21 17:49 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-20 1:53 [RFC PATCH] ARM: dts: Convert Linkstation Mini to Device Tree Benjamin Cama
2015-06-20 10:33 ` Benjamin Cama
2015-06-20 14:31 ` Andrew Lunn
2015-06-20 17:34 ` Jason Cooper
2015-06-20 18:08 ` Andrew Lunn
2015-06-22 12:12 ` Jason Cooper
2015-06-20 19:35 ` Thomas Petazzoni
2015-06-21 17:56 ` Benjamin Cama
2015-06-21 20:11 ` Andrew Lunn
2015-06-21 1:05 ` Alexey Kopytko
2015-06-21 17:49 ` Benjamin Cama [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1434908956.5657.28.camel@dolka.fr \
--to=benoar@dolka.fr \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).