--- Log for 11.10.115 Server: sinisalo.freenode.net Channel: #rockbox --- Nick: logbot- Version: Dancer V4.16 Started: 24 days and 19 hours ago 00.19.38 # <[Franklin]> rockbox seems to automatically shut down when there's no battery but it's on USB 00.19.44 # <[Franklin]> while the OF doesn't 00.20.07 # <[Franklin]> bug or feature? 00.25.45 Quit krabador (Quit: Take The Time) 00.34.45 Join ruhans [0] (uid76353@gateway/web/irccloud.com/x-zefjsqgleubdofty) 00.39.02 Join krabador [0] (~krabador@unaffiliated/krabador) 00.39.46 *** Saving seen data "./dancer.seen" 00.48.16 Quit ender` (Quit: The process takes just over six seconds, and would sound like a coffee machine passing an aluminum baseball bat if there were any atmosphere to carry the sound. -- Howard Tayler: Schlock Mercenary) 00.51.11 Quit n17ikh_ (Changing host) 00.51.11 Join n17ikh_ [0] (~n17ikh@unaffiliated/n17ikh) 00.51.16 Nick n17ikh_ is now known as n17ikh (~n17ikh@unaffiliated/n17ikh) 00.56.21 Quit krabador (Quit: Take The Time) 01.00.35 Quit bertrik (Remote host closed the connection) 01.12.09 Join krabador [0] (~krabador@unaffiliated/krabador) 01.21.49 Quit [Franklin] (Ping timeout: 255 seconds) 01.27.32 Join [Franklin] [0] (~franklin@unaffiliated/franklin) 01.31.24 # Build Server message: 3New build round started. Revision c7fc5ca, 255 builds, 27 clients. 01.37.53 # Build Server message: 3Build round completed after 390 seconds. 01.37.56 # Build Server message: 3Revision c7fc5ca result: 0 errors 2 warnings 01.40.24 Quit pamaury (Ping timeout: 244 seconds) 01.52.50 Quit ZincAlloy1 (Quit: Leaving.) 02.17.20 Quit lebellium (Quit: ChatZilla 0.9.92 [Firefox 42.0/20151008162217]) 02.37.48 Join Strife89 [0] (~Strife89@192-222-31-137.comsouth.net) 02.39.47 *** Saving seen data "./dancer.seen" 03.12.01 Nick Cinos_ is now known as Cinos (~Cinos@a.kittyboy.named.cinos.pw) 03.14.46 Quit [Franklin] (Ping timeout: 255 seconds) 03.17.16 Join [Franklin] [0] (~franklin@unaffiliated/franklin) 03.23.44 Quit [Franklin] (Ping timeout: 244 seconds) 04.16.01 Quit krabador (Quit: Take The Time) 04.28.09 Quit williamtdr (Read error: Connection reset by peer) 04.39.51 *** Saving seen data "./dancer.seen" 04.40.07 Quit Strife89 (Quit: Heading home.) 05.32.53 Join Strife89 [0] (~Strife89@adsl-98-80-221-246.mcn.bellsouth.net) 05.32.55 Quit [7] (Disconnected by services) 05.33.04 Join TheSeven [0] (~quassel@rockbox/developer/TheSeven) 05.51.49 Join williamtdr [0] (uid27909@gateway/web/irccloud.com/x-wczllxxaccuvmalq) 06.21.50 Quit Aldem (Quit: Later) 06.32.22 Join JdGordon_ [0] (~jonno@rockbox/developer/JdGordon) 06.35.05 Quit JdGordon (Ping timeout: 240 seconds) 06.38.58 Nick [Saint] is now known as hayden (~hayden@rockbox/staff/saint) 06.39.05 Nick hayden is now known as [Saint] (~hayden@rockbox/staff/saint) 06.39.54 *** Saving seen data "./dancer.seen" 07.10.59 Quit alexbobp_ (Ping timeout: 264 seconds) 07.57.09 Join alexbobp [0] (~alex@capitalthree.pwnz.org) 07.57.31 Nick alexbobp is now known as Guest12853 (~alex@capitalthree.pwnz.org) 08.02.38 Quit Strife89 (Ping timeout: 246 seconds) 08.06.43 Nick Guest12853 is now known as alexbobp (~alex@capitalthree.pwnz.org) 08.39.58 *** Saving seen data "./dancer.seen" 08.40.51 Quit rela (Ping timeout: 252 seconds) 10.10.03 Join _wodz_ [0] (594b6add@gateway/web/freenode/ip.89.75.106.221) 10.12.40 # <_wodz_> pamaury: I am almost sure you introduced a bug in hwstub lib. in hwstub_tcp_open you should return &dev casted to (struct hwstub_device_t *) 10.14.11 # <_wodz_> not speaking that you don't check if malloc succeeded when alocating hwstub_tcp_device_t struct 10.20.43 Join ender` [0] (krneki@foo.eternallybored.org) 10.29.25 Join dys [0] (~dys@ip-109-44-158-158.web.vodafone.de) 10.30.26 Join petur [0] (~petur@rockbox/developer/petur) 10.36.05 Quit williamtdr (Remote host closed the connection) 10.40.00 *** Saving seen data "./dancer.seen" 10.50.29 Join williamtdr [0] (uid27909@gateway/web/irccloud.com/x-pdirlscrcpikjwmi) 10.52.28 Quit _wodz_ (Quit: Page closed) 10.54.08 Quit mc2739 (Ping timeout: 246 seconds) 10.56.21 Join mc2739 [0] (~mc2739@rockbox/developer/mc2739) 11.11.42 Join xorly [0] (~xorly@ip-86-49-15-121.net.upcbroadband.cz) 11.18.05 Join krabador [0] (~krabador@unaffiliated/krabador) 11.30.54 Quit krabador (Read error: Connection reset by peer) 11.31.47 Join krabador [0] (~krabador@unaffiliated/krabador) 11.37.03 Quit petur (Quit: Leaving) 11.50.20 Join rela [0] (~x@pdpc/supporter/active/rela) 12.03.26 Quit Jinx (Ping timeout: 246 seconds) 12.15.45 Join Jinx [0] (Dojo@unaffiliated/jinx) 12.23.52 Quit krnlyng (Remote host closed the connection) 12.27.26 Join krnlyng [0] (~liar@83.175.90.24) 12.30.33 Join lebellium [0] (~chatzilla@89-93-179-187.hfc.dyn.abo.bbox.fr) 12.35.41 Quit krabador (Read error: Connection reset by peer) 12.37.53 Join krabador [0] (~krabador@unaffiliated/krabador) 12.40.01 *** Saving seen data "./dancer.seen" 12.40.39 Nick pookie_ is now known as olspookishmagus (~pookie@snf-137798.vm.okeanos.grnet.gr) 12.41.03 Nick suYin`OFF is now known as suYin (mysuyin@server2.shellfire.net) 12.51.18 Quit krabador (Read error: Connection reset by peer) 13.01.45 Join krabador [0] (~krabador@unaffiliated/krabador) 13.09.08 Join pamaury [0] (~quassel@rockbox/developer/pamaury) 13.13.17 # wodz (logs): hwstub_tcp_open is correct because the layout of hwstub_tcp_device_t is to put hwstub_device_t at the beginning of the structure 13.13.47 # and yes it should check for malloc return ^^ 13.17.57 Quit krabador (Quit: Take The Time) 13.19.53 # wodz (logs): but if you don't like this cast (which I can understand), feel free to change it, I wrote this in a hurry so I didn't pay too much attention to the style 13.49.19 Nick suYin is now known as suYin`OFF (mysuyin@server2.shellfire.net) 14.20.36 Join Aldem [0] (~Aldem@unaffiliated/aldem) 14.40.05 *** Saving seen data "./dancer.seen" 14.59.14 Quit JanC (Ping timeout: 240 seconds) 15.12.44 Join JanC [0] (~janc@lugwv/member/JanC) 15.30.03 Quit foolsh (Remote host closed the connection) 15.30.55 Join Strife89 [0] (~Strife89@adsl-98-80-221-246.mcn.bellsouth.net) 15.31.25 Join foolsh [0] (~quassel@c-69-245-208-80.hsd1.il.comcast.net) 15.31.57 Quit foolsh (Remote host closed the connection) 15.33.06 Join ZincAlloy [0] (~Adium@pD9FB65F6.dip0.t-ipconnect.de) 15.34.17 Join foolsh [0] (~quassel@c-69-245-208-80.hsd1.il.comcast.net) 16.11.08 Quit foolsh (Remote host closed the connection) 16.16.49 Join wodz [0] (~wodz@89-75-106-221.dynamic.chello.pl) 16.18.26 Join foolsh [0] (~quassel@c-69-245-208-80.hsd1.il.comcast.net) 16.18.27 # pamaury: The returned pointer from hwstub_tcp_open() is not correct. It should return (casted) pointer to hwstub_tcp_device_t instance. 16.19.25 # ah doesn't matter in fact 16.25.00 # hum, it should really be a hwstub_device_t * 16.25.21 # (I mean from the API point of view hwstub_tcp_device_t * doesn't exist 16.25.37 Nick suYin`OFF is now known as suYin (mysuyin@server2.shellfire.net) 16.35.19 # pamaury: I just realized that dev and &dev->dev are the same address 16.35.27 # so it doesn't matter 16.35.57 # yes indeed 16.38.21 Join [Franklin] [0] (~franklin@unaffiliated/franklin) 16.40.08 *** Saving seen data "./dancer.seen" 16.41.18 Quit foolsh (Remote host closed the connection) 16.42.30 Join foolsh [0] (~quassel@c-69-245-208-80.hsd1.il.comcast.net) 16.53.01 Quit foolsh (Ping timeout: 260 seconds) 17.07.55 # wodz: but I agree that &dev->dev is a bit confusing, you should probably replace it 17.11.15 # I'm trying to extract the register doc for the JZ47xx out of the ingenic headers 17.11.34 # this is a bit tricky, clearly those headers have been partially done by hand 17.18.10 Quit [Franklin] (Ping timeout: 264 seconds) 17.20.28 Nick suYin is now known as suYin`OFF (mysuyin@server2.shellfire.net) 17.31.28 Join [Franklin] [0] (~franklin@unaffiliated/franklin) 17.36.40 Nick suYin`OFF is now known as suYin (mysuyin@server2.shellfire.net) 17.45.47 Join foolsh [0] (~quassel@2601:241:c200:4bc5:9545:bba4:997f:1098) 17.46.41 # <[Franklin]> foolsh: conditional jumps are implemented now 17.49.41 Quit foolsh (Remote host closed the connection) 17.50.59 Join foolsh [0] (~quassel@2601:241:c200:4bc5:89df:c874:40a4:41ce) 17.51.25 # [Franklin]: what is this duckscript actually? 17.52.30 Nick suYin is now known as suYin`OFF (mysuyin@server2.shellfire.net) 17.53.07 # <[Franklin]> wodz: it's kinda hard to explain correctly 17.53.18 # <[Franklin]> but it emulates a USB keyboard 17.53.24 Quit Strife89 (Ping timeout: 240 seconds) 17.53.32 # <[Franklin]> but you can script the keystrokes 17.54.05 # <[Franklin]> it's based on this: https://github.com/hak5darren/USB-Rubber-Ducky/wiki/Duckyscript 17.54.39 # What good it is for? testing of programs or waht? 17.54.53 # pamaury: like most of our headers :-) 17.56.04 # <[Franklin]> wodz: anything you can do to a machine with phyiscal access 17.56.41 # [Franklin]: but whats your usecase 17.57.15 Join FSanches [0] (~felipe@2804:14c:37:268b:bc66:534:8d48:7cf0) 17.58.12 # pamaury: what exactly is the uri format in hwstub lib? Examples in comments are kinda contradicting 17.58.24 # <[Franklin]> wodz: it's extremely flexible 17.58.57 Nick suYin`OFF is now known as suYin (mysuyin@server2.shellfire.net) 17.59.39 # [Franklin]: Can I smash nail into the wall? :-P Thats what is possible with physical keyboard. And thats without scripting! 18.00.01 # <[Franklin]> wodz: it sends keystrokes to a USB host 18.00.22 # <[Franklin]> it can execute a malicious payload, for example 18.00.24 # wodz: really ? Do you have an example of contradiction . 18.00.26 # ? 18.00.42 # <[Franklin]> or draw ASCII art 18.00.42 # <[Franklin]> all extremely quickly 18.02.39 # wodz: the most complete documentation of the URI is the one printed by hwstub_uri_usage() 18.07.23 Join Strife89 [0] (~Strife89@adsl-98-80-212-18.mcn.bellsouth.net) 18.10.33 Quit foolsh (Remote host closed the connection) 18.11.44 Join foolsh [0] (~quassel@2601:241:c200:4bc5:20c1:f8f5:c35e:647f) 18.22.14 Quit orly_owl (Read error: Connection reset by peer) 18.22.42 Join orly_owl [0] (~david@unaffiliated/orly-owl/x-3167833) 18.27.17 Quit [Franklin] (Ping timeout: 260 seconds) 18.40.10 *** Saving seen data "./dancer.seen" 19.02.41 Join [Franklin] [0] (~franklin@unaffiliated/franklin) 19.21.44 Join CrashBash-Kun [0] (~CrashBash@unaffiliated/crashbash-kun) 19.25.09 Quit [Franklin] (Ping timeout: 265 seconds) 19.25.23 Join petur [0] (~petur@rockbox/developer/petur) 19.25.55 Join [Franklin] [0] (~franklin@unaffiliated/franklin) 19.26.41 Quit CrashBash-Kun (Quit: Leaving) 20.09.57 Quit wodz (Ping timeout: 268 seconds) 20.32.11 # <[Franklin]> weird... 20.32.26 # <[Franklin]> it appears that USB HID has stopped working altogether on my e200 20.32.42 # <[Franklin]> i.e. HID mode is broken and remote_control isn't working 20.38.07 # <[Franklin]> ok, I'm not going crazy 20.39.14 # <[Franklin]> it's just my computer acting weird 20.40.14 *** Saving seen data "./dancer.seen" 20.41.07 # <[Saint]> pamaury: in a nutshell, what _is_ hwstub/hwstub_server 20.41.22 # <[Saint]> I've looked at the code several times, and I still don't have an accurate understanding of it. 20.43.14 # [Saint]: hwstub is a combination of a small code block running on a device and a library to interact with it 20.43.14 # the goal is to be able to read/write registers and execute code on your device by only loading a small blob with your device in DFU mode 20.43.38 # on top of that, I build hwstub_shell which allows to lua scripting on top of hwstub 20.43.52 # this way you can very easily test code on your device 20.44.07 # that's how I developed all the imx233 ports, especially LCD code 20.44.12 # <[Saint]> ahhh - so, get execution, and, this assumedly helps in (amongst other things) discovery and disassembly? 20.44.39 # in may help in disassembly but it's really most helpful for scripting 20.45.04 # it's much easier to script drivers when your first develop them 20.45.52 # it can also prove useful to OF spying: on several occasions, I modified the OF to run hwstub when some condition was reached (typically, hit a key), then you can inspect the OF and the hardware state 20.45.58 # some form on primitive debugger if you will 20.46.02 # that works with rockbox too 20.46.46 Join ZincAlloy1 [0] (~Adium@p5B2FC996.dip0.t-ipconnect.de) 20.49.02 Quit ZincAlloy (Ping timeout: 252 seconds) 20.51.21 # [Saint]: for example, NWZ E360 drivers in lua: http://git.rockbox.org/?p=rockbox.git;a=blob;f=utils/hwstub/tools/lua/sonynwze360.lua;h=4fabdfd27c65042503aa8ce6556a4da836a6d84f;hb=c7fc5ca 20.55.38 Quit [Franklin] (Quit: Lost terminal) 21.04.26 Quit petur (Quit: Leaving) 21.05.16 Join petur [0] (~petur@rockbox/developer/petur) 21.08.30 Join fs-bluebot [0] (~fs-bluebo@x5ce24439.dyn.telefonica.de) 21.08.53 Quit bluebrother (Disconnected by services) 21.08.58 Join bluebrother [0] (~dom@rockbox/developer/bluebrother) 21.11.11 Quit fs-bluebot_ (Ping timeout: 264 seconds) 21.12.00 Join [Franklin] [0] (~franklin@unaffiliated/franklin) 21.18.18 Join michaelni_ [0] (~michael@chello084114129144.4.15.vie.surfer.at) 21.20.57 Quit michaelni__ (Ping timeout: 240 seconds) 21.28.20 Join TheLemonMan [0] (~lemonboy@unaffiliated/thelemonman) 22.00.14 Quit cmhobbs (Ping timeout: 255 seconds) 22.00.47 Quit xorly (Ping timeout: 265 seconds) 22.07.06 # damn it, can't ingenic just produce *working* headers 22.40.16 *** Saving seen data "./dancer.seen" 22.50.01 Nick suYin is now known as suYin`OFF (mysuyin@server2.shellfire.net) 22.50.02 Quit rela (Ping timeout: 252 seconds) 23.10.33 Quit petur (Remote host closed the connection) 23.20.14 Quit williamtdr (Quit: Connection closed for inactivity) 23.26.07 Quit lebellium (Quit: ChatZilla 0.9.92 [Firefox 42.0/20151008162217]) 23.30.58 Quit TheLemonMan (Quit: "It's now safe to turn off your computer.") 23.39.01 # crazy JZ4760 headers: register address macro depends on an index 'n' but the formula for the address does not ?! 23.48.12 # <[Saint]> I...? 23.48.17 # <[Saint]> How does that even work? 23.55.43 # #define CPM_MSCCPR(n) (CPM_BASE + 0x68) 23.56.07 # I just understood why they did it, but that is *NOT* a good reason 23.57.16 # in fact this is extremely confusing to do so