mnemoc changed the topic of #arm-netbook to: EOMA: Embedded Open Modular Architecture - Don't ask to ask. Just ask! - http://elinux.org/Embedded_Open_Modular_Architecture/EOMA-68 - ML arm-netbook@lists.phcomp.co.uk - Logs http://ibot.rikers.org/%23arm-netbook or http://irclog.whitequark.org/arm-netbook/ - http://rhombus-tech.net/
tuliom_ has joined #arm-netbook
tuliom has quit [Ping timeout: 246 seconds]
gimli has quit [Ping timeout: 260 seconds]
<hno> slapin, hi
<hno> libv, it may be possible to prove different configurations of the blank parts. It's basically really # of chips & size. The DRAM controller do not magically know.
<libv> hno: some C code could be written that can be natively built for several androids, which can extract the necessary information from allwinner register space
<libv> hrm, just statically linked code should work already, if we can access /dev/mem
t0dbld1 has quit [Ping timeout: 276 seconds]
<slapin> hno, I see funny output from my code for executiig NAND commands - it runs OK READ0 (0x00), latches address w/o problems, then it outputs RNDOUT command (0x05) and immediately deselects NAND w/o transferring any parameters. Any ideas?
<slapin> hno: I see it on LA crystal-clear, will upload it into the same place as it saves to its disk.
<hno> libv, /dev/mem do not seem to work for some reason.
<hno> slapin, sorry, quite at loss there. But will wire up my logic analyser and play around a little. But probably not tonight, head still very muddy.
stefanro1 has joined #arm-netbook
<libv> set up of dram is done by the common allwinner code of uboot, right?
<hno> dram setup is done by boot0 or u-boot SPL.
<hno> probing of the missing parameters is done by livesuit when flashing the board.
stefanro has quit [Ping timeout: 244 seconds]
<hno> interestingly it misdetects 8-bit chips as 16-bit.
<hno> and still works fine.
Regressor has joined #arm-netbook
Regressor has quit [Client Quit]
hg_5 has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
<libv> hno: i am wondering, why do the script.bins not come with those bits of info?
RITRedbeard has joined #arm-netbook
<libv> hno: i saw some ram sizing code in uboot
<libv> is that code unreliable?
<libv> does each device come with an especially hacked uboot?
<slapin> hno: can you look at files at http://ossfans.org/nand/ ? there is dumps from original NAND u-boot
<slapin> hno: I processed LA output (excluding repetitive data) and got this for our code: http://ossfans.org/nand/sunxi-u-boot-nand-dump.txt (please ignore crap at the end, I get this file from working LA, which is slow in storing info)
<slapin> hno: original files are not processed, since I was still learning to use LA.
<hno> slapin, which command are you trying to execute?
<slapin> nand dump 0
<slapin> original u-boot doesn't allow to execute command and just boots
<hno> you can replace original u-boot.
<hno> or boot lichhe-dev from SD.
<hno> or JTAG, or loady.
<slapin> hno: I still can't run graphical interface here
<hno> ?
<slapin> hno: to replace u-boot
<slapin> hno: I mean I don't have anything but serial port to device
<hno> that's fine. loady works fine for loading a new version of u-boot to ram and execute.
<hno> loady 0x4a000000
<hno> [upload using y-modem]
<hno> go 0x4a000000
<slapin> hno: will it work from u-boot-sunxi? any wgettable url?
<hno> loady is enabled in sunxi-current. Even sunxi I think.
<hno> lichee-dev is in linux-sunxi u-boot repository.
<slapin> hno: any pre-built u-boot binary somewhere?
<hno> not of lichee-dev I think. And you probably want to change it to not read env from nand.
<hno> One moment and I'll prepare a suitable nandtrace binary for you.
<hno> sources in my nandtrace branch.
penguin42 has quit [Quit: Leaving.]
<slapin> hno: should it immediately start reading NAND?
<hno> Yes, more or less.
L84Supper has quit [Ping timeout: 245 seconds]
drachensun has joined #arm-netbook
<slapin> so I jut setup my LA before running go 0x4a000000
<slapin> hno: ?
<hno> yes
IIV has joined #arm-netbook
<slapin> hno: it is a problem to synchronize LA :( trigger runs too early because pins jump :(
merbzt has quit [Ping timeout: 246 seconds]
<hno> you can wait until everything settled and issue comands to read.
<hno> it will chat for a while due to the tracing, but will get to the bootwait prompt in a little while
<slapin> hno: yeah, this way I was able to catch only reset command :( is it possible to make it just get into the prompt on boot, so I could use some nand command? (After prompt all pins will be in proper state and I can trigger on CE -> 0
<hno> slapin, sure, just press enter.
<slapin> hno: I won't it boots immediately like original u-boot, without delay
<hno> no
<slapin> hno: this is what I see on screen
L84Supper has joined #arm-netbook
<slapin> hno: as I see again, only resets recoreded :(
<hno> maybe the trace chatter delays too much? Stop at the prompt and use nand read
<hno> reads up to 0x2000 in size is a single NAND operation on my device.
<slapin> hno: it ignores keypresses, just outputs lots of NFC access
<hno> Works for me.
<hno> NFC READ NFC_REG_CTL=4301
<hno> NFC WRITE NFC_REG_CTL=301
<hno> sun4i#
<hno> Hit any key to stop autoboot: 0
<slapin> hno: probably your environment contains no bootdelay 0
<hno> I just press enter while the initial spew.
<hno> There is no environment in this u-boot build.
<slapin> hno: hmmmmm
<hno> should probably take out boot command as well..
<slapin> hno: I think so, or just set bootdelay to something like -1 or so, so it won't boot
<slapin> I don't remember which one, though...
<hno> gah, this is a seriously fucked up u-boot config.
Curtman has quit [Quit: Leaving]
<hno> New binary without any autoboot.
freakazoid0223 has joined #arm-netbook
tuliom_ is now known as tuliom
TheLarch has joined #arm-netbook
TheLarch has quit [Changing host]
TheLarch has joined #arm-netbook
<slapin> and still no prompt
L84Supper has quit [Ping timeout: 246 seconds]
TheLarch has quit [Client Quit]
L84Supper has joined #arm-netbook
* slapin will continue experiments later today, need to get some sleep
<slapin> gn, all!
<hno> slapin, http://fpaste.org/1SG7/ is what mine looks like.
tuliom is now known as tuliom_
<slapin> hno: mine still continues: http://paste.ubuntu.com/1366697/
<slapin> hno: please see what is might be, I'm so tired I can barely walk to bed, good night!
<slapin> hno: 25ca5d6adc255001d6d61acf23a35318 u-boot-nandtrace.bin
mSquare has joined #arm-netbook
<hno> slapin, I don't see a partition table in your dum. Seem to have some serious ECC errors. PHY_PageReadSpare : too much ecc err,bank 0 block 0,page 7f for example.
* hno also crawls to bed. Good night.
<slapin> hno: there is partition table, I just missed it in log.
<slapin> hno: it just reads something infinitely. original u-boot boots without problems.
<slapin> hno: on nth attempt got to the prompt
<slapin> hno: http://ossfans.org/nand/u-boot-original-nand-read-processed.txt - processed (no repetitions) capture
<slapin> hno: http://ossfans.org/nand/nand/u-boot-original-nand-read-raw.txt - unprocessed (raw) capture
<slapin> please inspect
* slapin gone
alcides has quit [Quit: Fighter by day, lover by night, drunkard by choice! Ready to fight!]
tuliom_ has quit [Quit: Konversation terminated!]
itamarjp has quit [Ping timeout: 252 seconds]
slash_random has quit [Ping timeout: 265 seconds]
jquip has joined #arm-netbook
focus_it has quit [Quit: Leaving]
Mehhh has quit [Ping timeout: 245 seconds]
Mehhh has joined #arm-netbook
RITRedbeard_ has joined #arm-netbook
RITRedbeard has quit [Read error: Connection reset by peer]
rz2k has joined #arm-netbook
Quarx has joined #arm-netbook
<ssvb> hi, is there any reason for having sdram clock set to just 360MHz for mele a1000 while cubieboard boosts it to 480MHz?
<rz2k> mele uses cheaper ddr3 probably.
IIV has quit []
gimli has joined #arm-netbook
<ssvb> rz2k: http://linux-sunxi.org/Mele_A1000 says that it is using 512MB in 2x Hynix H5TQ2G63BFR H9C 143AK
<ssvb> and http://www.hynix.com/datasheet/eng/computing/details/computing_19_H5TQ2G63BFR.jsp says that it is DDR3-1333 (speed grade -H9)
<ssvb> so 480MHz should not be a big problem?
jquip has quit [Ping timeout: 246 seconds]
tzafrir has quit [Ping timeout: 252 seconds]
<rz2k> you can easily have cheaper stuff and edited script.bin
<rz2k> check if you have same ones and you can try to up the freq.
<rz2k> my a13-tab has ddr3s from manufacturer that I didnt even know existed, it has lower clocks than usual too.
ibrah has joined #arm-netbook
<ssvb> rz2k: yep, already did that, I was just curious about what is considered to be within allowed specs
<ssvb> btw, script.bin appears to have no effect on dram clock frequency, it was still 360MHz according to the value in DRAM_CCM_SDRAM_PLL_REG (obtained on the running system via "devmem2 0x1c20020") and benchmarks showed poor results
<ssvb> btw, my A2000 device is unstable at 1.2GHz, which probably also explains why cubieboard is sold as 1GHz :)
jquip has joined #arm-netbook
* ssvb is trying to figure out how to configure it for best performance without overclocking
<rz2k> everything above 1.03ghz is marketing crap
<rz2k> http://linux-sunxi.org/Cpufreq - for ac powered boxes
tzafrir has joined #arm-netbook
tzafrir has quit [Ping timeout: 265 seconds]
tzafrir has joined #arm-netbook
rellla has joined #arm-netbook
<hno> slapin, the trace seems to be missing the beginning (command & address). Starts with a long data read.
<hno> raw trace seems corrupted @sample 9581->
grimes99 has joined #arm-netbook
cheng has joined #arm-netbook
tuliom has joined #arm-netbook
rz2k has quit []
grimes99 has quit []
merbzt has joined #arm-netbook
<hno> slapin, there seems to be some noise in the traces. For example samle 1511, 2594, 6019, and some others. Do you have some flourecant lights or other noticeable radio emission nearby?
<hno> slapin, scrubbed and decoded I see this: http://fpaste.org/cLZh/
<hno> the decoder used: http://fpaste.org/8Q3L/
arnd_ has joined #arm-netbook
cheng has quit [Ping timeout: 246 seconds]
ibrah has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
cheng has joined #arm-netbook
cheng has quit [Client Quit]
rellla has quit [Ping timeout: 245 seconds]
hg_5 has joined #arm-netbook
penguin42 has joined #arm-netbook
popolon has joined #arm-netbook
slash_random has joined #arm-netbook
<hg_5> hey, is there any difference if i buy nexus 7 16gb from old or new supply ?
MindBeat has quit [Ping timeout: 265 seconds]
MindBeat has joined #arm-netbook
slash_random has quit [Ping timeout: 246 seconds]
<gimli> arm-linux-gnueabihf-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together is a know problem with the kernel source ?`
<libv> gimli: not really
<libv> gimli: how are you building the kernel?
<gimli> linaro latest toolchain and decsibed like here http://linux-sunxi.org/FirstSteps
<libv> gimli: are you sure that you are not building uboot here?
<gimli> i'm sure.
<libv> since you are using the defconfig, you can do a make mrproper on the kernel tree
<gimli> even on a clean git clone ?
<libv> hrm, ok
<libv> and you have built uboot succesfully with this toolchain?
Curtman has joined #arm-netbook
<gimli> didn't build u-boot jet. but another kernel for another arm platform
<libv> and do not have any CFLAGS set?
<gimli> so i asume the toolchain is fine
<libv> hno: if you are around and have some time, can you help Curtman fill in the blanks in the dram.c for his uboot?
<libv> try uboot, and see whether the problem is with the code, or with your setup or toolchain
<Curtman> libv, I don't think its necessary. I notice on the stock u-boot it only shows 512MB, not 1GB. It seems to load the kernel just fine too, and the kernel inits 1GB.
<gimli> so you tell me even if i compiled another kernel sucessfull my toolchain is not working ?
<libv> Curtman: nice!
<libv> gimli: am i telling you what is wrong, or am i suggesting possible routes for eliminating possible problems?
<hno> Curtman, are you booting from NAND?
<Curtman> libv, Right now it's just hanging after the serial port initializes for some reason. I was trying to get an ubuntu root image to try but http://rhombus-tech.net is still down. Any mirrors that you know of?
<libv> gimli: first would require clearvoyancy
<Curtman> hno, Nope, just from SD so far.
<libv> gimli: so try it.
<hno> Curtman, what device do you have?
<Curtman> hno, Mele A3700
<libv> gimli: i would find it very strange if there would suddenly be an issue with the kernel build system on even our hairy kernel
<Curtman> hno, I started a wiki page yesterday. http://linux-sunxi.org/Mele_A3700
<libv> Curtman: ah, serial init... try a full reset
<libv> Curtman: reboots hang there for me on both my devices
<libv> Curtman: needs a cold start
<libv> very painful issue, but noone has taken the time to debug it
<Curtman> I'm doing a cold boot though. Once its hung like that, I can't reset without yanking the power cord.
itamarjp has joined #arm-netbook
itamarjp has quit [Client Quit]
<libv> :(
itamarjp has joined #arm-netbook
<hno> Curtman, not even holding power button for ~10 sec?
<gimli> libv: sorry to blabe the kernel sources, how could i
<Curtman> libv, I'm blaming this Gentoo root for now. I'd like to get a rootfs that works on the A1000/2000 to try. but http://rhombus-tech.net is still down.
<hno> Curtman, linaro armhf rootfs + mele2000 hwpack
<libv> Curtman: initializing the serial port and hanging is a kernel issue afaik
<Curtman> Which branch of the linux git sources should I be working on do you think? I'm on the 3.0 branch as described in the docs.
<Curtman> I don't see anything in the output about even mounting the rootfs either. It's possible it's just not getting that far, and borks during kernel init.
<libv> gimli: there are many issues with our kernel, build time el/hf confusion has not occured so far
<hno> Curtman, sounds as if something is very messed up.
<hno> you said you boot from SD. Which board did you build u-boot for?
<Curtman> hno, Yeah. It's to be expected. It'll take time to sort, but I've got most of today to play with it.
<Curtman> hno, I built for a1000
<hno> That's not compatible.
<hno> Please see https://github.com/linux-sunxi/u-boot-sunxi/wiki "Adding a new A1x board"
<hno> Quite likely it's very similar to Cubieboard.
<Curtman> All I should need it to do is load the kernel from SD, and let linux init the hardware though. At least that's how things have been on other ARM platforms I've tinkered with.
<hno> u-boot configures the DRAM and a bunch of clocks the kernel expects.
<Curtman> All that seems to happen in boot1 based on my script.bin though, no?
<hno> Not i you are booting from SD with u-boot SPL.
<hno> and no, it's not based on script.bin. It's based on what is in the header of boot0 primarily, and some parts initialized from boot1 file header.
<hno> if usign allwinner bootloader.
<hno> how did you make your bootable SD card?
<Curtman> I followed the instructions. To get script.bin I used 'adb connect 192.168.1.224' then 'adb shell'. Then I did 'dd if=/dev/block/nanda of=/mnt/tmp/nanda.img', and I loop-mounted that on my desktop.
<Curtman> Then I bin2fex, and go this: http://pastebin.com/gRfyu1fW
<Curtman> I'll be back in 15 or so.
<hno> That looks odd for those DDR3 chips.
<hno> but maybe the mele board layout can't handle them.
jquip has quit [Quit: jquip]
alcides has joined #arm-netbook
alcides has joined #arm-netbook
alcides has quit [Changing host]
MindBeat has quit [Read error: Operation timed out]
MindBeat has joined #arm-netbook
<ssvb> hno: do you mean 360MHz is likely too low?
<ssvb> this is pretty confusing, the A10 datasheet says that the SOC supports up to 800Mbps DDR3, which means 400MHz
<ssvb> Mele clocks SDRAM at just 360MHz (below specified limit), cubieboard runs it at 480MHz (above specified limit)
<ssvb> and Mele devices seem to use DDR3-1333 memory chips
<ssvb> has anybody tried setting more than 480MHz clock speed for the memory?
rz2k has joined #arm-netbook
madmalkav has joined #arm-netbook
<Curtman> hno, This is the dmesg from stock firmware. Its interesting. "Memory: 448MB 512MB = 960MB total", vs boot log: "DRAM: 512 MiB"..
<Curtman> Bootlog: http://pastebin.com/1de1A4QX
<hno> Curtman, that's only Allwinner high quality code speaking it's sign.
<hno> ignore what stock nand u-boot says about ram. It's wrong and ignored by the kernel.
<hno> boot0 says the truth earlier (line 3)
<hno> ssvb, almost every device seen today uses 408MHz for the DRAM. Cubieboard have found their board stable up to 480MHz.
mSquare has left #arm-netbook [#arm-netbook]
<hno> The exact limits of the controller is diffuse.
<hno> datasheet is for first revision A10. The chip have undergone several revisions since then.
<Curtman> The boot1 file header described in the adding a new a1x board doc looks very uninteresting to me. Useful? http://pastebin.com/feszwa3p
<hno> Curtman, yes useful.
<ssvb> hno: ok, thanks for the information, 480MHz seems to be stable on my Mele A2000, maybe I should try higher clock speeds as an experiment
fluxi has joined #arm-netbook
<ssvb> BTW, does anybody know if G2D (Mixer Processor) supports premultiplied alpha?
myfluxi has quit [Ping timeout: 255 seconds]
myfluxi has joined #arm-netbook
fluxi has quit [Ping timeout: 248 seconds]
<hno> Curtman, this is what it says: http://fpaste.org/SU3S/
<Curtman> Thats better. :)
<hno> clearly wrong, but thats how allwinner detects that dram config. Should be io_width: 8, density: 2048
tinti has joined #arm-netbook
tinti has quit [Read error: Connection reset by peer]
<libv> hno: so we can get the actual dram parameters from somewhere else than the .fex?
<libv> if so, tool and please document :)
<rz2k> I believe you can grab dram data from boot1 header, but that will need NAND support from our spl
<ssvb> libv: maybe directly read from the HW regs? At least getting the memory clock frequency is easy: "devmem2 0x1c20020", extract bits 8-13 from the returned value and multiply by 24
<rz2k> ssvb: g2d is in kernel and should work, there is directfb for it, but not sure if it works, nobody had time yet to investigate there.
<ssvb> rz2k: I figured this much :) just none of my google search requests for "premultiplied allwinner a10 g2d" returned anything
<ssvb> I guess I just need to try to test it myself
<ssvb> but if pixel alpha is not premultiplied, then it would make g2d a lot less useful for implementing xrender extension
j1nx has joined #arm-netbook
<ssvb> what is the status of mali support nowadays? is it reverse engineered enough to implement some basic 2D without any proprietary blobs?
<libv> rz2k: my input: don't do it
<rz2k> lol
<libv> g2d.
<rz2k> why?
<libv> because that's what g2d is there for
<ssvb> my first impression after quickly skimming through g2d driver sources is that it supports a very limited subset of needed functionality
<libv> ah, it is simply wrapping ump bits, not doing any actual acceleration
<rz2k> mali_exa doesnt do anything
<libv> ssvb: i haven't looked deep enough myself, i hope it can do all but some of composite
<hno> libv, bootinfo tool in sunxi-tools, if feat a boot0/boot1 header.
MindBeat has quit [Read error: Operation timed out]
<libv> hno: is this information known to be valid most of the time (i almost said "always", but then thought better of it)
<hno> libv, if stopping nand-uboot at command promt then the boot1 header is still available in dram.
<hno> it's valid at all times.
MindBeat has joined #arm-netbook
<hno> except that 8-bit configurations is misdetected as 16-bit by livesuit. But works either way.
<libv> ah, ok, it is documented indeed
<libv> i guess that the nand work now ongoing will give us the capability to grab boot1 from the nand directly in future?
<libv> s/guess/hope/
<ibot> libv meant: i hope that the nand work now ongoing will give us the capability to grab boot1 from the nand directly in future?
<libv> ibot: shutup.
<ibot> yes master, I'll STFU
MMlosh has quit [Quit: Bye...]
gzamboni has quit [Ping timeout: 260 seconds]
<Turl> rz2k: libv https://github.com/allwinner-ics/lichee_buildroot/blob/master/package/directfb/directfb-1.4.11-vmware.patch might come in handy to get an idea of what g2d can do
freakazoid0223 has quit [Quit: Leaving]
<ssvb> Turl: actually the g2d code on the kernel side looks more interesting
<ssvb> and the block diagram from the datasheet seems to provide a rather good overview
<Turl> kernel code implements about the same, blit, stretch blit, fill rectangle and a mem allocator
<ssvb> well, the directfb code looks like a userland wrapper for the real implementation which does actual work on the kernel side
<ssvb> IMHO the right thing to do is to try using g2d for some basic operations with the memory chunks inside framebuffer and check the results
<ssvb> first testing whether the per pixel alpha is treated as premultiplied or not
jquip has joined #arm-netbook
<ssvb> and next get some estimate for the expected performance
<ssvb> as for the real DDX driver for x11, everyone and their dog implements them :)
MindBeat has quit [Ping timeout: 244 seconds]
focus_it has joined #arm-netbook
MindBeat has joined #arm-netbook
<focus_it> Suggest some improvement for A10 sunxi linux
<focus_it> 1. if .fex text file is found and no .bin file, then activate fex2bin and create the .bin file
<Turl> ssvb: well it was quite a welcomed improvement on my directfb testing ("hardware" vs "no-hardware" config)
<focus_it> 2. if meet several evb.bin files, put option on screen to reboot with a different evb.bin file or continue, and then reboot if new evb.bin selected
<Turl> focus_it: .bin is loaded by uboot to memory and parsed by the kernel on early boot, you cannot expect a userspace tool to be run then
<ssvb> Turl: link? sorry, I'm relatively new here
<Turl> ssvb: do you have a cubieboard by any chance?
<ssvb> I mean "your directfb testing"
<ssvb> Mele A2000 here
<Turl> ssvb: that means I downloaded directfb 1.4, patched with that, and ran with and without hw support, and it was considerably faster where hardware could do its thing :)
<Turl> (drawing rectangles for example)
<focus_it> Turl: then suggest uboot is adjusted to write a default .bin that can be picked up and modified by the user. When they 'ring' for support, somewhere in there will be a note to say the .bin was a default generated file.
<focus_it> so all the work goes into uboot to extend it to make it more friendly
<ssvb> Turl: ok, I just had a hope that there might be an archived message in the mailing list or a blog with a bit more details
<Turl> ssvb: if you want to test it, building directfb is not hard
<Turl> ssvb: and if you then build the examples, there's one named "df_dok" iirc which is a benchmark of all these operations
<ssvb> Turl: thanks, good to know
<Turl> ssvb: then on /etc/directfbrc you can write (no-)hardware to control the accel
<Turl> focus_it: why do you think there will be no .bin btw?
<Turl> focus_it: I mean, people have to flash uboot and make the partitions already
<focus_it> Turl: sorry, didn't explain myself properly.
<focus_it> As a newbie, I found a lot of hassle in trying to explain to myself how and why the .fex has to be changed to accommodate when going from MK802 to a tablet
<j1nx> evening guys
<j1nx> anybody cared to read my mail on the ML this afternoon?
<j1nx> Just can't get the kernel to boot anymore.
<focus_it> In the end I find I only need to change .fex two lines to make MK802 Lubuntu distro work on A10 tablet with LCD
<j1nx> But I do left for a good couple of weeks so might missed some development
<focus_it> So then it got me thinking, if I remove the .bin file and left it the fex file, then the system should be able to parse it and boot.
<focus_it> if it can't boot, it could write a note somewhere why it can't boot.
<focus_it> alternatively it can generate its own .bin file that it knows it can boot with and at least boot
<focus_it> That is normal way in Linux to recover from damage
<Turl> focus_it: script.bin is going to day on the future
<Turl> and as I said, if you only have a fex, you'd have to parse it on uboot, but doesn't seem worth the hassle imo
<Turl> j1nx: yeah I saw it, weird :| are you building the tip of sunxi-3.0?
<focus_it> That be fine. Just the new system can be thought out to cope with distros that hop from one ARM system to another
<j1nx> Turl: Yes. Nightlu does not boot as well
<Turl> j1nx: can you bisect?
<j1nx> Disabled "PM idle support", same crap
<j1nx> bisect?
<Turl> git bisect
<focus_it> Think of what might happen when a distro made for an MK802 with HDMI is transferred to A10 tablet. The display has to change to LCD, the input method has to change to accommodate resistive/capacitive sensors, the wifi module may have to be detected as that would change and so on
<Turl> yeah, that's going to happen with device trees
<j1nx> Turl: how does it work
<Turl> nowadays you need to replace script.bin and flash your device's uboot
<focus_it> Users can only edit text files, so its best if the fex to bin functionality is built into uboot or somewhere else so that users don't have to fret over it.
<Turl> read "binary search"
<focus_it> So the way the fex to bin issue would get resolved is that uboot will look for .bin and if not found it will activate fex2bin and take the info from fex and reboot with new .bin; if no .fex then put in default .bin specific for that embedded device - at least it can then boot in a known way, even if it is wrong. Looking at copy of .bin will let support know what might have happened.
<Turl> j1nx: it doesn't sound like a kernel failure though, maybe your PSU went bad
<Turl> j1nx: can you try a known working build and see if it works?
<j1nx> hmm ok, started the bisect, told the one I am on is bad, but how do I know which was still good?
Mehhh has quit [Ping timeout: 245 seconds]
<Turl> j1nx: well you need to figure that out first :)
<j1nx> oh crap ;)
<Turl> what were you running on your device earlier that worked?
<j1nx> nothing
<j1nx> been out of the loop for the last 3 months
<j1nx> had some stuff to do in Africa
<Turl> j1nx: just so we don't do unnecesary stuff
<Turl> j1nx: do you have another PSU to try with?
<j1nx> hmm, need to check
<focus_it> I'm doing all the testing on uSD card - which means I don't need to flash devices, and still experiment.
<hno> slapin, got my logic analyser connected, and the NAND controller is a bit automagic.
<hno> but need to slow down the nand clock a bit or it's unstable with all the wires connected.
MindBeat has quit [Ping timeout: 255 seconds]
<hno> mw.l 1c20080 8204000f
<hno> works fine.
MindBeat has joined #arm-netbook
<hno> you may want to slow it down much further to minimize the buzy gaps in the trace.
<hno> err, that clock is not valid. mw.l 1c20080 8203000f
jquip has quit [Quit: jquip]
<j1nx> Turl: Just downloaded one of the many images for mele, justed booted fine ?
<j1nx> Don't think it is the PSU
<techn> j1nx: Your sd card is broken?
<Turl> ok then, get bisecting :P
<techn> ** Bad ext2 partition or disk - mmc 0:1 **
<hg_5> does anyone have nexus 7?
pwhalen has quit [Quit: Leaving]
<j1nx> techn: same card ;)
<j1nx> Turl: Went back a couple of days, ad4e3898e1ada55defc153c7e4e95973c1973413
<j1nx> see if that one boots
ibrah has joined #arm-netbook
jquip has joined #arm-netbook
<jquip> erm.. hey guys... so I did something stupid... I have an arm netbook, the 'H6' as said by cnxsoft... so .. I tried Guillaume's method of partitioning the nand memory.. it looks all nice.. he's got it working on 32 mele nodes ya know.. (http://guillaumeplayground.net/pimp-my-mele/)... So before you go there reading ... basically I have removed all the nand partitions... and am getting the kernel on nanda() and rootfs on nandb... and am now struggling
<jquip> in the dark because no usb to ttl.. Machine simply flickers with screen on start, and then nothin... it's a uboot thing
rellla has joined #arm-netbook
<jquip> have tried amery's default lichee uboot.bin, among others..
Quarx has quit []
rellla has quit [Client Quit]
<bsdfox> get usb to ttl
pwhalen has joined #arm-netbook
MindBeat has quit [Ping timeout: 252 seconds]
rellla has joined #arm-netbook
MindBeat has joined #arm-netbook
<jquip> bsdfox: isn't there any other way? one can pipe that log to a file and then read it off after the boot process
rellla has quit [Client Quit]
<jquip> I mean can't redirect log output from serial into a file ??
<jquip> s/can't/can't we/
<ibot> jquip meant: I mean can't we redirect log output from serial into a file ??
<jquip> hno: your kind attention please?
<rz2k> jquip: you are working with hardware, you need debug connectivity like UART or JTAG.
<rz2k> UART is basic one, working after basic initializations. JTAG works all the time, but you dont need it if you dont know how to use it.
<jquip> rz2k: well the board is fine... linux on SD boots well..
<jquip> so i wasn't expecting any bugs from hw..
<hg_5> hi which one will be better nexus 10 or samsung galaxy note 10.1 ?
<rz2k> you still need to get the logs about whats happening when you boot from NAND. without them you will be blind in solving your problem.
<jquip> yeahhh... getting that usb to ttl will take some time... I didn't want to wait till then..
ibrah has quit [Ping timeout: 248 seconds]
<jquip> hg_5 : this channel is for linux development on arm...
<jquip> and EOMA :)
<RaYmAn> hg_5: n10 is better spec'ed, note has pen input. but yeah, not exactly a netbook ;)
ibrah has joined #arm-netbook
ibrah has quit [Read error: Connection reset by peer]
<hno> jquip, what?
<jquip> hno: Can we redirect uboot log output into a file instead of serial?? no usb-to-ttl on me... and I wanted to get those logs
<hno> jquip, no
<hno> there is no file.
<slapin> hno: hi
<slapin> hno: have you managed to get dumps?
<hno> jquip, you can use netconsole if you have an ethernet interface.
<hno> slapin, yes.
<hno> slapin, have not got around to decode them yet. But looks nice in SUMP, but all up/down diagrams..
<jquip> hno: Doh! yes I do have an ethernet interface...
<hno> jquip, but you pretty much need u-boot console to configure it in the first place.
<jquip> haha stalemate!
<slapin> hno: of both our code and allwinner's?
<slapin> hno: any ascii dumps to look at? haw did you set up triggers?
<hno> slapin, only tried allwinners yet.
<jquip> hno: I guess I will have to wait for it to arrive then.. Much Thanks..
<hno> slapin, I trigger on WE=0 to start the capture, sufficient. It's compressed so fits reasonably well in the trace buffer. Obviously not the whole page read, but command, read prepare delay, and first two "sectors" I think.
<hno> The controller is odd.
<hno> But I absolutely need to slow down the NAND bus considerably or there is errors with all the cables wired.
<hno> easibly visible in the ECC counters.
<slapin> hno: set dividers to maximum?
<hno> Yes.
<slapin> hno: set AHB speed to minimum?
<hno> Probably could go much lower by also switching to 24M clock.
<hno> AHB should not be changed. It's an internal logic bus between processor and NAND controller.
<slapin> hno: dunno if controller will like so slow speeds...
<hno> and many other
<hno> slapin, why?
<hno> it's the nand controller clock, and the nand controller clocks the nand bus.
ibrah has joined #arm-netbook
<hno> slapin, works fine at 24M / 8 / 16
grimes99 has joined #arm-netbook
<slapin> hno: have you some mw.l instructions to set this up? It seems I was able to capture data in 96 ns sample rate, will upload now...
<slapin> as soon as it manages to write 5MB file
<slapin> everything in this LA is cool and fast, except file operations.
ibrah has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.2/20121024073032]]
<focus_it> Another idea to improve the Linux experience
<focus_it> 1. When booting Linux, make it high priority to throw up a splash screen first before much else for HDMI and LCD based systems
<focus_it> 2. If previously successfully booted on HDMI or LCD, then somehow save the configuration so that it on next boot it uses that same code to more rapidly get the consumer display working before anything else
<focus_it> Just ideas - I'm taking an MK802 image and transferred it to tablet - and I notice a big lag before screen does something
<slapin> focus_it: this all is possible, just be there, when they design new device...
<focus_it> In today's consumer world where displays are top priority, its worth having a fast splash before anything else
<slapin> focus_it: u-boot supports it, just add AW's HDMI/LCD support there.
gzamboni has joined #arm-netbook
<focus_it> slapin: I be designing new device - I intend to be fully there even if right now my Linux on ebdedded is weak
<focus_it> slapin: thank you, I note it down for future reference! :-)
<slapin> as for later - it is better for device to sleep rather than reboot.
<hno> slapin, mw.l 1c20080 8003000f
<focus_it> Yes I fully agree, ultra low power sleep is a lot better than reboot
<slapin> hno: will it set appropriate clock source?
<hno> slapin, thats 24M / 8 / 16
<slapin> hno: thanks
<hno> pll5 / 8 / 16 is 8203000f
<slapin> hno: that's AW code
<slapin> hno: dumping our code output at 1536 ns. will take 20+ minutes.
alcides has quit [Remote host closed the connection]
alcides has joined #arm-netbook
alcides has joined #arm-netbook
alcides has quit [Changing host]
penguin42 has quit [Quit: Leaving.]
alcides has quit [Client Quit]
grimes99 has quit [Ping timeout: 246 seconds]
MindBeat1 has joined #arm-netbook
MindBeat has quit [Ping timeout: 276 seconds]
<hno> slapin, would be great if you could pair the allwinner bus trace with the console register trace.
<slapin> awww
<slapin> hno: actually, I can...
ibrah has joined #arm-netbook
<slapin> hno: command traces. first ones for aw code, latest ones are for our code http://paste.ubuntu.com/1368643/
ibrah has quit [Read error: Connection reset by peer]
<libv> slapin: check url please :)
<slapin> libv: ?
<hno> copy-paste error, but I know where it is.
<libv> i cannot access that nand dump
<libv> ok :)
<slapin> aaaaa
<hno> no htdocs
<slapin> libv remove htdocs
<slapin> sorry
<hno> no problem.
<slapin> I do everythiong by hand, what a shame :(
<hno> slapin, You are aware that those two are completely different pages, right?
<hno> slapin, aw nand read is their logical nand, not raw locations. 0 gets translated to NFC WRITE NFC_REG_ADDR_LOW=32000000
<slapin> hno: that's ok I just want to get working read and see the difference in this context.
<slapin> I think they just translate their 1ks to sectors and pretend it is hdd, and use layout common with hdds.
MindBeat1 has quit [Ping timeout: 268 seconds]
MindBeat has joined #arm-netbook
<hno> There is no initial 30 command in sunxi trace.
<hno> <00> <addr> <30> <read data> <05> <column> <e0> <read data> <05 ...>
<hno> is the allwinner sequence.
<slapin> this is perfectly complies with ONFI
<hno> the above is allwinner.
<slapin> yeah
<slapin> they use 05 to read spare, am I right?
<slapin> hno: ?
<hno> yours go <00> <addr> <05> <nothing>, repeated 6 times.
<hno> Yes.
<slapin> hno: that's what I see in dumps, yes.
<slapin> and that is in no way compliant with ONFI
eFfeM has joined #arm-netbook
<slapin> hno: and my code deseltcts flash after 05
<slapin> hno: while allwinner doesn't
<slapin> hno: which is weird
<hno> Gah, please don't paste.ubuntu.com. Can't download raw data from there.
<hno> wget do not know openid.
<hno> fpaste.org is good.
tzafrir has quit [Ping timeout: 245 seconds]
ibrah has joined #arm-netbook
<hno> RCMD_SET seems swapped.
<hno> slapin, AW: NFC_REG_RCMD_SET=e00530 Yours: NFC_REG_RCMD_SET=0030e005
<hno> and CMD differs noticeably as well. AW: NFC_REG_CMD=85ec0000 Yours: NFC_REG_CMD=01cc0000
hg_5_ has joined #arm-netbook
hg_5 has quit [Ping timeout: 276 seconds]
hg_5_ is now known as hg_5
tzafrir has joined #arm-netbook
hg_5 has quit [Changing host]
hg_5 has joined #arm-netbook
<slapin> hno, ok, will see tomorrow
<slapin> hno: need to go sleep now, will have to get up early
<hno> ok.
<slapin> good night, all!
<hno> have you pushed your changes?
<slapin> hno: all up to now is pushed
<hno> ok
* slapin checks
<slapin> yeah, pushed.
<hno> Got it.
* slapin gone
<hno> ehum... case NAND_CMD_READ0: data_fetch_flag = 0;
<rm> seems to be a good A10 tablet
<focus_it> color: whirte :)
<rz2k> I believe it had some issues with LCD with our kernel, but not sure.
<rm> skip the whole "Item specifics" section on Aliexpress, always
<rm> it's filled with nonsense almost all the time
<rm> see the table in the description down below instead
<focus_it> On another tablet I see Operating System: Win CE, OS: Android :-)
lerc has quit [Read error: Connection reset by peer]
lerc has joined #arm-netbook
lerc has quit [Client Quit]
lerc has joined #arm-netbook
arnd_ has quit [Ping timeout: 244 seconds]
sv has quit [Quit: Sv]
<rm> it will also sometimes tell you that the A10 has an AMD GPU inside
gimli has quit [Quit: Verlassend]
sv has joined #arm-netbook
madmalkav has quit [Quit: Leaving]
<focus_it> is there a Linux alternative to livesuit to flash firmware to NAND?
j1nx has quit [Quit: He who laughs last, thinks slowest]
<rz2k> focus_it: no, write one.
<rz2k> rm: stop confusing noobs with your debian manual :p
<focus_it> rz2k: I am capable, does it need cooperation of uboot?
<rz2k> we already have FEL mode bootloader, talk with RaYmAn, he did something around that
tzafrir has quit [Ping timeout: 260 seconds]
<focus_it> rz2k: any links? I know linux and embedded well, but not linux on embedded well enough, though I learn every day to solve that problem :-)
<rz2k> basically livesuit loads up eFex flasher into the memory using FEL and executes it. eFex initializes RAM, USB and NAND, then just waits for connection and data. eFex uses 1:1 usb stack/gadgets as our kernel, debug messages are same.
<rz2k> you can even load kernel using FEL, but I believe that will need some DDR initialization.
jquip has quit [Quit: jquip]
<rz2k> check other fel-*.c there, there is a program to test all gpio's using only fel mode.
<focus_it> rz2k: thanks, I take notes and go study everything
<rz2k> you are welcome.
<rz2k> also good night.
rz2k has quit []
eFfeM has quit [Quit: Leaving.]
SouL_ has joined #arm-netbook
SouL_ has left #arm-netbook [#arm-netbook]
SouL_ has joined #arm-netbook
ibrah has quit [Read error: Connection reset by peer]
<hg_5> hello where can i buy "miracast" dongle ?
cat_x301 has quit [Ping timeout: 240 seconds]
sv has quit [Remote host closed the connection]
ibrah has joined #arm-netbook
Mehhh has joined #arm-netbook
sv has joined #arm-netbook
<L84Supper> the new Nintendo Wii U has PPC + AMD Radeon, will we ever see ARM + Radeon?
<L84Supper> magic 8-ball says "highly unlikely"
<xenoxaos> depends....if some high $ company is working on an arm chip....needs to add in some video thing....and they have a deal with amd already...then they might
<Turl> L84Supper: well, AMD is making ARM64 Opterons.. :)
<rm> all it would take is some ARM board having a PCI-E (even x1) slot
<L84Supper> it would be nice, I hope AMD can turn themselves around
<L84Supper> libv mentioned some comment from AMD a while back about Radeon not getting ARM support
<L84Supper> was a matter of principal or similar
<Curtman> hno, Here's what my boot looks like with u-boot updated.. It still seems to hang at serial port init. http://pastebin.com/aMcRhXUs
<libv> atombios is heavily tied to the fglrx and windows drivers which are now the same codebase
<L84Supper> I talked to the radeon devs about this a few years ago, a port of Atom BIOS and dealing with unified memory were the two hurdles
<libv> they are made bug compatible
<libv> in any case, we have mali t604
<libv> which is much more suited for this space, and which will scale up a bit
<L84Supper> 2W are soc with 100W GPU? :)
<L84Supper> are/arm
<libv> will never happen, cpu could never shift data fast enough for the gpu to use
<L84Supper> ARM as coprocessor
<libv> another reason why ati hw on arm is not likely: what deal with amd and qualcomm make a 4 years ago?
<specing> ATI on ARM is a reality: Adreno
<L84Supper> at the time it was pretty easy to saturate the PCIe on the Marvell soc's
<libv> specing: which is owned to some large extent by qualcomm
<specing> yes
<L84Supper> the Imageon
<libv> i am sure that they worked out some deal where amd will not be competing in markets that are valid for qualcomm
<libv> and of course, qualcomm will be scaling up too
<specing> One day AMD will buy qualcomm
<specing> one day...
<libv> the reverse is more realistic
<L84Supper> the only way AMD could have made worse decisions in the past 5 years would have been if they ...... oh i give up
<libv> L84Supper: it started with killing the geode
<libv> one year before intel made the market with atom
<specing> geode ;) have one
<L84Supper> such a bad string of bad deals, it's almost like Intel made a deal with the board
<libv> then they bought a crappy almost bankrupt canadian company
<libv> for far far far too much cash
<L84Supper> AMD made an offer to buy nvidia back then
<libv> and they still haven't integrated ati properly
<libv> the inverse is more likely true
<L84Supper> the nvidia CEO wanted to run the new co
<libv> which is why we at radeonhd bit the dust as we did
<L84Supper> now nvidia could buy AMD
<L84Supper> is Bridgman still at AMD (ATI) ?
<libv> afaik, yes
<libv> but he's been moved away
<L84Supper> oh well
<libv> only about 5y too late
ibrah has quit [Ping timeout: 246 seconds]
<libv> anyway, the big question is, what is behind the deal with qualcomm, exactly what was sold and under what terms
<L84Supper> I wonder if Intel ever felt like kicking themselves for selling off their ARM group years ago to marvell
<libv> as the x86 market dominator, not too much
<L84Supper> money is money
<libv> intel can afford to spend a lot of engineering time on creating x86 "SoCs" which can compete with arm based designs
<libv> who is behind pengpod btw?
<libv> http://www.pengpod.com/, attempts to be crowdfunded on indiegogo
<focus_it> I ordered a penpod 7" with Linux on the flash :-)
<focus_it> I hope they get their funding - only 14 days to go and still $30,000 short
<libv> focus_it: they need funding for what exactly?
<focus_it> I assume to start a production run
SouL_ has left #arm-netbook [#arm-netbook]
<libv> this person seems to just be importing existing hw
<focus_it> You know factories can't do small orders - its like 1000 min order
<focus_it> I assume the tablets costs about $30 for all parts
tuliom has quit [Quit: Konversation terminated!]
<focus_it> that would instantly swallow $30,000
<focus_it> so the remaining $20,000 is working capital for all the overheads of production