hno changed the topic of #linux-sunxi to: Allwinner/sunxi development discussion - Don't ask to ask. Just ask! - See http://linux-sunxi.org | https://github.com/linux-sunxi/ | Logs at http://irclog.whitequark.org/linux-sunxi
<vincenzo> I will check. Anyways: if the script.bin i'm using is the stock one, how can it be wrong?
<techn_> device wont boot if you are using wrong dram parameters in uboot
BJfreeman has quit [Read error: Connection reset by peer]
hramrach_ has joined #linux-sunxi
<vincenzo> in u-boot-sunxi/board/allwinner/a10_mid_1gb/dram.c: dram_emr1 = 0x4
<vincenzo> but on the running board it is dram_emr1 = 0x0
<vincenzo> techn_: is this a/the problem?
techn_ has quit [Read error: Connection reset by peer]
<vincenzo> actually it is the opposite (0x04 on the board and 0x00 in uboot)
<rz2k> hno: fixed my dram setup both in u-boot and script.bin, still the same... http://pastebin.com/5r7YFCKZ probably jtaging is needed. I have cloned J-Link around, not sure if it will work with OpenOCD
<Turl> rz2k: what trouble are you having? looks like it booted ok
<rz2k> Turl: it reboots after that and in bits and pieces that left over and spit out to UART you can clearly see that they are parts of addresses
<rz2k> so its kernel panics there
<Turl> rz2k: just after the uart driver curiously
<Turl> what happens if you compile it out?
<rz2k> checking right now
<rz2k> i also noticed that there is "winners uart driver" around in serial, compiled it in for test
<rz2k> i remember that we had standard 8250 working
<rz2k> even in old kernel
<Turl> yeah with a hack
<Turl> because it's not the standard one
<Turl> it's a designware 8250 :P
<rz2k> speaking of that, I forget to add it to http://linux-sunxi.org/Used_IP_cores
<rz2k> Turl: remember any other ipcores that are used in Axx ?
<Turl> rz2k: I believe hno said MMC and SATA were someone else's IP
<rz2k> if you have a reason, please add a remark there :) I added NAND because I worked with it a lot lately, and it is really weirdly done, just like it was put as an afterthought
<rz2k> and glued with what they have around
<rz2k> for example, you cant ready 448 bytes, only 1024.
<rz2k> (the RAM0 size)
<rz2k> s/ready/read/
<Turl> I've only been working extensively with clocks, and cannot make any comment re. it
<rz2k> ok
<Turl> rz2k: I just saw your email on the list, you must have a pretty good eye
<Turl> both images look like the same board to me :p
<rz2k> different ddr3 marking
<rz2k> :P
<Turl> rz2k: yeah I won't be able to tell that with those imgs :P
<Turl> rz2k: heh, they say A10-olinuxino-micro to add to the confusion
<rz2k> yep, the layout is the same
<rz2k> so they didnt change it
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
<rz2k> tried both "winners uart driver", and various settings of standard 8250
<rz2k> even when it is compiled out I have http://pastebin.com/6xfs9EpC
<rz2k> basically it dies when bootconsole is switched off
<rz2k> now will try to run it without the earlyprintk and see if it boots
<rz2k> got system booting
<derethor> one question.. do you know if the allwinners support the AXI bus protocol?
<derethor> i saw something on the manual, about clocks for axi
<derethor> but i dont know where to get more info about it
<Turl> rz2k: lol, instagram ;)
<Turl> derethor: I believe it does, but I doubt you can connect things to it
<derethor> why? because it is not standard or something? too fast?
<Turl> derethor: the clocks may give you an idea, http://sprunge.us/VQeH
<Turl> derethor: I believe it's internal use only, there's a gate on it for dram so it might be used for the dram controller
<Turl> but I'm just guessing here
<derethor> i dont find anything reading about pins
<derethor> or the manual
<rz2k> Turl: easy upload from android devices, nothing more, i dont use filters and other crap
<rz2k> :p
<Turl> rz2k: I believe there's an imgur app ;)
<rz2k> its meeeh
<rz2k> i used it year or so ago
<Turl> rz2k: G+ has auto upload too :P
<Turl> rz2k: so what was the trick to have it booting? disable earlyprintk?
<derethor> i am really looking a way to connect high speed devices to the arm...
<Turl> derethor: what kind of device and at what speed?
<derethor> an FPGA, as faster as possible
<Turl> I saw a guy here talking about connecting FPGA via the DRAM controller
<derethor> me
<derethor> :)
<Turl> :p
<derethor> i think it is the only way
<Turl> do you need that much speed?
<derethor> what other options do i have?
<Turl> USB?
<derethor> SPI? i2c? uart?
<derethor> mmn
<derethor> maybe
<derethor> but the, I guess I will copy data a lot
<Turl> there's sata too, but I don't think it'd be too practical to implement your fpga as a block device
<derethor> the xilinx interface generates code for AXI
<derethor> and it seems that the protocol has some kind of DMA specification
<derethor> but I dont see any reference to external amba on the manual, from allwinners
<Turl> I haven't seen any either
<derethor> with another chip
<derethor> the code seems really easy, reading from /dev/mem
<derethor> but it seems that the allwinner hasnt anything similar
<Turl> yeah, mmio is really convenient to work with
<Turl> derethor: maybe you need to consider non allwinner chips too if it makes your life easier
<derethor> yes, i am guessing thaT
BJfreeman has quit [Quit: had a good time]
\\Mr_C\\ has joined #linux-sunxi
[7] has quit [Disconnected by services]
TheSeven has joined #linux-sunxi
<rz2k> A20 in OpenSSL speed test
<rz2k> A20 in linpack compiled with cortex-a7 and vfpv4 tunes
<rz2k> 3 times faster than A10 :)
wingrime has joined #linux-sunxi
tzafrir_laptop has quit [Ping timeout: 264 seconds]
tzafrir has joined #linux-sunxi
rz2k has quit []
tzafrir has quit [Ping timeout: 256 seconds]
tzafrir has joined #linux-sunxi
tzafrir has quit [Ping timeout: 246 seconds]
derethor has quit [Ping timeout: 264 seconds]
derethor has joined #linux-sunxi
<jelly-home> hm, that aes performance does not bode well for any potential users of dm-crypt
paulk-desktop has joined #linux-sunxi
tzafrir has joined #linux-sunxi
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
_BJFreeman has joined #linux-sunxi
BJfreeman is now known as Guest32689
_BJFreeman is now known as BJfreeman
Guest32689 has quit [Ping timeout: 268 seconds]
BJfreeman has quit [Ping timeout: 248 seconds]
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
tzafrir has quit [Ping timeout: 246 seconds]
_BJFreeman has joined #linux-sunxi
BJfreeman is now known as Guest49826
_BJFreeman is now known as BJfreeman
Guest49826 has quit [Ping timeout: 252 seconds]
_BJFreeman has joined #linux-sunxi
BJfreeman is now known as Guest27666
_BJFreeman is now known as BJfreeman
Guest27666 has quit [Ping timeout: 252 seconds]
_BJFreeman has joined #linux-sunxi
BJfreeman is now known as Guest65318
_BJFreeman is now known as BJfreeman
Guest65318 has quit [Ping timeout: 252 seconds]
soul has quit [Read error: Connection reset by peer]
tzafrir has joined #linux-sunxi
BJfreeman has quit [Ping timeout: 252 seconds]
<oliv3r> i think the a10-olimex micro also may have used the wrong connector for the sata power port
<oliv3r> a JST would have made more sense there
<oliv3r> rz2k speaking of images, check the wiki, i uploaded my a20 fotos
techn_ has joined #linux-sunxi
<oliv3r> jelly-home: crypto engine is in hardware, once we tap into that; easy piasy
<oliv3r> i wanna do that after PWM
<oliv3r> once people start nitpicking on silly thing on sid :p
eebrah has joined #linux-sunxi
eebrah has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
eebrah|away is now known as eebrah
naobsd has joined #linux-sunxi
<naobsd> hi
<naobsd> I'm looking for A20 resources, but probably nothing is committed yet on github.com/linux-sunxi/ repos, right?
<oliv3r> correct
<oliv3r> u-boot patch is to be found in github.com/hno/u-boot/wip/a20
<oliv3r> or the like
cnf has left #linux-sunxi ["Bye"]
soul has joined #linux-sunxi
<naobsd> hehe, no cubieboard2 support yet ;)
wingrime has quit [Ping timeout: 240 seconds]
wingrime has joined #linux-sunxi
\\Mr_C\\ has quit []
wingrime has quit [Read error: Connection reset by peer]
wingrime has joined #linux-sunxi
<hno> naobsd, no meminfo output from cb2 yet.
<naobsd> hno: I got cb2 today
<hno> you did?
<hno> did it get shipped with android?
<naobsd> strangly, dram params are slightly different from dram_cubieboard.c...
<hno> Different in what way?
<naobsd> shipped with linux, it worked, and I flashed android from https://github.com/cubieboard2/manifests
<naobsd> it worked too. I tried to flash linux image again, then I noticed flashing linux image never complete lol
<naobsd> <6>[ 0.530938] dram config [dram_para] [dram_baseaddr] : 1073741824 <6>[ 0.530955] dram config [dram_para] [dram_clk] : 480 <6>[ 0.530969] dram config [dram_para] [dram_type] : 3 <6>[ 0.530982] dram config [dram_para] [dram_rank_num] : 1 <6>[ 0.530996] dram config [dram_para] [dram_chip_density] : 4096 <6>[ 0.531011] dram config [dram_para] [dram_io_width] : 16 <6>[ 0.531025] dram config [dram_para] [dram_bus
<naobsd> oops
<hno> You might need a newer livesuit to flash linux images.
<naobsd> oh course I used new LiveSuite for Linux 64bit from github/cubieboard2/manifests. flashing android was OK
<hno> Try the Windows version. The Linux version for A10 is known to have problems with linux images.
<naobsd> while flashing linux image, I can see a lot of output from serial console. it's tooooo much. I guess it slows down flashing procedure
<naobsd> hmm. then I have to prepare Windows ;)
<naobsd> anyway, for now, I have curious about your u-boot/wip/a20
<naobsd> hno: will you get cb2 soon?
paulk-desktop has quit [Quit: Ex-Chat]
<naobsd> I can see u-boot prompt :)
<naobsd> hno: I copied and modified dram_cubieboard.c, it worked, and now I noticed "this file is generated, don't edit it yourself" ;)
<naobsd> what should I do?
<naobsd> hmmmmmmm... is cubieboard shipped with unieque MAC address? should I check it before flashing image?
<naobsd> it may be too late ;)
tinti has joined #linux-sunxi
<Turl> naobsd: the original one wasn't, I think they generate one from SID when flashing images now though
<naobsd> Turl: thanks. this cb2 should be only for dev, so it may not have MAC address... I'll ask hipboi(or on #cubieboard)
<Turl> naobsd: btw, I found out you can autogen the dram stuff this way
<Turl> ./fexc -O uboot yourfile.fex dram.c
<Turl> or from a bin, ./fexc -I bin -O uboot blah.bin dram.c
<naobsd> Turl: thanks. it worked, but some values in script.bin/fex are -1, so output is not correct :(
<Turl> naobsd: that's why usually new boards consist on adding fex on sunxi-boards, then fixing up dram_para with aid of a10-meminfo, then disabling unused stuff in the fex depending on the device, then adding support to uboot :)
<naobsd> I see :)
<naobsd> DRAMC_init() should be dramc_init()... sunxi-tools/script_uboot.c should be updated
<naobsd> anyway, thank you Turl
<hno> naobsd, looks fine. Merged.
<naobsd> hno: for now I only tested led on/off and mmcinfo ;)
<hno> Easy to correct any errors later.
<naobsd> is there any community kernel source for a20? I'm not sure https://github.com/cubieboard2/linux-sunxi/tree/sunxi-3.3-cb2 can be booted from your u-boot
<hno> naobsd, there is no community A20 kernel tree yet.
<hno> Should be possible to boot sunxi-3.3-cb2 I think, but have not tried, and have had problems booting Allwinner kernels.. seems boot1 is doing something that the kernel expects.
<naobsd> hmm. I'll try 3.3 kernel
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
_BJFreeman has joined #linux-sunxi
BJfreeman has quit [Ping timeout: 252 seconds]
_BJFreeman is now known as BJfreeman
paulk-desktop has joined #linux-sunxi
<naobsd> https://github.com/Ithamar/awutils interesting...
<hno> naobsd, that can only unpack/repack AW images. No flashing supported.
<naobsd> hmm
<naobsd> sunxi-3.3-cb2 booted (and halted due to no rootfs) w/o modification...
<naobsd> I'll prepare rootfs...
<naobsd> oh I should use cubieboard2_defconfig, not sun7ismp_defconfig ;)
_BJFreeman has joined #linux-sunxi
BJfreeman is now known as Guest12984
_BJFreeman is now known as BJfreeman
Guest12984 has quit [Ping timeout: 252 seconds]
<hno> naobsd, good.
cajg has quit [Quit: WeeChat 0.4.0]
Tartarus_ has joined #linux-sunxi
BJfreeman has quit [Ping timeout: 252 seconds]
<naobsd> userland is basically working
_BJFreeman has joined #linux-sunxi
<naobsd> I used init=/bin/sh due to my lazyness ;)
_BJFreeman is now known as BJfreeman
\\Mr_C\\ has joined #linux-sunxi
soul has quit [Read error: Connection reset by peer]
soul has joined #linux-sunxi
ganbold__ has quit [Remote host closed the connection]
eebrah is now known as eebrah|away
Tartarus_ has quit [Quit: Ex-Chat]
<derethor> hno: i was reading that file yesterday, about my SDRAM crazy idea :)
<derethor> cubieboard_dram.c
<hno> derethor, you better read arch/arm/cpu/armv7/sunxi/dram.c instead.
<derethor> hno: thank you!! that is exactly what I need
<derethor> do you think that the allwinner a1x has some external interface for AMBA?
<derethor> i dont find anything on the manuals
<derethor> and I found that the AXI clock could run at about 450mhz
<derethor> but i dont find any docs about that
<derethor> xilinx can generate the interface for the AXI slave device
<derethor> and maybe it is safer and easier to implement that a fake sdram
<mripard> derethor: I don't really know what you're trying to do with that FPGA, but have you considered Altera SoC-FPGA or Xilinx Zynq SoCs?
<mripard> they're both SoCs with an ARM core and an embedded FPGA
<derethor> i am trying to push data to the allwinnner memory space
<derethor> and, yes, i am considering those chips, but they are pretty expensive
<mripard> how expensive are they? (I'm curious)
<derethor> the xilinx zynq starts at 100€
<mripard> ouch
<derethor> i am only trying to push data on the a13
<derethor> if it is possible, of couse
derethor has quit [Quit: Leaving]
vincenzo has quit [Ping timeout: 245 seconds]
derethor has joined #linux-sunxi
rellla has joined #linux-sunxi
servili007 has joined #linux-sunxi
cajg has joined #linux-sunxi
derethor has quit [Remote host closed the connection]
vincenzo has joined #linux-sunxi
<servili007> oliv3r: ping
derethor has joined #linux-sunxi
derethor_ has joined #linux-sunxi
derethor has quit [Client Quit]
derethor_ has quit [Client Quit]
derethor has joined #linux-sunxi
derethor has quit [Client Quit]
derethor has joined #linux-sunxi
jemk has joined #linux-sunxi
<soul> Sorry for disturbing but, where I have to start reading for installing Debian or another GNU/Linux distro (with desktop if possible) on a Hyundai A7? I can't remember who helped me giving me this link (linux-sunxi.org/Hyundai_A7HD) but I'm still lost.
BJfreeman has quit [Ping timeout: 252 seconds]
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
paulk-desktop has quit [Quit: Ex-Chat]
eebrah|away is now known as eebrah
tinti has quit [Read error: Operation timed out]
rellla has quit [Quit: Nettalk6 - www.ntalk.de]
focus has joined #linux-sunxi
<focus> hi guys, is there an easy way to create a single header file that described all of the registers and bit fields in an A10 SoC. In PIC world this is easy. In cortex M0, M3 world its a bit ridiculous with everyone doing their own names. I want the file to make the SoC appear as a glorified embedded CPU for high I/O pin count projects.
<focus> In the long run, everyone could benefit from it because you will be able to see the entire CPU at a glance. When derivatives are made, it won't be so difficult to manage the porting of programs to the new CPU.
<libv> soul: this is a plain A7, the white one?
<soul> libv: Oh, hi. I have it without HD yes. It's white and the screen is 7"
<soul> libv: I can find the hardware (I think)
wingrime has quit [Ping timeout: 252 seconds]
eebrah is now known as eebrah|away
jemk has quit [Quit: bye]
tzafrir has quit [Ping timeout: 240 seconds]
BJfreeman has quit [Ping timeout: 252 seconds]
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
\\Mr_C\\ has quit []
BJfreeman has quit [Ping timeout: 252 seconds]
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
<Turl> focus: 1) open text editor 2) write 3) ??? 4) profit! :P
<Turl> focus: on a little bit more serious note, I haven't seen anything like that for sunxi
<Turl> focus: the kernel has some headers with bitfield struct definitions that you can map on top of the register to use, but it's nothing universal
<Turl> focus: maybe an uboot standalone app would be more suitable for portability, although I don't know if they expose the i2c and the like apis to apps
soul has quit [Remote host closed the connection]
G[3z] has joined #linux-sunxi
<focus> Turl: groan! I wanted gcc to compile a single executable from a single cpu header file. if I trawl through Linux source code, any chance I might gather up a few of the parameters to start off this header file?
BJfreeman has quit [Ping timeout: 252 seconds]
_BJFreeman has joined #linux-sunxi
_BJFreeman is now known as BJfreeman
<oliv3r> anybody familiar usb-otg? i have a mini usb keyboard with regular usb connector. with a usb-otg 'converter' it works fine. now i soldered on a mini usb plug and of course it doesnt work
<oliv3r> is the 4th pin spmehow involved? normally it is n/c
<oliv3r> i thimk it is called otg-detect?
<oliv3r> so maybe short it or somerhing?
<oliv3r> focus: probably impossible
<oliv3r> simple beacause we dont have all the docs
G[3z] has quit [Remote host closed the connection]
<oliv3r> if you really want to use the soc as an avr replacement (there are high pincount avr's)
focus has quit [Quit: Leaving]
<oliv3r> you ....leave
<oliv3r> you could look at the avr headers and, well start writing
<oliv3r> i think u-boot has some headers with some defines done
Soru has joined #linux-sunxi
<Soru> test
<Soru> libv: Sorry, my connection dropped. Did you say something?
<libv> Soru: first off, start creating a wiki page for the a7
<libv> Soru: feel free to use the general structure of the a7hd page
<libv> then, you have to generate the necessary info for uboot and the kernel
<libv> and you can get that by following: http://linux-sunxi.org/Submitting_Boards
<libv> then you can use this info in http://linux-sunxi.org/index.php?title=FirstSteps
BJfreeman has quit [Ping timeout: 252 seconds]
Soru has quit [Ping timeout: 260 seconds]
soul has joined #linux-sunxi
<naobsd> oliv3r: connect it to GND to used as host cable https://en.wikipedia.org/wiki/USB_On-The-Go#OTG_mini_plugs
vicenteH has quit [Ping timeout: 246 seconds]
<soul> libv: Stock vendor firmware means the original rom?
<vincenzo> Hi, I'm trying to figure out how to make my table work with the rom I'm building. It needs a module goodix_touch_3f.ko ... does anyone know where to get sources for it