Turl changed the topic of #linux-sunxi to: All systems go! // 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
popolon has quit [Quit: WeeChat 1.1.1]
ricardocrudo has joined #linux-sunxi
viccuad has quit [Quit: WeeChat 1.0.1]
Renard has quit [Quit: Renard]
konradoo77 has quit [Ping timeout: 246 seconds]
gianMOD has joined #linux-sunxi
gianMOD has quit [Ping timeout: 246 seconds]
uniqdom has quit [Quit: Ex-Chat]
mrnuke has quit [Read error: Connection reset by peer]
mrnuke has joined #linux-sunxi
<a1d3s> T0mW, i use mainline kernel ;) on banana there are ready to use fex/bin for 3.4 kernel
ricardocrudo has quit [Ping timeout: 246 seconds]
ikeeki has joined #linux-sunxi
<ikeeki> Good morning/whatever
<ikeeki> Ive been trying to follow these instructions: https://github.com/libretro/RetroArch/blob/master/README-mali_fbdev_r4p0.md and the linked site in order to install r4p0 in danand's 3.4.106 kernel (X11) with no results
<ikeeki> I wonder if anybody has been able to install r4p0 in a >105 kernel (X11) and be able to launch es2gears
<ikeeki> device: cubietruck
<ikeeki> Any help will be highly appreciated. Bye.
ikeeki has quit [Quit: Saliendo]
gianMOD has joined #linux-sunxi
gianMOD has quit [Read error: Connection reset by peer]
gianMOD has joined #linux-sunxi
a1d3s is now known as a1d3s|away
gianMOD has quit [Remote host closed the connection]
gianMOD_ has joined #linux-sunxi
gianMOD_ has quit [Ping timeout: 264 seconds]
<el3> Hi I finally managed to build an image with yocto. In meta-sunxi I can not choose pcduino, so I made a cubieboard2 image. Is it possible to make it run on pcDuino3?
jinzo has quit [Ping timeout: 250 seconds]
egbert has quit [Disconnected by services]
egbert has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
ktemkin has joined #linux-sunxi
gianMOD has joined #linux-sunxi
gianMOD has quit [Ping timeout: 264 seconds]
eagles0513875_ has quit [Ping timeout: 245 seconds]
HeavyMetal has quit [Ping timeout: 245 seconds]
<ktemkin> ssvb: I just saw that we were editing the Primo 73 wiki page at the same time, and thought I'd say hello. (Just a short while ago, I added board pictures and instructions for adding a UART that doesn't take up the microSD slot.)
HeavyMetal has joined #linux-sunxi
<ssvb> ktemkin: hi, thanks a lot
<ktemkin> No problem-- I need some excuse to play with cool lab equipment. ;)
<ssvb> was it one of that dirt cheap tablets from newegg?
<ktemkin> Yeah, I grabbed it once the price came down to ~$50.
<ssvb> pink color is a bit unusual choice, unless this was a bargain :)
<ktemkin> I haven't seen any non-pink ones left-- and the color doesn't matter as much as the stuff inside.
<ktemkin> I needed to test out a series of tablets with easily replaceable bootloaders, so I could ensure that I could remain in non-secure hypervisor mode after I left the bootloader.
eagles0513875_ has joined #linux-sunxi
faisal has joined #linux-sunxi
akaizen_ has quit [Remote host closed the connection]
akaizen has joined #linux-sunxi
akaizen has quit [Ping timeout: 250 seconds]
gianMOD has joined #linux-sunxi
gianMOD has quit [Ping timeout: 246 seconds]
p1u3sch1 has joined #linux-sunxi
Andy-D has joined #linux-sunxi
p1u3sch1_ has quit [Ping timeout: 255 seconds]
marcin has quit [Ping timeout: 264 seconds]
HeavyMetal has quit [Ping timeout: 245 seconds]
xenoxaos has quit [Ping timeout: 245 seconds]
<el3> I am about to compile kernel http://linux-sunxi.org/Mainline_Kernel_Howto. But the compiling stops saying -> #error Your compiler is too buggy; it is known to miscompile kernels
HeavyMetal has joined #linux-sunxi
<el3> How do I install another. I installed this one apt-get install gcc-arm-linux-gnueabihf
<el3> ?
<ktemkin> el3: Is your (cross)-gcc version between 4.8.0 and 4.8.2?
<el3> ktemkin: yes
<ktemkin> You'll need to go older or newer-- I'm assuming you're on Ubuntu, and not using a "platform" like Yocto/Angstrom/OE/etc?
<el3> ktemkin: I am on Ubuntu. I am following this guide http://linux-sunxi.org/Mainline_Kernel_Howto
xenoxaos has joined #linux-sunxi
marcin has joined #linux-sunxi
<el3> ktemkin: when I try to follow the guide here http://linux-sunxi.org/Toolchain to get another toolchain, it says there should be a bin folder. But I cannot see a bin folder
<ktemkin> You grabbed one of the gcc-linaro tarballs and extracted it?
<el3> ktemkin: yes
<el3> ktemkin: tried 4.7 and 4.9
<el3> no bin folders
<ktemkin> Let me grab one of the tarballs listed and take a look. (Those look like they may be toolchain source tarballs, and not the binary ones you're looking for).
<el3> ktemkin: thank you.
arossdotme has quit [Remote host closed the connection]
<ktemkin> Looks like there are working binary tarballs on the main linaro page-- there's a 4.9 on the frontpage (http://releases.linaro.org/14.09/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz), let's see if we can find a 4.7.
<el3> ktemkin: will 4.9 work?
<el3> downloaded it
TheSeven has quit [Ping timeout: 250 seconds]
<ktemkin> I've been using gcc 4.9.1 without issue-- but YMMV.
TheSeven has joined #linux-sunxi
<el3> ktemkin: I will try. Have been struggliong with this forever now :D
<ktemkin> A little bit of struggle is good for you: that's how you learn things. ;)
<el3> ktemkin: yea lets hope so. Now I moved the bin directory to my build enviroment. And then I shall run this ARCH=arm CROSS_COMPILE=<toolchain-prefix> LOADADDR=0x40008000 make uImage dtbs . Do you know what should I put in <toolchain-prefix>
<el3> ?
marcin has quit [Remote host closed the connection]
<ktemkin> In that bin directory, you should see a file that looks like arm-linux-gnueabihf-gcc. It'll be whatever the name is before gcc, including the final "-"
<el3> ok
<ktemkin> so, for "arm-linux-gnueabihf-gcc", you'd set CROSS_COMPILE=arm-linux-gnueabihf-
marcin has joined #linux-sunxi
<el3> ktemkin: next error :D arm-linux-gnueabihf-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
rah has quit [Ping timeout: 245 seconds]
rah has joined #linux-sunxi
jero has quit [Ping timeout: 245 seconds]
<ktemkin> I don't recall if there's a Ubuntu package that provides that-- try sudo apt-get install libstdc++6 ?
jero has joined #linux-sunxi
<el3> ktemkin: I allready got the newest it says
<el3> ktemkin: I Might have done something wrong on this step. export PATH="$PATH":/home/user/folder/gcc-linaro-arm-linux-gnueabihf-*_linux/bin/
<ktemkin> Doesn't seem likely. More likely those binaries are 32-bit and you have a 64-bit libstdc++6.
<el3> ktemkin: I will try the original bin. Not the one I copied to the enviroment
<ktemkin> Can you run "file $(which arm-linux-gnueabihf-gcc)" , and report the output?
<el3> 2sec
marcin has quit [Read error: Connection reset by peer]
<el3> ktemkin: /home/el3/linuxSunxi/linux/bin//arm-linux-gnueabihf-gcc: symbolic link to `arm-linux-gnueabihf-gcc-4.9.2'
<ktemkin> Then "file $(which arm-linux-gnueabihf-gcc-4.9.2)", since that was a symlink.
<el3> /home/el3/linuxSunxi/linux/bin//arm-linux-gnueabihf-gcc-4.9.2: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
<el3> ktemkin: I see 2 // between bin//arm is that normal?
gianMOD has joined #linux-sunxi
arossdotme has joined #linux-sunxi
gianMOD has quit [Ping timeout: 255 seconds]
<el3> ktemkin: Finally its compiling. Had to use the full path like ->ARCH=arm CROSS_COMPILE=/home/el3/Downloads/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux LOADADDR=0x40008000 make uImage dtbs
<el3> */bin/gcc-lina...gcc
marcin has joined #linux-sunxi
<ktemkin> Ah, yeah-- you were appending it to your path, but there was another result first.
<ktemkin> It uses the first matching result on your path-- so you can fix that by running this line instead:
<el3> Oh yes it looks very messy when I do echo $PATH
<el3> How can I clean the $PATH
<ktemkin> close and re-open your terminal; your exported modifications only last for that shell session
<ktemkin> For now, you can stick the correct path at the front of your PATH:
<el3> Ah nice thank you
<ktemkin> export PATH=home/el3/Downloads/gcc-linaro-arm-linux-gnueabihf-*_linux/bin:$PATH
<el3> nice trick
<ktemkin> (To answer your earlier question: the // wasn't hurting anything-- it was there because there aren't really supposed to be /'s at the end of the entries in PATH. Fortunately, they don't do anything. / winds up the same as /.)
<el3> ktemkin: Okey thank you
<ktemkin> No problem.
<el3> I did build a debian image before. Not the mainline. It was very buggy, crashed all the time. So I was adviced to try yocto. Made an image for cubieboard2, but pcduino3 would not boot on that.
<el3> Then I went back to try the mainline. Failed last time. The problem we fixed right now. :)
<ktemkin> There's no Yocto BSP for the pcduino3, eh?
<el3> So I hope this runs more smoothly. I only need a headless system with g_mass_storage. And gpio
<el3> No there is not
<el3> But someone adviced me to look into that
<ktemkin> That could have worked, but you would have had to tweak the configuration-- provided your own kernel (and possibly u-boot) defconfig and overridden the configuration variables in the BSP section of meta-sunxi.
<el3> Yea that seems a bit difficoult. I need to know this stuff better
marcin has quit [Read error: Connection reset by peer]
xenoxaos has quit [Ping timeout: 245 seconds]
xenoxaos has joined #linux-sunxi
<el3> ktemkin: http://linux-sunxi.org/Mainline_Kernel_Howto#Boot Do you know if I should replace <earlyprintk> and <initramfs-address> with something?
marcin has joined #linux-sunxi
<ktemkin> If you're using an initramfs, then you'll have to enter the address you loaded it to in memory there; otherwise (IIRC) a dash.
<el3> Okey, before compiling the kernel, I saw initramfs enabled. But I have no Idea what the address is
<ktemkin> If you are, you should have an option that loads the initramfs into memory-- like the "fatload" lines you have. The address to which that is loaded is the same address you want to pass to bootm.
marcin has quit [Ping timeout: 264 seconds]
<el3> ktemkin: Can I choose something there like initrd=0x47000000
<el3> ktemkin: sry just found something. I have to make a ramdisk http://linux-sunxi.org/Initial_Ramdisk
<ktemkin> If you want to use one, yes. The initramfs isn't necessary in many cases-- unless, for example, you have a module you need to load in order to attach the main disk (or you want the recovery busybox it provides).
<el3> ktemkin: Okey so the image will work if I omit it, even if in the kernel config I enabled it?
nicksydney has quit [Ping timeout: 244 seconds]
<ktemkin> Enabling initrd support doesn't imply that you'll need to generate one-- that just means the kernel has support for using them.
<ktemkin> [There's a second option that will allow you to build an initramfs directly into the kernel, but since you haven't generated one of those yet, I doubt you've set it. ;)]
<el3> ok
<ktemkin> If it makes you feel better, there's a kernel command line argument you can pass that will explicitly tell the kernel to ignore any initrd/initramfs provided. (IIRC, it's noinitrd).
<el3> I will just try. I suppose I can easily change the boot partition if it does not work
<ktemkin> That's assuming you're not trying to do anything fancy like boot off SATA while SATA support was configured as a loadable module rather than built in to your kernel.
<el3> no SATA involved
<el3> setenv bootargs console=ttyS0,115200 <earlyprintk> root=/dev/mmcblk0p<partition> rootwait panic=10 ${extra}
gianMOD has joined #linux-sunxi
<ktemkin> you'll need to set <partition>; <earlyprintk> you'll likely want to set to match your console setting
<ktemkin> <partition> is going to be the number where you copied your rootfs
<ktemkin> the earlyprintk you might try as: earlyprintk=serial,ttyS0,115200
<el3> so -> setenv bootargs console=ttyS0,115200 earlyprintk=serial,ttyS0,115200 root=/dev/mmcblk0p1 rootwait panic=10 ${extra}
<ktemkin> It's unusual for the first partition to be your rootfs and not your boot partition, but other than that that looks okay.
<el3> so -> setenv bootargs console=ttyS0,115200 earlyprintk=serial,ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 ${extra}
<el3> ofc
<el3> thank you
p1u3sch1 has quit [Ping timeout: 240 seconds]
gianMOD has quit [Ping timeout: 245 seconds]
p1u3sch1 has joined #linux-sunxi
<ktemkin> no problem-- good luck!
marcin has joined #linux-sunxi
Andy-D has quit [Ping timeout: 264 seconds]
marcin has quit [Remote host closed the connection]
a1d3s|away is now known as a1d3s
ninolein has quit [Ping timeout: 264 seconds]
ninolein has joined #linux-sunxi
gianMOD has joined #linux-sunxi
FDCX has quit [Ping timeout: 252 seconds]
Froolap has quit [Ping timeout: 264 seconds]
gianMOD has quit [Ping timeout: 246 seconds]
FDCX has joined #linux-sunxi
marcin has joined #linux-sunxi
marcin has quit [Read error: Connection reset by peer]
marcin has joined #linux-sunxi
marcin has quit [Remote host closed the connection]
gianMOD has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
marcin has joined #linux-sunxi
iamfrankenstein has joined #linux-sunxi
a1d3s is now known as a1d3s|away
gianMOD has joined #linux-sunxi
marcin has quit [Remote host closed the connection]
kevin125 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 255 seconds]
gianMOD has quit [Remote host closed the connection]
gianMOD has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
gianMOD has joined #linux-sunxi
gianMOD has quit [Ping timeout: 252 seconds]
<topi`> anyone here with an Orange Pi?
diego71 has quit [Ping timeout: 246 seconds]
diego71 has joined #linux-sunxi
jinzo has joined #linux-sunxi
jinzo has quit [Ping timeout: 244 seconds]
jinzo has joined #linux-sunxi
bengal has joined #linux-sunxi
premoboss has joined #linux-sunxi
<kevin125> what is orange pi? any details?
tomcheng86 has joined #linux-sunxi
tomcheng76 has quit [Ping timeout: 264 seconds]
andoma_ has joined #linux-sunxi
nashpa_ has joined #linux-sunxi
diego71_ has joined #linux-sunxi
marcin has joined #linux-sunxi
<plaes> Gemei G9 has also Nanya DDR3 chip ^^
lerc_ has joined #linux-sunxi
kz1_ has joined #linux-sunxi
Tartarus_ has joined #linux-sunxi
Akagi201_ has joined #linux-sunxi
premoboss has quit [*.net *.split]
diego71 has quit [*.net *.split]
lerc has quit [*.net *.split]
Akagi201 has quit [*.net *.split]
kz1 has quit [*.net *.split]
nashpa has quit [*.net *.split]
arokux has quit [*.net *.split]
Tartarus has quit [*.net *.split]
andoma has quit [*.net *.split]
kz1_ is now known as kz1
nashpa_ is now known as nashpa
marcin has quit [Remote host closed the connection]
arokux has joined #linux-sunxi
bengal has quit [Ping timeout: 252 seconds]
premoboss has joined #linux-sunxi
cubear has joined #linux-sunxi
<plaes> ssvb: how were you able to fetch nanya datasheets? :P
<plaes> ok, found it via google, nanya's site is flash only :(
Andy-D has joined #linux-sunxi
gianMOD has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
paulk-aldrin has joined #linux-sunxi
jinzo_ has joined #linux-sunxi
jinzo has quit [Ping timeout: 244 seconds]
f15h has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
<plaes> ssvb: I don't get how you got the down-binning info
gianMOD has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
HeavyMetal has quit [Ping timeout: 245 seconds]
Netlynx_ has joined #linux-sunxi
HeavyMetal has joined #linux-sunxi
tremon has joined #linux-sunxi
jero has quit [Ping timeout: 245 seconds]
jero has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 250 seconds]
Zboonet has quit [Ping timeout: 244 seconds]
konradoo77 has joined #linux-sunxi
reinforce has joined #linux-sunxi
bonbons has joined #linux-sunxi
interrobangd has joined #linux-sunxi
ricardocrudo has joined #linux-sunxi
Tartarus_ has quit [Quit: ZNC - http://znc.sourceforge.net]
Tartarus has joined #linux-sunxi
zombu2 has quit [Read error: Connection reset by peer]
Wizzup has quit [Quit: reboot]
zombu2 has joined #linux-sunxi
Wizzup has joined #linux-sunxi
Netlynx_ is now known as Netlynx
Netlynx has quit [Changing host]
Netlynx has joined #linux-sunxi
ganbold_ has quit [Ping timeout: 255 seconds]
konradoo77 has quit [Ping timeout: 265 seconds]
interrobangd has quit [Read error: Connection reset by peer]
konradoo77 has joined #linux-sunxi
Renard has joined #linux-sunxi
faisal has quit [Quit: Leaving]
f15h has quit [Quit: Leaving]
ganbold_ has joined #linux-sunxi
popolon has joined #linux-sunxi
<ssvb> plaes: the -CG Nanya chips are DDR3-1333 9-9-9 (or DDR3-1333H) according to the table from page 6
<ssvb> plaes: regarding down binning to DDR3-1066F support, the table for the DDR3-1333 9-9-9 (-CG) variant at the page 107 in the datasheet says that tAA/tRCD/tRP delay is 13.125 ns, which is normal for DDR3-1066F speed bin
<ssvb> plaes: and also CL=7 / CWL = 6 for settings for tCK 1.875 are listed in the table too (albeit marked as " Optional")
<ssvb> plaes: so it seems like the DDR3-1066F timings are supported by NT5CB256M8DN-CG, though they are kind of beating around the bush instead of saying this explicitly
konradoo77 has quit [Ping timeout: 252 seconds]
<plaes> how do you calculate the MHz?
<plaes> also, density is 2G for this chip?
<ssvb> DDR3 is double data rate, so DDR3-1333 means clock speeds up to 666.5MHz and DDR3-1066 means clock speeds up to 533MHz
<zombu2> 1mhz + 1mhz = 11mhz
<zombu2> sounds about right .... right?
konradoo77 has joined #linux-sunxi
dubito has joined #linux-sunxi
<ssvb> also 1000 / 533MHz = ~1.876 (which corresponds to the tCK value 1.875ns)
<plaes> ok.. current speed is 432MHz
<ssvb> yes, the density is 2 Gb (Gbit) for this chip
<ssvb> plaes: it is clocked at 432MHz, but the DDR3 chip itself supports clock speeds up to 667MHz
<ssvb> plaes: and the 400MHz - 533MHz is the clock speed range, which is covered by DDR3-1066 timings
<plaes> and max tRFC is 107ns?
<ssvb> DDR3-1066 is either the faster 'F' speed bin or slower 'G' speed bin variant
<plaes> page 105
<plaes> or do I have to multiply by 1.5?
<ssvb> yes, it is 107 cycles or ~160ns
<ssvb> more detailed information about the standard speed bins is in the JEDEC DDR3 spec
ricardocrudo has quit [Ping timeout: 265 seconds]
<ssvb> plaes: the standard JEDEC tRFC values, sepending on chip density - http://git.denx.de/?p=u-boot.git;a=blob;f=arch/arm/cpu/armv7/sunxi/dram_sun4i.c;h=c736fa3b474f5bbb3ed704fea566985c6c9b1011;hb=HEAD#l424
<plaes> ok, so the line in the wiki should be following>
<plaes> DDR3-1600K (supports down binning to DDR3-1066F), density: 2G, page size: 1K, tRFC: 160.5ns
<ssvb> plaes: 160ns is pretty normal for 2Gb
<ssvb> plaes: the NT5CB256M8DN-CG chip is DDR3-1333H
<ssvb> plaes: page 6
<plaes> yup
<plaes> I read the table wrong
jinzo_ has quit [Ping timeout: 252 seconds]
<plaes> DDR3-1333H (supports down binning to DDR3-1066F), density: 2G, page size: 1K, tRFC: 160.5ns
<ssvb> looks right
atsampson has quit [Quit: new kernel]
sehraf has joined #linux-sunxi
<plaes> current u-boot supports the +S:CONFIG_DRAM_TIMINGS_DDR3_1066F_1333H=y ?
<plaes> u-boot master
<plaes> hmm.. nope
<plaes> duh.. I was wrong
<ssvb> u-boot from git master supports this - it should get to http://git.denx.de/?p=u-boot.git;a=blob;f=board/sunxi/dram_timings_sun4i.h;h=29b934da639c86b1830d1e26b7a751b6b227a21a;hb=HEAD#l28
<plaes> yeah.. I was grepping in configs directory
<ssvb> the cas/tpr0/tpr1/tpr2/emr2 settings for 432MHz through the battery of ifdefs :)
<plaes> ouch
atsampson has joined #linux-sunxi
<ssvb> plaes: you need to keep ZQ and EMR1
<ssvb> plaes: actually optimal ZQ and EMR1 might be different for this tablet, but we don't know them yet
<ssvb> plaes: they might be identified by a brute force search, something like - http://linux-sunxi.org/A10_DRAM_Controller_Calibration_%28impedance_configuration_example%29
<plaes> yeah.. I took these from there :P
<ssvb> hmm
<plaes> I know.. not the most optimal way :P
<ssvb> didn't you use the same zq and emr1 settings, as used by the android firmware?
<plaes> I already got the tablet with custom android firmware
<ssvb> and retrieved by running the 'meminfo' tool?
<plaes> I think I did it once
<ssvb> actually removing CONFIG_DRAM_ZQ and CONFIG_DRAM_EMR1 from the defconfig would mean using the Kconfig defaults
<plaes> it was the zatab.fex, where I took them, when I created the u-boot configuration: https://github.com/linux-sunxi/sunxi-boards/blob/master/sys_config/a10/zatab.fex
<plaes> because it was identical to the script.bin from my tablet
gianMOD has joined #linux-sunxi
<ssvb> ok, just the vendor dram settings are not exactly great in general, but something has to be used as the initial approximation of a proper config
<ssvb> plaes: have you run lima-memtester on this tablet?
<plaes> it didn't work with mainline kernel :S
<ssvb> just use sunxi-3.4 :)
<plaes> :(
<ssvb> does sunxi-3.4 not work correctly there or what?
<plaes> it works
<ssvb> so just boot it with the mainline u-boot and maybe run lima-memtester?
<plaes> mhm
* plaes tries setting the DRAM clk to 528MHz
premoboss has quit [Remote host closed the connection]
<plaes> oh wait.. I can actually go up to 648?
<ssvb> no, you can't
<ssvb> unless you really find good zq settings and increase the vdd-dll voltage first
<ssvb> the bottleneck is the soc, not the ddr3 chip
<plaes> ok.. 528MHz then :P
<ssvb> 528MHz could be also unstable or even fail to boot
<ssvb> you may want to ensure that 432MHz is really working properly first
<ssvb> and then gradually increase it
<ssvb> I do have the DDR3 clock speed set to 648MHz on my Cubietruck though :)
<ssvb> but this requires some custom settings - http://linux-sunxi.org/User:Ssvb/Cubietruck_DRAM_Calibration
gianMOD has quit [Remote host closed the connection]
FlibberTGibbet has joined #linux-sunxi
<ssvb> so it's not something really fantastic, but needs parameters tuning instead of just bumping up the dram clock speed and hoping for the best :)
<plaes> every cell is a single test?
<plaes> or do you extrapolate?
<ssvb> yes every cell is a single test, but they are run automatically by a script
<ssvb> it does not mean that you have to run each of them manually
gianMOD has joined #linux-sunxi
<ssvb> each cell has a different 'tpr3' value
ikeeki has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 250 seconds]
<ikeeki> Hi, I have openbox+lxde+3.4.106+binary drivers (not working)+fbturbo+vdpau+X11. 1080p60 runs smoothly (even with >20GB movies) but mpv player shows movies ina bit dark way. Could anybody please tell me how to increase brightness and decrease gamma in mpv? (standard mpv controls do not recognize gamma and brightness control is recognized but does not change anything). Thanks
ikeeki has quit [Quit: Saliendo]
ricardocrudo has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
<plaes> hum.. sunxi-3.4 build fail:
<plaes> this is with sun4i_defconfig
<plaes> my toolchain comes without ssp support
<diego71_> plaes: i've already see that error, with latest ubuntu. With debian I've no problems.
cnxsoft has joined #linux-sunxi
<plaes> ugh.. seems to be broken toolchain (gcc-4.9.2 b0rked, 4.8.4 seems to be working)
FlibberTGibbet has quit [Quit: Leaving]
domidumont has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
faisal has joined #linux-sunxi
<diego71_> plaes: in teory you can disable ssp in kernel configuration, through menuconfig, but someone reporting the same problem, told me that was useless
<diego71_> so changing the toolchain is better
dubito has quit [Ping timeout: 246 seconds]
domidumont has quit [Remote host closed the connection]
domidumont has joined #linux-sunxi
dubito has joined #linux-sunxi
<ssvb> plaes: be sure to keep nand support disabled in the sunxi-3.4 kernel
<plaes> ssvb: it automatically breaks existing partitions?
<ssvb> I'm not sure what is the current status of the android nand filesystem corruption story due to the changes in the nand filesystem format in later versions of libnand
<ssvb> I alway keep nand support disabled myself :)
<plaes> ok, thanks
dubito has quit [Client Quit]
MY123 has joined #linux-sunxi
<MY123> Is there a tutorial about bare-metal on Allwinner A20 with the machineID information using a DTB?
ricardocrudo has quit [Ping timeout: 245 seconds]
<MY123> ( I did one RTOS with the same binary working on a BBB, RPi1, and RPi2, I would like porting it to then occupy about a HDMI/LCD driver, before attempting to do it with KMS)
cnxsoft has quit [Remote host closed the connection]
<el3> Hi I built mainline kernel for pcduino3. http://linux-sunxi.org/Manual_build_howto and set up the boot partition. But it wont boot. It says that I should copy the kernel modules like this cp -r <PATH_TO_KERNEL_TREE>/output/lib /mnt/ . But I cannot find the output/lib folder.
<MY123> el3: serial dump?
<el3> MY123: when I do screen /dev/ttyUSB0 115200
<el3> MY123: It says terminated
<MY123> el3: Get your serial adapter working and pastebin the result.
<MY123> el3: I never used a serial adapter( only a Bus Pirate)
<el3> MY123: Okey I try another serial adapter
konradoo77 has quit [Ping timeout: 255 seconds]
konradoo77 has joined #linux-sunxi
<el3> MY123: Okey works now. Turned out I needed sudo screen. It keeps booting on nand where ubuntu is installed. Can I stop it from doing that. I cannot scroll in the serial output.
<MY123> el3: Try reinstalling the SPL and uboot
gianMOD has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
<el3> MY123: Yes think you are right. I got the outpout now ttp://pastebin.com/dLmqshkD board seems to be cubieboard2 and something wrong with spl to
<MY123> el3: INSTALL THE SPL FOR YOUR BOARD
<MY123> el3: Or you will get very nice surprises !
<el3> MY123: got it
<MY123> el3: Because of wrong SPL settings , I lost a full year trying to run linux-sunxi
<MY123> (on my tablet)
<el3> MY123: lost a full year?
<MY123> el3: a year of debugging with JTAG
<libv> ...
<MY123> ( before discovering that something was really wrong and RAM corrupted randomly)
<el3> MY123: damn, I would give up
<MY123> el3: at least, you have a SPL config ready for your board. Compile that
<plaes> el3: you need to install the modules first
<el3> MY123: or actually maybe not. I have been struggling getting this to run stabile for 3 months
<plaes> el3: make ARCH=arm CROSS_COMPILE=... INSTALL_MOD_PATH=... modules_install
<libv> MY123: i helped you with the kurio 7s last august.
<libv> on the 24th to be exact
<MY123> libv: I got it on December 2013
<libv> i have no tangible data on you before that.
<el3> plaes: Yes it says that in the guide. But I dont find the output folder. And I also need to fix this SPL
<MY123> libv: and tried since this day before discovering this channel and linux-sunxi.org
<el3> I got it working buildiing with help from the upstream guide. But the mainline is a bit different
<MY123> el3: Is lima-memtester stable?
<el3> MY123: on the pcduino? yes tried that
<el3> MY123: all ok
afaerber_ is now known as afaerber
<MY123> el3: mainline or u-boot-sunxi?
<MY123> ( I have the original PCdruino)
<el3> MY123: mainline
<el3> MY123: should try u-boot-sunxi with mainline kernel
<el3> MY123: it says on the side, mainline is better
gianMOD has joined #linux-sunxi
<plaes> ssvb: companion cube is visible :P
gianMOD_ has joined #linux-sunxi
gianMOD has quit [Read error: Connection reset by peer]
<ssvb> plaes: good :) just let it run for a while, a few minutes should be enough for a short test
<ssvb> then you can try increasing the dram clock speed until it starts failing
<plaes> mhm :)
gianMOD_ has quit [Remote host closed the connection]
<ssvb> just to see whether 432mhz is far from the real limit or not
<ssvb> and also to see whether you have any safety headroom or not
<ssvb> for example, passing the test at 432mhz but failing it at 456mhz would mean that 432mhz might be not very safe
Zboonet has joined #linux-sunxi
<plaes> ssvb: how do I kill it?
<fest> libv: is that a recent change, or was it incorrect in wiki all the time?
<ssvb> plaes: just power off or reset the device :) or press Ctrl-C in console
<fest> I was wondering why I still get dynamic mac address even with that setting but didn't bother looking into
pmattern has joined #linux-sunxi
cubear has quit [Quit: Leaving]
<libv> very recent change
<libv> not sure what to make of it
<plaes> could it be different in 3.4 and mainline?
<libv> i think this editor has been editing the module options on his host machine
<libv> nope
<plaes> both are available
<libv> yeah, but which is correct in this context?
gianMOD has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
<ssvb> I think one is the mac address that is visible on the device itself (run ifconfig on the device) and another is the mac address that is visible to the other machines (run ifconfig on your desktop pc)
<libv> ssvb: that would make host_addr the correct one
<ssvb> yes, 'host_addr' is the right one, if the user wants to use it in udev rules on the desktop pc
<libv> although...
<libv> plaes: ...
<libv> this all just adds to the confusion
<ssvb> we can also embrace the cargo cult and try to assign both of these :)
<plaes> :D
<plaes> hey.. he reverted that edit :)
<libv> probably when he actually tried it.
<ssvb> or maybe he is watching our chat in the irc
<el3> MY123: Can I take a image from linksprite webpage, and configure the kernel?
<ssvb> hello B4t, if you are here
<MY123> el3: you may
<el3> MY123: How can I do that?
ricardocrudo has joined #linux-sunxi
|JohnDoe71Rus| has joined #linux-sunxi
<ssvb> libv: btw, ktemkin has completed NDH for http://linux-sunxi.org/MSI_Primo73 with all the disassembly and soldering instructions added
<plaes> this page is pretty impressive
konradoo87 has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 252 seconds]
gianMOD has joined #linux-sunxi
<plaes> ssvb: first fails @ 528MHz
* plaes tries with 504
<MY123> plaes, so 432MHz should be okay
<MY123> ( if it does not fail with 480)
gianMOD has quit [Ping timeout: 240 seconds]
<plaes> 468 was ok
<ssvb> be sure to verify the settings by running the meminfo tool
<ssvb> it can safe you from messing up something when rebuilding/installing u-boot
<ssvb> *save
<plaes> ugh.. mainline kernel doesn't even boot with 528
<ssvb> maybe booting at 528mhz dram clock speed just depends on luck
<ssvb> tests with 480 and 504 dram clock speeds may probably help to understand how far is 528 from being reliable
<libv> ssvb: that's a most impressive page indeed
<libv> ktemkin: well done
<el3> ls
<el3> plaes: I build the kernel like this http://linux-sunxi.org/Mainline_Kernel_Howto#Kernel_Configuration But I cannot find any output folder.
<plaes> did you do `make .... uImage` ?
<el3> yes
<el3> that is on the boot partition
<plaes> did you do the modules_install too?
<el3> I cannot see that on that site. What should I do?
Renard has quit [Remote host closed the connection]
* plaes adds extra conf...
<plaes> el3: I'll update wiki page
<el3> plaes: Great thank you vbery much. msg when done
<plaes> el3: refresh
<el3> plaes: you are god
<plaes> just let me know if I was wrong
Renard has joined #linux-sunxi
<el3> yes I will try now
<plaes> ssvb: 508 seems to be good
<plaes> err.. 504
<plaes> how does it meminfo determine density?
<plaes> it reports currently 4096, although I have 2G chips
<ssvb> plaes: it's best to run the test longer (overnight), and still leave some safety headroom even if it can't detect problems at 504
<el3> plaes: You were right :) great thank you
<ssvb> plaes: the other people may have different dram overclocking limits even if they have exactly the same tablet model, so unless we collect more statistics, it's safer to keep 432 in u-boot :)
<plaes> so far I seem to be only one :P
<plaes> although Turl has similar tablet (zatab)
<ssvb> plaes: regarding the chip density, what is the reported bus and io width?
ricardocrudo has quit [Ping timeout: 252 seconds]
gianMOD has joined #linux-sunxi
<plaes> io_width = 16, bus_width=32
<ssvb> plaes: you have four x8 dram chips, but u-boot detects them as two x16 chips with twice higher density
endlezzz has quit [Ping timeout: 256 seconds]
<plaes> might be
<ssvb> this is safe, just the refresh timings are a bit worse because of assuming higher density
<plaes> wait.. 504 started giving red flags
<el3> Does this look okey http://pastebin.com/jY1DgXMP how long should I wait for "Starting kernel"?
<plaes> not that long :)
<el3> hehe
<el3> okey guess something wrong. I also forgot to make a swap. I will try that first
<plaes> did you enable EARLY_PRINTK & etc?
<el3> setenv bootargs console=ttyUSB0,115200 earlyprintk=serial root=/dev/mmcblk0p2 rootwait panic=10 ${extra}
<ssvb> plaes: then 504 is not really reliable, step down to 480 and don't forget to do the final overnight run after you find something that does not fail quickly :)
<plaes> but in kernel config?
<el3> I think I did
<el3> I will try to rebuild. Is it make mrproper, before I build again?
<plaes> dunno
afaerber_ has joined #linux-sunxi
<ssvb> plaes: btw, assuming 4Gb density instead of 2Gb just means that refresh takes 300ns instead of 160ns - http://git.denx.de/?p=u-boot.git;a=blob;f=arch/arm/cpu/armv7/sunxi/dram_sun4i.c;h=c736fa3b474f5bbb3ed704fea566985c6c9b1011;hb=HEAD#l424
<ssvb> plaes: your dram runs a bit slower
<plaes> what about this calculation from datasheet?
<ssvb> tRFC is different timing parameter, it is not part of tpr0/tpr2/tpr2
afaerber has quit [Ping timeout: 245 seconds]
<ssvb> and u-boot currently uses the default tRFC values from the JEDEC spec, based on chip density
<ssvb> if we take the values from datasheets, we may get better tRFC timing (like 260ns instead of 300ns for some of the chips)
<ssvb> but this is just a minor performance tweak, safety first :)
<ssvb> autodetecting x8 ddr3 chips as a twice lower number of x16 chips results in a minor performance loss, but without sacrificing reliability
konradoo87 has quit [Ping timeout: 246 seconds]
endlezzz has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
<plaes> cool.. I actually managed to find stock firmware
<plaes> this is the sdram part
konradoo77 has quit [Ping timeout: 256 seconds]
konradoo77 has joined #linux-sunxi
<el3> still stuck on boot http://pastebin.com/h0vdWB9F
<el3> boot.cmd looks like this http://pastebin.com/LHvQ1Y0A
popolon has quit [Ping timeout: 252 seconds]
akaizen has joined #linux-sunxi
<plaes> ttyUSB0 ?
<plaes> try ttyS0 instead
<plaes> in the boot.cmd
<el3> Okey. Ofcourse ttyUSB0 is on my machine
paulk-aldrin has quit [Quit: Quitte]
<el3> plaes: still the same
<plaes> what does your bootargs look like?
popolon has joined #linux-sunxi
<el3> Where is bootarg?
<plaes> in bootm.cmd
<el3> boot.cmd looks like this http://pastebin.com/LHvQ1Y0A
<el3> only I switched to ttyS0
<plaes> both ttyUSB's ?
<ssvb> el3: try to use 0x43000000 address for the dtb file and 0x42000000 for the kernel and console=ttyS0
<el3> ssvb: okey I will try
<ssvb> el3: or in fact 'fdt_addr_r' and 'kernel_addr_r' variables
<ssvb> el3: for the address space map, have a look at http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/sunxi-common.h;h=6cfd7e148900
diego71 has joined #linux-sunxi
diego71_ has quit [Ping timeout: 255 seconds]
konradoo77 has quit [Ping timeout: 255 seconds]
WarheadsSE has quit [Quit: WeeChat 1.1.1]
WarheadsSE has joined #linux-sunxi
<ssvb> el3: btw, is this alright "HDMI connected: Setting up a 3840x2160 hdmi console"?
<ssvb> el3: what is your native monitor resolution?
<el3> ssvb: that would be my 4K working machine
<ssvb> I guess, this might be a problem
<el3> Where do you see that?
<ssvb> "Reserved 9216kB of RAM for Framebuffer" - this is not large enough
<ssvb> do you see anything on the monitor in u-boot?
<el3> No not at all. And when it boots on linaro nand, it boots fine with hdmi
<el3> Actually I dont need hdmi or any display on this image. But it wont boot even if hdmi is not connected.
<ssvb> have you checked this?
<el3> yes, But I will check one more time
<ssvb> try to unplug the hdmi cable, use console=ttyS0 (sorry for reminding this yet again) and the proper addresses for the kernel and dtb
<el3> Yes. And you should not be sorry. I am for beeing noob
domidumont has quit [Ping timeout: 246 seconds]
vincenzo has joined #linux-sunxi
<el3> serial output on boot http://pastebin.com/hcEVgX9F
<el3> ssvb: info above
<el3> and no hdmi connected ofc
<ssvb> everything looks ok now
<el3> ssvb: Could it be the wrong rootfs ?
<ssvb> I would guess, that there might be something wrong with that kernel
<el3> Yea probably. I followed the mainline guide. But I will try again
<ssvb> what kind of kernel repository was that?
vincenzo has quit [Client Quit]
<ssvb> iirc, somebody reported problems with the 3.19 kernels earlier
<plaes> is the LOADADDR=0x40008000 part required for mainline?
<el3> http://linux-sunxi.org/Mainline_Kernel_Howto#Kernel_source I chose the stable --> git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
arossdotme has quit [Quit: Leaving.]
<el3> plaes: Should I remove it somewhere?
<plaes> dunno
arossdotme has joined #linux-sunxi
<el3> okey never mind. I will try to build the kernel again. I only need a minimal system that can use g_mass_storage and wifi. Any suggestions are wellcome. Images on linksprite dont suppor g_mass_storage. And the last upstream I built with debian, worked, but crashed after ½ hour running each time
konradoo77 has joined #linux-sunxi
<el3> plaes: Is it enough to build kernel again and move the modules to the lib folder. Or do I need to delete anything on the rootfs?
<el3> ofc the uImage too
<plaes> yes
<plaes> I have uImage and uImage-3.4 on my device and /lib/modules wihch contains modules for different kernel
<el3> okey
<ktemkin> <late>libv: thanks</late>
gianMOD has quit [Remote host closed the connection]
gianMOD has joined #linux-sunxi
gianMOD has quit [Remote host closed the connection]
konradoo77 has quit [Ping timeout: 250 seconds]
<el3> plaes: ssvb: Finally it worked. Thanks for your patience
konradoo77 has joined #linux-sunxi
Zboonet has quit [Ping timeout: 252 seconds]
Zboonet has joined #linux-sunxi
Zboonet has quit [Ping timeout: 256 seconds]
bengal has joined #linux-sunxi
Netlynx has quit [Quit: Leaving]
gianMOD has joined #linux-sunxi
gianMOD has quit [Ping timeout: 264 seconds]
exslestonec| has quit [Ping timeout: 246 seconds]
forest has joined #linux-sunxi
<el3> Does any of you know where in kernel config I can enable nand, so I can access nand-flash while booted on sd-card
<el3> ?
MY123 has quit [Ping timeout: 246 seconds]
<el3> found it
<plaes> what was wrong?
<el3> plaes: the option - "Initramdisk something" in general options should not be included
<el3> dont know if that is allways the case
<plaes> oh
tomcheng86 has quit [Read error: Connection reset by peer]
endlezzz has quit [Read error: Connection reset by peer]
konradoo77 has quit [Ping timeout: 252 seconds]
tomcheng76 has joined #linux-sunxi
endlezzz has joined #linux-sunxi
konradoo77 has joined #linux-sunxi
gianMOD has joined #linux-sunxi
exslestonec has joined #linux-sunxi
gianMOD has quit [Ping timeout: 250 seconds]
domidumont has joined #linux-sunxi
bengal has quit [Ping timeout: 246 seconds]
domidumont has quit [Ping timeout: 246 seconds]
reinforce has quit [Quit: Leaving.]
pmattern has quit [Quit: Genug für heute.]
Black_Horseman has joined #linux-sunxi
sehraf has quit [Quit: www.miranda-fusion.de ... be part of it...]
forest has left #linux-sunxi ["Leaving"]
konradoo87 has joined #linux-sunxi
konradoo77 has quit [Ping timeout: 240 seconds]
bonbons has quit [Quit: Leaving]
gianMOD has joined #linux-sunxi
Andy-D has quit [Ping timeout: 246 seconds]
gianMOD has quit [Ping timeout: 250 seconds]
exslestonec has quit [Ping timeout: 252 seconds]
naobsd has quit [Quit: naobsd]
<lukas2511> mh, does anybody have a kernel config for a20 with the new usb gadget stuff working?
<lukas2511> i only get "No such device" errors, and i'm not sure if its a problem with my modified dts file or with my kernel config
konradoo77 has joined #linux-sunxi
konradoo87 has quit [Ping timeout: 252 seconds]
pietrushnic has joined #linux-sunxi
gianMOD has joined #linux-sunxi
gianMOD has quit [Ping timeout: 246 seconds]
Wizzup has quit [Quit: leaving]
Wizzup has joined #linux-sunxi