Date: Fri, 15 Jul 2016 13:37:28 -0500 From: Karl Denninger <karl@denninger.net> To: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: Uboot RPI2 can get USB to scan, but doesn't see keyboard Message-ID: <42808748-214c-3361-399a-cc216c20f77b@denninger.net> In-Reply-To: <1468607341.72182.330.camel@freebsd.org> References: <e3f66777-1132-cbd9-4edc-e52c007d30e3@denninger.net> <1468607341.72182.330.camel@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 7/15/2016 13:29, Ian Lepore wrote: > On Fri, 2016-07-15 at 13:23 -0500, Karl Denninger wrote: >> I have successfully patched the u-boot code to obtain a USB scan >> during >> pre-boot (so in theory a USB keyboard would work during u-boot time >> on >> the Pi) but it appears that something is missing in that either the >> usb >> keyboard never attaches (despite being declared as a legitimate input >> source in stdin) or it is not being picked up in the first place. >> >> I'm not sure which is the case and the uboot output doesn't make >> clear >> which is the case -- has anyone else worked on this? From what I can >> discern it *does* work with Linux distributions, so it has to be >> something in our config file for u-boot and not an inherently >> impossibility with u-boot on this platform. >> > u-boot on rpi has long been able to handle full speed and high speed > devices (not sure what you would have patch, since this has always > worked), but not low speed devices such as a keyboard. It may be that > mainline u-boot has finally gotten that bug fixed (a fix was said to be > in testing when I checked a few months ago). If so, we need to update > our u-boot ports for rpi. > > -- Ian Our config file for the 2015-04 port did not specify "usb start" in the preboot stanza so the USB subsystem was never probed by default. You could turn it on via the serial console (if you had one) but not having it there in the first place leads to a chicken-and-egg problem. It also appeared that reading the uEnv.txt file is not enabled so there was no way to 'stuff' that command in (even once) for a system without a serial console. The lack of low-speed may be why although the usb probes the keyboard doesn't attach. The git repo specifically references the following though for the Pi in the defaults file 158 <http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/rpi.h;h=dbbb81efa99f527b2617e0f5c33a2c8ecee5ac38;hb=HEAD#l158> /* Environment */ 159 <http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/rpi.h;h=dbbb81efa99f527b2617e0f5c33a2c8ecee5ac38;hb=HEAD#l159> #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG 160 <http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/rpi.h;h=dbbb81efa99f527b2617e0f5c33a2c8ecee5ac38;hb=HEAD#l160> #define ENV_DEVICE_SETTINGS \ 161 <http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/rpi.h;h=dbbb81efa99f527b2617e0f5c33a2c8ecee5ac38;hb=HEAD#l161> "stdin=serial,usbkbd\0" \ 162 <http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/rpi.h;h=dbbb81efa99f527b2617e0f5c33a2c8ecee5ac38;hb=HEAD#l162> "stdout=serial,lcd\0" \ 163 <http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/rpi.h;h=dbbb81efa99f527b2617e0f5c33a2c8ecee5ac38;hb=HEAD#l163> "stderr=serial,lcd\0" And in addition it ALSO specifies "usb start" in the default preboot stanza. That STRONGLY implies that the code has been fixed and a USB keyboard will work. -- Karl Denninger karl@denninger.net <mailto:karl@denninger.net> /The Market Ticker/ /[S/MIME encrypted email preferred]/ [-- Attachment #2 --] 0 *H 010 `He 0 *H _0[0C)0 *H 010 UUS10UFlorida10U Niceville10U Cuda Systems LLC10UCuda Systems LLC CA1"0 *H Cuda Systems LLC CA0 150421022159Z 200419022159Z0Z10 UUS10UFlorida10U Cuda Systems LLC10UKarl Denninger (OCSP)0"0 *H 0 X@vkY Tq/vE]5#֯MX\8LJ/V?5Da+ sJc*/r{ȼnS+ w")ąZ^DtdCOZ ~7Q '@a#ijc۴oZdB&!Ӝ-< ?HN5y 5}F|ef"Vلio74zn">a1qWuɖbFeGE&3(KhixG3!#e_XƬϜ/,$+;4y'Bz<qT9_?rRUpn5 Jn&Rx/p Jyel*pN8/#9u/YPEC)TY>~/˘N[vyiDKˉ,^" ?$T8 v&K%z8C @?K{9f`+@,|Mbia 007++0)0'+0http://cudasystems.net:88880 U0 0 `HB0U0, `HB OpenSSL Generated Certificate0U-h\Ff Y0U#0$q}ݽʒm50U0karl@denninger.net0 *H Owbabɺx&Uk[(Oj!%p MQ0I!#QH}.>~2&D}<wm_>V6v]f>=Nn+8;q wfΰ/RLyUG#b}n!Dր_up|_ǰc/%ۥ nN8:d;-UJd/m1~VނיnN I˾$tF1&}|?q?\đXԑ&\4V<lKۮ3%Am_(q-(cAeGX)f}-˥6cv~Kg8m~v;|9:-iAPқ6ېn-.)<[$KJtt/L4ᖣ^Cmu4vb{+BG$M0c\[MR|0FԸP&78"4p#}DZ9;V9#>Sw"[UP7100010 UUS10UFlorida10U Niceville10U Cuda Systems LLC10UCuda Systems LLC CA1"0 *H Cuda Systems LLC CA)0 `He M0 *H 1 *H 0 *H 1 160715183728Z0O *H 1B@ ~<`15ېDѥb#!-*Bvn8Kk Ho&\V 0l *H 1_0]0 `He*0 `He0 *H 0*H 0 *H @0+0 *H (0 +710010 UUS10UFlorida10U Niceville10U Cuda Systems LLC10UCuda Systems LLC CA1"0 *H Cuda Systems LLC CA)0*H 1010 UUS10UFlorida10U Niceville10U Cuda Systems LLC10UCuda Systems LLC CA1"0 *H Cuda Systems LLC CA)0 *H pM9;p>->>Zf6G#@f?_Qo=-haRK$#|Rean`z^Ӥ}dvڷZPmkmRʻ7 Xq&bW\'@QhEҬ5P{-/<Nwްf{mcJ z t,bpt%[S Y۠H8Ԑ-GU =kpnK NqPtKNe=X[h@*6S'_"ÿCi{Ipa dس1a[ Zl'Dw:/l=9Ix0V =ɠ+ ]xs/S hJr%RRc5jcHqG89g*,+cݧ~ -<Llհ1U̫*ށ0E4cx&a/_ZQ,3p_w :8=(g^DO9,";(home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42808748-214c-3361-399a-cc216c20f77b>
