ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development discussion - Don't ask to ask. Just ask! - See http://linux-sunxi.org | https://github.com/linux-sunxi/ | Logs at http://irclog.whitequark.org/linux-sunxi
<slapin> Turl: wow, cool, I need to find such thing and look at this
<slapin> probably it is overpriced thing intended for media consumers
<slapin> any cheap LCD modules recently?
<Turl> basically for 20/20 vision (average) the eye can't spot two things that are more than 1/60 of a degree apart
<Turl> so if you cannot spot the spacing then it's "retina"
<Turl> but as always, it's a marketing buzzword and it can be stretched
<slapin> I see, so if tou make very small 800x480 display, like n770's or n800's, or even n900's it is retina, then.
<Turl> n900 has 267ppi acording to wikipedia
<Turl> for phones it's over 300 to be considered 'retina' I think
<bfree> it has to be Apple to be Retina® ;-) http://en.wikipedia.org/wiki/Retina_display
<Turl> but yeah, what defines it is the ratio between resolution and size
<Turl> and normal usage distance (eye-screen)
torqu3e has joined #linux-sunxi
rz2k has quit []
mdfe has quit [Remote host closed the connection]
torqu3e has quit [Quit: torqu3e]
hramrach has quit [Ping timeout: 276 seconds]
hramrach has joined #linux-sunxi
egbert has joined #linux-sunxi
egbert_ has quit [Ping timeout: 264 seconds]
merbzt has quit [Remote host closed the connection]
<ZaEarl> Turl, we'll probably do an A31 ZaTab first, since the board makers are already ramped up on it.
<ZaEarl> Hopefully they can ramp up on the A20 quickly.
nicktime has joined #linux-sunxi
Skaag has joined #linux-sunxi
<Skaag> this patch needs to be applied: https://lkml.org/lkml/2012/8/8/271
<Skaag> for eeti touchscreen devices
<Skaag> On branch stage/sunxi-3.0
torqu3e has joined #linux-sunxi
torqu3e has quit [Read error: Connection reset by peer]
torqu3e has joined #linux-sunxi
Guest10764 has quit [Remote host closed the connection]
christopher has joined #linux-sunxi
christopher is now known as Guest13955
uro has quit [Ping timeout: 264 seconds]
ZaEarl has quit [Ping timeout: 264 seconds]
Guest13955 is now known as anunnaki
anunnaki has quit [Quit: Leaving]
anunnaki has joined #linux-sunxi
Dave77 has joined #linux-sunxi
Dave77 has quit []
uro has joined #linux-sunxi
rellla has joined #linux-sunxi
eebrah has joined #linux-sunxi
<uro> R
<oliv3r> those A20 devices are all pre-orders though I assume
shineworld has joined #linux-sunxi
uro has quit [Ping timeout: 248 seconds]
plan_b has joined #linux-sunxi
shineworld has quit [Quit: Leaving]
mdfe has joined #linux-sunxi
zub_ is now known as zub
eebrah has quit [Ping timeout: 252 seconds]
paulk-desktop has joined #linux-sunxi
eebrah has joined #linux-sunxi
plan_b has quit [Quit: plan_b]
eebrah has quit [Quit: Leaving]
rellla has quit [Remote host closed the connection]
wingrime has joined #linux-sunxi
von_fritz has joined #linux-sunxi
<wingrime> hramrach: are you here ?
anunnaki has quit [Ping timeout: 248 seconds]
rz2k has joined #linux-sunxi
<hramrach> wingrime:
<wingrime> hramrach: I think we can make suspend work without that image suspend.bin
<wingrime> If we remove disable interpurt in suspend functions in drivers
<wingrime> I mean wakeup sources
<hramrach> did not look what the image does
<hramrach> but don't see anything much bad with the image in general
<wingrime> 1) save wakeup sources reqs
eebrah has joined #linux-sunxi
<wingrime> 2) configure irq controler for wakeup sources
<wingrime> 3) suspend dram
<wingrime> 4) suspend cpu
<wingrime> 5) resume dram
<wingrime> 6) restore Irq config
<wingrime> 7) restore wake sorce regs
<hramrach> 3 and 5 needs to be done in sram presumably
anunnaki has joined #linux-sunxi
<wingrime> we can simply not suspend dram
<hramrach> that wil give less power saving
<wingrime> or we can use kernel attributes to place funtion to SRAM
<wingrime> or we can write this part on asm
<wingrime> this will be small function
<wingrime> all we have to make likner place this in SRAM
<wingrime> kernel support this AS I saw
<hramrach> well, it should be possible to get usable standby by running the sram code in cpu_do_idle except 3) and 5)
<wingrime> we can skip all stuff related saving / restoring HW registers, simply removing IRQ suspend on driver
<wingrime> as IRQ enabled it will wakeup
<wingrime> suspend cpu is simple
<wingrime> WFI asm command
<hramrach> that will need quite a bit driver cleanup I suspect :<
<wingrime> not much
<wingrime> only for wakeup source
<wingrime> add some Kconfig for it
<hramrach> I looked at usb driver
<wingrime> I don't know what problem
<hramrach> it does not even register the function that would get what suspend state the system is entering
<wingrime> but my USB mouse loss power after wakeup
<hramrach> that's probably A13 specific
<wingrime> who controls USB power
<hramrach> the usb driver using a gpio presumably
<hramrach> there is a config for it in .fex file
ssvb_ has quit [Read error: Connection reset by peer]
ssvb has joined #linux-sunxi
<hramrach> hcd registers struct platform_driver.driver.pm.suspend but disp registers platform_driver.suspend. the latter gets state, the earlier does not
<hramrach> meant to look for some linux documentation that specifies wth these are supposed to do
<hramrach> but did not get to it
<wingrime> I see functions exist but not used
<wingrime> i get it right?
<wingrime> hramrach: why not add this to platform_driver
<hramrach> well, you probably can just drop the driver.pm and register driver.suspend instead
<hramrach> did not try if that breaks something
<wingrime> hramrach: usb code look like piece of shit
<wingrime> hramrach: it relay need deep rewrite
<wingrime> hramrach: it looks strange
<wingrime> hramrach: but suspend calls
<wingrime> hramrach: but resume noy
<wingrime> *not
<wingrime> hramrach: it relay strange.....
<wingrime> I commented out resume in sw_hcd0.c
<wingrime> usb after resume begin to work then , power down
<wingrime> reconneced, and begin to work
ZaEarl has joined #linux-sunxi
ganbold___ has joined #linux-sunxi
ganbold__ has quit [Remote host closed the connection]
eebrah has quit [Read error: No route to host]
eebrah has joined #linux-sunxi
_jm has joined #linux-sunxi
<_jm> techn_ : have you seen A31 tv box: http://www.alibaba.com/product-gs/783912371/Priviate_Model_Android_Quad_Core_TV.html Unsure what "Private model" means though
nicktime has quit [Quit: Leaving.]
<Turl> _jm: rk3066?
<techn_> :)
<techn_> picture says dual core, quad core and rk3066.. text says qual core a31 ;)
<techn_> oh.. there is 4 different options a10s, rk3066 and that a31
<_jm> yes, the last one "the private model" is A31
<jelly-home> silly case design
rellla has joined #linux-sunxi
<hramrach> wingrime: sun4i usb has resume func
<hramrach> hmm, not much difference between the two drivers
<wingrime> hramrach: I finaly found where issue
<wingrime> hramrach ochi and echi both disable clocks
<wingrime> when suspend
<wingrime> but!
<wingrime> hcd0 stop suspend when see that clocks stoped
<wingrime> that code have 3 or more copies
<wingrime> but all have checks
<wingrime> I have to simply remove checks
paulk-desktop has quit [Quit: Ex-Chat]
<hramrach> I think I don't have hcd0
<hramrach> it is enabled
<hramrach> so not that
<wingrime> my explain of bug
<wingrime> echi and ochi have resume / suspend functions that calls close_clock()
<wingrime> hcd0 also have resume/suspend functions
<wingrime> and have ovn clocks functions
<wingrime> but hcd0 also check is_clk_enabled that shared between allmodules
<wingrime> on suspend resume
<wingrime> module resume not clear and order not definef
<wingrime> this can make this issue , on resume hcd want is_clk_enabled = 1 but some other module (echi or ochi) do same before
<wingrime> so it stop suspend stupid way leave "suspend" var in 1 state
<wingrime> that prevent any usb to connect
<wingrime> hramrach: how my version
<wingrime> ?
<wingrime> if suspend order [oe]chi -> hcd -> suspend -> wakeup -> hcd -> [oe]chin all good
<wingrime> otherwice bug triggers
rz2k has quit []
<hramrach> do you get one of the messages like "usb clock is close, can't close again"
<wingrime> yep
<wingrime> after replace "pr_info"
<wingrime> now I checked
<wingrime> after remove clock check form remove/resume all good
<wingrime> also close_clock () - also have this check so don't matter
<hramrach> I get this with the check in place: http://paste.debian.net/242295/
<hramrach> perhaps the clock is wrong and should be separate for ohci/hcd0?
<wingrime> hramrach: suspend order matters
<hramrach> so it suspends in different order for you?
<wingrime> maybe
<wingrime> just teory
<wingrime> but my fix works
<hramrach> do you also get the crash when suspending with framebuffer in dpms off mode?
<wingrime> a13 have not HDMI
<wingrime> a have not ops
<wingrime> on suspend/resume
<hramrach> so not possible there ;-)
<wingrime> Thereis other issuee
<wingrime> not all drivers have suspend defined
<wingrime> only earlysuspend
<wingrime> we have fix this
<wingrime> also xfce WM not feels touchscreen
anunnaki has quit [Ping timeout: 264 seconds]
<wingrime> hramrach: do you think I have send path
<wingrime> bug presen when echi suspends after hcd
<wingrime> or ochi
<wingrime> ?
anunnaki has joined #linux-sunxi
rz2k has joined #linux-sunxi
bfree has quit [Ping timeout: 252 seconds]
bfree_ has joined #linux-sunxi
torqu3e has quit [Remote host closed the connection]
torqu3e has joined #linux-sunxi
_jm has quit [Quit: Loqui powered]
rellla has quit [Remote host closed the connection]
anunnaki has quit [Remote host closed the connection]
calris has quit [Ping timeout: 256 seconds]
calris has joined #linux-sunxi
bfree_ has quit [Quit: Konversation terminated!]
torqu3e has quit [Read error: Connection reset by peer]
torqu3e has joined #linux-sunxi
bfree has joined #linux-sunxi
ganbold___ has quit [Remote host closed the connection]
<wingrime> \list
<wingrime> mnemoc: saw patch?
<wingrime> mnemoc: are you here?
<wingrime> this is my wifi-support patch from AW
<hramrach> patches are always good :)
eebrah has quit [Ping timeout: 264 seconds]
eebrah has joined #linux-sunxi
<wingrime> Now i fix checkpatch warnings for zet6221 driver
<mnemoc> wingrime: for defconfig changes I need commits that change them all consistently, can you send me such patch?
<mnemoc> also, we keep `savedefconfig`ed files, not full .config copied over
<wingrime> mnemoc: if you taking about wifi patch, i say: not now, now I do zet6221 cleanup for checkpatch
<mnemoc> wingrime: i'll try to cherry-pick the driver part later tonight.
<wingrime> mnemoc:thanks, I make configs patches later
<wingrime> also a13 required some stuff for add such PM and CPUFREQ
<wingrime> in config
<mnemoc> in defconfigs the idea (ok, my idea) is to keep 3 variants for each SoC (nothing per-device). one for android, one for linux desktop and one for headless (but supporting humble dynamic fb) linux
<mnemoc> and all consistent between each other
<mnemoc> [help wanted]
<wingrime> need some one who have such variants
<hramrach> i wonder
<hramrach> should a defconfig include everything, kitchensink included
<hramrach> like people wanting nfs root
<hramrach> that's general non-sunxi-specific option
<hramrach> you can enable it in any config that allows for networking
<hramrach> why defconfig
<hramrach> does x86 defconfig have that?
<jelly-home> less work for distro kernel maintainers if you already enable everything
<wingrime> hramrach: x86 have make allyesconfig
<hramrach> hmm, that fails on sunxi I suspect
<jelly-home> (and less work for me if there already are drivers for hid_lenovo_tpkbd and snd-usb-audio and usb ethernet and... the kitchen sink)
<jelly-home> which versions of sunxi-3.4 had slow/buggy wemac, I suppose that's fixed now?
<hramrach> not really
<hramrach> all are buggy in different ways from what I see on the ml
<jelly-home> ok, then I still want that usb ethernet thingy
<wingrime> if I have some devboard maybe I can look into ethernet
<hramrach> well, then you can enable everything USB in the defonfig because the boards do have USB
<hramrach> why is any USB device disableb?
<jelly-home> the only answer I can think of is "dev can't bother waiting more than 5 minutes for build"
<mnemoc> hramrach: I don't mean kitchensink included, I mean sunxi-related stuff and basic suppoty only
<mnemoc> hramrach: disabling mali is not trivial. enabling android is not trivial
<mnemoc> hramrach: just a base line, but consistent, and useful for testing
<libv> mdfe had to enable quite a few things for plasma active, not sure what the diff is like though
<wingrime> I prefer not think about plasma speed on a10....
<mdfe> nod
<mdfe> however, any interrest to the overhault kernel config?
<mdfe> does not sound so
<ssvb> hramrach: I generally don't like begging people to reconfigure and recompile their kernel just to run some tests
<ssvb> hramrach: if "hwpacks" are provided, they are better to include everything and a kitchen sink as long as this does not regress anything (other than the slight increase of the code size)
<hramrach> well, then it should include all USB devices ;-)
<ssvb> maybe
n01 has joined #linux-sunxi
n01 has quit [Client Quit]
mdfe has left #linux-sunxi ["http://quassel-irc.org - Chat comfortably. Anywhere."]
n01 has joined #linux-sunxi
n01 has quit [Client Quit]
n01 has joined #linux-sunxi
n01 has quit [Client Quit]
n01 has joined #linux-sunxi
n01 has quit [Client Quit]
n01 has joined #linux-sunxi
torqu3e has quit [Ping timeout: 245 seconds]
n01 has quit [Quit: leaving]
hansg has joined #linux-sunxi
n01 has joined #linux-sunxi
<wingrime> hramrach: IDE trigger come from mainstream
<wingrime> don't do stupid things
<wingrime> remove this simply make merge mainstream changes difficult
torqu3e has joined #linux-sunxi
<Turl> wingrime: a little bit expensive for a sun3i isn't it? :P
n01 has quit [Quit: leaving]
<wingrime> Turl: I think we can drop sun3i support
<jelly-home> Turl: ooh it has a rtc and a battery!
<wingrime> Turl: if must consts 20$
<Turl> wingrime: there was a guy with a blog hacking on sun3i
<wingrime> he must send patches....
<Turl> wingrime: http://www.sysfwlab.com/
uro has joined #linux-sunxi
<hramrach> wingrime: no need to take that patch if not liked
<wingrime> and what the question, Why I feel a10 slower than 600Mhz msm7227 ?
<hramrach> but we have the ide trigger hacked anyway
<mnemoc> wingrime: check cpufreq?
<wingrime> mnemoc: even on performance
<wingrime> android stock use fantasy
<wingrime> and it still fells slowe
<wingrime> I think it maybe related with some cpu cache, or non optimized io
<wingrime> I hope a31 little core can help decode music
<wingrime> or other "little things"
n01 has joined #linux-sunxi
<Turl> wingrime: NAND is really slow
<Turl> I bet your msm has eMMC
<wingrime> Or I just andorid 4.0 raise hunger so much tan 2.3
<wingrime> Turl: who can make bencmarks ?
torqu3e has quit [Read error: Connection reset by peer]
<wingrime> Turl: we can make profiling
<wingrime> Turl: nope Nand
n01 has quit [Client Quit]
<wingrime> any one do profiling
<wingrime> ?
n01 has joined #linux-sunxi
n01 has quit [Client Quit]
<wingrime> It realy strange , that games run fast but android ui so slow
torqu3e has joined #linux-sunxi
<wingrime> first version
<wingrime> one touch still
<wingrime> but this no hard problem
<wingrime> how it looks?
<Turl> wingrime: it has a lot of 'magic numbers'
<Turl> if you #define them with a reasonable name on a header, it can make code easier to read
<mnemoc> and many functions should be static
<wingrime> Turl: I still don't know that this numbers same on other tablets with oter firmware
<wingrime> Turl: it based on ft5x_ts some code stil same
<Turl> oh ok
<wingrime> this function realy don't required
<techn_> hmm.. what I'm missing.. I cant get serial output working with sdcard-adaptor :/
n01 has joined #linux-sunxi
<wingrime> I dont' know is this still required
<wingrime> I still have clean so much
<Turl> techn_: did you rebuild uboot and set up script.bin?
<Turl> you need to disable mmc on script.bin too, pins conflict iirc
<wingrime> Who can add some timeout and try again on error in SPL
<mnemoc> ssvb: I someone takes care of improving the defconfigs I have to trouble of building (and uploading to dl.linux-sunxi.org) a tarball of each every time something gets merged (3.0 and 3.4, and stages too)
<wingrime> than a don't need to long press button 5 times to reboot
<techn_> Turl: yes.. I added UART0_PORT_F for my board.. and changed scrpt.bin to use correct uart (I'm trying this with a13 board)
<wingrime> mnemoc: whats wrong with gaget
<wingrime> why It not merged by default in 3.4
<mnemoc> wingrime: reason was it's implemented in android.c, and we first went to 3.3 (without android.c) before jumping to 3.4
<mnemoc> wingrime: and anyhow, we can't have android-only usb gadget
<techn_> Turl: Is pin 1 on left or right? http://linux-sunxi.org/File:JTAG_MicroSD_UART-front.jpeg
<wingrime> mnemoc: you want simply port android based gadget to 3.4
<wingrime> mnemoc: or make it work without ?
<mnemoc> wingrime: I want a gadget/sunxi.c :)
<mnemoc> after that we can obsolete 3.0 and focus in 3.4 (and forward sun6i/sun7i there)
calris has quit [Ping timeout: 246 seconds]
<mnemoc> hope it makes sense
<wingrime> so better, at first move android gadget to 3.4 ?
<mnemoc> wingrime: I think it's better to move android gadget to android-less in 3.0
<mnemoc> and then it will be trivial to forward to 3.4
<mnemoc> but on a base where gadget works already
<wingrime> mnemoc: I saw usb infrastucture
<wingrime> sunxi usb look like pice of shit
<mnemoc> yes, it needs to be reimplemented
<mnemoc> but we can refactor just enough to get gadget on not-android and then deprecate 3.0
<mnemoc> before taking the huge enterprise of making a new sunxi-usb
<wingrime> mnemoc: I think that we can drop suspend.bin rewited no-dram place in ASM and place it to SDRAM using sections
<mnemoc> (or refactoring the current "pice of shit" into sanity)
<mnemoc> wingrime: in sun7i that's even harder, as suspend is handled by an openrisc core :<
<Turl> techn_: I suspect 1 is on the same side as 1 on the sd part
<Turl> techn_: it'd make no sense to cross over the lines
<mnemoc> wingrime: but surely I would love to get rid of that bin
<wingrime> mnemoc: Anyway, I wan't make code for mainline , and more one on sun67 nothing changes becose we STILL wait interupt
<wingrime> Or something like
<techn_> Turl: ok.. no help yet :(
<wingrime> or I don't know other way Stop CPU
<wingrime> or they poweroff whole cpu ?
<wingrime> mnemoc: any way, we can simply make #define for sun6-7
<techn_> Turl: how about.. should I update spl when I'm updating u-boot.. and where I should put SPL on flash?
<mnemoc> anything that means cleaning without reducing functionality is 100% welcomed. but it's prefered if it comes after unifying the corresponding mach-sun?i/ things
<Turl> techn_: spl? wut
<mnemoc> wingrime: sun7i (A20) seems to be just like sun4i/sun5i in this regard
<techn_> Turl: sunxi-spl.bin
<Turl> techn_: if you're going to use the sd port to debug, you need to boot from nand
<Turl> so you'd use the lichee branch with nand support
<Turl> I don't think it produces spl
<techn_> Turl: oh.. forgot that
torqu3e has quit [Ping timeout: 245 seconds]
<techn_> but shouldn't it give output to serial.. even it wont boot?
<Turl> boot0/1 on nanda will load your uboot bin and run it
<Turl> if uboot has the right config it'll output stuff
<Turl> not sure where do boot0/1 output to
n01 has quit [Quit: leaving]
<mnemoc> wingrime: sure we can #ifdef ... 3.4 isn't multiplatform, but having #ifdef's get us in better shape for mainlining that completely separated files/trees as today
<Turl> you can use if(machine_is_xyz()) too if you want to avoid ifdefs
<mnemoc> a unified sunxi-foo driver with ifdefs is an step forward in whatever way want to look at it
<wingrime> mnemoc: we can still make #ifdef in Kconfig in sunxi-plat
<mnemoc> wingrime: main problem with leaving some sun?i behind is that it will be much harder to maintain
<mnemoc> we need to try to unify as much as possible
shineworld has joined #linux-sunxi
<mnemoc> but if it's not possible with sun6i's openrisc thingy, sh*t happens
<mnemoc> that ar100 core probably deserves it's own driver outside mach-sun6i
<wingrime> mnemoc: many phone SoC have same things
<wingrime> mnemoc: msm have arm7
<mnemoc> who do they deal with the toolchain issue?
<wingrime> mnemoc: that core run som realtime OS
<wingrime> mnemoc: only blobs
<mnemoc> ok
<wingrime> mnemoc: for example msm use oncrpc for talking with so-core
<wingrime> mnemoc: so-core constaing thing related with modem, gps , sound hw, video hw decoding
<wingrime> mnemoc: all interfaces conected using shared memory
<wingrime> some window in memory
<mnemoc> wingrime: so we keep sun6i's ar100 as a separated make and for every other sunxi your redesigned not-.bin suspend
<wingrime> mnemoc: it relay not difficult , modem inplements some "services" that have some "functions" that coded in numbers
<wingrime> mnemoc: separate repo
<mnemoc> ok
<mnemoc> makes sense
<mnemoc> can we get usb-gadget first? :) to make this suspend change AFTER deprecating 3.0
<wingrime> mnemoc: I think same
<mnemoc> \o/
<mnemoc> br
<mnemoc> brb
<wingrime> mnemoc: also, about msm, msm loads so-core before kernel start to boot
<wingrime> mnemoc: kernel simply has interface for remote call to so-core
<wingrime> mnemoc: better place single so-core image with kernel on fat partion and load using u-boot
<wingrime> mnemoc: if it possible, better have single image for so-core with some rtos and call to it using some "remote procedure call"
<mnemoc> meh
<mnemoc> but makes sense
<wingrime> mnemoc: I think I know why aw make so-core , thay likly wan't go to phone market-share
<wingrime> mnemoc: GPS,GSM need realime handling and separated suspend for baseband
<mnemoc> this sun6i A31s is "phablet" oriented
<mnemoc> s/this/their/
<wingrime> mnemoc: they think about future, implement GSM,GPS,3G,EDGE very hard and cost amount of time
<mnemoc> the A31 (not 's') is for large fancy tablets
<wingrime> memoc: it looks like first steps
<mnemoc> yes
<mnemoc> some months ago someone said allwinner was going against rk
<wingrime> LTE,3G,EDGE, make teqs Quallcomm makret share leaders,
<mnemoc> err... not rk, mt
<wingrime> MT have GSM at beginig
<rz2k> so-core constaing thing related with modem - dear god, please dont try to reverse these blobs
<wingrime> even cheap china clone phones based on mtk whithout android have own-made rt-os and gsm on same core
<rz2k> they contain of debug-enabled, non-stripped code
<rz2k> banged together buy 2-3 outsorcers
<rz2k> that is the situation on SGS2
<rz2k> their blobs write logs on each event ...to nand.
<wingrime> thereis no way make GSM code quck only use 3d-company solutions
<rz2k> not to mention, that half time you miss calls - it is a deadlock in these blobs.
<rz2k> when it deadlocks, it can deadlock a nand write, then make a hung task in kernel.
<wingrime> rz2k: it funny when modem hung, than all hung without any word in uart
<rz2k> then, most notorious, you will never believe, but in old SGS2 firmwares you could send shellcode in USSD/Push-SMS
<rz2k> and gain access and do whatever you want
<jelly-home> yay for remote exploits
torqu3e has joined #linux-sunxi
<rz2k> eventually that blob was reversed and this came out https://github.com/grindars/android_hardware_samsung_freeril
<wingrime> shell code in sms
mdfe has joined #linux-sunxi
<wingrime> that any hackers move can't even imaging ....
<rz2k> by shellcode I obviously meant just remote code execution
<rz2k> you need to implement back connection and etc. in grindars example it was just cpu reset
<wingrime> mnemoc: not ar100 or100
<wingrime> mnemoc: not see any or100 or ar100
<wingrime> mnemoc: only or1000
shineworld has quit [Remote host closed the connection]
<wingrime> mnemoc: only blob
<wingrime> where ar100 code ?
<wingrime> mnemoc: this is only interface for ar100
<mnemoc> separated repo I fear
<wingrime> mnemoc: remove procedure call etc
<wingrime> mnemoc: you saw this ?
<wingrime> mnemoc: this is worse-case-scenario if this not GPL
<mnemoc> wingrime: I only overlooked some files and diffstat while rebasing/sanitizing
<wingrime> memcpy((void *)ar100_sram_a2_vbase, (void *)(&ar100_binary_start), binary_len);
<wingrime> code much simple for understand
<wingrime> but we MUST HAVE ar100 code bye gpl
<wingrime> we even don't know what intstructions set it have
<hramrach> there is no need for them to release that I suspect
<wingrime> 76 kb not much for rewrite
<wingrime> I hope
<wingrime> form asm
<mnemoc> RE time :)
<mnemoc> well... not yet
<wingrime> this is worst-case
<mnemoc> usb gadget first, and then decent suspend for sunxi minus sun6i
<wingrime> this good,
<wingrime> we can remove this blob from kernel and load as binary image from fat partion using u-boot
<wingrime> this is simple
<hramrach> maybe that hdmi suspend patch helps
<mnemoc> bloody blobs
<wingrime> mnemoc: yep, we can simply reset ar100 in kernel
<hramrach> but I guess it does not just apply at this point
<wingrime> loading it to mem better from u-boot
<wingrime> hramrch: try add manualy
<rz2k> RE-ing is going to wait
<rz2k> it is encoded somehow
<mnemoc> hramrach: no idea why, but I only got 0/5 and 3/5 of your block device led patch :<
<wingrime> mnemoc: this is also aprove my theroy that blob will not released bue default becose it will become baseband
<rz2k> (that is the list of strings in ar100 blob)
<wingrime> mnemoc: I don't like hramrach patch
<wingrime> it remove mainstram things
<mnemoc> agree, but where are the other 4 patches of the serie?
<hramrach> mnemoc: I see them all
<hramrach> you probably get out of order when one is replied to
<mnemoc> .oO
<hramrach> btw all the patches hack mainline
<mnemoc> hramrach: ideally this should go to mainline first, and "backport" only after they agree with it
<wingrime> mnemoc:[linux-sunxi] [PATCH 3/5] Remove ide disk trigger - why not simply disable in config
<hramrach> some testing on more than one system might be helpul
<wingrime> mnemoc: it bad ided to remove thing from mainline
<wingrime> hramrch: try send to mainline
hansg has quit [Remote host closed the connection]
<wingrime> mnemoc: don't afraid ar100 it simply handle suspend,axp,dvfs
<wingrime> mnemoc: mostly harmfull
<ssvb> wingrime: if it is OPENRISC, then this might be the needed architecture manual - http://opencores.org/or1k/Architecture_Specification#Download_OR1K_1.0_Specification
<ssvb> wingrime: and there should be also binutils patches for it
<wingrime> ssvb: main problem that IDA don't support this
mdfe has quit [Ping timeout: 248 seconds]
<ssvb> well, we could at least use "objdump -d" just to see if the instructions look correct
<wingrime> mnemoc: I not understand android.c in gadget have not any sunxi code at all in 3.0 branch
<rz2k> wingrime: IDA will not, look at pic above, it is encrypted
<rz2k> I vote for mips, tho
<ssvb> rz2k: maybe just some sort of base64/uue/... encoding?
<rz2k> yeah, looks like it
<wingrime> rz2k: may be xor ?
<rz2k> xor should mess up everything, no?
mdfe has joined #linux-sunxi
<rz2k> ida detects strings and \n's are there
<rz2k> but everything else if mess
<ssvb> there are some repeated regular pattern, so it does not look like a real cypher
<rz2k> s/if/is/
<wingrime> rz2k: yeax good cripher not leave pattens
<wingrime> it look like xor
<wingrime> or simular simple
<rz2k> thank god they didnt go xbox. HMAC key hardcoded in die.
<wingrime> rz2k: It very likely that code decodes itself
<wingrime> see begin
<wingrime> it must have code for self-decode
<rz2k> I see ton of 00 :)
<wingrime> rz2k: image copied to SRAM
<wingrime> wich means it can have RAM section here
<wingrime> also 00 - are nop
<wingrime> or wait
<hramrach> mnemoc: look earlien in the mbox. those are sorted latest
<hramrach> ewh
<hramrach> looking at scrollback
<rz2k> it is nop in mips, iirc
<wingrime> rz2k: I found simple key
<wingrime> rz2k: see 32107654BA98
<wingrime> 9FEDCnoc
<wingrime> rz2k: try relpace symbols in 012345679abcdefg
<wingrime> 3->1 2->1 ...
<wingrime> make full ansver
<mnemoc> wingrime: from https://github.com/amery/linux-allwinner/commits/lichee/a10-dev/drivers/usb/gadget I think "Nov 24, 2011" was the last on the source drop
<mnemoc> the initial we used for sunxi-3.0, when we trashed our old work on 2.6.36
<ssvb> rz2k, wingrime : looks like a real unencrypted little endian openrisc code :) because 0x15000000 is NOP for openrisc and I see quite a lot of these in "ar100.code" file :)
eebrah has quit [Quit: Leaving]
<hramrach> that long for nop
<wingrime> hramrach: simpler cpu have fixed size instruction
<ssvb> just ordinary fixed size 32-bit instructions
<ssvb> btw, the output of "./objdump -EL --target binary --architecture or32 -D ar100.code" looks sane
<wingrime> give me paste
<wingrime> mnemoc: I don't know what you want
<wingrime> android.c and other constain only small glue
<wingrime> not nessesory for gadget
<wingrime> all code in udc.c
<ssvb> wingrime: you are lazy, just build your own openrisc binutils ;)
<wingrime> ./objdump -EL --target binary --architecture or32 -D ar100.code" > code.txt
<wingrime> you too lazy
<ssvb> I'm not participating in reverse engineering efforts, but you can be sure that it's 100% openrisc
<wingrime> If this core placed on same bus as cpu
<wingrime> and have dram access
<wingrime> it may be intresting to implemnt some interesing stuff
<ssvb> if you want a very short code snippet, then it's:
<ssvb> 43e8:00 00 25 bc l.sfnei r5,0x0
<ssvb> 43ec:fc ff ff 13 l.bf 0x43dc
<ssvb> 43f0:00 00 00 15 l.nop 0x0
wingrime has quit [Ping timeout: 264 seconds]
<ssvb> a comparison with 0, conditional branch and NOP in the branch delay slot
<Turl> putting nops on delay slots is for lazy people :)
<jelly-home> I remember trying to remove those on 32bit sparc, it would break things for some reason!
<Turl> removing nops from delay slots?
<ssvb> jelly-home: the instructions in the branch delay slot are always executed before branch, it's kind of optimization which makes the assembly code a bit more difficult to read and write
<Turl> it's a drawback of pipelined design
<Turl> by the time you evaluate the branch, the instruction after it will have been decoded
<Turl> so they just let it execute and start grabbing new instructions from whatever the branch chose
<Turl> so if you have code on C like a +=1; if(c){..}else{..}
<Turl> on assembler with delay slots you can actually test, branch, a+=1
calris has joined #linux-sunxi
mdfe has quit [Remote host closed the connection]