<alatnet>
ok then... apparently i cant compile the kernel cus of standby_power.c has undefined references to __stack_chk_fail and __stack_chk_guard... any help?
lerc has joined #linux-sunxi
<hramrach>
which kernel?
<alatnet>
sunxi-3.4
<hramrach>
anyway, you can just disable the feature which requires standby_power.c
<alatnet>
apparently
<alatnet>
working with the wiki on this thing
<hramrach>
and it ShouldWork(tm)
<alatnet>
where's it located?
<hramrach>
also it seems related to stack protector so you might try to enable.disable that
<hramrach>
but where it is located: git grep standby_power.o should give you a makefile, in that makefile you should see which config option enables that object, you remove that option from your .config
<hramrach>
hmm, finding the place is rather difficult in this case
<hramrach>
but I have both CONFIG_PM and CONFIG_SUSPEND and it builds
<alatnet>
yea...
<hramrach>
do you have any of that as module?
<alatnet>
not that i know of
<alatnet>
i was following the wiki
<alatnet>
and went with the big repo for the kernel
<hramrach>
put your config in pastebin
<hramrach>
or just try stage/sunxi-3.4
<alatnet>
where do i find the config file?
<hramrach>
.config
<alatnet>
ah, found it
<alatnet>
hidden by bash... XP
<hramrach>
do you have CONFIG_CC_STACKPROTECTOR?
<alatnet>
commented out
<hramrach>
yes, that means it's disabled
<hramrach>
so you can try setting CONFIG_SUSPEND to n and maybe it builds without that file
<alatnet>
so, using "make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules" gives me errors
<alatnet>
and i kind of made some mistakes with the second command line
<alatnet>
seriously... i kept removing "modules_install"
<alatnet>
would be a good idea to have the command line for that command like so: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=<output> modules_install
<alatnet>
but anyway, yea, the uImage and modules one throws the errors but i'll try disabling the esttings
<lukas2511>
alatnet: to figure out if that is an uart port you could connect ground to a well known ground pin (usb gnd, shielding, whatever), and use a 10k resistor between the rx pin of your uart adapter and the pins on that header. reboot a few times, if you get the tx pin you should get data in your serial console
AnticitizenOne has quit [Ping timeout: 244 seconds]
<lukas2511>
alatnet: and because something else uses a connector that looks similar doesn't mean it's the same thing
kurain has quit [Quit: kurain]
kz1 has quit [Quit: kz1]
kz1 has joined #linux-sunxi
<alatnet>
k, so im going to need to find a 10k resistor...
<alatnet>
what if i already have a 3.3V RS-232 to USB adapter? would i need a 10k resistor?
<lukas2511>
it should be a u(s)art adapter, not rs232. the 10k resistor is just as protection, if you have a multimeter around and can validate that the pins are not >3.3V you do not need one
gianMOD has joined #linux-sunxi
gianMOD has quit [Ping timeout: 240 seconds]
cnxsoft has joined #linux-sunxi
exslestonec has quit [Ping timeout: 245 seconds]
wingrime has quit [Ping timeout: 252 seconds]
wingrime has joined #linux-sunxi
wingrime1 has joined #linux-sunxi
wingrime has quit [Read error: Connection reset by peer]
<alatnet>
im getting a pull on the 3rd pin
<alatnet>
drops my multimeter from 1 to around 0.05 to 0.01
wingrime has joined #linux-sunxi
wingrime1 has quit [Read error: Connection reset by peer]
<alatnet>
3rd pin when the device is off gives a random pull
<alatnet>
nvm, pulls to 0.01 with a 2k resistance
<alatnet>
does that mean anything?
<lukas2511>
probably not
<lukas2511>
i'd look for pins with 3.3V levels, and check those with the rx pin of the u(s)art adapter
<alatnet>
i've got a multimeter and set it to both 2k and 20k, but it has other options, which one should i set it to?
<lukas2511>
uhm, i don't think you are using your multimeter correctly
<alatnet>
2k and and 20k ohms resistance
<lukas2511>
you want to measure voltage
<alatnet>
yea, pretty much a noob...
<alatnet>
VDC?
<lukas2511>
yes, dc voltage
<alatnet>
200m, 2000m, 20, 200, or 600?
<lukas2511>
always the next bigger to the one you want to measure, so here looking for 3.3V => 20V measurement setting
<lukas2511>
then look for a ground pin (shielding on usb ports is often ground)
<alatnet>
6th pin outputs 4.76
<alatnet>
well, if looking at the device from the front, it's the far left pin
<lukas2511>
and the other pins? you are mostly looking for pins around 3.3V
<alatnet>
other pins do not output anything
<alatnet>
except for the 4th pin from the left pulling a 20k ohms down to 0
<lukas2511>
you don't want to measure ohms.
<lukas2511>
but that indicates that that pin is ground
<alatnet>
so i have the far left pin that is the only one that outputs anything
<alatnet>
k, so i have an unknown pin and possibly ground
<lukas2511>
so you have now "5 ? ? 0 ? ?" or what?
<alatnet>
pretty much, i guess
<alatnet>
other pins dont output anything or pull anything
<lukas2511>
"5 ? ? 0" could be usb, but i'd be very very careful about that
<alatnet>
so see if i get anything if i start the device?
<lukas2511>
no probably no uart there
<lukas2511>
that should be at 3.3V logic level
<alatnet>
so it could be the missing usb to computer connection
<lukas2511>
often on those boards one of the external usb ports is also the "usb to computer" port, i'd check around in software if there are any mentions about "otg" or just something special about one of the usb ports
<alatnet>
there's a otg through the mic port
<alatnet>
at least i think there is one as the manual says that there's one
<alatnet>
along with the software saying that it has otg
<lukas2511>
"No visible way of connecting to a computer for ADB usage. I have read through the manual and the only thing in it is that it has USB OTG through the mic port for some reason. I have tried a jerry rigged usb (white & green) to 3.5mm headphone connector (tip & ring) and connected it to my computer. my computer "seems" to detect it but throws a unknown usb device error on it."
<alatnet>
lol, that's my post that i had there
<lukas2511>
oh
<lukas2511>
lol
<lukas2511>
"unknown usb device" sounds kinda good
<alatnet>
i guess
<lukas2511>
because normally you would just get nothing, or maybe a message telling you that something is horribly wrong
<alatnet>
but if i try to go into FEL mode, it doesnt get an "unknown device" prompt
<lukas2511>
but "unknown usb device" normally means that there actually IS a usb device
<lukas2511>
and it's responding correctly
<lukas2511>
there are just no drivers installed
<alatnet>
hramrach gave me an image he found that might be for the device.
<alatnet>
apparently the flashing manual, in chinese, says that there's a otg port in the rear with a usb port?
<lukas2511>
mh but other than that, i can't really find much information on that device, and can't really get any informations from pictures, so i guess you are on your own with this one, but i'd take a closer look at that mic otg port thingy
<lukas2511>
yea like i said, other possibility for usb otg is just one of the normal looking usb ports
<alatnet>
would a regular usb a to usb a work or would i need a special adapter?
<alatnet>
oh what the hell
<alatnet>
that usb 3.0 port might be the otg
<lukas2511>
normal a to a cable, would cut it open and disconnect 5v line, just to be safe
<alatnet>
chinese manual has the exact model and it shows that the 3.0 port is the otg port...
<alatnet>
glad i have a shit ton of usb cables...
<lukas2511>
"This side has the SD/MMC card slot, audio and SPDIF outputs, a USB 2.0 port (OTG) through which you can connect the Q11 to a host PC, and a speaker header for external audio devices."
domidumont has quit [Read error: Connection reset by peer]
<speakman>
Hi folks! Even though A20 (sun7i) does contain an builtin RTC, I need to connect an external one (PCF8563 over I2C). Do you guys know if that's even possible? And since this is a very common RTC there are Linux device drivers ready, but how do I tell which I2C bus to use? I guess that's out of scope for the FEX file?
llt has quit [Ping timeout: 246 seconds]
<speakman>
And I'm using old sunxi-3.4 kernel so no Device Tree available.
naobsd has quit [Quit: naobsd]
marcin_ has quit [Read error: Connection reset by peer]
<plaes>
speakman: you basically need to tell the PCF8563 driver the parameters to the i2c port
Nyuutwo_ has joined #linux-sunxi
Nyuutwo has quit [Ping timeout: 255 seconds]
wickwire has joined #linux-sunxi
marcin_ has joined #linux-sunxi
<speakman>
plaes: Ok, I guess the driver source will tell further?
<oliv3r>
speakman: you have to 'code it into the pcf' driver, like the a13 edoes
<oliv3r>
look at the rtc those a13 tablets use and you should have a copy/paste fix
<speakman>
oliv3r: So A13 doesn't have RTC builtin? Interesting!
<oliv3r>
speakman: yep
<speakman>
oliv3r: Thanks alot! :)
<plaes>
oliv3r++ :)
FR^2 has joined #linux-sunxi
nemunaire has quit [Ping timeout: 276 seconds]
arossdotme has quit [Ping timeout: 264 seconds]
domidumont has joined #linux-sunxi
naobsd has joined #linux-sunxi
<speakman>
Hm! This forum post does say one could use FEX file to enable external RTC. Will it work?
<oliv3r>
speakman: well this is on an A13olinuxino which uses a modified i2c rtc driver
<oliv3r>
which is exactly what I was referring too :p
<oliv3r>
speakman: looks like the allwinner-fex-ized driver for your particular chip allready exists so all modifications should be in the 3.4 source tree
<oliv3r>
speakman: easy win
Andy-D__ has joined #linux-sunxi
kurain has joined #linux-sunxi
<speakman>
oliv3r: does sounds like one! :D
domidumont has quit [Quit: Leaving.]
naobsd has quit [Quit: naobsd]
pmattern has joined #linux-sunxi
blsd has quit [Quit: Leaving]
leowt has joined #linux-sunxi
AnticitizenOne has joined #linux-sunxi
Renard has joined #linux-sunxi
setkeh has quit [Ping timeout: 245 seconds]
Fsanches has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 264 seconds]
setkeh has joined #linux-sunxi
domidumont has joined #linux-sunxi
<oliv3r>
wens: ping
<oliv3r>
you better be alive
<oliv3r>
a nother asian plane heading your way crashed!
kkonrad has quit [Ping timeout: 246 seconds]
<plaes>
oliv3r: it wasn't international flight
<oliv3r>
ah, pfew
<oliv3r>
fstill
<oliv3r>
wens could have been on that plane!
<plaes>
yea
nemunaire has joined #linux-sunxi
nemunaire has quit [Excess Flood]
nemunaire has joined #linux-sunxi
nemunaire has quit [Excess Flood]
nemunaire has joined #linux-sunxi
nemunaire has joined #linux-sunxi
nemunaire has quit [Excess Flood]
nemunaire has joined #linux-sunxi
nemunaire has quit [Excess Flood]
nemunaire has joined #linux-sunxi
nemunaire has quit [Excess Flood]
nemunaire has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
naobsd has joined #linux-sunxi
naobsd has quit [Client Quit]
FreezingCold has joined #linux-sunxi
naobsd has joined #linux-sunxi
f15h has quit [Remote host closed the connection]
wenbin has quit [Read error: Connection reset by peer]
leviathancn has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
wingrime1 has joined #linux-sunxi
DagoRed_ has joined #linux-sunxi
RaYmAn_ has joined #linux-sunxi
wingrime1 has quit [Read error: Connection reset by peer]
wingrime2 has joined #linux-sunxi
cnxsoft has quit [*.net *.split]
wingrime has quit [*.net *.split]
adj__ has quit [*.net *.split]
RaYmAn has quit [*.net *.split]
DagoRed has quit [*.net *.split]
vpeter has quit [*.net *.split]
jelly has quit [*.net *.split]
RaYmAn_ is now known as RaYmAn
jelly-home has joined #linux-sunxi
vpeter has joined #linux-sunxi
<wingrime2>
Oliv3r: how fosdem?
afaerber_ is now known as afaerber
<oliv3r>
wingrime2: very awesome :D
<wingrime2>
Nice to hear)
<oliv3r>
aye :)
<oliv3r>
met with wens and some other
<oliv3r>
s
adj__ has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
<wingrime2>
I now making fun with glsl and opengl)
<oliv3r>
:D
blsd has joined #linux-sunxi
ssvb has quit [Ping timeout: 250 seconds]
speakman has quit [Read error: Connection reset by peer]
ricardocrudo has quit [Ping timeout: 245 seconds]
iamfrankenstein has quit [Ping timeout: 245 seconds]
di-erz has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
f15h has joined #linux-sunxi
iamfrankenstein has quit [Client Quit]
diego_r has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
iamfrankenstein has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
f15h has quit [Quit: Leaving]
selfbg has joined #linux-sunxi
cubear has quit [Quit: Leaving]
wingrime has joined #linux-sunxi
wingrime2 has quit [Read error: Connection reset by peer]
leowt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wingrime1 has joined #linux-sunxi
wingrime has quit [Read error: Connection reset by peer]
leowt has joined #linux-sunxi
fredy has quit [Excess Flood]
fredy has joined #linux-sunxi
AnticitizenOne has quit [Ping timeout: 250 seconds]
trollinger has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
DagoRed_ is now known as DagoRed
ricardocrudo has quit [Ping timeout: 250 seconds]
selfbg has quit [Quit: Leaving]
cnxsoft1 has quit [Quit: cnxsoft1]
_massi has quit [Quit: Leaving]
ssvb has joined #linux-sunxi
paulk-collins has joined #linux-sunxi
gianMOD has joined #linux-sunxi
Renard has quit [Remote host closed the connection]
zumbi_ is now known as zumbi
gianMOD has quit [Remote host closed the connection]
ricardocrudo has joined #linux-sunxi
Renard has joined #linux-sunxi
<oliv3r>
if i do char *file = CONSTSTR; can I later realloc(file, size)? the man page says 'must have been initialized with realloc, calloc or malloc', so technically no, but i would imagine it's been alloced ..
<NiteHawk>
it's been allocated statically by the compiler, not dynamically at runtime. so no, you can't realloc that
<oliv3r>
makes sense
<NiteHawk>
if you do strdup(CONSTSTR), you may later realloc that one ;)
<plaes>
and free :)
<oliv3r>
oh, but i can do malloc(sizeof(CONSTR) + other size)
<oliv3r>
so i don't have to realloc, and i do the malloc only once
<NiteHawk>
why would you? declare a char[] big enough in the first place, then initialize it with CONSTSTR
<oliv3r>
i don't know what big enough is :p
<NiteHawk>
maybe start by deciding that :D
<oliv3r>
and i'm not going to declare char[102400] 'just in case'
<oliv3r>
it's user input :)
<oliv3r>
and depending on several factors
<oliv3r>
but i know what i want now :)
<NiteHawk>
imho, if you really need/want a dynamic string, then build one with strdup - that way you won't have to think about being able to realloc later...
<oliv3r>
i'm doing malloc(sizeof(CONSTSTR) + sizeofsecondstr) so i don't need to realloc at all
<oliv3r>
and i need to malloc the sizeofsecondstr anyway
<mripard_>
oliv3r: what do you want to do?
<mripard_>
concatenate two strings?
<oliv3r>
mripard_: i want to use the function: eina_strlcat :)
<oliv3r>
so yes, and my prefix is dynamic, postfix is static
<oliv3r>
so i'm going at it backwards anyway
<oliv3r>
which makes it even easier
<oliv3r>
ah, i couldn't do that because eina_prefix_data_get() returns a const char* so i can't change that; and i return to needing eina_str_join_len()
konradoo77 has joined #linux-sunxi
HeHoPMaJIeH has quit [Remote host closed the connection]
reinforce has joined #linux-sunxi
Netlynx has joined #linux-sunxi
Netlynx has quit [Changing host]
Netlynx has joined #linux-sunxi
nove has joined #linux-sunxi
slopez has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 245 seconds]
FR^2 has quit [Quit: Connection reset by peer]
domidumont has quit [Ping timeout: 246 seconds]
eldondo has joined #linux-sunxi
<eldondo>
hello i will connect an mcp 2551 to the A20. are there some sample shematics availible?
orly_owl has quit [Ping timeout: 252 seconds]
<plaes>
why do you need schematics for that? just connect RX/TX/GND from MCP side to A20's proper pins
<eldondo>
plaes, thx
<eldondo>
plaes, no power suply for the mcp2515?
<plaes>
this too
<plaes>
5V
<eldondo>
plaes, yes i take the ground and th 5V power from the bananpi headers, but no canbus data comes in.....
<eldondo>
plaes, are ther special conifg for the a20 chip?
<plaes>
yes, you need to configure CAN pins for A20
<eldondo>
plaes, howto config it?
<plaes>
but I have no idea how to do that
<eldondo>
plaes, hehehe :-)
whitesn has quit [Ping timeout: 244 seconds]
<eldondo>
plaes, if i found it i post it here...
<plaes>
but if you add 5V and connect CANL/CANH to the CANbus, you can attach RX pin to oscilloscope
<NiteHawk>
eldondo: you want the MCP2515 for compatability? actually there should be no need for a separate CAN-controller driven via SPI with the A20 - it already has a CAN interface, so you could simply use a transceiver... http://sourceforge.net/projects/can4linux/ claims to support the A20 (bananapi)
wingrime1 has quit [Remote host closed the connection]
whitesn has joined #linux-sunxi
<plaes>
eldondo: wait, did you mean mcp2515 or 2551?
<eldondo>
NiteHawk, the a20 can direct connect to canbus?
<eldondo>
mcp 2551 i mean.
<plaes>
you cannot connect 2551 straight to CAN bus
<NiteHawk>
ok, then you're on the right tracks. A20 can act as a CAN controller, making the 2515 (which you mentioned first) obsolete
<plaes>
err
<eldondo>
aehm
<plaes>
my bad
<plaes>
2551 is level converter for CAN
<NiteHawk>
i.e. "transceiver"
<plaes>
2515 is CAN controller
<eldondo>
yes transeiver.
<NiteHawk>
a20 <-> mcp2551 <-> can-bus is just fine
<plaes>
yup
<eldondo>
a20 => mcp 2551 => canbus-device
<plaes>
I just saw this in backlog:
<plaes>
18:23 < eldondo> plaes, no power suply for the mcp2515?
<plaes>
so carry on :)
<eldondo>
srry for typo.
<plaes>
stupid numbering scheme :P
<NiteHawk>
indeed :)
<eldondo>
can canbus can do ....... pfffffff.
<eldondo>
google all article with 'can'
* eldondo
take a coffee
afaerber_ has joined #linux-sunxi
afaerber has quit [Ping timeout: 245 seconds]
AnticitizenOne has joined #linux-sunxi
<plaes>
mnemoc is dealing with server?
FDCX has quit [Ping timeout: 252 seconds]
konradoo77 has joined #linux-sunxi
<hramrach>
hmm, the analyzer is nice
<hramrach>
for low speed protocols only but anyway
arossdotme has joined #linux-sunxi
afaerber_ is now known as afaerber
FDCX has joined #linux-sunxi
iamfrankenstein1 has joined #linux-sunxi
iamfrankenstein has quit [Ping timeout: 245 seconds]
<wens>
oliv3r: alive but freezing
<wens>
heard about the accident
ganbold_ has quit [Ping timeout: 255 seconds]
forest has joined #linux-sunxi
domidumont has joined #linux-sunxi
<Turl>
plaes: yup, why?
<Turl>
hramrach: the cheapo ones can do 24MS/s or sth like that
massi_ has quit [Quit: Leaving]
paulk-collins has quit [Quit: Quitte]
<plaes>
Turl: wiki is still offline :S
<plaes>
err.. readonly
<Turl>
plaes: yeah
paulk-collins has joined #linux-sunxi
<Turl>
plaes: hopefully today it'll be back up
<plaes>
nice
<plaes>
annoying thing is that, you only discover this after you start saving the edit :P
<Turl>
plaes: eh, there should be a banner saying it's read only before you start editing
<NiteHawk>
there isn't or at least it's not obvious - i encountered the same thing