deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
boycottg00gle has quit [Remote host closed the connection]
wolfy has quit [Ping timeout: 252 seconds]
naobsd has quit [Ping timeout: 272 seconds]
egbert has joined #linux-sunxi
egbert_ has quit [Ping timeout: 260 seconds]
rz2k has quit []
ganbold__ has quit [Ping timeout: 245 seconds]
rings_IIV has joined #linux-sunxi
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
ganbold__ has joined #linux-sunxi
bsdfox has quit [Ping timeout: 240 seconds]
bsdfox has joined #linux-sunxi
hipboi has joined #linux-sunxi
bsdfox has quit [Ping timeout: 246 seconds]
bsdfox has joined #linux-sunxi
bsdfox has quit [Ping timeout: 272 seconds]
bsdfox has joined #linux-sunxi
t3st3r has quit [Ping timeout: 240 seconds]
bsdfox has quit [Ping timeout: 272 seconds]
bsdfox has joined #linux-sunxi
naobsd has joined #linux-sunxi
Quarx has joined #linux-sunxi
bsdfox has quit [Ping timeout: 252 seconds]
bsdfox has joined #linux-sunxi
wolfy has joined #linux-sunxi
bsdfox has quit [Ping timeout: 246 seconds]
bsdfox has joined #linux-sunxi
bsdfox has quit [Changing host]
bsdfox has joined #linux-sunxi
Quarx has quit []
paulk-collins has joined #linux-sunxi
bsdfox has quit [Ping timeout: 245 seconds]
bsdfox has joined #linux-sunxi
n01 has joined #linux-sunxi
bsdfox has quit [Ping timeout: 245 seconds]
maz_ has joined #linux-sunxi
bsdfox has joined #linux-sunxi
deasy has joined #linux-sunxi
bsdfox has quit [Ping timeout: 246 seconds]
<n01>
wens: ping
t3st3r has joined #linux-sunxi
bsdfox has joined #linux-sunxi
t3st3r has quit [Quit: [...]]
t3st3r has joined #linux-sunxi
<n01>
uhm, anyone fluent in chinese awake?
bsdfox has quit [Ping timeout: 246 seconds]
dlan has joined #linux-sunxi
kivutar has joined #linux-sunxi
bsdfox has joined #linux-sunxi
maz_ has quit [Ping timeout: 252 seconds]
maz_ has joined #linux-sunxi
maz_ has quit [Ping timeout: 240 seconds]
maz_ has joined #linux-sunxi
hipboi has quit [Quit: Leaving]
maz_ has quit [Ping timeout: 272 seconds]
n01 has quit [Ping timeout: 252 seconds]
n01 has joined #linux-sunxi
<wens>
n01: pong
<wens>
was playing video games
<oliv3r>
wens: hope it wasn't BF4 :p
<n01>
wens: can I exploit you for a chinese-english translation? :)
<n01>
I'd like to know if the irq for AXP209 is level or edge triggered
<n01>
from the translation it seems like low-level triggered
* n01
is playing WoW again *_*
<oliv3r>
n01: please tell me you use wine
<n01>
oliv3r: lol, I use OSX just for playing
bsdfox has quit [Ping timeout: 245 seconds]
bsdfox has joined #linux-sunxi
kivutar has quit [Ping timeout: 246 seconds]
<oliv3r>
*shame*
maz_ has joined #linux-sunxi
<mnemoc>
if it doesn't run on linux natively, next try is wine, next try android, next try ... trashbin
<n01>
I honestly don't care about "philosophical" issues
<oliv3r>
then why bother!
<n01>
exactly
<oliv3r>
(with linux i ment0
maz_ has quit [Ping timeout: 252 seconds]
<n01>
I use linux everyday, osx for playing, I have an iPhone and planning to buy a PS4
<n01>
i'm definitely not lclk-compliant
<oliv3r>
heathen!
<oliv3r>
burn the witch!
<n01>
hahahah
maz_ has joined #linux-sunxi
<mnemoc>
n01: I don't have any windows or mac device, so I can't play those games.... but I don't have time anyway :p
<n01>
mnemoc: I play only when I am too tired to think straight
<mnemoc>
still... witch! burn the witch! burn it!
<mnemoc>
n01: I play dumb android games on those cases :p
<mnemoc>
building a new springfield at the moment
<oliv3r>
springfield?
<n01>
well, I'm leveling a new warrior tank ;)
<oliv3r>
right, gotta do some work; need to figure out why nginx + fpm can't run my createmailbox script
<oliv3r>
mnemoc: where do fpm-php and ngins store their logs?
<oliv3r>
/var/log/php5-fpm/postfixadmin/* duh
<mnemoc>
oliv3r: /var/log/php5-fpm*
<mnemoc>
n01: I'm distiling alcohol :p
<n01>
is it legal?
<mnemoc>
in the new springfield it is
<n01>
hahahaha
maz_ has quit [Ping timeout: 272 seconds]
<oliv3r>
mnemoc: sounds like simpsons?
<mnemoc>
oliv3r: it is
wolfy has quit [Ping timeout: 252 seconds]
<mnemoc>
lisa is playing the saxo, homer on the pool,krusty doing jugling and the farmer distiling alcohol
<oliv3r>
i keep typing emerge on debian
<oliv3r>
so your the hobo farmer?
<mnemoc>
no need to kills trolls and other kind of games that need dedicated attention while also playing with sunxi-3.10
<mnemoc>
oliv3r: it's called cletus :p
<oliv3r>
:p
<mnemoc>
see! you can learn with these games
<mnemoc>
the hobo farmer has a name!
<wens>
n01: Final Fantasy XIV
<oliv3r>
ok manually running the command works
<oliv3r>
mnemoc: can you check my visudo file? I think i used a wrong user there, i can do the command as root and then do sudo -u vmail; so vmail can execute and do it all normally
<mnemoc>
can't vmail work as a normal user?
<oliv3r>
i think it works now
<oliv3r>
or its' stuck in some loop :p
<oliv3r>
the webinterface executes the script as the vmail user
<oliv3r>
so I think postfixdadmin needs to be able to sudo to vmail
<wens>
n01: are you asking about AXP209 internal interrupts? like for over/under voltage
<oliv3r>
mnemoc: but i get a 504 gateway time-out :S
<mnemoc>
oliv3r: uhm... giving sudo power to a web interface doesn't sound wise
<oliv3r>
the script did run
<oliv3r>
mnemoc: you only give sudo power to 3 specific scripts
<oliv3r>
and only from the webuser to the vmail user
<mnemoc>
and those scripts come from.... and are edited by?
<n01>
what it is not clear to me if the irq chip for NMI is related to GIC or not
<wens>
maybe its like pinctrl external interrupts?
Super-noob has joined #linux-sunxi
<wens>
ignore that. i don't know what i'm saying
hramrach has quit [Remote host closed the connection]
<wens>
n01: considering the gic is the system's main interrupt controller, all things should be hooked up to it?
<n01>
I guess so, that's why I'm writing the NMI chip driver as child of GIC
<n01>
wens: BTW atm it doesn't work since the fact that I'm not able to clear the pending bit for NMI creates a deadlock in regmap_add_irq_chip in the MFD driver
<n01>
so any help is welcome :D
<wens>
the pinctrl irq stuff seems simpler
<wens>
though i don't think it would handle edge triggered interrupts well
rellla has joined #linux-sunxi
kivutar has quit [Quit: Ex-Chat]
mkutsevol has left #linux-sunxi [#linux-sunxi]
rz2k has joined #linux-sunxi
bsdfox has quit [Ping timeout: 272 seconds]
rellla has quit [Remote host closed the connection]
bsdfox has joined #linux-sunxi
<wens>
n01: 3.4 code doesn't clear the pending bit for NMI
nieuwbe has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<n01>
anyway I solved the deadlocking with IRQ_NOAUTOEN
<wens>
NMI was always pending, so when you registered the irq chip in MFD, it just jumped into the handler?
<n01>
yep
<n01>
now I solved with IRQ_NOAUTOEN. the problem is that I still have the pending bit
<n01>
so when I enable the irq I jump in the handler and my board kind of stuck
<n01>
no error message, no panic, nothing, just it dies
<n01>
really weird
<wens>
can you mask and clear all interrupts on MFD before registering irq chip?
<n01>
first I register the irq chip and then the MFD cannot do the opposite
<wens>
I mean write to the irq registers directly
<wens>
some of them are enabled by default, such as AC/vbus in, power button
<wens>
if u-boot didn't clear them, you'll see these from the kernel
<n01>
i can mask all the IRQs of the axp but I think that's not the problem
<wens>
i'll poke around mine, see what the register values are
maz_ has joined #linux-sunxi
<wens>
mine shows 0x40 on registers 0x48 and 0x49
<wens>
nmi can't be cleared, until I cleared the pending registers in AXP
<wens>
so both are level triggered
<n01>
hooooo so the pending bit indicates the presence of a pending irq in AXP and this triggers the handler only if NMI in enabled
<n01>
this makes perfectly sense
<n01>
great catch wens
<n01>
:)
ganbold__ has quit [Ping timeout: 245 seconds]
<wens>
btw, i think axp works the same way. on my ct i have a pending but not enabled irq, and no nmi pending
<wens>
anyway it was a one time test, until I get back to the office and unplug it :p
HdkR has quit [Read error: Connection timed out]
<n01>
it is really helpful, tnx
nuptse has joined #linux-sunxi
nuptse is now known as zboonet
<wens>
i'm not sure why it hangs though. regmap_irq properly acks disabled irqs and gracefully exits when no interrupts are pending
<wens>
and it does mask interrupts by default
<wens>
anyway, bedtime :p
ganbold__ has joined #linux-sunxi
HdkR has joined #linux-sunxi
maz_ has quit [Ping timeout: 272 seconds]
danny has joined #linux-sunxi
HdkR_ has joined #linux-sunxi
HdkR has quit [Remote host closed the connection]
<danny>
Morning. Has someone get working the Accessory Mode with any Allwinner A20 powered product in Android ? I'm using a MIIA boxchip A20 powered tablet and Accessory works only partially (I can send bytes but I don't receive nothing)
<danny>
I don't require a solution, just to know if someone has got a working system where chip was any Allwinner from A10 to A20
<danny>
AllWinner chips working fine and this dualcore is very fast in CPU and GPU. Price is amazing but seem lack a lot in Android compatibility...
<danny>
In past I've tried also a Mediacom Tablet (using A10) with a USB crash when it switch in Accessory Mode
<danny>
In the tablet logcat I don't have nothing
<danny>
In linux dmesg (PC) I've got: [19313.503546] usb 1-1: usbfs: process 30521 (uartaccessory) did not claim interface 1 before use
<ssvb>
emx: at least some part of your bootloader has to be loaded from NAND ort uSD
<ssvb>
emx: whether u-boot (spl) can use usb for loading the rest of the stuff, it's better to ask oliv3r or hno
<emx>
"check_uboot setups up some registers" ^^
maz_ has joined #linux-sunxi
<emx>
ssvb, seems like usb is only considered as boot media if uSD and NAND have nothing bootable.
<oliv3r>
emx: no, that's not possible. the BROm will only, and only int he following order boot from: MMC0, NAND, MMC2, SPI (flash)
<oliv3r>
i think with arokux's U-boot patches you could then chainload from USB (2.0 only atm)
<oliv3r>
but you need to have the SPL live on one of the aforementioned locations
HdkR_ has quit [Ping timeout: 272 seconds]
<oliv3r>
emx: so no, USB is never considered by the BROM, only to do FEL mode
<emx>
oliv3r, it sais "If all fails, FEL/USB Boot mode is excecuted from 0xffff0020"
<emx>
but anyways:
<emx>
i got spl and u-boot on my SD. the question is: what do i have to setenv to boot from USB?
<ssvb>
emx: just as I said in #cubieboard, the best thing you can do is to also put your kernel on the SD card, compile the kernel with CONFIG_USB_MASS_STORAGE=y and set a partition on your usb stick as root in the kernel cmdline
maz_ has quit [Ping timeout: 260 seconds]
<jelly-home>
so basically use the sd for /boot and not much more
<oliv3r>
mnemoc: you aren't forwarding the mail submission port to maxima are you?
<ssvb>
emx: if I understand the oliv3r's explanations right, if you are up to take the challenge, you may also put the kernel on your usb stick if using the arokux's U-boot patches
<oliv3r>
emx: yes, FEL mode is a USB only mode, it allows you to directly upload code over USB into the ram of the SOC and execute it. by no means does that allow you to boot FROM usb
<oliv3r>
emx: as you connect in client mode, not host meode
<emx>
ssvb, oliv3r: ok. so basically i keep everything i got (i.e. u-boot, spl and uImage on SD) and specify a root partition of my choice.
<emx>
i used /dev/sda1 but it says "waiting for root device /dev/sda1..."
<ssvb>
emx: CONFIG_USB_MASS_STORAGE=y is the key
<mnemoc>
oliv3r: not yet, why?
<oliv3r>
mnemoc: i'll test it later :)
<emx>
ssvb, i activated it.
VargaD has joined #linux-sunxi
<mnemoc>
oliv3r: ok, I'll add the DNATs
<ssvb>
emx: just make sure that all the necessary usb related drivers are statically compiled in the kernel and not as loadable modules
<ssvb>
emx: because they can't be loaded from the usb stick until you mount your root
ZetaNeta has quit [Ping timeout: 260 seconds]
<emx>
ssvb, yes. when i insert the usb drive it doens't register a block device.
<emx>
i guess i assume something that i didn't do.
<oliv3r>
unless you put them in your initramfs :D
<oliv3r>
don't forget scsi stuff, usb drivers etc
<emx>
no. i am experienced enough knowing how to usb-enable my kernel :P
<ssvb>
oliv3r: initramfs is too complicated, and I don't think that emx really wants to pursue this route ;)
<emx>
ssvb, i made my one once with my own boot scripts when i compiled my LFS. ;)
ZetaNeta has joined #linux-sunxi
<ssvb>
emx: or was it CONFIG_USB_STORAGE? just try to figure it out
<emx>
ssvb, it was m instead of y. i mean... who would boot from usb nowadays... right?
<emx>
right?!
<oliv3r>
not you :D
mrnuke has joined #linux-sunxi
<mrnuke>
oliv3r: hi
popolon has joined #linux-sunxi
jemk has joined #linux-sunxi
NightShade has joined #linux-sunxi
<oliv3r>
mrnuke: hi
<mrnuke>
<- coreboot guy working on A10
<WarheadsSE>
emx allwinners cannot load the spl from usb
<WarheadsSE>
afaik
<emx>
WarheadsSE, yes, i guess best practice is to use NAND as the primary boot device.
<emx>
when will u-boot be a boot manager? =)
<danny>
> for questions regarding the allwinner stock kernel, you will have to ask allwinner
<danny>
Is possible to contact allwinner engineers ?
<oliv3r>
mrnuke: oh! i've seen you here before I think!
<mrnuke>
oliv3r: you did? I don't remember having joined before
<oliv3r>
then someone that has 'nuke' in their name :p
<oliv3r>
danny: yes, but very much good luck; their first question is 'how many orders' and if you say anything less then a 10k; they ignore you :)
<oliv3r>
emx: actually i'm hopeing to get SPI to be in a similar state; and have u-boot live in spi
<danny>
This is my 3th Allwinner powered tablet that I try to use with Android Accessory ... so how many tablets have I to buy to be listen ?
<danny>
:)
<oliv3r>
mrnuke: re: SPI; the problem isn't hooking up SPI (if we can get a def board that actually brings out all those pins) but also to find out how the BROM wants it served :)
<danny>
your linux kernel 3.4 works fine with Android Accessory mode (overall in the code which disconnect USB active usb driver to restart it with a different VID:PID used for accessory) ?
<oliv3r>
danny: i wish i could answer that for you; but alas; I can't atm :( maybe somebody else here however has that expirience
<emx>
oliv3r, no idea what you just said :P
<mrnuke>
oliv3r: ooh. Assembly. that's fun
HdkR has joined #linux-sunxi
<hno>
WarheadsSE, no, not from USB, but you can load the SPL to RAM via USB.
<oliv3r>
mrnuke: well i'm working on that for a few reasons. we know pretty much everything that we need to know; firstly, I want to learn from it, secondly, we don't actually know much about the SPI boot proces; and thirdly, I think if we have a fully annoteded BROM, we can atleast claim we have source :p
<oliv3r>
mrnuke: as for your DRAM init, the dram controller does have some PLL's that it needs, but afaik all are dram_init aren't they? let me look
<mrnuke>
oliv3r: from MMC, the BROM will load 24KiB max (including the BOOT0 header). Anything larget,, and it will try the next target
<oliv3r>
yeah, we found that out the hard-way, but incidentally, sun5i (a13) will load 30 kb i think
<oliv3r>
mrnuke: i'm hoping that i'll actually run into the 24 k limit at some point while RE-ing bits of the BROM (just because i'm curious)
<mrnuke>
oliv3r: yeah, I have. I'll have to relook at my entire file, but if there's nothing external that needs to be set up, it's probably some mundane modification I did
<danny>
I've also a CB1 which run linux 3.4 but when it enter in Android Accessory Mode the USB sw_xxx (I don't remember) enter in infinite loop collapsing the system till I remove the USB cable
<oliv3r>
mrnuke: the other clocks that are being setup are uart etc;
<mrnuke>
UART, CPU, and AHB. I saw that. Hmm, I might have to start fresh
<aep>
can the A20/A10 be configured for usb device mode?
<oliv3r>
mnemoc: is there a reason why /home/sunxi-mw/run.sh isn't +x? cron is spamming sunxi-mw about it :)
<oliv3r>
aep: you mean as an OTG device?
<aep>
uh, probably not no. as an actual usb device thing
<oliv3r>
aep: or you mean the actual SoC? well there is 'FEL' mode, which allows you to dirctly access SRAM and execute uploaded code
<aep>
nah
<oliv3r>
aep: then i'm not sure what you mean as 'usb thing'
<aep>
well, as a usb client device, that another usb hosts eats as device
<oliv3r>
in theory, you can upload a program to SRAM via FEL mode, that turns your NAND + SoC into a USB storage device
<aep>
lets say, mass storage
<aep>
erm yeah bad example
<oliv3r>
yes, it is technically possible I think
<aep>
i want to write those handlers myself of course
<oliv3r>
aep: well check out all the FEL stuff on the wiki/git repo's a lot is possible
<oliv3r>
but the SoC won't do it nativily, nativily it will only do SoC, or whatever OTG does
<oliv3r>
aep: nativily it will only do FEL, or whatever OTG can do
<oliv3r>
aep: mind you, anything the FEX guide tells you, is for when the kernel has loaded; so OTG
<mnemoc>
oliv3r: "fixed"
<aep>
oliv3r: so whats the difference between OTG and device mode? is it going to appear as regular device on another host?
<oliv3r>
aep: OTG makes USB either work as a host, or as a client
<aep>
uuhm
<oliv3r>
aep: e.g. it accepts sticks, mice, etc as clients
<oliv3r>
aep: or, it is a USB endpoint itself, pretending it'sa MTP, Mass storage device or a serial port
<oliv3r>
but the linux 'gadget' driver handles all of that mostly
<aep>
ok, so i'll just try it out i guess
<WarheadsSE>
hno fel mode hijacking?
akaizen has quit [Read error: Connection reset by peer]
akaizen has joined #linux-sunxi
Super-noob has quit []
emx has quit [Ping timeout: 252 seconds]
<oliv3r>
oh wow; appearantly i've been using spamassasin sources that have been offline since 2010
<oliv3r>
it's 'ok' as it was only a secondary update channel; but only shows how long it has been 'just working whithout doing maintainance on it'
<oliv3r>
mnemoc: ok spamassasin should be setup and I think debian has a cronjob that does the update+compile automatically; if we get tons of spam, remind me of this line :)
<mnemoc>
can we setup the list in a moderate-first-mail anyone-can-post style like google's?
<mnemoc>
or you want to test is for personal accounts first?
<mnemoc>
oliv3r: smtp and nntp ports openned
<oliv3r>
only testing postfix and spamassasin atm
<mnemoc>
:)
<oliv3r>
but nearly done now
zboonet has quit [Quit: Ex-Chat]
<oliv3r>
so we should have postfix + admin + amavis + clamav + spamassasin going
<oliv3r>
we'll do the tuning of spam, quarantining I suppose later
<oliv3r>
since we don't want to overtune it at the start
<mnemoc>
+1
<oliv3r>
i'm a little annoyed at how debian does amavis'd
<oliv3r>
they kinda did their own thing, and it doesn't match
<oliv3r>
so i have to figure out how they do it
Gerwin_J has joined #linux-sunxi
<oliv3r>
oh great so we have a 20_debian.conf and 21_ubuntu.conf where they override some debian defaults
<mnemoc>
:)
<oliv3r>
you should have used a debian server :D
<oliv3r>
anyway
<oliv3r>
it's done
<oliv3r>
cd /var/amavis/quaritne/
<oliv3r>
erm
<oliv3r>
wrong term and typo
<mnemoc>
at least we don't have 22_mint.conf
<mnemoc>
I hope you are documenting what you are doing in there
<oliv3r>
mnemoc: say whut?
<mnemoc>
to be able to survive the next migration
<mnemoc>
or the next update where the package manager decides to overwrite some files
<oliv3r>
mnemoc: luckly, i'm following my personally written documentation :p