Turl changed the topic of #linux-sunxi to: NOTICE: wiki is temporarily read-only, it will be back up to normal soon // Allwinner/sunxi development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi
interrobangd has quit [Quit: Leaving]
mmarker has quit [Ping timeout: 245 seconds]
gianMOD has quit [Ping timeout: 245 seconds]
<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> "make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install"
<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
<alatnet> nope
<alatnet> throws errors
<alatnet> and this is with default build
<alatnet> sunxi4i
<alatnet> err.. sun4i
<alatnet> ugh... >.<
<hramrach> try stage/sunxi-3.4 branch
<alatnet> what's the git for that?
<alatnet> nvm, i think i found it
<hramrach> git checkout -b stage/sunxi-3.4 origin/stage/sunxi-3.4 probably
<hramrach> depends on your exact configuration
<alatnet> went with: git clone -b stage/sunxi-3.4 https://github.com/linux-sunxi/linux-sunxi.git
<hramrach> yes, that downloads the repo again
<hramrach> checkout just changes to different branch in existing repo
wenbin has joined #linux-sunxi
<alatnet> ah
<alatnet> well, whatever. :p
<hramrach> but be sure you use the new clone then
<alatnet> i just want to access the nand and see if i can fix the factory android system
<hramrach> what's broken with it?
<alatnet> settings go away when turned off and i cannot install any apps to it
<hramrach> anyway, I would not bet on it
<alatnet> when viewing the storage in settings, "System Storage" is maxed and "Flash Storage" has around 5.5 gigs.
<hramrach> maybe if the problem is due to lack of space deleting something might fix it
<alatnet> if there was anything TO delete...
<hramrach> but in general android is not designed to be fixed but to be reinstalled
<hramrach> what device so you have?
<alatnet> well if i can, i'd like to see if i can do a hybrid /data on the sata drive
naobsd has joined #linux-sunxi
<alatnet> Giada Q11 Mini
<alatnet> Not in the wiki at all
<alatnet> but i was able to boot off of the SD card slot with an MK802 image
<alatnet> and get linux working on it but without nand access
<hramrach> there should not be any special configuration to access nand
<alatnet> nand didnt show nor did sata
<hramrach> it should be wires the same on every device so bootloader can read it
<hramrach> mk802 does not have sata so that's not surprising
ninolein has quit [Ping timeout: 246 seconds]
<alatnet> im thinking of using the Mele A1000 as a base
<hramrach> alatnet: did you try adb?
ninolein has joined #linux-sunxi
<alatnet> heh, if i could access it... no mini usb connection to connect it to a comp
<hramrach> you should be able to extract configuration and access/modify the system over adb
<alatnet> has a RS-232 port but nothing comes out of it
<hramrach> odd
<alatnet> and apparently USB-OTG is through the Mic port
bonbons has quit [Quit: Leaving]
<alatnet> tried something with a TRS cable and a buchered usb A cable
<alatnet> all i got out of it was "unknown device" in windows
<alatnet> wierd little device, aint it?
<alatnet> though it was an open box device and apparently RMA'ed.
gianMOD has joined #linux-sunxi
<hramrach> what's on the USB3 connector?
<alatnet> nothing, looks like a normal USB3 A port
gianMOD has quit [Ping timeout: 250 seconds]
<hramrach> except a10 has only usb2
<alatnet> processor says it's an Allwinner A10
<alatnet> along with me being able to boot an MK802 Linux Image
naobsd has quit [Quit: naobsd]
<hramrach> presumably
<alatnet> bwa?
exslestonec has joined #linux-sunxi
<alatnet> how in the...
<alatnet> well...
<hramrach> if it's broken already anyway you can't break it any more by flashing random Chinese roms on it
<alatnet> it'll give me something at least in terms of uboot and system
<alatnet> true
<alatnet> god i love the open source community XD
<hramrach> you should be able to extract the script.bin with system configuration with some effort
<alatnet> now the 1 million dollar question is, how the hell do i flash this with no access to the device on hardware level except for the sd card?
<alatnet> script.bin resides in /boot or in the 0-1M section?
<hramrach> phoenixsuit can make SD images from livesuit images, presumably
<hramrach> script bin resides in / on nanda
<alatnet> k, usually it's 15 megs, right?
<alatnet> so offset of 1 with a range of 15 megs
<hramrach> usually it's a small fat partition
<hramrach> also the firmware comes with in a rar archive so there might be a Chinese manual for flashing
<alatnet> probably through the USB-OTG port...
<hramrach> it might have some picture showing where the OTG port is
<alatnet> manual says it's through the mic port
<alatnet> the manual that came with the device i mean
<hramrach> then there it is
<hramrach> maybe if you wired it correctly and installed livesuit it would recognize the device
<alatnet> does livesuit come with drivers?
<hramrach> yes
<alatnet> ah, cus im just using a TRS cable
<alatnet> not a TRRS cable
kroylar_ has quit [Quit: leaving]
<alatnet> and only connecting the D+ and D- cables on the TRS cable where Green is on mid and White is on tip
<hramrach> it's an interesting device but not at $130, heh
<alatnet> grabbed it for around $80 on new egg
<alatnet> discounted
<hramrach> good luck with making it work
<alatnet> thx. XP
<alatnet> gonna need it.
<alatnet> fuck...
naobsd has joined #linux-sunxi
<alatnet> damn you x86 drivers...
<alatnet> and the file you gave me includes livesuit
gianMOD has joined #linux-sunxi
<alatnet> yo, question, could the little white connection point infront of the sata in this pic be the uart connection point? http://www.techpowerup.com/reviews/Giada/Q11/images/in_top_front.jpg
gianMOD has quit [Ping timeout: 246 seconds]
wingrime has joined #linux-sunxi
wingrime1 has quit [Read error: Connection reset by peer]
AnticitizenOne has joined #linux-sunxi
Renard- has quit [Remote host closed the connection]
kurain has joined #linux-sunxi
<alatnet> i think that port might be the usb connection to a comp!
<alatnet> looks similer enough!
<alatnet> anyone know what kind of port that is?
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
<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> do you have a pdf manual?
<alatnet> ah, i dont think so
<alatnet> but it's a Giada Q11 Mini
<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."
<lukas2511> yep, is that "usb 3"/blue usb port
<alatnet> yea...
<alatnet> :P
<alatnet> oyve...
<lukas2511> okay, good look with that, i'll go sleep now.
<alatnet> thx
tomcheng76 has quit [Ping timeout: 244 seconds]
tomcheng76 has joined #linux-sunxi
AnticitizenOne has joined #linux-sunxi
gianMOD has joined #linux-sunxi
p1u3sch1 has joined #linux-sunxi
AnticitizenOne has quit [Ping timeout: 256 seconds]
gianMOD has quit [Ping timeout: 240 seconds]
leviathancn has quit [Ping timeout: 252 seconds]
ssvb has quit [Ping timeout: 246 seconds]
p1u3sch1_ has quit [Ping timeout: 264 seconds]
<alatnet> FEL mode confirmed!
ssvb has joined #linux-sunxi
<alatnet> UPGRADE SUCCESSFUL!
<alatnet> thank you Lukas2511 and hramrach!
<alatnet> and its in chinese. XD
<alatnet> FIXED!
<alatnet> system storage doesnt say that it is maxed out
<alatnet> now have 417 megs of space!
Fsanches has quit [Ping timeout: 272 seconds]
alatnet has quit [Quit: Page closed]
TheSeven has quit [Ping timeout: 265 seconds]
TheSeven has joined #linux-sunxi
leviathancn has joined #linux-sunxi
gianMOD has joined #linux-sunxi
gianMOD has quit [Ping timeout: 245 seconds]
Andy-D__ has quit [Ping timeout: 245 seconds]
konradoo77 has joined #linux-sunxi
exslestonec has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
leviathancn has quit [Ping timeout: 250 seconds]
konradoo77 has quit [Ping timeout: 264 seconds]
domidumont has joined #linux-sunxi
domidumont has quit [Remote host closed the connection]
domidumont has joined #linux-sunxi
cubear has joined #linux-sunxi
gianMOD has joined #linux-sunxi
naobsd has quit [Quit: naobsd]
naobsd has joined #linux-sunxi
gianMOD has quit [Ping timeout: 256 seconds]
akaizen_ has quit [Read error: Connection reset by peer]
akaizen has joined #linux-sunxi
reinforce has joined #linux-sunxi
FDCX has quit [Ping timeout: 276 seconds]
FDCX has joined #linux-sunxi
ssvb has quit [Ping timeout: 250 seconds]
ssvb has joined #linux-sunxi
cnxsoft has quit [Remote host closed the connection]
domidumont has quit [Ping timeout: 246 seconds]
Zboonet has quit [Quit: Leaving]
Zboonet has joined #linux-sunxi
leviathancn has joined #linux-sunxi
premoboss has quit [Remote host closed the connection]
gianMOD has joined #linux-sunxi
HeHoPMaJIeH has joined #linux-sunxi
_massi has joined #linux-sunxi
leviathancn2 has joined #linux-sunxi
leviathancn has quit [Ping timeout: 246 seconds]
leviathancn2 has quit [Ping timeout: 256 seconds]
FDCX has quit [Ping timeout: 252 seconds]
leviathancn has joined #linux-sunxi
FDCX has joined #linux-sunxi
domidumont has joined #linux-sunxi
massi_ has joined #linux-sunxi
leviathancn2 has joined #linux-sunxi
leviathancn has quit [Ping timeout: 250 seconds]
f15h has joined #linux-sunxi
<oliv3r> g'day all!
leviathancn2 has quit [Ping timeout: 246 seconds]
<plaes> o/
FDCX has quit [Ping timeout: 252 seconds]
<wens> morning
<mripard_> mturquette: I think it's one of the mmc clocks, judging by the stack trace
FDCX has joined #linux-sunxi
sehraf has joined #linux-sunxi
fredy has joined #linux-sunxi
llt has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
speakman has joined #linux-sunxi
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?
<plaes> hopefully
<plaes> but only you can try :P
bonbons has joined #linux-sunxi
<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
<eldondo> plaes, no osziloscope here....
<plaes> eldondo: you can get a logic analyzer for ~8eur: http://sigrok.org/wiki/Supported_hardware#Logic_analyzers
<eldondo> plaes, the canbus devices are working, i have checked with pican on raspberry.
<eldondo> plaes, pican is a complete circuit for raspi.
<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
<Turl> NiteHawk: plaes: http://i.imgur.com/m4aixEY.png
<Turl> maybe if it were red and blinky? :p
<NiteHawk> prolly :P
<plaes> I know :)
faisal has joined #linux-sunxi
trollinger has quit [Quit: Reicht jetzt erst mal.]
AnticitizenOne has quit [Ping timeout: 264 seconds]
konradoo77 has quit [Ping timeout: 250 seconds]
konradoo77 has joined #linux-sunxi
libcg has joined #linux-sunxi
leviathancn has quit [Ping timeout: 245 seconds]
leviathancn has joined #linux-sunxi
wickwire has quit [Read error: Connection reset by peer]
trollinger has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 252 seconds]
konradoo77 has joined #linux-sunxi
leowt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gianMOD has joined #linux-sunxi
eldondo_ has joined #linux-sunxi
eldondo has quit [Ping timeout: 245 seconds]
Netlynx has quit [Quit: Leaving]
interrobangd has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
interrobangd has quit [Quit: Leaving]
domidumont has quit [Ping timeout: 246 seconds]
gianMOD has joined #linux-sunxi
Fsanches has quit [Quit: Leaving.]
Fsanches has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
Zboonet has quit [Read error: Connection reset by peer]
Zboonet has joined #linux-sunxi
Zboonet has quit [Remote host closed the connection]
diego71 has quit [Ping timeout: 245 seconds]
gianMOD has quit [Remote host closed the connection]
di-erz has quit [Remote host closed the connection]
tomcheng76 has quit [Read error: Connection reset by peer]
konradoo77 has quit [Ping timeout: 245 seconds]
gianMOD has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
tomcheng76 has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
diego71 has joined #linux-sunxi
di-erz has joined #linux-sunxi
di-erz has quit [Client Quit]
leviathancn has quit [Quit: No Ping reply in 180 seconds.]
imcsk8 has quit [Quit: Reconnecting]
domidumont has joined #linux-sunxi
imcsk8 has joined #linux-sunxi
leviathancn has joined #linux-sunxi
Renard has quit [Ping timeout: 245 seconds]
gianMOD has joined #linux-sunxi
Renard has joined #linux-sunxi
Renard has quit [Ping timeout: 240 seconds]
domidumont has quit [Ping timeout: 246 seconds]
domidumont has joined #linux-sunxi
domidumont has quit [Ping timeout: 246 seconds]
orly_owl has joined #linux-sunxi
bonbons has quit [Quit: Leaving]
konradoo77 has quit [Ping timeout: 250 seconds]
leviathancn has quit [Quit: No Ping reply in 180 seconds.]
leviathancn has joined #linux-sunxi
Renard has joined #linux-sunxi
f15h has joined #linux-sunxi
nove has quit [Quit: nove]
FR^2 has joined #linux-sunxi
exslestonec| has joined #linux-sunxi
exslestonec has quit [Read error: Connection reset by peer]
trollinger has quit [Remote host closed the connection]
exslestonec has joined #linux-sunxi
exslestonec| has quit [Read error: Connection reset by peer]
gianMOD has quit [Remote host closed the connection]
exslestonec has quit [Read error: Connection reset by peer]
exslestonec| has joined #linux-sunxi
orly_owl has quit [Ping timeout: 256 seconds]
Andy-D__ has quit [Ping timeout: 246 seconds]
Black_Horseman has joined #linux-sunxi
f15h has quit [Remote host closed the connection]
paulk-collins has quit [Quit: Quitte]
naobsd has quit [Remote host closed the connection]
alatnet has joined #linux-sunxi
<alatnet> so... i did stupid... flashed my recovery with this CWM version: http://forum.xda-developers.com/showthread.php?t=2189640
<alatnet> and now recovery is pink...
<alatnet> moving mouse will move the selection and the screen will flash to black
<alatnet> anyone know of a compatable recovery for an 11 partition allwinner a10?
<alatnet> device still boots into android fine though. XD
gianMOD has joined #linux-sunxi
FR^2 has quit [Quit: Leaving]
<lukas2511> alatnet: m)
<lukas2511> maybe there is a script.bin in that recovery thing that you can modify to get the screen working correctly
libcg has quit [Quit: libcg]
hramrach has quit [Remote host closed the connection]
hramrach has joined #linux-sunxi
furan__ has joined #linux-sunxi
furan__ is now known as furan-
gianMOD has quit [Remote host closed the connection]
pmattern has quit [Quit: Genug für heute.]