arokux2 has quit [Remote host closed the connection]
jinzo has quit [Quit: Leaving]
popolon has quit [Quit: Quitte]
zeRez has quit [Read error: Connection reset by peer]
zeRez has joined #linux-sunxi
zeRez has quit [Read error: Connection reset by peer]
zeRez has joined #linux-sunxi
zeRez has quit [Client Quit]
<wens>
torbenh3: wifi seems to need firmware as well
aep has quit [Read error: Operation timed out]
zeRez has joined #linux-sunxi
aep has joined #linux-sunxi
zeRez_ has joined #linux-sunxi
zeRez has quit [Ping timeout: 272 seconds]
hglm has quit [Quit: leaving]
egbert has quit [Disconnected by services]
egbert_ has joined #linux-sunxi
hipboi has joined #linux-sunxi
zeRez_ has quit [Quit: zeRez_]
libv has quit [Ping timeout: 260 seconds]
libv has joined #linux-sunxi
hipboi has quit [Ping timeout: 246 seconds]
hipboi has joined #linux-sunxi
geecko has quit [Ping timeout: 252 seconds]
[7] has quit [Disconnected by services]
TheSeven has joined #linux-sunxi
pirea has joined #linux-sunxi
Tomoe has joined #linux-sunxi
<Tomoe>
How are you gentlemen!!
JohnDoe_71Rus has joined #linux-sunxi
<pirea>
arokux we must talk
<pirea>
after exam i will be here
<pirea>
that means 12 gmt
prasannapete has joined #linux-sunxi
kaspter has joined #linux-sunxi
prasannapete has quit [Quit: prasannapete]
Tomoe has left #linux-sunxi [#linux-sunxi]
<JohnDoe_71Rus>
according http://linux-sunxi.org/FirstSteps get git linux-sunxi make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- <your_SoC>_defconfig only copy .config without build
<JohnDoe_71Rus>
try build to sun7i_
Taduro_ has quit [Read error: Connection reset by peer]
Taduro_ has joined #linux-sunxi
Taduro_ has quit [Ping timeout: 246 seconds]
Black_Horseman has quit [Remote host closed the connection]
prasannapete has joined #linux-sunxi
hipboi has quit [Ping timeout: 248 seconds]
hipboi has joined #linux-sunxi
hipboi has quit [Ping timeout: 264 seconds]
hipboi has joined #linux-sunxi
Quarx has joined #linux-sunxi
gzamboni has quit [Read error: Connection reset by peer]
deasy has joined #linux-sunxi
Taduro_ has joined #linux-sunxi
HeHoPMaJIeH has joined #linux-sunxi
wolfy has joined #linux-sunxi
atiti has joined #linux-sunxi
pirea has quit [Quit: Leaving]
cubear has joined #linux-sunxi
panda84kde has joined #linux-sunxi
gzamboni has joined #linux-sunxi
prasannapete has quit [Quit: prasannapete]
arete74 has joined #linux-sunxi
rellla has joined #linux-sunxi
n01 has joined #linux-sunxi
arete74 has quit [Quit: leaving]
arete74 has joined #linux-sunxi
cubear has quit [Quit: Leaving]
vicenteH has quit [Ping timeout: 272 seconds]
AreaScout has joined #linux-sunxi
deasy has quit [Ping timeout: 264 seconds]
Taduro_ has quit [Ping timeout: 272 seconds]
FR^2 has joined #linux-sunxi
deasy has joined #linux-sunxi
<maz>
mripard: finally posted the PSCI stuff. Tried to subscribe to the linux-sunxi ML, but it doesn't seem to work... Oh well.
<arokux>
wens: yes it needs
<mripard>
maz: yes, I just saw your patches :)
<arokux>
wens: i'm currently struggle to bring wifi to life, scanning works, but no connection
<arokux>
anybody with cubietruck here?
<mripard>
maz: it looks fun :)
cajg has quit [Ping timeout: 252 seconds]
<mripard>
maz: next time, you'll probably want to CC hno though
<maz>
mripard: yup. should be dead easy to expand to support A31.
<mripard>
indeed
<maz>
mripard: hno?
<mripard>
but we have much more work to do before getting to that point
adb_ has joined #linux-sunxi
<mripard>
Henrik Nordstrom, the u-boot-sunxi maintainer
<maz>
mripard: right. good point.
cajg has joined #linux-sunxi
tzafrir has quit [Read error: Operation timed out]
<mripard>
he usually reads the linux-sunxi ml though, so he'll probably find your mails anyway
<mripard>
but I'm pretty sure he's interested :)
wolfy has left #linux-sunxi ["Daca te lasi de fumat, de baut si de femei nu traiesti mai mult... doar ca ti se pare ca timpul trece prea incet. (Clement Freud)"]
notmart has joined #linux-sunxi
<maz>
mripard: I'd hope so! :-) Anyway, this A20 box is an interesting KVM target now.
<maz>
mripard: it's been running VMs at full blast for the past few days.
<maz>
mripard: now I'd really like to be able to use my CT ;-)
<wens>
arokux: with mainline drivers?
<arokux>
no, cubie/sunxi-3.4 - first I want to see it working there.
<wens>
arokux: I called AMPAK this afternoon, still waiting for a return call...
<arokux>
wens: we could ask Benn what chips are there :)
<wens>
arokux: wonder if he has the datasheet...
<mripard>
maz: it's getting closer :)
<arokux>
wens: no idea
<mripard>
wens and torbenh3 are working on gmac and are pretty close, oliv3r and ian are working on SATA
<oliv3r>
maz yeah i know, i'm trying to cut back :)
<torbenh3>
but making it to the current merge window is a pipe dream...
* torbenh3
goes looking for the pipe.
hramrach has quit [Remote host closed the connection]
<mripard>
wens: yes, just make it take a second optional clock
<wens>
still have to sort out this gmac clock stuff though. nasty :(
<torbenh3>
wens: my plan is to get mmc working somehow... so that i can make the network go down without loosing my RFS. then mess with the clock stuff, to get Gbit working.
<torbenh3>
maybe we have to set 5 instead of 6 into that gmac clk reg.
popolon has joined #linux-sunxi
<wens>
torbenh3: i should get my ct by next week, so i can do some more tests
<torbenh3>
i already have mmc compiling.
<torbenh3>
wens: do you also have a real Gbit switch ?
<wens>
torbenh3: i do
<torbenh3>
nice.
<JohnDoe_71Rus>
oliv3r: if i get sunxi-bsp from git, it download linux-sunxi one more time?
derethor has quit [Read error: Operation timed out]
<oliv3r>
torbenh3: you using the mmc patches .... i forgot its name wrote?
<oliv3r>
JohnDoe_71Rus: the BSP has all the other repositories as submodules
<oliv3r>
JohnDoe_71Rus: the idea is, you get the BSP, you get everything you need
<torbenh3>
oliv3r: ENOPARSE
<JohnDoe_71Rus>
if I have a part of the required
<torbenh3>
oliv3r: i just copied mmc from sunxi-3.4 and fixed the fallout.
<JohnDoe_71Rus>
I can use the existing sub-modules?
<oliv3r>
torbenh3: i think someone started to work on mainline mmc a while ago
<torbenh3>
oliv3r: i read that. but i didnt find it...
<oliv3r>
torbenh3: i know i asked you before, but never saw the reply, so i'll gently ask again if you don't mind, who are you and what brings you here ;)
<torbenh3>
heh ?
<oliv3r>
torbenh3: if only i could remember the guy working on it, arokux probably remembers, Lsomething
<oliv3r>
torbenh3: well you seem quite knowledgeable, know your way around the kernel/mainline and you seem to have just 'popped up' here :)
<oliv3r>
i'm just curious on new guys
<arokux>
torbenh3: which guy?
<oliv3r>
the mmc guy
<arokux>
oliv3r: levithanch
<oliv3r>
yes!
<arokux>
oliv3r: I've tried to get his code yesterday......
<kriegerod>
arokux: i'll meet my CT only tomorrow, then i can try it
<arokux>
kriegerod: ok
<kriegerod>
arokux: i think most probably you've done all right, and that is a problem of that kernel resulting in wifi not working. I don't remember anyone reporting CT wifi working on linux
<arokux>
kriegerod: it worked for the guy who has written the tutorial.
<kriegerod>
arokux: then let's ask him
<kriegerod>
ideally bringing them to irc forcefully :)
benn_ has joined #linux-sunxi
<kriegerod>
and also the one who publishes code in github cubieboard* repos :)
<focus>
hi, anyone know how to get an SDK for a Realtek RTD2660 chip? It can take HDMI 1024p signals and dither it to 800x480 pixel - I bought such a system and works really well
<focus>
want to make my own 100% gpl'd KiCAD boards now :)
<benn_>
torbenh3: yes. we copy the firmwares blobs from android
<arokux>
benn_: ok, I'll try your kernel with your fex and see if it works.
<torbenh3>
wens: looks like different from what we found yesterday ^^
<benn_>
arokux: ok, and it of course will work! :D
<arokux>
torbenh3: yes :)
<arokux>
benn_: we will see :) but I hope so!
<arokux>
benn_: why are you scared to push patches to sunxi-3.4?
<benn_>
arokux: I am now the CEO of cubietech. quite a lot of mass thing to deal with. Acturally I am just an engineer :<
<benn_>
arokux: I want to be an engineer :D
<arokux>
benn_: :D
<oliv3r>
engineers > ceo , managers
<arokux>
benn_: then it would be nice you provide some docs, hints etc. :)
<arokux>
benn_: so do you have datasheets for BCM4329/BCM40181 ?
<kriegerod>
benn_: then maybe pick a replacement for engineering from this irc chan for salary? :)
<benn_>
kriegerod: sound good. Actually cubietech is very weak. just keep hard to let the company survival
jaqmg has joined #linux-sunxi
<arokux>
benn_: also, do you have some docs on GMAC?
<benn_>
you know, there are lots of cubie like board in china :D maybe we need to seek a new direction
<hglm>
I noticed there are about four different drivers for BCM4330 (maybe BCM4329 also) in the stage/sunxi-branch currently, which are all enabled in the sun7i_defconfig, causing at least one conflict when compiling. I think it is better to just enable one of them...there might be one that works for CT (?)
<benn_>
arokux: I 've not got the gmac docs till now.
<arokux>
hglm: first get wifi working with cubie/sunxi-3.4, then figure out how to cherry pick.
<arokux>
benn_: I see. anything on BCM4329/BCM40181?
<benn_>
arokux: no for that. but a android porting guide for ap6210 in chinese :D
<torbenh3>
benn_: that should be fine for wens.
<arokux>
benn_: ok, this is already something :)
<arokux>
benn_: can you upload it somewhere?
<benn_>
arokux: ok, wait a minutes
* arokux
is happy to get anything
<Turl>
hi benn_ :)
<benn_>
Turl: hi
<wens>
torbenh3: :p
<wens>
benn_: I can do chinese :D
<hglm>
I have been able to get a A20-based tablet to boot stage/sunxi-3.4, but there seems to be a problem with USB...no power? I tried enabling the Sunxi dual-role USB 2.0 driver but didn´t help. Any hints?
<wens>
torbenh3: BCM4329 is supported in bcrm80211 :D
<benn_>
Turl: we have tested more than 50 pieces cubie2. they both work fine. I don't have more board currently :D
<Turl>
benn_: it's ok, that's enough boards for me :)
<benn_>
Turl: And I confirmed with allwinner's enginner. mbus=400mhz is stable
<Turl>
benn_: with the higher voltage right?
<benn_>
Turl: yep
<Turl>
great then :)
<Turl>
oliv3r: ping, how are we handling uboot patches these days?
benn_ has quit [Quit: Ex-Chat]
<oliv3r>
Turl: ML why?
<oliv3r>
did i miss something?
froy has quit [Ping timeout: 246 seconds]
froy has joined #linux-sunxi
vicenteH has quit [Read error: Connection reset by peer]
vicenteH has joined #linux-sunxi
<Turl>
oliv3r: nope, it's just that hno has been offline so I wondered :p
<Turl>
I'll send the mbus set later today then
<oliv3r>
Turl: i merge it then; seems sane enough imo; fuck power problems
kaspter has quit [Remote host closed the connection]
froy has quit [Ping timeout: 246 seconds]
froy has joined #linux-sunxi
froy has quit [Ping timeout: 246 seconds]
rellla2 has joined #linux-sunxi
<oliv3r>
rellla2: what's the XBMC status? :)
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Black_Horseman has joined #linux-sunxi
Black_Horseman has joined #linux-sunxi
Black_Horseman has quit [Changing host]
ganbold_ has joined #linux-sunxi
Black_Horseman has quit [Read error: Operation timed out]
<rellla>
oliv3r: too much $work$ atm... i'm hoping for pfdm. first i have to make my A20's work
<oliv3r>
rellla: did you not get a CubieTruck?
<oliv3r>
you got ontop of the list to make it happen! Now make it happen! :p
<oliv3r>
jk jk
<oliv3r>
yeah $work sucks :(
<rellla>
oliv3r: i got one, yes. and making xbmc work is second on todo list, after making a stable debian on sata-ssd and gmac first ;) christmas is coming ...
<hglm>
I can confirm that stage/sunxi-3.4 USB seems to broken (no USB power) for an A20 tablet. In linux-sunxi.org/USB, this issue with current stage/sunxi-3.4 is also reported for an A10-based Hackberry, so I guess this applies to many devices. However sunxi-3.4 branch works fine (I have enabled the Inventra dual-role USB driver with Allwinner option, didn´t try other drivers.
<arete74>
hi, but uboot read first boot.scr and next uEnv.txt?
prasannapete has left #linux-sunxi [#linux-sunxi]
sim___ has joined #linux-sunxi
shineworld has joined #linux-sunxi
<oliv3r>
mnemoc: ping
rellla3 has joined #linux-sunxi
vicenteH has quit [Ping timeout: 245 seconds]
FDCX has quit [Remote host closed the connection]
FDCX has joined #linux-sunxi
TomiK has joined #linux-sunxi
<TomiK>
hello
iamfrankenstein has quit [Ping timeout: 248 seconds]
<TomiK>
I have a low cost Polaroid tablet which holds an allwinner F20 SoC
<oliv3r>
F20? or A20?
<oliv3r>
F20 is rather old, sun3i generation
<TomiK>
F20 :)
<TomiK>
yes a sun3i :)
hipboi has quit [Remote host closed the connection]
<TomiK>
I just succeed to boot it from the SD card on a dummy bootloader taken from http://www.sysfwlab.com/
<oliv3r>
TomiK: we don't really support sun3i; not because we don't want to, but because we can't. nobody here has any sun3i hardware
<TomiK>
ok
<oliv3r>
we recently just removed sun3i code from our kernels because of that
<TomiK>
no problem
<TomiK>
arf
<oliv3r>
and we don't even have sun3i bootloader code i think
<oliv3r>
also, because we have no hardware, so can't test
<TomiK>
ok
<TomiK>
oliv3r> is there a place where I can find the old sun3i bootloader ?
<arete74>
hi, but uboot read first boot.scr and next uEnv.txt?
sim___ has quit [Quit: Page closed]
<oliv3r>
TomiK: i don't think u-boot ever had sun3i support
<oliv3r>
arete74: no idea :p
<oliv3r>
arete74: should be in the u-boot docs
<TomiK>
I would like to boot linux on this old tablet instead of android which is very slow
<TomiK>
oliv3r> ok
<arete74>
with cubie i can use shdc class 10
<arete74>
i try to modify uEnv.txt, but read only boot.scr
<oliv3r>
TomiK: so while its probably possible; i give you very limited chance :(
<oliv3r>
TomiK: that said, android is just userland on a linxu kernel
<oliv3r>
you could try passing a different init to the kernel ;)
<TomiK>
oh ok :)
<oliv3r>
and make the kernel boot your init, instead of android's init
<TomiK>
ok
<oliv3r>
so while you have a neat little challange there, it's not entirly impossible
<TomiK>
cool :)
<mnemoc>
oliv3r: pong
<TomiK>
ok on a forum I saw how to give a different init, if my memory is right :)
<TomiK>
and, if I want to try to port U-Boot for my sun3i just for fun and to learn, how to do ?
<TomiK>
I'm sorry for my bad english
egbert_ is now known as egbert
vicenteH has joined #linux-sunxi
rellla3 has quit [Remote host closed the connection]
<oliv3r>
TomiK: take sun4i u-boot and see if it boots ;)
<TomiK>
oki :)
<oliv3r>
TomiK: do you have a serial port connected to your device?
<TomiK>
yess
<TomiK>
:)
<oliv3r>
TomiK: chances are, if you can access the serial port, you can interrupt the bootloader
<TomiK>
ok
<oliv3r>
if you can intterupt the bootloader, you can modify init :)
<TomiK>
ok cool :)
dack has joined #linux-sunxi
<TomiK>
oliv3r> thanks for your help :)
<oliv3r>
TomiK: keep us informed of your progress ;)
<TomiK>
ok no problem
<TomiK>
:)
<oliv3r>
btw, it might be interesting to note, that sun3i and sun4i are not that dissimilar
<oliv3r>
the arm core is different, but a lot of their used IP is the same
<oliv3r>
sometimes with minor changes/improvements
<TomiK>
ok :)
geecko has joined #linux-sunxi
<TomiK>
yes on this blog http://www.sysfwlab.com/ he worked a lot with sun4i docs because the F20 is not very documented
<arokux>
hglm: still there?
<hglm>
Yes
<oliv3r>
TomiK: i can't read that :(
<arokux>
hglm: so powered hub solves the problem?
<TomiK>
oliv3r> yes, it's in french, but I'm french, it help me a lot for this tablet
<hglm>
No, I haven´t tried power hub (don´t have one lying around), but the regular sunxi-3.4 (as opposed to stage/sunxi-3.4) works fine.
<oliv3r>
TomiK: i get the jist of it
<arokux>
hglm: that is strange, it wasn't like this for Hackberry.
<arokux>
hglm: can you give me a git hash of sunxi-3.4 and stage/sunxi-3.4 you are trying?
<oliv3r>
arokux: ah i missed that detail, but did see the mail
<hglm>
arokux: I will see if I can find something, first trying to get wlan going on my device
<oliv3r>
mnemoc: ping ->
<arokux>
hglm: ok, once you have time for this, please ping me it should be easily solvable since there isn't much between stage/sunxi-3.4 and last sunxi-3.4
<arokux>
hglm: it is about 10 commits difference.
<arokux>
hglm: so you need to test 3 or 4 kernels and we know what is the problem then.
<hglm>
arokux: OK I will ping when I am ready to try to dissect the USB problem
<arokux>
hglm: alright
<arokux>
hglm: what is with WIFi? it can depend on usb btw :)
<hglm>
arokux: I think I have an rtl8188eu (on USB), but lsbusb doesn´t show it. Inserting 8188eu gives an "cannot allocate memory" error.
<arokux>
hglm: o_O
<arokux>
hglm: this is not related to "cannot allocate memory", but first you should make sure you are powering the usb that wlan adapter is connected too.
<hglm>
It´s an internal tablet wlan chip -- I think it is connected with USB but not sure.
<arokux>
hglm: yes it is. all the allwinner based devices are the same.
<arokux>
[usb_wifi_para]
<arokux>
usb_wifi_usbc_num = 2
<arokux>
usb_wifi_used = 1
<arokux>
do yo have something like this in your fex?
<arokux>
then make sure: [usbc1]
<arokux>
usb_used = 1
<arokux>
and
<arokux>
[usbc2]
<arokux>
usb_used = 1
<arokux>
hglm: ^^^^
<hglm>
checking
<arokux>
hglm: but then if USB host isn't working it can be a cause why wifi isn't working, since wlan adapter is connected through usb.
<hglm>
There is nho usb _wifi_para section in my fex/script.bin, but usbc1 and usbc2 are both set to usb_used = 1
<hglm>
OK there is a wifi_para section though in my fxex.
<arokux>
hglm: what?
<hglm>
The section is called wifi_para not usb_wifi_para.
codingrobot has quit [Read error: Operation timed out]
deasy has joined #linux-sunxi
<arokux>
hglm: the kernel expects usb_wifi_para, so rename it and do not forget to run fex2bin
rz2k has joined #linux-sunxi
dack has quit [Ping timeout: 272 seconds]
Taduro has joined #linux-sunxi
<hglm>
OK, the parameters are also different (wifi_used=1 not usb_wifi_used=1 etc)
<arokux>
hglm: it should be usb_wifi_para
<hglm>
Yeah I will change it
notmart has quit [Quit: notmart terminated!]
dack has joined #linux-sunxi
Taduro has quit [Quit: No Ping reply in 180 seconds.]
Taduro has joined #linux-sunxi
<arokux>
hglm: did it work?
HeHoPMaJIeH has quit [Quit: Leaving]
<hglm>
arokux: 8188eu.ko now loads correctly but /dev/wlan0 doesn´t show up and lsusb doesn´t list it.
tomee^ has joined #linux-sunxi
<arokux>
hglm: now it could be pure usb problem. are you using the branch where usb host works?
<oliv3r>
maz: for sunxi specific have you conciderd having this blob in the 'secure' SRAM (that's used for trustzone which is unused?)
<oliv3r>
maz: we have confirmed that this SRAM is available to u-boot and the kernel
<hglm>
Yep, regular sunxi-3.4, but I have enabled the Inventra dual-role USB driver -- maybe that makes a difference
<maz>
oliv3r: the secure SRAM is only available when the kernel is running secure. My patches force it to run non-secure, so I can use the HYP mode. I need to change a couple of horrible things in u-boot so there can be a clear separation, but eventually, I'll move PSCI to this secure RAM.
<arokux>
hglm: if you want me to look at it. and please provide it in the form of an e-mail to ML
<hglm>
OK, I will try the other kernel Allwinner USB OTG driver also, I will report my progress
ganbold has quit [Remote host closed the connection]
<oliv3r>
maz: i think secure SRAM is unused and can be freely written to 'as is' by the user
<maz>
oliv3r: unused, yes. but *if* AW has wired things correctly, only a secure mode access can access secure RAM. otherwise, trustzone cannot be really trusted at all ;-)
<maz>
oliv3r: now, if they've screwed that up, it is even easier.
<tomee^>
arokux: Anyway, what I wanted to say is that only recent wpa_supplicant support wifi direct/airplay/p2p
<maz>
torbenh3: once you have it, it works for Linux and Xen.
<arokux>
tomee^: and?
<tomee^>
arokux: And I am quite sure the cards operation modes are exclusive, either apsta or p2p.
<tomee^>
arokux: And this may be the reason for you not being able to associate.
<arokux>
tomee^: sorry, this is chinese to me
<arokux>
tomee^: not sure, the correct fex should be the solution
<arokux>
tomee^: I'm using the most recent wpa_sup...
<tomee^>
arokux: Built with proper flags?
<arokux>
tomee^: take a look at PKGBUILD for Arch :p
<tomee^>
CONFIG_DRIVER_NL80211=y
<tomee^>
CONFIG_CTRL_IFACE=y
<tomee^>
CONFIG_P2P=y
<tomee^>
CONFIG_AP=y
<tomee^>
CONFIG_WPS=y
<arokux>
tomee^: ?
* rz2k
thought about placing public A20 box with ssh access and freeshells for everyone, running the Xen or, now, KVM.
<arokux>
tomee^: anyway, it works for them with kernel and fex, so it should work for me too.
<tomee^>
arokux: OK.
<tomee^>
arokux: That would mean that I wasn't dreaming that it worked ;)
<maz>
rz2k: why not... my goal here is more to eat my own dog-food by finally running KVM on my home server.
<tomee^>
but I still don't remember whether I specified the firmware file by hand.
shineworld has left #linux-sunxi ["Leaving"]
<tomee^>
arokux: Notice that there are 3 firmware files: fw_bcm40181a2.bin, fw_bcm40181a2_p2p.bin and fw_bcm40181a2_apsta.bin
<torbenh3>
maz: ok.
<tomee^>
arokux: While fw_bcm40181a2.bin and fw_bcm40181a2_p2p.bin are essentially copies (they are the same)
<arokux>
tomee^: I've noticed that
<tomee^>
arokux: So when a module looks for a firmware file, it probably will find the fw_bcm40181a2.bin
<arokux>
tomee^: you could try and test it yourself without waiting to get free as in beer from the others.
<tomee^>
arokux: Which is a p2p version
<tomee^>
arokux: Yup.
<tomee^>
arokux: And I will.
<torbenh3>
maz: so your patches currently make u-boot create some .bin file, that has to be copied somewhere. do you plan, that u-boot does that without user intervention ?
<tomee^>
arokux: as soon as I get home and find some time.
<arokux>
tomee^: cool, please document the outcome.
<tomee^>
meanwhile, I'm off
<tomee^>
o/
tomee^ has quit [Quit: I Quit.]
<arokux>
tomee^: bye
<torbenh3>
iE build that into the normal image and hook a copy() call in cmd_bootm() and friends ?
<maz>
torbenh3: yes. eventually, I'd like u-boot to be able to partially relocate itself into (possibly secure) SRAM, and do its stuff without being seen.
<torbenh3>
mmm... relocate ?
<maz>
torbenh3: I'm not too fond of the "copy" method, which is why I use a script so far. I'd really like the u-boot binary to contain a section dealing with secure mode that is linked at some SRAM address, relocated there at boot time, and directly run from there.
<torbenh3>
maz: when calling it from the kernel, isnt it mapped somewhere else ?
<torbenh3>
maz: is that code PIC right now ?
<maz>
torbenh3: the code is not PIC, as you need to have a number of branch tables for the PSCI vectors. as for the call from the kernel, you just end-up trapping into secure mode, and as long as the memory hasn't been touched from non-secure, you're pretty safe.
<torbenh3>
maz: hmm... relocating it to SRAM requires some dancing around when u-boot is loaded from an spl which sits in sram.
<torbenh3>
although i dont remember, whether u-boot relocates itself, or the spl does that.
<maz>
torbenh3: indeed. but once u-boot is loaded, the spl is not used anymore, and can be safely wiped. Also, u-boot would relocated that secure portion itself, without any help from spl.
wingrime has joined #linux-sunxi
<torbenh3>
maz: yup. thanks for the insights. i will sleep over this, and i guess tomorrow i will like psci :)
<maz>
torbenh3: not sure about that (I first hated it...), but the perspective of preventing a lot of ugly SMP code to make it into the kernel tree is quite appealing to me... ;-)
<binaryferret>
When grabbing script.bin from an A13 tablet, once I convert it to a fex file, are there any properties that I should think about changing if I wish to boot it up into linux rather than android (which it was running when I grabbed the script.bin)
jaqmg has quit [Remote host closed the connection]
<binaryferret>
I have one tablet that I just grabbed the script.bin, sorted out an sdcard with that script.bin and it all worked. Another tablet, slightly different script.bin, same procedure of building kernel etc but it just throws a wobbler when booting up.
rwmjones is now known as rwmjones_afk
<binaryferret>
I'm going to explore the issue more and actually grab some details from the trace it throws, but I'm just wondering before I start down that path.
<tomee^>
arokux2: so I got the wifi working. when I recompile wpa_supplicant I will probably be able to use wifi direct as well. on the 3.4.61+ cubietech kernel... now to port that to linux-sunxi upstream somehow...
<tomee^>
pfdm: I don't have a cb2 so I can't tell. but I have tried 2 images made for a20 and the only major difference is amount of RAM.
<tomee^>
arokux2: spare display? uhm, but X11 works on the same wires that framebuffer does. so I suppose you're running ct headless?
<arokux2>
tomee^: yes, and have a shell on UART
<tomee^>
arokux2: ok, I see. where do I send a 19" DVI-D lcd?
<tomee^>
arokux2: I have about a dozen of those around ;)
<kriegerod>
i have stage sunxi kernel running and x11 with fbturbo, but didn't try to open any windows. will be able to test tomorrow.
<tomee^>
meanwhile, I'm off to watch some stuff on my impaired media center
<tomee^>
will check on the channel later
<arokux2>
tomee^: cu
<tomee^>
kriegerod: on ct? wow. it would be great if you could test sunxi-mali/test/test and glmark2-es2 and post a comment to the bug report
<tomee^>
cu guys
<tomee^>
o/
<tomee^>
[d]
<kriegerod>
ok
<arokux2>
mnemoc: you've got PM!
naobsd has joined #linux-sunxi
<pfdm>
tomee : what about the X log where it ask for more memory ?
<wezza>
Hi guys :).. I recompiled sunxi 3.4.67 for a10 board and i discovered that USB devices are not powered; reading issues #158 i understood that i have to enable "CONFIG_USB_PORT_POWER_MANAGEMENT" in .config. But "greping" it in kernel source returns no result. is that right?
<pfdm>
tomee^ : "FBTURBO(0): and sunxi_fb_mem_reserve >= 11 in the kernel cmdline "
<wezza>
ok :] let me try to update kernel source version :)
<wezza>
mine: sunxi-v3.4.67-r0
<arokux2>
wezza: you are probably not using stage/sunxi-3.4
<wezza>
arokux2 thank you
<hglm>
wezza: Using regular branch sunxi-3.4 I could restore USB power by enabling the "Inventra Highspeed Dual Role USB controller" with the Allwinner option.
<hglm>
This did not work with stage/sunxi-3.4
<wezza>
oh nice.. than i'll try that option
<wezza>
thank you both :)
<hglm>
arokux2:
<hglm>
I got wifi running but it was a bit messy :)
<arokux2>
hglm: oh! so tell the world what you did!
<hglm>
OK as I said I am running sunxi-3.4 with the Inventra USB driver enabled (Allwinner glue layer)
<hglm>
My fex file had the WLAN USB disabled on boot, I had to change the host_init value for usbc2 to 1 (it was 0). Then the device showed up on lsusb.
<hglm>
(usb_host_init_state in the usbc2 section of the fex file)
<arokux2>
hglm: hm.. ok
<hglm>
Second problem was that the RTL8188EU in my device has a newer USB device ID that the 8188eu driver doesn´t recognize, I found a kernel patch on the net but I think you can also update it with the sys file system.
<hglm>
I also disabled USB suspend in the driver with a module load option, not sure it´s necessary.
<arokux2>
hglm: there is info about 8188eu at that page
dack has quit [Read error: Connection reset by peer]
<hglm>
Yeah that info helped. Finally I had to fight a little with udev to get it recognized, /dev/wlan0 or wlan1 still doesn´t show up but I can run wpa_supplicant which recognizes it.
dack has joined #linux-sunxi
<arokux2>
hglm: i think it is enough to see it in ip a s
<kriegerod>
/dev/wlan0?
<kriegerod>
never heard of exposing net devices as dev files
<hglm>
OK I am a little rusty :)
Black_Horseman has joined #linux-sunxi
<tomee^>
pfdm: I tried with mem_reserve=16 and 32 and fb0_num=3. no change.
<hglm>
fb_mem_reserve?
Seppoz has joined #linux-sunxi
techn__ has joined #linux-sunxi
techn_ has quit [Ping timeout: 241 seconds]
<hglm>
Disabling power saving on my rtl8188 chip doesn´t seem to be necessary.
maz_ has joined #linux-sunxi
<wezza>
arokux: :) it works.. my usb drive is powered now.. However i don't know if it's normal but seems very slow to be mounted
<wezza>
do you think that it could be related to the module used to turn usb on
<arokux2>
wezza: no idea.
<wezza>
ok ;) ilì'll try to compare mount time with stage/sunxi3.4 with "CONFIG_USB_PORT_POWER_MANAGEMENT" patch and i'll let you know
<hglm>
You mean file access is slow? I did notice a programmed I/O vs. DMA option in the Inventra (MUSB) driver -- the default is PIO which is likely to be slow but I don´t whether DMA can work (not tested it).
<wezza>
well let me check :)
tzafrir has joined #linux-sunxi
naobsd has quit [Quit: Page closed]
notmart has quit [Quit: notmart terminated!]
AreaScout has quit []
adb_ has quit [Ping timeout: 252 seconds]
dack has quit [Remote host closed the connection]
<kriegerod>
is there an easy way to build glmark2 with gles without manually hacking headers to fix typedef errors?
wingrime has quit [Ping timeout: 245 seconds]
deasy has joined #linux-sunxi
maz_ has quit [Ping timeout: 272 seconds]
<kriegerod>
solved by removing GLchar usage from its code with sed
heffer has quit [Ping timeout: 252 seconds]
<kriegerod>
what sunxi-mali version fits stage/sunxi-3.4? r3p0?
<tomee^>
arokux2: cubie/sunxi-3.4? no. linux-sunxi -b stage/sunxi-3.4 yes. and the precompiled kernel from cubietech that came with "lubuntu" (3.4.61+). and the precompiled kernel from eoma (3.4.61+ as well).
<tomee^>
kriegerod: and about glmark/gles, do you mean glx/egl clashes?
<hglm>
I must say my A20 has been very unstable (CPU-related) when doing intensive tasks -- however I have found cpufreq setting that seems to be relatively stable (underclocking severely but L2 cache and memory speed seem to be preserved).
techn_ has joined #linux-sunxi
<arokux2>
heh, I've actually already used their script.bin, just didn't realize it
<hglm>
tomee: glesmark is GLES but isn´t 100% compatible with sunxi´s Mali setup out of the box and has an awkard build system
<tomee^>
kriegerod: If you're getting GLX/EGL clashes, this is how I hacked glext.h files:
<tomee^>
kriegerod: #ifndef GL_VERSION_1_5
<tomee^>
/* GL types for handling large vertex buffer objects */
<tomee^>
// #ifndef GLintptr_defined
<tomee^>
#if !defined(GLintptr_defined)
<tomee^>
#define GLintptr_defined
<tomee^>
typedef ptrdiff_t GLintptr;
<tomee^>
#endif
<tomee^>
// #ifndef GLsizeiptr_defined
<tomee^>
#if !defined(GLsizeiptr_defined)
<tomee^>
#define GLsizeiptr_defined
<tomee^>
typedef ptrdiff_t GLsizeiptr;
<tomee^>
#endif
<tomee^>
#endi
<arokux2>
tomee^: use pastebin services
<tomee^>
no linker errors, no runtime errors, but can't verify if it's correct hence the EGL bug.
<tomee^>
hglm: point taken. I've tinkered around Mesa, OpenGL (when it was SGI-proprietary), x86 and AVR assembly, but I can't possibly comprehend all of those nuances of Axx SoCs in a week...