<wens>
if anyone wants to help me test/debug PSCI on a31, that would be nice as well
Black_Horseman has quit [Remote host closed the connection]
tomcheng76 has quit [Quit: leaving]
tomcheng76 has joined #linux-sunxi
<scream_>
i have a problem a nand with quitte u-boot branch. linux can read and write the nand, but u-boot reads ff's properly bat can't read back what it writes there itself
<scream_>
running on A20-olixuino-lime
leviathanch2 has joined #linux-sunxi
sehraf has joined #linux-sunxi
<hno>
wens, I have no A31 board.
<hno>
scream_, which u-boot & linux versions?
<scream_>
u-boot quitte branch. it has yuq nand patches applied. linux is mainline patched witch pre-v6-nand
<scream_>
i can save env in u-boot and on reboot it reads it again! :)
<scream_>
so something is working
<scream_>
whatever i write to nand form linux using nandwrite, u-boot reads with ecc errors
<scream_>
but i can read what u-boot wrote using nanddump
<scream_>
it comes out as valid env text
<mripard>
wens: have you asked maz ?
<wens>
maz?
<mripard>
about PSCI
<mripard>
since he's the one who wrote it for the A20, I guess he might have some ideas :)
<wens>
maz... you mean Marc Zyngier?
<mripard>
yeah
<mripard>
maz, on IRC
<wens>
i'm going to take another look at my code tonight
<wens>
match up registers and stuff
<hno>
scream_, I am not sure the two nand drivers are entirely compatible. bbrezillon may be able to help.
Svetlana has quit [Ping timeout: 272 seconds]
Svetlana has joined #linux-sunxi
leviathanch2 has quit [Ping timeout: 245 seconds]
<scream_>
hno, they seem to use the same hw. i feel like nand boot is very close :D
<hno>
scream_, ofcourse they use the same hw. There is only one nand controller and only one nand chip.. but how they manage ecc differs a bit.
<scream_>
i could set them to be proper in dt file
<scream_>
i just don't know what to set
<scream_>
trying to understand it from source code
<scream_>
i'm thinking maybe it misdetects my flash chip
ysculo has quit [Ping timeout: 272 seconds]
Andy-D has joined #linux-sunxi
tgaz has quit [Ping timeout: 272 seconds]
tgaz has joined #linux-sunxi
ysculo has joined #linux-sunxi
maksimlin has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140924083655]]
naobsd has quit [Quit: Page closed]
<maz>
mripard: wens: happy to help. don't have a A31 board yet though.
megal0maniac is now known as Guest37204
Guest37204 has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
megal0maniac has joined #linux-sunxi
megal0maniac has quit [Killed (kornbluth.freenode.net (Nickname regained by services))]
megal0maniac has joined #linux-sunxi
FreezingCold has joined #linux-sunxi
megal0maniac has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
megal0maniac has joined #linux-sunxi
fredy has quit [Ping timeout: 467 seconds]
petr has quit [Remote host closed the connection]
fredy_ has joined #linux-sunxi
amitk_ has joined #linux-sunxi
amitk has quit [Ping timeout: 260 seconds]
petr has joined #linux-sunxi
fredy_ is now known as fredy
fredy is now known as Guest13178
petr has quit [Ping timeout: 260 seconds]
megal0maniac is now known as Guest2742
Guest2742 has quit [Killed (cameron.freenode.net (Nickname regained by services))]
megal0maniac has joined #linux-sunxi
petr has joined #linux-sunxi
nicksydney_ has joined #linux-sunxi
nicksydney has quit [Ping timeout: 244 seconds]
nicksydney has joined #linux-sunxi
nicksydney_ has quit [Ping timeout: 244 seconds]
sehraf has quit [Ping timeout: 246 seconds]
bengal has joined #linux-sunxi
Black_Horseman has joined #linux-sunxi
_massi has joined #linux-sunxi
petr_ has joined #linux-sunxi
FR^2 has joined #linux-sunxi
petr has quit [Quit: No Ping reply in 180 seconds.]
F1skr has joined #linux-sunxi
leviathanch2 has joined #linux-sunxi
deasy has joined #linux-sunxi
tgaz has quit [Ping timeout: 272 seconds]
FDCX has quit [*.net *.split]
focus has quit [*.net *.split]
sehraf has joined #linux-sunxi
traeak has joined #linux-sunxi
<afaerber>
wens, this is all I got that way:
<afaerber>
## Booting kernel from Legacy Image at 24000000 ...
<afaerber>
Image Name: Linux
<afaerber>
Image Type: ARM Linux Kernel Image (uncompressed)
<afaerber>
Load Address: 20000000
<afaerber>
Data Size: 3771377 Bytes = 3.6 MiB
<afaerber>
Entry Point: 20000000
<afaerber>
Verifying Checksum ... OK
<afaerber>
Loading Kernel Image ... OK
<afaerber>
OK
<afaerber>
[ 15.875][mmc]: MMC Device 2 not found
<afaerber>
[ 15.879][mmc]: mmc not find, so not exit
<afaerber>
[ 15.883]
<afaerber>
Starting kernel ...
Svetlana has quit [Read error: Connection reset by peer]
Svetlana has joined #linux-sunxi
jinzo has joined #linux-sunxi
<afaerber>
that's with your sun9i-basic-v2 branch rebased onto mripard's sunxi-next
<afaerber>
bbl
afaerber has quit [Quit: Verlassend]
FDCX has joined #linux-sunxi
focus has joined #linux-sunxi
bengal has quit [Quit: Leaving]
<scream_>
allright, i got nand booting mainline from nand
<scream_>
*u-boot booting mainline from nand
<scream_>
does anyone know how to properly put SPL on nand?
<scream_>
there are some nand write.1k commands to do this
afaerber has joined #linux-sunxi
ddc has joined #linux-sunxi
megal0maniac has quit [Killed (wolfe.freenode.net (Nickname regained by services))]
megal0maniac has joined #linux-sunxi
<ddc>
scream_:u can either write it from the rootfs or u-boot
<ddc>
Write to it mtd0 the same way u written u-boot to mtd1
philippe_fouquet has joined #linux-sunxi
<philippe_fouquet>
hi
ddc has quit [Remote host closed the connection]
<philippe_fouquet>
I search the pack tool for mac os x is it exist?
ddc has joined #linux-sunxi
<philippe_fouquet>
I see for linux and windows but not for mac os x
rmax has joined #linux-sunxi
* rmax
waves
<ddc>
nandwrite -p /dev/mtd0 sunxi-spl.bin
<ddc>
or load the spl file to memory then use the nand 1k command
<philippe_fouquet>
that is it on target
rafaelMOD has joined #linux-sunxi
<scream_>
ddc, hi! i haven't yet written u-boot to nand at all. it boot with an sd spl fro now
<scream_>
tried writing it from u-boot usin nand.write1k
<JohnDoe_71Rus>
scream_: you can write livesuit image, this write spl to nand. then modify nand
<scream_>
ext4load mmc 0 0x48000000 /root/sunxi-spl.bin and nand write.1k 0x48000000 spl 0x10000 give me OKs, but on read it gives ECC errors
<scream_>
JohnDoe_71Rus, good idea, but it seems i need a windoze pc for that
<scream_>
ddc, is the read/write size OK
<scream_>
?
<JohnDoe_71Rus>
scream_: livesuit for linux
<scream_>
JohnDoe_71Rus, i need to write u-boot spl. livesuite seems to write proprietary boot0
viccuad has joined #linux-sunxi
<scream_>
nand1k commands not working may also reveal ECC settung mismatch?
Black_Horseman has quit [Remote host closed the connection]
<ddc>
I do always write from linux never tried those command as long as u turned randomisation on and use hw syndrome for. ur spl partition u should be able to boot
tgaz has joined #linux-sunxi
<scream_>
k', will try it now
<ddc>
For ecc
<scream_>
yeah, i have syndrome + hardcoded scrambling code
<scream_>
those problems i had with normal nand not working was due to mismatch on ECC bit counts
<ddc>
Make sure u erase the partition
<scream_>
yep, did that. still did not boot
<wens>
afaerber: did you "setenv bootargs ....." ?
<scream_>
that SPL also did not boot from SD
<scream_>
with that magic line about nand commented off
popolon has joined #linux-sunxi
ddc has quit [Ping timeout: 246 seconds]
deasy has quit [Remote host closed the connection]
deasy has joined #linux-sunxi
<scream_>
and it reads the same spl data both from u-boot and kernel
<scream_>
which means that my self-compiled SPL is borked
JohnDoe_71Rus has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
naobsd has joined #linux-sunxi
Quarx has joined #linux-sunxi
ddc has joined #linux-sunxi
<ddc>
scream_: did copy the sunxi-spl from the spl folder?
<ddc>
Do hex dump for the partition and see if the eGON header is there
scream_ has quit [Remote host closed the connection]
Andy-D has quit [Ping timeout: 245 seconds]
<afaerber>
wens, yes, I copied from your user page, except that I don't use an initrd
paulk-collins has joined #linux-sunxi
Andy-D has joined #linux-sunxi
ddc has quit [Ping timeout: 246 seconds]
rafaelMOD has quit [Remote host closed the connection]
<wens>
afaerber: earlyprintk settings?
ddc has joined #linux-sunxi
<afaerber>
wens, sun9i uart selected and phys and virt fixed up to match your patch.
<wens>
load and entry addresses are wrong
npcomp has quit [Ping timeout: 245 seconds]
npcomp has joined #linux-sunxi
FDCX has quit [Ping timeout: 249 seconds]
FDCX_ has joined #linux-sunxi
npcomp has quit [Ping timeout: 258 seconds]
<afaerber>
wens, what should they be? I checked in the .dtsi that memory starts at 0x20000000 for the a80 but at 0x40000000 for the a20. entry was ...0000 when generated by Linux too - what should they be in your opinion?
npcomp has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
ddc has quit [Ping timeout: 246 seconds]
<wens>
0x20008000, 0x8000 after the start of memory
<afaerber>
had tried that, too
<afaerber>
I cat the zImage and the .dtb together, then mkimage a uImage file
enrico_ has joined #linux-sunxi
traeak has left #linux-sunxi [#linux-sunxi]
orly_owl has quit [Ping timeout: 250 seconds]
deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
orly_owl has joined #linux-sunxi
dack has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
<dack>
Anyone try fiddling with a car head computer with an Allwinner chip?
rafaelMOD has joined #linux-sunxi
Skaag has joined #linux-sunxi
xavia has quit [Remote host closed the connection]
Gerwin_J has joined #linux-sunxi
Skaag has quit [Quit: Leaving.]
Wizzup__ has quit [Quit: leaving]
Andy-D has quit [Ping timeout: 244 seconds]
Wizzup has joined #linux-sunxi
Wizzup is now known as Guest50095
Guest50095 is now known as Wizzup_
philippe_fouquet has quit [Remote host closed the connection]
konradoo87 has joined #linux-sunxi
bengal has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 245 seconds]
leviathanch2 has quit [Ping timeout: 272 seconds]
Skaag has joined #linux-sunxi
amitk_ has quit [Quit: leaving]
viccuad has quit [Read error: Connection reset by peer]
Skaag has quit [Client Quit]
xavia has joined #linux-sunxi
megal0maniac is now known as Guest3116
Guest3116 has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
megal0maniac has joined #linux-sunxi
bonbons has joined #linux-sunxi
Zboonet has quit [Ping timeout: 272 seconds]
netlynx has joined #linux-sunxi
bertrik has joined #linux-sunxi
steev has quit [Remote host closed the connection]
ojn has quit [Remote host closed the connection]
Skaag has joined #linux-sunxi
pwhalen has quit [Remote host closed the connection]
steev has joined #linux-sunxi
Zboonet has joined #linux-sunxi
ojn has joined #linux-sunxi
pwhalen has joined #linux-sunxi
konradoo87 has quit [Ping timeout: 245 seconds]
esperegu has quit [Read error: Connection reset by peer]
<ssvb>
paulk-collins: btw, thanks for mentioning Replicant the other day, I have found the f-droid repository and it has some games :)
megal0maniac has joined #linux-sunxi
afaerber has quit [Quit: Verlassend]
FreezingCold has quit [Quit: Out]
FreezingCold has joined #linux-sunxi
deasy has joined #linux-sunxi
<paulk-collins>
ssvb, yep, it's pretty nice :)
<paulk-collins>
mhh I'd like to get that LVDS clock going
<paulk-collins>
anyone has a clue?
afaerber has joined #linux-sunxi
syeekick has quit [Ping timeout: 246 seconds]
<paulk-collins>
huh
<paulk-collins>
it really was just a clock to add
paulk-collins has quit [Quit: Ex-Chat]
paulk-collins has joined #linux-sunxi
FDCX_ has quit [Ping timeout: 260 seconds]
deasy has quit [Quit: Nom d'un quark, c'est Edmonton !]
rZr is now known as RzR
konradoo77 has quit [Ping timeout: 250 seconds]
konradoo77 has joined #linux-sunxi
syeekick has joined #linux-sunxi
FDCX has joined #linux-sunxi
FDCX_ has joined #linux-sunxi
<paulk-collins>
mhh, g_ether doesn't load on A20 and I have no working wi-fi (not to mention no physical ethernet connector)
<paulk-collins>
what are my option to link this thing to the internet?
<ssvb>
paulk-collins: actually, I kind of solved the g_ether problem a few days ago (because it is needed for network connectivity on my newly bought tablet)
esperegu has quit [Read error: Connection reset by peer]
<paulk-collins>
oh nice!
<paulk-collins>
does it mean other gadget drivers could work too (e.g. Android's ADB)?
<ssvb>
paulk-collins: I'm using not g_ether, but g_cdc because I also want serial console on /dev/ttyACM0
<paulk-collins>
CONFIG_USB_MUSB_SUNXI=y
<paulk-collins>
really, can it be that easy? :p
<paulk-collins>
thanks a lot ssvb
<ssvb>
paulk-collins: well, there are two drivers for the USB OTG
<paulk-collins>
ah ok
<ssvb>
paulk-collins: one is from CONFIG_USB_SW_SUNXI_USB from Allwinner, and it does not seem to work (have not been merged correctly into the sunxi-3.4 kernel?)
<ssvb>
paulk-collins: and another one is a glue layer for MUSB, developed by Jussi Kivilinna and submitted to the linux-sunxi mailing list a year ago
<paulk-collins>
okay I see…
<paulk-collins>
maybe I'll take a look at this mess one day…
<ssvb>
well, I'm kind of looking at all this mess at the moment and deciding what to do with it
syeekick has quit [Read error: Connection reset by peer]
paulk-collins has quit [Quit: Ex-Chat]
xeros has joined #linux-sunxi
FDCX_ has quit [Quit: Leaving]
<hramrach_>
I Use otg on a13
<hramrach_>
had to revert a patch that 'fixes' otg for android
<hramrach_>
otherwise you have to unplug and replug cable to get g_ether to connect
<hramrach_>
but it does not seem to work on a10s
<hramrach_>
and did not test a10/a20 for ages
<ssvb>
hramrach_: do you have your changes/config documented somewhere?
<hramrach_>
I posted patch on ML and it was rejected since that patch was 'required for android'
<ssvb>
ok
<hramrach_>
otherwise I use some pretty random config
<ssvb>
this stuff seems to be pretty messy
<hramrach_>
kind of keep that kitchensink config that was also rejected because there wans never any agreement as to what should be in defconfig and what is superfluous
<hramrach_>
and the defcaonfig is so limited that I cannot just apply defconfig, build and run
<hramrach_>
could use re-testing if that thin is still needed but I have it in the patches I push on top of sunxi-3.4
<hramrach_>
hmm, there is a patch that allows zero size blits on g2d and a patch that enables key repeat on tablet keys
jinzo has quit [Quit: Leaving]
petr has joined #linux-sunxi
pietrushnic has joined #linux-sunxi
bertrik has quit [Remote host closed the connection]
maksimlin has joined #linux-sunxi
rafaelMOD has quit [Quit: Saindo]
Svetlana has joined #linux-sunxi
<hramrach_>
hmm, seems on CT the detection of host/device does not work and OTG is hardcoded to device on my CT
<hramrach_>
on the sun5i tablet I tried the OTG port works flawlessly
<hramrach_>
ok, if you are looking in USB it's maybe worth debugging the driver so it works without isses on more than 1 device
Black_Horseman has joined #linux-sunxi
Black_Horseman has joined #linux-sunxi
<ssvb>
hramrach_: I'm not doing any 3.4 work anymore, unless it is strictly necessary to fix something
specing has quit [Ping timeout: 245 seconds]
<ssvb>
hramrach_: this otg stuff is an unexpected hurdle
t3st3r has joined #linux-sunxi
<ssvb>
hramrach_: I would prefer to hack the mainline usb otg code, especially considering that I have an a31s tablet
specing has joined #linux-sunxi
rafaelMOD has joined #linux-sunxi
WarheadsSE has quit [Quit: WeeChat 1.0]
specing has quit [Excess Flood]
WarheadsSE has joined #linux-sunxi
FR^3 has quit [Quit: Leaving]
specing has joined #linux-sunxi
Skaag has quit [Quit: Leaving.]
sehraf has quit [Read error: Connection reset by peer]
akaizen_ has quit [Remote host closed the connection]
xavia has quit [Remote host closed the connection]
<hramrach_>
well, if the musb works on 3.4 also there is no point keeping the AW garbage
F1skr has quit [Quit: WeeChat 1.0.1]
<ssvb>
hramrach_: it is not problem free either
<ssvb>
was anyone able to do fel boot and then use usb otg?
Andy-D has quit [Ping timeout: 250 seconds]
ricardocrudo has quit [Ping timeout: 244 seconds]
<t3st3r>
I wonder how safe is to run something like 3.17 mainline on A10/A20? Are these okay? What I would miss? Does AXP209 works here, etc in terms of correctly changing voltages to match freq, etc?
<ssvb>
t3st3r: why not?
<ssvb>
AXP209 is configured by u-boot, and the CPU clock frequency too
<t3st3r>
CPU frequency usually dynamically controlled by Linux.
<t3st3r>
This basically supposes voltage should scale same way, etc.