User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Fri Jul 25, 2014 12:50 pm

I am posting this outside of the B+ Q&A, because I feel it is a topic in itself.
dom wrote:If anyone has a B+ board, there is a hidden config option:

By default the USB ports are limited to 600mA.
With the new option, this is increased to 1200mA.

The idea is you only set this option if you know you have a good (e.g. 2A) power supply.

Code: Select all

safe_mode_gpio=4  

Code: Select all

max_usb_current=1 
Hi, I have three questions( I am using a BOLSE 5a power supply):

1) Can I put both option in my config.txt, so I do no need to guess which one to use?
Edit:answer seems to be YES
2) Does the modif to config.txt will have the same effect on the USB ports in RASPBMC ?
Edit: It seems that this is not the case (could I get an official confirmation please ?)
(My HD works in raspian, but keep clicking in raspbmc)
edit 25_july: linkto Raspbmc uses its own config.txt

edit2: upon cold NOOBS reboot, my hard disk clicks until raspian boots. 5-15 sec.Not very nice sound to hear.

3) If I log via ssh, can I use a command to verify that I am in 1.2A output mode?

4) EDIT NEW QUESTION: Can I enable this 1.2A command line, via SSH (to enable this in raspbmc)?


Thank you,
Ben
Last edited by blachanc on Sat Jul 26, 2014 3:45 am, edited 2 times in total.
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
RaTTuS
Posts: 10685
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: USB @ 1.2A @ reboot & in other OS (NOT RASPIAN)

Fri Jul 25, 2014 12:52 pm

as long as your raspbmc version is uptodate with the latest firmware then yes -
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

DirkS
Posts: 10497
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: USB @ 1.2A @ reboot & in other OS (NOT RASPIAN)

Fri Jul 25, 2014 12:56 pm

I don't think that stock Raspbmc has been updated to the newest Raspi firmware yet, so the '1.2A update' can't be used yet

Gr.
Dirk.

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB @ 1.2A @ reboot & in other OS (NOT RASPIAN)

Fri Jul 25, 2014 1:01 pm

RaTTuS wrote:as long as your raspbmc version is uptodate with the latest firmware then yes -
Rattus,

Good point (regarding what I am running)I am using a fresh /latest install (RASPIAN and RASPBMC only):

Code: Select all

NOOBS
Offline and network install
Version: 1.3.9
Release date: 2014-07-08
@Rattus:
My experiment seems to tell a different story than what you are saying(ready to do experiment if you want me to do so).
In raspbmc & @ reboot (noobs boot), I hear the horrible (a bit hysterical here ;) ) hard drive clicking noise.
It really sounds like the 1.2A USB is active in RASPIAN only.

Is there a way to interrogate the feature via ssh?

Another observation (sounds like a major limitation in my particular use case scenario):

If I cannot get high power usb @ cold reboot, then I will be stuck using a powered hub (defeats the purpose of high power usb whith hard drive).
I wonder if there is some flash strap that could be programmed, to freeze the 1.2A during reboots.
EDIT:
@ Dirk, Thank you, thats seems to be the current situation.


Ben
Last edited by blachanc on Fri Jul 25, 2014 1:12 pm, edited 1 time in total.
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
RaTTuS
Posts: 10685
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: USB @ 1.2A @ reboot & in other OS (NOT RASPIAN)

Fri Jul 25, 2014 1:11 pm

copy the bootcode.bin file from raspbian /boot parttition to the raspbmc fat partition ?
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB @ 1.2A @ reboot & in other OS (NOT RASPIAN)

Fri Jul 25, 2014 1:15 pm

RaTTuS wrote:copy the bootcode.bin file from raspbian /boot parttition to the raspbmc fat partition ?
Thank you for the suggestion.
I Will try this tonight.

On a side note:
would be nice if this was possible, as I would not need to mess with the original install:
blachanc wrote: 3) If I log via ssh, can I use a command to verify that I am in 1.2A output mode?

4) EDIT NEW QUESTION: Can I enable this 1.2A command line, via SSH (to enable this in raspbmc)?

Thank you for your help,

Ben
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5708
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Fri Jul 25, 2014 6:39 pm

The 1.2A current limit is controlled by GPIO38. Set it high to enable high current mode.

You can read/write it using one of the gpio libraries, or direct from /sys/class/gpio. E.g.

Code: Select all

pi@raspberrypi:~ $ echo 38 | sudo tee /sys/class/gpio/export 
38
pi@raspberrypi:~ $ cat /sys/class/gpio/gpio38/value 
1
In theory it can be maintained across reboots using the gpio pull-ups / pull-downs.

Might be easiest to use a library for this, like wiring pi

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Fri Jul 25, 2014 7:13 pm

@Dom:
Thank you a thousand time!!!!

I will experiment wiith this and let you know the outcome.
I was hoping that GPIO would be the answer, but I did not believe
It would survive reboot.
The pull up / pull down story gives me hope.
I vaguely remember reading the chip spec on this, and the permanent nature of pull up

This mean hope :-)

Thanks again,

Ben
Last edited by blachanc on Sat Jul 26, 2014 1:08 am, edited 2 times in total.
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Fri Jul 25, 2014 7:16 pm

Yep, just found the reference back:

http://www.raspberrypi.org/wp-content/u ... herals.pdf

Page 100:

SYNOPSIS
The GPIO Pull-up/down Register controls the actuation of the internal
pull-up/down control line to ALL the GPIO pins. This register must be
used in conjunction with the 2 GPPUDCLKn registers.
Note that it is not possible to read back the current Pull-up/down
settings and so it is the users' responsibility to 'remember' which
pull-up/downs are active. The reason for this is that GPIO pull-ups are
maintained even in power-down mode when the core is off, when all
register contents is lost. The Alternate function table also has the
pull state which is applied after a power down.
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sat Jul 26, 2014 3:01 am

Hi Dom,

Driving the GPIO 38 does the job in raspbmc , but unfortunately, it does not survive reboots.

I suspect(Hope) that the boot code is writing to GPIO38, which would disable the PULLUP (if I read the spec correctly).
If I am right, the boot code could be modified at one point.

Since I could not find the way to enable pullup via bash, I installed wirinpi in raspbmc:

Code: Select all

pi@raspbmc:~/wiringPi/gpio$ gpio -g mode 38 out
pi@raspbmc:~/wiringPi/gpio$ gpio -g write  38 1
pi@raspbmc:~/wiringPi/gpio$ gpio -g write  38 0 ### Hard drive is clicking
pi@raspbmc:~/wiringPi/gpio$ gpio -g write  38 1 ### Hard drive is Happy
pi@raspbmc:~/wiringPi/gpio$ gpio -g mode 38  up
Reboot
 ### Hard drive is clicking
 ### Hard drive is clicking Please hold on buddy !!
ssh into pi
pi@raspbmc:~/wiringPi/gpio$ gpio -g mode 38 out
pi@raspbmc:~/wiringPi/gpio$ gpio -g write  38 1 ### Hard drive is Happy OUFFFFF
Direct driving in bash:
(Sudo bash is a bad idea, I know, but I am a hardware guy (ASIC design)
Cannot properly code C/python & cannot handle a scope either;)

Code: Select all

sudo bash
cd  /sys/class/gpio
echo 38 > /sys/class/gpio/export
cd /sys/class/gpio/gpio38
echo "out" > /sys/class/gpio/gpio38/direction
echo 1 > /sys/class/gpio/gpio38/value      #### hard disk is happy
echo 0 > /sys/class/gpio/gpio38/value    #### hard disk is clicking
If you have any other experiment you would like me to try, just let me know.

Thank you,

Ben
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sat Jul 26, 2014 3:32 am

While looking around, I found that raspbmc is using it owns config.txt:
So within raspbmc, there is a solution when raspbmc is running.

This does not solve The reboot problem (USB @ low power/600mA), which tortures my drive during boot.
raspbmc_config.jpg
raspbmc_config.jpg (45.02 KiB) Viewed 13320 times

RASPBMC: /boot content:

Code: Select all

pi@raspbmc:/boot$ pwd
/boot
pi@raspbmc:/boot$ ls
LICENCE.broadcom  cmdline.txt  fixup_x.dat  os_config.json
bootcode.bin      config.txt   kernel.img   start_x.elf
pi@raspbmc:/boot$ more config.txt
max_usb_current=1
safe_mode_gpio=4
arm_freq=950
core_freq=450
gpu_freq=253
isp_freq=450
sdram_freq=450
over_voltage=6
disable_overscan=0
gpu_mem=128
start_file=start_x.elf
fixup_file=fixup_x.dat
hdmi_ignore_cec_init=1
Ben
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 12:44 am

You could try also copying the bootcode.bin to the NOOBS RECOVERY partition (/dev/mmcblk0p1) and creating a new config.txt there too? So then both NOOBS and RaspBMC should avoid the drive-clicking...

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 4:57 am

AndrewS wrote:You could try also copying the bootcode.bin to the NOOBS RECOVERY partition (/dev/mmcblk0p1) and creating a new config.txt there too? So then both NOOBS and RaspBMC should avoid the drive-clicking...
not really, and here is why:
prior to the os being loaded, GPIO 38 is low, so the drive does click.
As soon as Raspian or Raspbmc are loaded, the USB port switch to 1.2A,
but this setting is lost at reboot until the os is being reloaded.

so It is the period between the rainbow color screen, until the parameters in the config.txt
are applied to the os that is the issue.
you would see the issue rebooting raspian in a loop. it is worst (in terms of duration) if yo do not select the OS right away (noobs count down)

that being said, I am open to try anything (the permanent atribute of the pullup seems still like a potential solution)

But until we find a solution, the hub remains a mandatory item on the tv stand,

Ben

edit: that gives me the idea of using a non noob install (Raspian or RaspBMC (now that I know which config.txt is being used)) to figure out if without the noob boot, GPIO38 will down to 0 at reboot.
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5708
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 10:47 am

blachanc wrote: If you have any other experiment you would like me to try, just let me know.
It would be good to determine when the pin stops being held high.

After setting the pull-up mode, rename /boot/bootcode.bin and sudo reboot.
This will stop bootcode.bin from loading. If pin is still high, then pull-up is surviving the reset.

Next test, replace bootcode.bin, but rename /boot/start.elf.
This will stop start.elf from loading. If pin is still high, then pull-up is surviving the bootcode.bin.

Next test, replace start.elf but rename /boot/kernel.img.
This will stop kernel.img from loading. If pin is still high, then pull-up is surviving start.elf.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 1:06 pm

blachanc wrote:so It is the period between the rainbow color screen, until the parameters in the config.txt
are applied to the os that is the issue.
you would see the issue rebooting raspian in a loop. it is worst (in terms of duration) if yo do not select the OS right away (noobs count down)
...and that's exactly why I suggested adding the new bootcode.bin and config.txt to the NOOBS /dev/mmcblk0p1 partition too - so that your hard drive won't be clicking during the "noobs count down" :roll:

(When using NOOBS, there are multiple levels of "boot partition" - work-in-progress documentation is at https://github.com/raspberrypi/noobs/wi ... -explained )

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 3:17 pm

@ Dom,
thank you, I will perform the experiment. i own a picoscope 3406 mso (my avatar was created with it). If probing GPIO 38 is easy, I could film the reboot, while peobing the gpio38.
that way, we would then see when the GPIO38 switches to '0'

Ben

@ Andrew:
AndrewS wrote: ...and that's exactly why I suggested adding the new bootcode.bin and config.txt to the NOOBS /dev/mmcblk0p1 partition too - so that your hard drive won't be clicking during the "noobs count countdown
Andrew,
now it is getting more clear ( I think). you are not very verbose, so let me explain what i understand(and please correct me If I don't get it right.):

raspian is using a bootcode.bin that decodes the usb hight power setting in the config.txt file, while noobs bootcode.bin does not. If i place the raspian bootcode & config in noobs boot partition, then noobs booting will read the config.txt seetings.

would doing a raspian stand alone install on the sd card acheive the same experiment?

ben
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 4:12 pm

blachanc wrote:If probing GPIO 38 is easy, I could film the reboot, while peobing the gpio38.
that way, we would then see when the GPIO38 switches to '0'
Until the B+ schematics get released, no way of knowing if / where GPIO38 is probe-able on the PCB.
@ Andrew:
AndrewS wrote: ...and that's exactly why I suggested adding the new bootcode.bin and config.txt to the NOOBS /dev/mmcblk0p1 partition too - so that your hard drive won't be clicking during the "noobs count countdown
now it is getting more clear ( I think). you are not very verbose
Sorry.
raspian is using a bootcode.bin that decodes the usb hight power setting in the config.txt file, while noobs bootcode.bin does not. If i place the raspian bootcode & config in noobs boot partition, then noobs booting will read the config.txt seetings.
Correct, AFAIK. I can't test it as I don't have a clicking hard drive ;-)
The "first" NOOBS boot partition is /dev/mmcblk0p1 and then the Raspbian boot partition might be something like /dev/mmcblk0p5
would doing a raspian stand alone install on the sd card acheive the same experiment?
Yeah, that'd put the Raspbian boot partition on /dev/mmcblk0p1 without any trace of NOOBS at all 8-)
https://github.com/raspberrypi/noobs/wi ... -explained

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 4:39 pm

AndrewS wrote:
blachanc wrote:If probing GPIO 38 is easy, I could film the reboot, while peobing the gpio38.
that way, we would then see when the GPIO38 switches to '0'
Until the B+ schematics get released, no way of knowing if / where GPIO38 is probe-able on the PCB.
ok, then i will cut an usb cable and put a 625 ma load (8 ohms power resistor) and probe its voltage.
I will then monitor the voltage across the load. not perfect, but will spare my hard drive ;) , and will give an indication of when gpio38 goes high.

ben
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 5:51 pm

I created my load circuit (see pict),

I am currently loading a reboot video (I knew my french accent was bad, but wow, this is ridiculous)
gpio38_detector.jpg
USB overcurrent trip circuit:
gpio38_detector.jpg (49.23 KiB) Viewed 12902 times
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 6:19 pm

Hi,

Here is the video (linguist and sensitive hears, I suggest you use the mute button)

Youtube B+raspbmc reboot video

@ dom, now back to your experiment proposal...

Ben
EDIT 14h27: fix link...
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 8:22 pm

@ AndrewS,

I did your raspian only trial, as it was faster to run.
the pull up does not survive reboot:

Putty #1:

Code: Select all

pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.12.22+ #691 PREEMPT Wed Jun 18 18:29:58 BST 2014 armv6l GNU/Linux
pi@raspberrypi ~ $ gpio -g mode 38 in
pi@raspberrypi ~ $ date; gpio -g mode 38  up  #### PULL UP IS WORKING LED on 8Ohms resistor is ON"
Sun Jul 27 19:41:39 UTC 2014 <------- REMEMBER THE DATE and look into putty#2 log
pi@raspberrypi ~ $ sudo reboot
Putty #2:

Code: Select all

pi@raspberrypi ~ $ tail -f /var/log/syslog
[truncated by blachanc]
------>>
------>>  LED on 8 Ohms  resistor connected to USB  is Flashing:
------>>
Jul 27 19:40:16 raspberrypi kernel: [  522.892018] usb 1-1.4: USB disconnect, device number 43
Jul 27 19:40:16 raspberrypi kernel: [  522.892054] usb 1-1.4.1: USB disconnect, device number 44
Jul 27 19:40:16 raspberrypi kernel: [  522.972913] usb 1-1.4.3: USB disconnect, device number 45
Jul 27 19:40:32 raspberrypi kernel: [  538.741644] usb 1-1.4: new high-speed USB device number 61 using dwc_otg
Jul 27 19:40:51 raspberrypi kernel: [  557.941650] usb 1-1.4: new high-speed USB device number 63 using dwc_otg
Jul 27 19:41:09 raspberrypi kernel: [  575.131633] usb 1-1.4: new high-speed USB device number 66 using dwc_otg
Jul 27 19:41:32 raspberrypi kernel: [  598.171617] usb 1-1.4: new high-speed USB device number 71 using dwc_otg
Jul 27 19:41:47 raspberrypi kernel: [  613.651685] usb 1-1.4: new high-speed USB device number 72 using dwc_otg
------>>
------>> Took 6 seconds for the gpio command in Putty #1 to be executed:
------>> (LED on 8 Ohms  resistor connected to USB  is solid on):
------>>
Jul 27 19:41:47 raspberrypi kernel: [  613.752375] usb 1-1.4: New USB device found, idVendor=1a40, idProduct=0101
Jul 27 19:41:47 raspberrypi kernel: [  613.752410] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
Jul 27 19:41:47 raspberrypi kernel: [  613.752426] usb 1-1.4: Product: USB 2.0 Hub
Jul 27 19:41:47 raspberrypi kernel: [  613.764184] hub 1-1.4:1.0: USB hub found
Jul 27 19:41:47 raspberrypi kernel: [  613.764508] hub 1-1.4:1.0: 4 ports detected
Jul 27 19:41:47 raspberrypi kernel: [  614.041644] usb 1-1.4.1: new low-speed USB device number 73 using dwc_otg
Jul 27 19:41:48 raspberrypi kernel: [  614.147846] usb 1-1.4.1: New USB device found, idVendor=046d, idProduct=c05a
Jul 27 19:41:48 raspberrypi kernel: [  614.147881] usb 1-1.4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 27 19:41:48 raspberrypi kernel: [  614.147899] usb 1-1.4.1: Product: USB Optical Mouse
Jul 27 19:41:48 raspberrypi kernel: [  614.147913] usb 1-1.4.1: Manufacturer: Logitech
Jul 27 19:41:48 raspberrypi kernel: [  614.158844] input: Logitech USB Optical Mouse as /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4.1/1-1.4.1:1.0/input/input6
Jul 27 19:41:48 raspberrypi kernel: [  614.164698] hid-generic 0003:046D:C05A.0007: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-bcm2708_usb-1.4.1/input0
Jul 27 19:41:48 raspberrypi kernel: [  614.251829] usb 1-1.4.3: new low-speed USB device number 74 using dwc_otg
Jul 27 19:41:48 raspberrypi kernel: [  614.358472] usb 1-1.4.3: New USB device found, idVendor=046d, idProduct=c31c
Jul 27 19:41:48 raspberrypi kernel: [  614.358509] usb 1-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jul 27 19:41:48 raspberrypi kernel: [  614.358526] usb 1-1.4.3: Product: USB Keyboard
Jul 27 19:41:48 raspberrypi kernel: [  614.358539] usb 1-1.4.3: Manufacturer: Logitech
Jul 27 19:41:48 raspberrypi kernel: [  614.374101] input: Logitech USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.0/input/input7
Jul 27 19:41:48 raspberrypi kernel: [  614.376330] hid-generic 0003:046D:C31C.0008: input,hidraw1: USB HID v1.10 Keyboard [Logitech USB Keyboard] on usb-bcm2708_usb-1.4.3/input0
Jul 27 19:41:48 raspberrypi kernel: [  614.398732] input: Logitech USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.4/1-1.4.3/1-1.4.3:1.1/input/input8
Jul 27 19:41:48 raspberrypi kernel: [  614.400331] hid-generic 0003:046D:C31C.0009: input,hidraw2: USB HID v1.10 Device [Logitech USB Keyboard] on usb-bcm2708_usb-1.4.3/input1
Jul 27 19:47:41 raspberrypi shutdown[2224]: shutting down for system reboot

Broadcast message from root@raspberrypi (pts/0) (Sun Jul 27 19:47:41 2014):
The system is going down for reboot NOW!
Jul 27 19:47:41 raspberrypi init: Switching to runlevel: 6
Jul 27 19:47:42 raspberrypi ifplugd(eth0)[1575]: Exiting.
Edit: here is the reboot video:
Raspian vanilla reboot after setting pull up on GPIO38
Benoit
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Sun Jul 27, 2014 8:50 pm

dom wrote:
blachanc wrote: If you have any other experiment you would like me to try, just let me know.
It would be good to determine when the pin stops being held high.
dom wrote: After setting the pull-up mode, rename /boot/bootcode.bin and sudo reboot.
This will stop bootcode.bin from loading. If pin is still high, then pull-up is surviving the reset.
Using a vanilla install of raspian with modified config.txt to enable High output USB (NOT USING NOOBS).

Nope, led is off (GPIO38 is likely at 0, pull up lost)

Code: Select all

i@raspberrypi ~ $ cd /boot
pi@raspberrypi /boot $ gpio -g mode 38 in; sleep 10 ; gpio -g mode 38  up
pi@raspberrypi /boot $ sudo mv bootcode.bin bootcode.bin_hide
pi@raspberrypi /boot $ sudo reboot
Broadcast message from root@raspberrypi (pts/0) (Mon Jul 28 01:12:27 2014):
The system is going down for reboot NOW!
dom wrote: Next test, replace bootcode.bin, but rename /boot/start.elf.
This will stop start.elf from loading. If pin is still high, then pull-up is surviving the bootcode.bin.
same thing Led turn off...

Code: Select all

pi@raspberrypi /boot $ gpio -g mode 38 in; sleep 10 ; gpio -g mode 38  up
pi@raspberrypi /boot $ sudo mv start.elf start.elf_hide
pi@raspberrypi /boot $ sudo reboot
pi@raspberrypi /boot $
Broadcast message from root@raspberrypi (pts/0) (Sun Jul 27 21:04:28 2014):
The system is going down for reboot NOW!
dom wrote: Next test, replace start.elf but rename /boot/kernel.img.
This will stop kernel.img from loading. If pin is still high, then pull-up is surviving start.elf.
led goes off, boot stalled at the rainbow screen

Code: Select all

pi@raspberrypi ~ $ cd /boot
pi@raspberrypi /boot $ gpio -g mode 38 in; sleep 10 ; gpio -g mode 38  up
pi@raspberrypi /boot $ sudo mv kernel.img kernel.img_hide
pi@raspberrypi /boot $ sudo reboot

Broadcast message from root@raspberrypi (pts/0) (Mon Jul 28 01:04:10 2014):
The system is going down for reboot NOW!


Ben
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Mon Jul 28, 2014 1:53 am

Any other Idea. I am not giving up yet :lol: ?

Ben
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5708
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Mon Jul 28, 2014 10:27 am

blachanc wrote:Any other Idea. I am not giving up yet :lol: ?
Assuming you are running latest (rpi-update) firmware, try adding:
https://dl.dropboxusercontent.com/u/366 ... t-blob.bin

to boot partition (alongside start.elf) and let me know if you see a difference.

User avatar
blachanc
Posts: 466
Joined: Sat Jan 26, 2013 5:03 am
Location: Quebec,canada(french)

Re: USB at 1.2A during reboot & in other OS (NOT RASPIAN)

Mon Jul 28, 2014 12:24 pm

dom wrote:
blachanc wrote:Any other Idea. I am not giving up yet :lol: ?
Assuming you are running latest (rpi-update) firmware, try adding:
https://dl.dropboxusercontent.com/u/366 ... t-blob.bin

to boot partition (alongside start.elf) and let me know if you see a difference.
ok, will try this tonight, and will report results....


Ben
Autism/Asperger syndrome: what is your score on this quiz?
http://www.raspberrypi.org/forums/viewtopic.php?f=62&t=70191

Return to “General discussion”