mnemoc changed the topic of #linux-sunxi to: 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
wens has quit [Ping timeout: 244 seconds]
mmarker has joined #linux-sunxi
afaerber_ has quit [Ping timeout: 256 seconds]
Andy-D has joined #linux-sunxi
afaerber_ has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.0.1]
pwhalen has quit [Ping timeout: 272 seconds]
deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
ah has quit [Ping timeout: 272 seconds]
pwhalen has joined #linux-sunxi
ah has joined #linux-sunxi
ricardocrudo has quit [Remote host closed the connection]
Gerwin_J has quit [Quit: Gerwin_J]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
arokux2 has quit [Remote host closed the connection]
dantob has joined #linux-sunxi
dantob has quit [Remote host closed the connection]
Turl has quit [Quit: >.<]
Turl has joined #linux-sunxi
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
Faisal has quit [Ping timeout: 255 seconds]
ganbold_ has quit [Remote host closed the connection]
ganbold_ has joined #linux-sunxi
philippe_fouquet has joined #linux-sunxi
hipboi_ has quit [Ping timeout: 245 seconds]
hipboi has joined #linux-sunxi
philippe_fouquet has quit [Remote host closed the connection]
naobsd has joined #linux-sunxi
jhonny_ has joined #linux-sunxi
<jhonny_> Hey everyone, I'm using: Linux debian 3.0.52 #6 PREEMPT Tue Dec 4 18:28:17 UTC 2012 armv7l GNU/Linux on my A10 MK802 device
<jhonny_> is it possible for me to get the sources for this linux bistro to add g_mass_storage support ?
<jhonny_> *distro
bengal has joined #linux-sunxi
hipboi has quit [Ping timeout: 250 seconds]
<hno> jhonny_, which kernel are you using?
hipboi has joined #linux-sunxi
adj__ has quit [Ping timeout: 240 seconds]
lerc has quit [Ping timeout: 255 seconds]
lerc has joined #linux-sunxi
sehraf has joined #linux-sunxi
Faisal has joined #linux-sunxi
paulk-aldrin has joined #linux-sunxi
<libv> hrm, so a new kernel tree was pushed out 4d ago?
<libv> and it's not a diff on top of the previous
<libv> so we now get to spend some time on figuring out what that POS really is and what is still missing.
<libv> great!
<paulk-aldrin> damn, I'm not even sure I have the old one checked out somewhere
<libv> i removed it this week as i urgently needed space
<hno> I have them all...
<libv> hno: somewhere public?
<libv> preferably already on top of the original stable kernel release?
konradoo77 has joined #linux-sunxi
<Faisal> the linux sunxi community rocks ! I just wanted to say thanks to everyone for the help you have provided me lately :)
<paulk-aldrin> libv ^^^ ;)
Quarx has joined #linux-sunxi
konradoo87 has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 272 seconds]
<jhonny_> hno, I'm using 3.0.52
<jhonny_> sunxi linux debian
<jhonny_> downloaded it from here:
<jhonny_> Debian Wheezy clean untouched (incl. 512MB U-boot, kernel 3.0.52)
FunkyPenguin has quit [Ping timeout: 265 seconds]
<libv> jhonny_: build our sunxi-3.4 fully and install it
<libv> jhonny_: check the mk802 page
<jhonny_> do you have a link ?
<libv> ...
<libv> jhonny_: did you try looking at our wiki?
<jhonny_> Yep, just looking now ...
<jhonny_> i was looking for MK802 :) didn't see the Rikomagic ;)
<libv> there is a search box
FunkyPenguin has joined #linux-sunxi
arokux2 has joined #linux-sunxi
<libv> plus, on many browsers, you can search a page for a string
jemk has joined #linux-sunxi
bonbons has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 245 seconds]
<arokux2> libv: hey. have u seen people connecting several SBC together to gain more GPU computing power? (not CPU)
adj__ has joined #linux-sunxi
<libv> arokux2: that does not make much sense
FunkyPenguin has joined #linux-sunxi
<libv> arokux2: how would one have them communicate at a reasonable bandwidth?
<arokux2> libv: I guess the communication should go through ethernet.
bertrik has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 240 seconds]
netlynx has joined #linux-sunxi
Akagi201 has joined #linux-sunxi
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 272 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc Insomnia 4.0.2, revision: 402, sources date: 20100627, built on: 2010-08-02 17:44:33 UTC 402 http://www.kvirc.net/]
Quarx has quit [Ping timeout: 250 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 256 seconds]
FunkyPenguin has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
ccube has quit [Remote host closed the connection]
konradoo87 has quit [Ping timeout: 272 seconds]
ccube has joined #linux-sunxi
Andy-D has quit [Ping timeout: 256 seconds]
<arokux2> miracles. I thought musb glue in 3.4 works in otg mode. I think it did when I tested it sevaral weeks ago. now it does not.
FunkyPenguin has quit [Ping timeout: 244 seconds]
* hno haven't tested in a year or so.
<hno> but yes it did kind of work.
FunkyPenguin has joined #linux-sunxi
<arokux2> hno: I'm talking about musb glue. jukivil1 explicitly said it is not yet supporting OTG, I thought however it does. but it is not. I messed something up. maybe started a wrong kernel
shineworld has joined #linux-sunxi
deasy has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 255 seconds]
shineworld has quit [Client Quit]
<arokux2> hno: I wanted to ask you something else. there is SRAM_CTRL_REG1. The doc to one of its bits says "SRAMD_MAP. SRAM D Area Config. 0: map to CPU/DMA; 1: map to USB0"
<arokux2> hno: what does it mean?
FunkyPenguin has joined #linux-sunxi
<jhonny_> I'm finding these instructions on how to build a kernel for MK802 really hard to follow. There seems to be no logical progression from one section to the other. It just seems like it was upgrade "Notes" rather than a full blown step by step tutorial
<arokux2> jhonny_: which instructions exactly?
<jhonny_> The manual build how to
<jhonny_> sorry, I've used linux before, but never to this extent. I've never built my own kernel before
<jhonny_> is there anything more in-depth that i can follow to build a Debian 3.4 SD card image ?
<jhonny_> all i really need is it working with g_mass_storage
FunkyPenguin has quit [Ping timeout: 259 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 250 seconds]
FunkyPenguin has joined #linux-sunxi
ninolein has quit [Ping timeout: 245 seconds]
ninolein has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 244 seconds]
FunkyPenguin has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 258 seconds]
FunkyPenguin has quit [Ping timeout: 250 seconds]
FunkyPenguin has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
FunkyPenguin has quit [Excess Flood]
<arokux2> mripard: frequently I'm getting NULL point deref in sun4i_timer_interrupt (on sun7i, cubietruck) maybe you know how to fix it
lerc has quit [Quit: No! Not that one!]
lerc has joined #linux-sunxi
FunkyPenguin has joined #linux-sunxi
<libv> jhonny_: it is time to start building your own kernel
<libv> jhonny_: but... since you already have a working sd card, you really have very little work to do
<libv> you do not need to bother with u-boot or formatting the sd-card or setting up the boot
<libv> you just need to build a kernel, stick the kernel image in the boot directory, and install the modules.
<libv> trivial stuff.
<libv> jhonny_: if you cannot figure that much out on your own, you are just going to be a burden for others. Even if someone builds it for you, and throws you a fish, you will just be back demanding another fish next week. So do yourself and everyone else a favour, and build your own kernel.
jhonny_ has quit [Ping timeout: 246 seconds]
FunkyPenguin has quit [Ping timeout: 258 seconds]
FunkyPenguin has joined #linux-sunxi
deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
<arokux2> how can I get output from dev_dbg in an interrupt handler? (note, passing KERN_ERR to dev_dbg does the trick)
<arokux2> I mean using dev_printk with KERN_ERR works, my log level is set to 7
FunkyPenguin has quit [Ping timeout: 250 seconds]
FunkyPenguin has joined #linux-sunxi
jhonny has joined #linux-sunxi
<jhonny> fair enough libv, and to be honest i rather learn how to do it, because even though the only functionality (last piece of the puzzle) i need to solve is add usb gadget support
<jhonny> but it would be good to learn how to do it
<jhonny> the problem i have is the sd card is built around 3.0 and not 3.4 so i don't know what will / won't work after i update the kernel
<jhonny> and also i don't know how to build the kernel / modules
<jhonny> im not sure what the dependencies are
<libv> jhonny: that is all explained.
<libv> jhonny: take some time to read up properly.
adj__ has quit [Quit: Leaving]
FunkyPenguin has quit [Ping timeout: 255 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 260 seconds]
FreezingCold has quit [Ping timeout: 245 seconds]
FunkyPenguin has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc Insomnia 4.0.2, revision: 402, sources date: 20100627, built on: 2010-08-02 17:44:33 UTC 402 http://www.kvirc.net/]
FunkyPenguin has quit [Ping timeout: 265 seconds]
konradoo77 has quit [Ping timeout: 250 seconds]
FunkyPenguin has joined #linux-sunxi
<arokux2> libv: do you know what could be the sense of this? http://sprunge.us/GRcf
paulk-aldrin has quit [Read error: Connection reset by peer]
konradoo77 has joined #linux-sunxi
<libv> arokux2: of course
<libv> arokux2: this is pretty common for interrupt bits
<libv> read, write 1 to clear
<arokux2> libv: first read "1" to see if it is there and then write one to clear it?
<libv> if you write all 0xFF then you might clear interrupts which might have happened between read and write
<arokux2> libv: the point is the doc says: "All active interrupts will be cleared when this register is read."
<libv> so clear those interrupts which you know you will handle this iteration
FreezingCold has joined #linux-sunxi
<libv> arokux2: that is information that you did not provide before
FunkyPenguin has quit [Ping timeout: 256 seconds]
<libv> arokux2: test this by reading, and then reading again
<arokux2> libv: yes. :) because the doc is probably for some other version of the IP core :(
<libv> and seeing whether the two differ
<arokux2> libv: ok, thanks.
<libv> yes, this behaviour might change indeed
<libv> tbh, the way the code is there is much more flexible
<libv> it allows you to clear only those interrupts which you actually handle
<arokux2> libv: so this auto clearing is a "nice" feature of such registers?
<libv> it's a notsonice feature
<libv> it might seem easier
paulk-aldrin has joined #linux-sunxi
<libv> but it only does so for lazy people
<libv> lazy shortsighted people
<libv> as it forces you to handle _all_ interrupts
Wizzup has quit [Ping timeout: 255 seconds]
<arokux2> libv: I see what you mean
<jhonny> guys, when i try to clone the 3.4 kernel, it drops out at 63%
FunkyPenguin has joined #linux-sunxi
<jhonny> git clone -b sunxi-3.4 https://github.com/linux-sunxi/linux-sunxi.git
<libv> jhonny: you might want to create a shallow clone
<libv> --depth=1
<libv> err, --depth 1
Lorenzo64 has joined #linux-sunxi
<arokux2> I always wondered how to download a git snapshot from github (with git history)
<libv> this stops you from getting a gigabyte worth of history
FunkyPenguin has quit [Excess Flood]
<libv> arokux2: it's useless for development
<libv> but good enough for people who just want to build a kernel and be done
<libv> which is definitely the category that jhonny seems to be in
<jhonny> it says its going to get 512mb and i have 2gb free one the mk802
<jhonny> but it kinda craps out
<libv> on the mk802?
<jhonny> ill try the depth parameter
<libv> 2gb is not enough
<libv> and really?
<libv> building a kernel on the a10?
<arokux2> jhonny: you are cloning the kernel to the mk802? o_O
<libv> how many days do you want to wait?
<jhonny> yeah, doesn't it have to be built on the machine its intended for ?
<libv> jhonny: do it on the host computer
<libv> jhonny: toolchain.
FunkyPenguin has joined #linux-sunxi
<jhonny> ahhhh ok now that makes sense
<jhonny> so should i spin up a Debian VM ?
<libv> if you had read up, you would've seen things about a toolchain
<jhonny> but it will be x86 will that matter ?
<jhonny> i did see it, but didn't see how it fits in ;)
<libv> toolchain is meant to crosscompile stuff
<libv> which works great for both kernel and uboot
<libv> jhonny: what kind of host are you working off?
<jhonny> awesome, thank you
<jhonny> Mac
<jhonny> but i have vmware fusion
<libv> ok
<libv> install a minimal debian indeed
<libv> jhonny: you should have enough oomph to build a kernel in under an hour
<libv> even in a vm if you have VT extensions on your cpu
<libv> which, i think, you should have
<arokux2> jhonny: you need to crosscompile
FunkyPenguin has quit [Ping timeout: 265 seconds]
<jhonny> happy days ;)
<jhonny> that way i should be able to do a minimal install yeah ?
<libv> jhonny: and a few packages (like make)
<libv> and then a toolchain
<libv> which might be provided by debian as well
FunkyPenguin has joined #linux-sunxi
<arokux2> sorry jhonny I'm busy with porting otg to the mainline, so I do not have time to answer this kind of questions.
* libv is doing paperwork
<jhonny> thanks guys, i really appreciate all your help
ricardocrudo has joined #linux-sunxi
ricardocrudo has quit [Remote host closed the connection]
ricardocrudo has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 255 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 255 seconds]
Wizzup has joined #linux-sunxi
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 245 seconds]
egbert has quit [Ping timeout: 260 seconds]
hno has quit [Ping timeout: 260 seconds]
ojn has quit [Ping timeout: 260 seconds]
lioka has quit [Ping timeout: 260 seconds]
FDCX_ has quit [Ping timeout: 260 seconds]
VargaD has quit [Ping timeout: 260 seconds]
phh has quit [Ping timeout: 260 seconds]
ccube has quit [Ping timeout: 260 seconds]
pwhalen has quit [Ping timeout: 260 seconds]
bluse has quit [Ping timeout: 260 seconds]
steev has quit [Ping timeout: 260 seconds]
slapin has quit [Ping timeout: 260 seconds]
jukivil1 has quit [Ping timeout: 260 seconds]
FunkyPenguin has joined #linux-sunxi
egbert has joined #linux-sunxi
lioka_ has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 255 seconds]
phh_ has joined #linux-sunxi
ojn_ has joined #linux-sunxi
jukivili has joined #linux-sunxi
hno` has joined #linux-sunxi
FunkyPenguin has joined #linux-sunxi
ccube has joined #linux-sunxi
FDCX_ has joined #linux-sunxi
slapin has joined #linux-sunxi
joga has quit [Ping timeout: 260 seconds]
tgaz has quit [Ping timeout: 260 seconds]
joga has joined #linux-sunxi
ojn_ is now known as ojn
tgaz has joined #linux-sunxi
bluse has joined #linux-sunxi
pwhalen has joined #linux-sunxi
steev has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 272 seconds]
VargaD has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 272 seconds]
konradoo77 has joined #linux-sunxi
jhonny has quit [Ping timeout: 246 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Excess Flood]
konradoo77 has quit [Ping timeout: 258 seconds]
FunkyPenguin has joined #linux-sunxi
afaerber_ is now known as afaerber
FunkyPenguin has quit [Excess Flood]
<libv> ah, i still have the old version sitting around
FunkyPenguin has joined #linux-sunxi
MY123 has joined #linux-sunxi
jhonny has joined #linux-sunxi
<jhonny> ok guys, so I'm at the "tweaking the config" stage: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
<jhonny> just wondering if anyone can give me any tips on what i need to include in the kernel so that on the MK802 i have the internal sound, wifi and a terminal via hdmi
<libv> jhonny: sun4i_defconfig should be enough
<jhonny> ok so all i need to add on top of that is USB Gadget support yeah ?
<jhonny> to make my MK802 be seen as a USB stick on a computer ?
Andy-D has joined #linux-sunxi
<jhonny> also, libv, im not sure if you've ever tried something like this, but my plan is to have the PC access a mount or filesystem on the MK802 the same as the Debian linux that's running on the MK802
<jhonny> anything i need to add to the kernel for that to happen ?
<libv> i am not sure, i never tried that.
apo has joined #linux-sunxi
<libv> nfs surely must work over either wifi or usb gadget ethernet
konradoo77 has joined #linux-sunxi
mozzwald_ has joined #linux-sunxi
gjm_ has joined #linux-sunxi
uwe__ has joined #linux-sunxi
gjm_ is now known as gj
gjm has quit [Disconnected by services]
gj is now known as gjm
gjm has quit [Changing host]
gjm has joined #linux-sunxi
Quarx has joined #linux-sunxi
uwe_ has quit [*.net *.split]
Night-Shade has quit [*.net *.split]
mozzwald has quit [*.net *.split]
apo_ has quit [*.net *.split]
DagoRed has quit [*.net *.split]
hramrach_ has quit [*.net *.split]
tomboy64 has quit [*.net *.split]
Night-Shade has joined #linux-sunxi
DagoRed has joined #linux-sunxi
jhonny has quit [Ping timeout: 246 seconds]
jhonny has joined #linux-sunxi
<MY123> libv: I think I should add Cortex-A15 to http://linux-sunxi.org/Used_IP_cores
<MY123> (and PVR Series6)
<jhonny> make: arm-linux-gnueabihf-gcc: Command not found
<jhonny> that's what i get when i run:
<jhonny> make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules
<MY123> jhonny: Did you install a cross-compiler?
<jhonny> yep
<jhonny> i also installed:
<jhonny> apt-get install gcc-4.7-arm-linux-gnueabihf apt-get install g++-4.7-arm-linux-gnueabihf
<jhonny> and created the sym links
<MY123> jhonny: dpkg -L gcc-4.7-arm-linux-gnueabihf ?
<MY123> (It works well on Ubuntu Server 14.04 and Debian Wheezy with emdebian)
<jhonny> yeah i get tons of stuff
<jhonny> when i run that command, heaps of files come up
<MY123> jhonny: dpkg -L gcc-4.7-arm-linux-gnueabihf |grep /usr/bin/ ?
<jhonny> i get: /usr/bin /usr/bin/arm-linux-gnueabihf-gcov-4.7 /usr/bin/arm-linux-gnueabihf-gcc-ranlib-4.7 /usr/bin/arm-linux-gnueabihf-gcc-ar-4.7 /usr/bin/arm-linux-gnueabihf-gcc-4.7 /usr/bin/arm-linux-gnueabihf-gcc-nm-4.7
<MY123> jhonny: /usr/bin/arm-linux-gnueabihf-gcc-4.7 --version ?
afaerber_ has joined #linux-sunxi
<jhonny> arm-linux-gnueabihf-gcc-4.7 (Debian 4.7.2-5) 4.7.2 Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
<MY123> jhonny: Wait. will find my bash history
<MY123> (starting VirtualBox)
<jhonny> :) np thank you for your help
<MY123> jhonny: I did sudo apt-get install gcc-arm-linux-gnueabi gcc-arm-none-eabi gcc-arm-linux-gnueabihf
<jhonny> ok let me smack that in
<MY123> on my system without any symlinks ore so.
<MY123> or
afaerber has quit [Ping timeout: 240 seconds]
afaerber_ is now known as afaerber
<jhonny> E: Unable to locate package gcc-arm-linux-gnueabi E: Unable to locate package gcc-arm-none-eabi E: Unable to locate package gcc-arm-linux-gnueabihf
<jhonny> I'm running Debian though
<jhonny> not Ubuntu
<MY123> jhonny: ln -s /usr/bin/arm-linux-gnueabihf-gcc-4.7 /usr/bin/arm-linux-gnueabihf-gcc
<MY123> jhonny: for emdebian
<jhonny> ITS ALIVE !
<jhonny> My FrankenKernel is alive !!!!
<jhonny> well... its compiling ;) lets not get too excited
<jhonny> hahah
<jhonny> Thank you so much MY123
<MY123> jhonny: You should also do ln -s /usr/bin/arm-linux-gnueabihf-ld-4.7 /usr/bin/arm-linux-gnueabihf-ld to finish
<jhonny> do it now in another terminal ?
<jhonny> before the compile finishes ?
konradoo77 has quit [Ping timeout: 265 seconds]
<jhonny> ln: failed to create symbolic link `/usr/bin/arm-linux-gnueabihf-ld': File exists
<jhonny> so rename the existing file and do the link again ?
<MY123> jhonny: So ld is OK. don't do something
<jhonny> ok :)
<jhonny> MY123 - so after its done compiling, I've already got the MK802 running with kernel 3.0.52 and i want to upgrade it with this kernel...... is that a difficult process ? and can i just replace the kernel or do i need to do something else ?
Quarx has quit [Ping timeout: 250 seconds]
jhonny has quit [Changing host]
jhonny has joined #linux-sunxi
<MY123> jhonny: I only know updating the kernel in NAND (for Android)
<jhonny> ahhh ... ok i have another silly question then, speaking of NAND's .... my MK802 is right now booting off my microSD card. On the NAND there is another linux bistro. Once i boot into Debian running off my microSD card can i backup the OS on the NAND ?
<jhonny> i saw there are: nand, nanda, nandb, nandc ... etc... devices
<jhonny> do i need to backup all of them with DD to a file ?
Lorenzo64 has quit [Ping timeout: 269 seconds]
<MY123> jhonny: It is much simpler for uSD. (remplacing uImage on the first FAT partition)
wens has joined #linux-sunxi
<jhonny> i plan to keep it on uSD, but i just wanted to backup the internal NAND just in case i screw things up ;)
<MY123> jhonny: dd if=/dev/nand of=/some/place/with/enough/space
<jhonny> but just the nand device ? or also nanda and nandb etc ?
<MY123> jhonny: There is the partition table in /dev/nand
<MY123> (and everything else)
<MY123> nanda, nandb... are just partitions
<jhonny> ahhh makes sense
<jhonny> thanks MY123 ;)
<jhonny> ok so now the kernel is made
<jhonny> (i think) i dropped back to command line
<jhonny> but i don't see uImage file ?
<MY123> jhonny: arm/boot/uImage
konradoo77 has joined #linux-sunxi
<jhonny> got it:
<jhonny> at: /linux-sunxi/arch/arm/boot/uImage
Quarx has joined #linux-sunxi
adj_ has joined #linux-sunxi
Lorenzo64 has joined #linux-sunxi
<jhonny> sweet ;)
skaag has quit [Ping timeout: 245 seconds]
<adj_> linux-sunxi wiki says that allwinner violates glp on libnand and u-boot for A20
skaag has joined #linux-sunxi
<adj_> but doesn't say the same for A10
<adj_> doesn't A10 uses libnand and u-boot?
<MY123> adj_: The A10 ver has source code available
<adj_> MY123, thanks, but isn't A10 source code compatible with A20?
<MY123> adj_: Sadly not
<adj_> :(
<adj_> so can A10 be used with OS software only?
<MY123> adj_: Yes, if you doesn't use Mali's userspace shit
<MY123> adj_: Same for A20 with mtd (by linux-sunxi)
<adj_> isn't lima usable yet?
<MY123> adj_: es2gears state.
<adj_> ok, so no android or xorg support
<MY123> (Q3 without mouse and kbs support)
<MY123> adj_: es2gears on X11
<adj_> mtb is only needed for nand support, or also for sd-card?
<MY123> adj_: NAND only
<adj_> great, i only want sd-card
<adj_> MY123, thank you very much
<jhonny> MY123, so where do i stick this uImage file now ?
<jhonny> i don't see an existing one on my uSD card
<MY123> jhonny: first partition
<jhonny> sorry MY123, how do i do that
<jhonny> <--- noob behind the wheel
<MY123> jhonny: Do you have your SD attached to a PC?
<jhonny> its in my MK802
<jhonny> and its booted
<jhonny> but i can put it on the PC (Mac)
<MY123> jhonny: Do a mount -t vfat /dev/mmcblk0p1 /mnt on the MK802
<jhonny> SWEEEEET :)
<jhonny> MY123 you are awesome
<jhonny> didn't realise the first partition is FAT
<jhonny> i would have thought ext3 or 4
<MY123> jhonny: then copy uImage to /mnt :-)
<jhonny> yep :)
<MY123> jhonny: Reboot and see if you killed a cat :P
Andy-D has quit [Remote host closed the connection]
Lorenzo64 has quit [Quit: Leaving]
<jhonny> hahah i think i killed it
<jhonny> hold on i need HDMI
<jhonny> damn
<jhonny> it broke wifi support
<jhonny> hmm i was sure i added it in there
<jhonny> maybe i specifically need to add in my wifi adapters ?
<jhonny> I'm going to roll back to my old Kernel
<jhonny> check the adapter models
konradoo77 has quit [Ping timeout: 265 seconds]
leviathanch_ has quit [Read error: Connection reset by peer]
<jhonny> Realtek RTL8188CUS (Edimax EW-7811UN)
<jhonny> Realtek 0bda:018a (Onboard: RTL8192CU)
<jhonny> do i need to add support for those manually ?
sehraf has quit [Read error: Connection reset by peer]
leviathanch_ has joined #linux-sunxi
hypothalamus has joined #linux-sunxi
leviathanch_ has quit [Remote host closed the connection]
konradoo77 has joined #linux-sunxi
Quarx has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
rafaelMOD has joined #linux-sunxi
leviathanch has joined #linux-sunxi
<jhonny> sexy ;) thanks ;)
<jhonny> i just noticed i need to edit my script.bin
<jhonny> but funny thing is i never replaced my script.bin
<jhonny> unless it was missing the parameters in the first place
<jhonny> but never needed them on 3.0 kernel
Wizzup has quit [Quit: be back soon]
Wizzup has joined #linux-sunxi
leviathanch2 has joined #linux-sunxi
leviathanch2 has quit [Remote host closed the connection]
leviathanch2 has joined #linux-sunxi
<jhonny> hmm interesting
<jhonny> lsusb shows both devices on new 3.4 kernel
<jhonny> but neither of them show up with ifconfig
<Wizzup> ifconfig -a
leviathanch2 has quit [Ping timeout: 244 seconds]
<jhonny> yeah
<jhonny> i can only see:
<jhonny> bond0, eth0, lo, tunl0
<jhonny> before i had wlan0 and wlan1
<jhonny> (on the old kernel)
<jhonny> from the old kernel i still have
<jhonny> the following: /lib/modules/3.0.52/kernel/drivers/net/wireless/rtl8192cu
<jhonny> and: /lib/modules/3.0.52/kernel/drivers/net/wireless/rtl8192cu/8192cu.ko
<jhonny> should i remove those ?
<jhonny> or in that directory they make no difference ?
<jhonny> oh ... maybe its this
<jhonny> when i run: service networking restart
<jhonny> i get an error:
<jhonny> wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
<hno`> jhonny, if you don't see the interfaces in ifconfig -a (or ip link) then their modules are not working or not loaded.
<jhonny> right.... how can i load them ?
Andy-D has joined #linux-sunxi
Andy-D has quit [Remote host closed the connection]
konradoo77 has quit [Ping timeout: 255 seconds]
netlynx has quit [Quit: Leaving]
Gerwin_J has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
<jhonny> alright guys, i got to go to bed, ill be back tomorrow with some more questions, but thank you so much for you help thus far ! its been an awesome learning experience
jhonny has quit [Quit: Page closed]
hypothalamus has quit [Read error: Connection reset by peer]
seppel has joined #linux-sunxi
popolon has joined #linux-sunxi
egbert has quit [Quit: leaving]
sehraf has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
tomboy64 has joined #linux-sunxi
earny has quit [Remote host closed the connection]
earny has joined #linux-sunxi
hramrach_ has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 265 seconds]
pwhalen has quit [Ping timeout: 272 seconds]
uwe__ is now known as uwe_
pwhalen has joined #linux-sunxi
<mripard> arokux2: I know, but so far it's been a one-every-6-monthes issue, and no one that had that issue have been able to provide a meaningful bug report or a fix
<arokux2> mripard: I'll show you an oops soon
Zboonet has joined #linux-sunxi
<lioka_> anyone with hackberry -- is emac or usb working on mainline ?
lioka_ is now known as lioka
lioka has quit [Changing host]
lioka has joined #linux-sunxi
<lioka> seems i have problems with phy -- http://ns.lioka.obninsk.ru/dmesg.sunxi0
skaag1 has joined #linux-sunxi
skaag has quit [Ping timeout: 272 seconds]
akaizen has joined #linux-sunxi
akaizen_ has quit [Read error: Connection reset by peer]
akaizen has quit [Ping timeout: 265 seconds]
nieuwbie has joined #linux-sunxi
<nieuwbie> Hi. I followed u-boot how to and I can't manage SPL to build. No error message is generated.
FreezingCold has quit [Ping timeout: 245 seconds]
FreezingCold has joined #linux-sunxi
lerc has quit [Remote host closed the connection]
lerc has joined #linux-sunxi
seppel has quit [Read error: Connection reset by peer]
jinzo has joined #linux-sunxi
philippe_fouquet has joined #linux-sunxi
deasy has joined #linux-sunxi
lerc has quit [Remote host closed the connection]
konradoo77 has joined #linux-sunxi
philippe_fouquet has quit [Remote host closed the connection]
MY123 has quit []
FR^2 has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 245 seconds]
<Turl> lioka: make sure fixed regulators are enabled
<Turl> nieuwbie: are you building for a board with SPL support?
<nieuwbie> I use sun4i_config
<Turl> nieuwbie: what instructions are you following?
<Turl> nieuwbie: that doesn't sound like something from here
<nieuwbie> make CROSS_COMPILE=armv7a-hardfloat-gnueabi- config_sun4i
<nieuwbie> make CROSS_COMPILE=armv7a-hardfloat-gnueabi-
<Turl> nieuwbie: yeah, but on what tree, what branch, etc
<Turl> I really don't recall us having a generic sun4i target
<Turl> (on u-boot-sunxi)
<nieuwbie> sunxi branch
FunkyPenguin has joined #linux-sunxi
viccuad has joined #linux-sunxi
akaizen has joined #linux-sunxi
<nieuwbie> according to boards.cfg there is one
lerc has joined #linux-sunxi
<Turl> nieuwbie: Active arm armv7 sunxi - sunxi sun4i sun4i:SUNXI_EMAC -
<Turl> it doesn't have SPL support
<nieuwbie> Oh.
<Turl> you really need to use your device's target
<nieuwbie> oh yeah. that what I was missing all the time.
konradoo87 has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 245 seconds]
konradoo77 has quit [Ping timeout: 244 seconds]
<nieuwbie> Turl: but how to determine what options should be defined?
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Changing host]
FunkyPenguin has joined #linux-sunxi
<Turl> nieuwbie: eh? just look up your device on boards.cfg and use the right target
<Turl> nieuwbie: if there's none you really should be following the new device howto
<lioka> Turl: sure they are
megal0maniac is now known as Guest94354
Guest94354 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
megal0maniac has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 265 seconds]
<lioka> Turl: same kernel on cubietruck works as expected
FunkyPenguin has joined #linux-sunxi
<Turl> lioka: also make sure you have sun4i_mdio enabled
<Turl> lioka: cubietruck uses gmac
<lioka> Turl: ack for sun4i_mdio too
FunkyPenguin has quit [Excess Flood]
<Turl> lioka: other than that, maybe your phy is on some other port
<Turl> lioka: you could try running with autodetection
<lioka> Turl: gmac -- yes, i know, i've mentioned cubietruck because usb isn't working on hackberry too
<Turl> lioka: can you paste your kernel config for reference?
FunkyPenguin has joined #linux-sunxi
<lioka> Turl: tried that too (by removing reg = <0>)
<lioka> no luck
Faisal has quit [Read error: Connection reset by peer]
<lioka> Turl: here's config: http://ns.lioka.obninsk.ru/config-mp
<Turl> CONFIG_PHY_SUN4I_USB=m
<Turl> did you load it?
Faisal has joined #linux-sunxi
<lioka> Turl: i have udev for that
<lioka> Turl: yes, it's loaded
FunkyPenguin has quit [Excess Flood]
<nieuwbie> ok and one thing about AXP
FunkyPenguin has joined #linux-sunxi
<Turl> lioka: also CONFIG_MDIO_SUN4I=m
<lioka> Turl: you mean, is it loaded ? yes, it is
<Turl> lioka: did you load them first the mdio, then emac
<Turl> and first phy, then usb?
<Turl> (I'm not sure how well would it work the other way round, at least for emac)
<lioka> Turl: well, lsmod shows that phy_sun4i_usb was loaded before ehci|ohci_whatever
<Turl> lioka: also, what is it that's not working about usb? it seems to have discovered a rtl8192cu wifi thing over there
<lioka> Turl: yes, that's the one thing which works, anything inserted into headers doesn't shows in lsusb or anywhere else
<lioka> Turl: rtl8192 is onboard thingy, connected on different usb bus
FunkyPenguin has quit [Ping timeout: 245 seconds]
<Turl> lioka: maybe the headers are OTG?
<Turl> lioka: that's a different controllers
<Turl> controller*
<Turl> not supported on mainline
<lioka> i've heard one otg, one regular usb2 -- tried both
FunkyPenguin has joined #linux-sunxi
<nieuwbie> Turl: I've got an error undefined reference to 'sunxi_dram_init'
<Turl> nieuwbie: what are you building?
<nieuwbie> u-boot-sunxi
<Turl> nieuwbie: yeah, but what board :)
<nieuwbie> Inet_3f
<Turl> lioka: you could try rmmoding and reinserting emac and see if it works
<Turl> nieuwbie: you mean "INet_3FBT" ?
<nieuwbie> No. It's not in repo yet.
<Turl> nieuwbie: ok then, make sure you included the dram configuration correctly then
<Turl> sounds like you forgot completely about it or miswrote the makefile rule
FunkyPenguin has quit [Ping timeout: 245 seconds]
<lioka> Turl: nope, same sh*t
FunkyPenguin has joined #linux-sunxi
<nieuwbie> Ok but I have it in board/sunxi/dram_init_3f_rev06.c
<lioka> Turl: if you happen to have mainline git repo around, ca78c26c0b58fe1f1da7cdb3a5a18971b3897c5d
<Turl> nieuwbie: then recheck the makefile rule
<nieuwbie> Turl: Makefile rule?
<Turl> nieuwbie: the obj-$(...) = dram_blah.c line
<Turl> or sth like that
<Turl> nieuwbie: are you following the howto? http://linux-sunxi.org/U-Boot#Adding_a_new_device_to_U-Boot
<Turl> lioka: maybe there's a hub that needs power then, try toggling that gpio on
<Turl> lioka: 1s
<nieuwbie> oh I missed that part
FunkyPenguin has quit [Excess Flood]
<Turl> lioka: you could try something like this http://sprunge.us/WBGZ (std disclaimers, don't run this on another board, wrong place, it's a hack, etc)
FunkyPenguin has joined #linux-sunxi
<Turl> lioka: as for emac, can you paste a log w/ autodetection?
Renard has joined #linux-sunxi
<Turl> lioka: ok, the phy doesn't seem to be playing ball
<arokux2> hi Turl
<Turl> lioka: maybe it needs power
<Turl> howdy arokux2
<arokux2> Turl: now so well.. I've ported usb otg, seems to be an easy task. it show signs of life but refuses to enumerate usb device
<arokux2> Turl: how would you proceed now?
FunkyPenguin has quit [Ping timeout: 258 seconds]
<Turl> arokux2: how does it refuse to do so?
<arokux2> Turl: this is big perspective: http://sprunge.us/IDDb
<arokux2> Turl: on the low level it is "stalling"
jemk has quit [Quit: leaving]
<Turl> arokux2: power/clocking problems? triple check muxings, relevant clk configs, regulators and phy status
<Turl> you could also check with a external powered usb hub as far as hw tests go
<lioka> Turl: well, now it at least passes power to lower usb header, and because i believe it is otg, nothing more happens
<lioka> Turl: upper usb header -- no changes
<Turl> lioka: so it really was vbus after all then
<lioka> Turl: only for lower header, yes
konradoo77 has joined #linux-sunxi
FunkyPenguin has joined #linux-sunxi
konradoo87 has quit [Ping timeout: 255 seconds]
FunkyPenguin has quit [Excess Flood]
<Turl> lioka: do both emac and usb work on 3.4?
<Turl> the power phy config on mainline matches the fex on sunxi-boards as far as I can see
FunkyPenguin has joined #linux-sunxi
<Turl> although it's old and using the hogs notation, that should be cleaned up :)
<lioka> Turl: yes
<Turl> I'm out of ideas then, other than comparing stuff between a running 3.4 system and mainline
<Turl> does it work in uboot?
<Turl> maybe mripard has some more ideas
Wizzup has quit [Quit: leaving]
FunkyPenguin has quit [Excess Flood]
<hlavery1> lioka: I have tried mainline on Hackberry, see the same thing (no power to USB)...external powered hub does not help. Haven't been able to spot the error (if any) in the dts.
FunkyPenguin has joined #linux-sunxi
Zboonet has quit [Quit: Leaving]
<arokux2> Turl: who could access "SRAM CONTROL REGISTER 1 - SRAM_CTRL_REG1"? 0x01C00004
FunkyPenguin has quit [Ping timeout: 240 seconds]
<arokux2> ignore..
FunkyPenguin has joined #linux-sunxi
<arokux2> Turl: are u still working on dma, btw?
<arokux2> Turl: it is working!!!! :)
<Turl> arokux2: :)
<Turl> arokux2: yes I am, but I've been busy with other stuff
<arokux2> Turl: ok, so otg in host mode in mainline is there :) I think, device mode should be too.
<arokux2> Turl: other stuff sunxi?
<Turl> I should be sending a new set soon though
<Turl> no, uni stuff
<Turl> arokux2: so host and device work? :)
<arokux2> Turl: I can confirm host for now. need to check device (should work)
<arokux2> Turl: do you know what is SRAMD_MAP. SRAM D Area Config. 0: map to CPU/DMA. 1: map to USB0
<arokux2> what it is about?
FunkyPenguin has quit [Ping timeout: 245 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Excess Flood]
FunkyPenguin has joined #linux-sunxi
<Turl> arokux2: sounds like some scratch buffer for usb on the sram
bonbons has quit [Quit: Leaving]
leviathanch has quit [Remote host closed the connection]
Wizzup has joined #linux-sunxi
jinzo has quit [Quit: Leaving]
leviathanch has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 272 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 245 seconds]
FunkyPenguin has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 244 seconds]
konradoo77 has joined #linux-sunxi
bertrik has quit [Ping timeout: 240 seconds]
FunkyPenguin has quit [Ping timeout: 245 seconds]
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 245 seconds]
pwhalen has quit [Ping timeout: 244 seconds]
FunkyPenguin has joined #linux-sunxi
Black_Horseman has joined #linux-sunxi
Black_Horseman has joined #linux-sunxi
<hno`> mripard, where did you find pinmux data for A80?
hno` is now known as hno
hno has quit [Changing host]
hno has joined #linux-sunxi
<arokux2> hno: what is SRAM D Area? :)
<hno> arokux2, which SoC?
<arokux2> hno: A20
<arokux2> hno: I just ask myself whether I should understand this or just poke the needed bit
pwhalen has joined #linux-sunxi
FunkyPenguin has quit [Ping timeout: 255 seconds]
<hno> arokux2, SRAM D on A20 is for the USB OTG controller.
<arokux2> hno: yeah, I know. but what is this conceptually?
<hno> What do you mean?
<arokux2> hno: I don't know.. like what happens if I turn this bit on? :)
<hno> In system control?
paulk-aldrin has quit [Quit: Ex-Chat]
<arokux2> hno: well, anything. from the doc i have only this: "1: map to USB0", "0: map to CPU/DMA". but map what?
<hno> arokux2, SRAM D.
<hno> controls who can access that SRAM.
FunkyPenguin has joined #linux-sunxi
<arokux2> i see, thx
<hno> But I am not sure if 0 is valid for that register any more.
<arokux2> hno: any more? well, it should be surely set to 1 if you are going to use otg :)
sehraf has quit [Quit: www.miranda-fusion.de ... be part of it...]
jhonny has joined #linux-sunxi
bengal has quit [Quit: Leaving]
FunkyPenguin has quit [Ping timeout: 265 seconds]
<hno> arokux2, yes, it should be set to 1. But it is never set to 0 again, and code which sets it to 1 seems to be for FPGA implementation, not the final CPU.
<arokux2> hno: you mean to 0 in the second case, right?
<hno> No.
<arokux2> hno: hm.. otg driver sets it to 1. and this is for the CPU (not in FPGA impl)
<hno> There is no code that sets it to 0, anywhere. Only code that sets it to 1 for OTG usage. And the code that sets it to 1 is for FPGA version of the CPU.
<jhonny> hey hno and arokux2 - i was here a few hours ago, i was compiling a new kernel (3.4) for my A10 (MK802) device as i needed to add g_mass_storage (USB gadget) support.
<jhonny> It seems the new compiled kernel isn't loading my wifi devices. ifconfig -a doesn't show up wlan0 or wlan1. ( i have 2 wifi devices )
FunkyPenguin has joined #linux-sunxi
FR^2 has quit [Quit: Leaving]
<jhonny> How can i check what is going wrong and why the devices aren't coming up ? They show up in lsusb
<hno> jhonny, have you compiled the wifi modules and installed them?
<hno> Are the wifi modules loaded?
<jhonny> yes i included wifi features in the kernel
FunkyPenguin has quit [Excess Flood]
<hno> jhonny, and the required drivers for your wifi?
<arokux2> hno: sorry, I'm confused. I have a SoC on my table. it is not an FPGA version of the CPU. but the code sets that bit to 1
naobsd has quit [Quit: Page closed]
<jhonny> hno - i have 2 cards: Realtek RTL8188CUS (Edimax EW-7811UN) and .....Realtek 0bda:018a (Onboard: RTL8192CU)
pwhalen has quit [Ping timeout: 260 seconds]
<jhonny> on the sunni wiki wifi page it says
FunkyPenguin has joined #linux-sunxi
<jhonny> RTL8188CUSUSB0bda:81768192cusupported
<jhonny> does that mean the device driver is included in the kernel ?
<jhonny> (the last field)
<hno> arokux2, I was looking in the latest Allwinner kernel sources I have. There the line which sets it to 1 is in the function fpga_config_use_otg()
<hno> jhonny, it means there is a driver in the kernel sources. Not that it gets focibly included in the kernel.
<arokux2> hno: oh, now I see. do they fix some bugs in older kernels, btw?
FunkyPenguin has quit [Excess Flood]
<hno> arokux2, doubt.
<jhonny> hno - sorry i've got no idea how to check what drivers have been loaded (i've never really dug that deep in linux before)
<arokux2> jhonny: lsmod
<hno> jhonny, did you build & install modules when you built your kernel?
<jhonny> yes, i installed some wifi modules but nothing specific to those 2 Realtek cards
konradoo77 has quit [Ping timeout: 255 seconds]
<jhonny> also one other thing ... when i try to run "modprobe" i get the following error:
<jhonny> modprobe: ERROR: ../libkmod/libkmod.c:557 kmod_search_moddep() could not open model file '/lib/modules/3.4.103-g9a1cd03/modules.dep.bin
<jhonny> that file actually does not exist
pwhalen has joined #linux-sunxi
pwhalen has quit [Changing host]
pwhalen has joined #linux-sunxi
<arokux2> jhonny: did you do these?
<arokux2> make -j4 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- uImage modules
<arokux2> make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=output modules_install
<arokux2> ?
<arokux2> jhonny: and then check if you did everything what is prescribed in Install section here: http://linux-sunxi.org/Linux_Kernel#Install
FunkyPenguin has joined #linux-sunxi
FunkyPenguin has quit [Changing host]
FunkyPenguin has joined #linux-sunxi
<jhonny> arokux2 i think i forgot the modules part ;)
<jhonny> let me go through it again
<arokux2> jhonny: generally you tripple check to make sure you did everything exactly the manual says
<jhonny> i find that manual just a little confusing (because i don't know the inter-workings of these components, kernels, modules etc...) and I can see there are "alternate" paths you can take, so i don't know which ones i need to run and which ones not
<jhonny> but I'm progressing :) ... and learning... so thank you for your help and patience
<arokux2> jhonny: you are welcome to improve it. it was create by people like you :)
<arokux2> created*
<hno> jhonny, you need to complete one of the paths, not jump between them and skip..
<arokux2> hno: that kernel that you have, is this something alternative to 3.0 and 3.4 kernel? or rather their development?
<jhonny> well that's the thing, the guide kind of skips around, because it tells you: from this page do this, then go to this page do that. not the easiest thing to follow but ... i think a very short explanation of the "sub-components" would go a long way to help noobs like me wrap their head around it
<hno> arokux2, it's AW SDK kernel. 3.4 based bastard, highly unsuitable for any meaningful use.
<hno> jhonny, just follow the page top down and you will be fine.
<hno> ignoring "Upstream code" section.
<hno> I don't see any jumps to other pages. Only a single jump within the page.
<hno> allowing you to skip lots of historical details if you are only interested in compiling.
<arokux2> good night
<jhonny> good night arokux2 - thanks again for your help
<arokux2> u r welcome
arokux2 has quit [Remote host closed the connection]
<jhonny> ok, so now that i got the modules over ... the internal wifi is working: RTL8192CU
<jhonny> but my USB one doesn't seem to work: RTL8188CUS (Edimax EW-7811UN)
<jhonny> so wlan0 is there all good, but still missing wlan1
Deskwizard_ has quit [Read error: Connection reset by peer]
Deskwizard has joined #linux-sunxi
<hno> jhonny, those realtek chips is a bit... messed up.
<jhonny> ok, I'm going to try and install the realtek driver 8188 from their website
<jhonny> see how i go
<jhonny> lsmod didn't show up and 8188 drivers