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/
ejstacey has joined #arm-netbook
_whitelogger has joined #arm-netbook
MMlosh has quit [Ping timeout: 248 seconds]
MMlosh has joined #arm-netbook
ka6sox-away is now known as ka6sox
rsalveti has quit [Ping timeout: 245 seconds]
Almamuerta has joined #arm-netbook
Almamuerta has quit [Client Quit]
ZaEarl has quit [Quit: Ex-Chat]
ZaEarl has joined #arm-netbook
Boulet has joined #arm-netbook
ZaEarl has quit [Read error: Connection reset by peer]
rsalveti has joined #arm-netbook
ZaEarl has joined #arm-netbook
Gujs_ has joined #arm-netbook
Quarx has joined #arm-netbook
Gujs_ has quit [Client Quit]
sspiff has joined #arm-netbook
Boulet has quit [Remote host closed the connection]
HeHoPMaJIeH has joined #arm-netbook
Boulet has joined #arm-netbook
Boulet has quit [Remote host closed the connection]
Boulet has joined #arm-netbook
Mazon has quit [Quit: meh]
Vayu has quit [Ping timeout: 244 seconds]
Mazon has joined #arm-netbook
Vayu has joined #arm-netbook
Boulet has quit [Remote host closed the connection]
Boulet has joined #arm-netbook
QingPei has joined #arm-netbook
<RaYmAn> hno: duh. Problem was initialization order. Clocks have to be setup before touching UART regs
kaspter has joined #arm-netbook
<mnemoc> RaYmAn: \o/
<mnemoc> WarheadsSE: afaik A7>A9
kaspter has quit [Quit: Instantbird 1.1]
<RaYmAn> hno: also, confirmed that I can still load & boot a kernel over jtag after running the fixedup test1
<RaYmAn> So my theory is we really just need to get test1 to return to fel and we should be able to write & boot a linux kernel :D
<RaYmAn> mnemoc: happen to remember the offset for accessing phys ram from virtual on a10/a13?
<RaYmAn> aha, + 0xf0000000 I think
<RaYmAn> or not
<RaYmAn> that doesn't make sense
<RaYmAn> :/
<mnemoc> arch/arm/mach-sun4i/include/mach/hardware.h:#define IO_ADDRESS(x) ((x) + 0xf0000000)
<RaYmAn> it doesn't really work
<RaYmAn> or I'm misunderstanding
<RaYmAn> Like, I want to access 0x40000100
<mnemoc> #define SW_PA_IO_BASE 0x01c00000
<mnemoc> #define SW_VA_IO_BASE 0xf1c00000
<mnemoc> PA to VA seems to always be that 0xf0000000
<mnemoc> maybe.... #define SW_VA_DRAM_IO_BASE 0xf1c01000
<RaYmAn> yeah, but if you take 0xf0000000 and add to 0x40000100, you get 0x130008000
<RaYmAn> which is outside the valid range =P
<RaYmAn> also, that's the base of the DRAM registers :/
<RaYmAn> hmm
<RaYmAn> ok, so sdram starts at 0xc0000000
<RaYmAn> > virt2phys 0xc0000100
<RaYmAn> Physical address 0x40000100
<mnemoc> good point
<RaYmAn> I guess this is just one of those things you have to accept as truth
<RaYmAn> lol
<mnemoc> :)
RITRedbeard has quit [Read error: No route to host]
RITRedbeard has joined #arm-netbook
<RaYmAn> mnemoc: at some point, would you be able to maybe enable kexec + atags (doesn't matter whether kexec works, since I just need the atags stuff) on some a10 device and make a dump for me? :S It seems that without that feature enabled, kernel overwrites the atags
<Boulet> i cleaned up my test1 a little bit, and now it returns to fel
<Boulet> but i also removed uart init from it
<RaYmAn> Boulet: have a look at hno's cleaned up variant
<RaYmAn> that's missing the return to fel
<Boulet> all the uart and printf are really not necessary, it was just during dev
<RaYmAn> no, but it's nice to have still
<RaYmAn> so for return to fel, did you just get rid of entry.S and put main at 0x0?
<mnemoc> RaYmAn: on A10 I can give you the ATAGs given by hno's uboot. on A13 I can't yet because I don't have userspace yet
<RaYmAn> mnemoc: a10 is fine - I just need the binary version
<RaYmAn> I guess I could theoretically figure out how u-boot generates them and recreate that :S
<mnemoc> give me 15m
<mnemoc> CONFIG_ATAGS_PROC=y <--- that one?
<RaYmAn> yup
<RaYmAn> it requires the kexec config to work
hipboi has quit [Quit: 暂离]
<mnemoc> my uart dongle decided to go on strike again :<
<rz2k> whats the demand? :p
<rz2k> more RX than TX? :p
<mnemoc> :)
<mnemoc> now it's talking.... nonsense
<mnemoc> back in 30m :'(
<CIA-121> rhombus-tech: nizar master * r2c76b50fbfda /allwinner_a10/orders/nizar.mdwn:
L84Supper has quit [Quit: puff of smoke]
gimli has joined #arm-netbook
<Mazon> of course those would probably start at $1000
* Mazon has hopes for droid-x
kaspter has joined #arm-netbook
gimli_ has joined #arm-netbook
diego_ has quit [Remote host closed the connection]
gimli has quit [Ping timeout: 276 seconds]
kaspter has quit [Ping timeout: 246 seconds]
<RaYmAn> Boulet: what did you change to get it to return to fel?
kaspter has joined #arm-netbook
kaspter has quit [Remote host closed the connection]
<rm> nice+small+cheap+capacitive+a10
* orly_owl clicks
<orly_owl> hmm that is cheap
<orly_owl> now for the 10" model
<WarheadsSE> cheeep
<orly_owl> is it IPS though
kaspter has joined #arm-netbook
<WarheadsSE> I'll have to try an updated kernel on my mele.. X borked :/
Almamuerta has joined #arm-netbook
Boulet has quit [Ping timeout: 245 seconds]
Boulet has joined #arm-netbook
Boulet has quit [Ping timeout: 244 seconds]
kaspter has quit [Ping timeout: 276 seconds]
kaspter has joined #arm-netbook
<mnemoc> RaYmAn: my mele's uart is acting seriously weird... I have a loop echoing "test\n" to ttyS0, which according to stty is set at 115200 (as expected) but on the other end I receive "WH.WHY."...
<mnemoc> also set at 115200... and same with 3 dongles
<mnemoc> RaYmAn: I'll try updating the uboot of the SD to support uEnv.txt and try to start the test kernel that way
<RaYmAn> odd
<mnemoc> WH.WHYY.WH.WHYYY.WH.WH.WH.
<mnemoc> looks kind of funny
Boulet has joined #arm-netbook
<RaYmAn> mnemoc: test1 returns to fel now. (current git). fel write only writes first 8kb of what you give it, but it writes those correctly to ram ;)
<RaYmAn> mnemoc: I verified by dumping with jtag, everything after 8kb is 'random' rather than the data (exactly 8kb mark)
<RaYmAn> So fel tool probably does something wrong
<RaYmAn> I might look into it later
<RaYmAn> but once that is fixed, we should be able to boot kernel from fel
<mnemoc> awesome
<hno> RaYmAn, thanks!
<mnemoc> .WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WHY.WH.WH.WHY.WH.WH.WH.WH.WHYY.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WHY.WHYYY.WHY.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH.WH...... why oh why :'(
<hno> ?
<mnemoc> that's what I'm receiving from while true; do echo test > /dev/ttyS0; sleep 1; done on the mele
<hno> mnemoc, doublecheck baud rate
<hno> stty -a </dev/ttyS0
<mnemoc> stty says both sides are 115200
<hno> on the mle
<hno> is gnd properly connected?
<mnemoc> yes, only gnd and tx atm
<hno> do he uart work in a loop test?
<mnemoc> 1m
<hno> == connecting tx to rx on the uart module. anything you write should come back
<mnemoc> yes, I'm getting my echo
Boulet has quit [Ping timeout: 272 seconds]
Boulet has joined #arm-netbook
ka6sox is now known as ka6sox-away
<hno> gah, 14s RTT at the moment. only irc works
<mnemoc> wifi troubles or your link to the world?
Boulet has quit [Remote host closed the connection]
<mnemoc> hno: doh, revived :)
<mnemoc> hno: something did the loop test to the chip that now works
<hno> 3g link
<mnemoc> will you get LTS up there soon?
Boulet has joined #arm-netbook
<hno> magic! rtt down to 150ms for me also
<mnemoc> magical minute :)
<hno> RaYmAn, what happened to entry.S?
<mnemoc> RaYmAn: still need the atag?
<mnemoc> DEPMOD 3.0.39 .... lost the +
<hno> ah, see now. We should also move to 0x2000 instead of 0. There is a stack at -0x2000
<hno> RaYmAn, must have been tired when doing fel write...
<mnemoc> RaYmAn: https://filetea.me/t1sb7325 <--- atags from the mele booting hno's uboot
Almamuerta has quit [Quit: Page closed]
L84Supper has joined #arm-netbook
<hno> RaYmAn, fel write should be fixed now.
andropos has joined #arm-netbook
<RaYmAn> hno: I cleaned it up :P We don't actually need all the extra code that was in there - not when running from fel
<RaYmAn> I guess I could have made a different .S instead.
<Boulet> to init SDRAM ?
<RaYmAn> Boulet: the .S isn't really part of initing sdram =P
<Boulet> yeah
<Boulet> it is not really necessary actually
<RaYmAn> It's useful for proper baremetal, but given fel provides a pre-setup C enviroment with stack etc, it's not really needed :)
<Boulet> as long as you know the address of the main function
<RaYmAn> checkout my change
<RaYmAn> I just changed entry.S to contain a start symbol that's placed a offset 0x0 and has a single "B main" instruction
<RaYmAn> so you can always execute it from the address you upload to :)
<Boulet> yeah
<andropos> hello...does anyone here know the uhost (allwinner) device >
<Boulet> before this the entry.s was supposed to have interrupt vectors
<andropos> ?
<Boulet> but they are not necessary
<Mazon> is mele the only A10 unit with ethernet?
<RaYmAn> indeed - unless we have plans to execute that code standalone outside of e.g. uboot spl or fel, there's no need to have it :)
<andropos> Mazon @ why etherneet on a tv stick?
<Mazon> andropos: huh?
<Mazon> A10 is a SoC ...
<andropos> u mean why do you need thernet on a tv stick?
<Mazon> I dont, which is why I didn't ask about that
<andropos> <Mazon> is mele the only A10 unit with ethernet?
<Mazon> yes ...
<Mazon> mele isnt a stick
<andropos> so?
<andropos> whats your question?
<Mazon> is mele the only A10 unit with ethernet? <--
<Mazon> thats my question
<andropos> ha
<andropos> i mean whats your question?
<andropos> there are lots of hd players with ethernet
<Mazon> are you kidding me ?
<andropos> aha ony a10 unit, sorry
<Mazon> yes ... but it needs to be a10
<andropos> got it
<andropos> sorry
<Mazon> -.-
<andropos> cant u use a USB to Ethernet adapter?
<andropos> on A10 device?
<Mazon> possibly
<andropos> does anyone know the uhost device?
<RaYmAn> only by name
<phh> (i use usb to ethernet on H24/MiniX)
<andropos> cos some seller for this device linked to this channel
<RaYmAn> but in all likelyhood, it's more or less identical to all the other a10 devices in most aspects :P
<andropos> how many a10 minipc device are there?
<RaYmAn> lots
<andropos> i only know mk802 and the uhost
<RaYmAn> well, they aren't all in stick form I guess
<andropos> yeah im talking tv stick / mini pc
<andropos> not tablets
<RaYmAn> there are other form factors for mini pc's than stick :P
<andropos> im thinking of form factor stick
<Mazon> telechips variants and a10 variants
<Mazon> thats about it
<andropos> i found that the uhost have some features that the mk802 doe snot have
<Mazon> some with 1GB ram and some with 512
<andropos> yeah thats what i also found out
<Mazon> rikomagic (mk802) are coming out with a new one just around the corner
<andropos> so i only found 2 differnt a10 models so far
<Mazon> and then dual cores at the end of the year it seems
<andropos> whats the news?
<andropos> yes i heard about dual
<WarheadsSE> mk802/ak802/uhost
<andropos> never heard of ak802
<WarheadsSE> only recently started cropping up
<WarheadsSE> basically an MK802, I havent identified the difference yet
<andropos> any differentce to mk802?
<Mazon> cx-01 is the telechips one
<andropos> yeah cx01 is telechips ... but i think a10 should be better for media decoding
<andropos> what i found cool with uhost is that is has builtin wireless receiver
<andropos> and the ukey
<andropos> compared to mk802
<andropos> it also does not get very hot
<andropos> it first time for me in this channel, may i know who heng out there?
<andropos> i was suprprised to see a chinese seller to link to this channel
* WarheadsSE core developer for Arch Linux ARM
<WarheadsSE> amery & hno & Turl & hipboi
<WarheadsSE> all working on kernel on either linux/android side
Quarx|2 has joined #arm-netbook
<WarheadsSE> hipboi is that seller, btw
<mnemoc> don't forget RaYmAn, rm, lundman, ...
<rm> Tom Cubie is not your average 'chinese seller'
<rm> afaik he works at Allwinner as a developer, and the shop is kind of a hobby for him
Quarx has quit [Ping timeout: 245 seconds]
<hno> rm, correct
<andropos> is this hid store?
<mnemoc> andropos: yes
<rm> yes
<andropos> ic cool
<rm> <andropos> how many a10 minipc device are there? <- here are some: http://wiki.xbmc.org/index.php?title=Allwinner_A10
<rm> you forgot the MiniX
Quarx|2 has quit [Ping timeout: 252 seconds]
kaspter has quit [Quit: Instantbird 1.1]
<andropos> rm thanks
<andropos> very usefull info
<andropos> im running a small forum about chinese tablets and started to look into the so called minipc devices
<hno> there is aso cubieboard coming shortly
<hno> and the olimex boards
<WarheadsSE> right, which are A13
<hno> cubieboard is a10. olimex will have both. A13 varant first
<hno> neither are sticks, but both A10 boards will have ethernet & sata.
<rm> "boards" aren't nearly as interesting
<rm> as they could have been if priced sanely compared to end-consumer devices
<andropos> guys do you have an idea how much a uhist costs in china?
<hno> pricing of all three boards is quite reasonable
<RaYmAn> mnemoc: does the a13 board detect nand correctly when you boot it from custom kernel?
<andropos> i found a supplier for uhost for 40 usd
<andropos> do you think its resonable price?
<hno> andropos, what is the minimum order @ 40 USD?
<andropos> no minimum
<RaYmAn> hno: not quite there yet =P USB fails - I'll add some debugging and see how far it gets before it fails
<andropos> i just got one sample today
<hno> and uhost is missing both etheret & sata or any other expansion than uSD & USB
<hno> RaYmAn, booting kernel?
<RaYmAn> hno: no, writing kernel
<hno> ok
cubieboard has joined #arm-netbook
<hno> RaYmAn, livesuite writes 64K at a time, and write same amount of data in zeroes at another location
<hno> outside DRAM..
<andropos> has anyone here used the uhost? how to get rid of the ugly ulauncher?
<rm> sooo I didn't finish my sentence: do any of the A10 boards have GPIO and how many?
<RaYmAn> that's..weird
<RaYmAn> lol
<RaYmAn> hno: I'll add a max of 64k to the usb bulk function and see if that helps
<rm> andropos, no minimum at $40 while all sellers start from at least $65 sounds suspicious
<rm> is your seller on Aliexpress?
<hno> RaYmAn, you need to limit one level up.
<RaYmAn> hno: ?
<andropos> well i guess you pay lots of fees on ali
<andropos> im in China
<hno> size to be written is in the fel command header.
<RaYmAn> sure
<andropos> ali fee + paypal fee + shipping
<RaYmAn> fel only allows one bulk request per command?
<rm> oh, I see
<andropos> im thinking of holding a group buy to help ppl get the device cheaper...
<hno> RaYmAn, no idea. But livesuite limits the fel write commands to 64K
<RaYmAn> hno: 'k..I'll give it a try first. It might be sane and allow you to say e.g. 500KB and then just write in bulks of 64kb - worth a shot
<RaYmAn> hno: well, no error doing this so far. Will see if the data is also written =P
<RaYmAn> (to memory, that is)
revident has joined #arm-netbook
<RaYmAn> hno: it worked :)
<RaYmAn> (the write hack - not tested boot just yet)
Quarx|2 has joined #arm-netbook
<RaYmAn> aaand, action! :D
<RaYmAn> kernel decompressed and kind of booted :P
<RaYmAn> (it crashed because no rootfs and no atags, but it booted all the way there)
<WarheadsSE> \o/
tahnok has left #arm-netbook [#arm-netbook]
<hno> B)
<hno> RaYmAn, di you figure out what's up with the MMU is FEL mode? Is it enabled or disabled?
<RaYmAn> hno: well, I assume it's enabled given that's what JTAG state thingy says (And I'm pretty sure it talks to the cortex a8 to get that info)
<RaYmAn> Just, pagetables are setup quite differently than in linux
<RaYmAn> hno: if you have any good ideas for how to verify, I'm all ears :)
<hno> so linux boots even with mmu on? thougt it had to be off
<RaYmAn> I dunno - I guess it does :)
<RaYmAn> Perhaps the requirement is that it can access stuff with physical addresses?
<Boulet> strange, i'd think MMU is on in fel mode ?
<RaYmAn> which it definitely can
<Boulet> why would they enable it ?
* RaYmAn shrugs
<Boulet> is off sorry
<RaYmAn> Boulet: tell me how to verify :P
<Boulet> i don't know how, sorry
<RaYmAn> ttarget state: halted
<RaYmAn> target halted in ARM state due to debug-request, current mode: Supervisor
<RaYmAn> cpsr: 0x60000153 pc: 0xffff01f0
<RaYmAn> MMU: enabled, D-Cache: disabled, I-Cache: disabled
<Boulet> oh, so there you go
<Boulet> and you are in brom it seems
<RaYmAn> FEL is in brom so yeah
<hno> Isn't there a way to dump the pagetable?
<Boulet> strange, i'm surprised
<RaYmAn> why? :)
<RaYmAn> It makes good sense to have it there :P
<RaYmAn> unbrickable :>
<RaYmAn> tegra has a similar thing in BROM
<Boulet> but linux probably configure it differently anyways
andropos has left #arm-netbook [#arm-netbook]
<RaYmAn> from my attempts to get at certain bits, it seems the page tables are configured 1:1 to hardware - with possibly some stuff missing
<RaYmAn> like, I don't seem to be able to access BROM memory in FEL
<Boulet> but fel can read BROM
<RaYmAn> can it?
<hno> yes
<RaYmAn> odd
<RaYmAn> hno: what is brom entry address again?
<RaYmAn> or rather start of brom
<hno> FFFF4000 and FEL @FFFF0000
<hno> 32K in total.
<RaYmAn> > dump_image brom.bin 0xffff0000 0x800
<RaYmAn> Address translation failure
<Boulet> strange
<hno> That's with OpenOCD?
<RaYmAn> but yeah, fel dump seems to do it
<RaYmAn> hno: yes
<RaYmAn> that's a bit odd
<hno> Meybe they switch MMU on/off all the time?
<Boulet> if you have a disassembly of brom you can see that
<Boulet> playing with that cp15....
<hno> is MMU on while code executed from FEL is running?
<hno> Boulet, I have, but lacks decoding of cp15 operations.
<Boulet> MRC p15, #0, r0, c1, c0, #0 this kind of stuff
<Boulet> actually does it matter if it is on or off ? as long as the VA is same as PA in fel, that's all we need to know ?
<cubieboard> andropos: where can you find 40$ uhost
<RaYmAn> hno: looks to be on
<RaYmAn> Boulet: can you tell from the value of cpsr? :P
<RaYmAn> Boulet: cpsr 0x40000153
cubieboard has quit [Quit: Leaving]
<Boulet> i can't but arm.com can ;)
<hno> Boulet, disassembly is in my Allwinner-Info github repository.
<Boulet> yes i am looking at it hno
<Boulet> it seems they disable many stuff at setup
<Boulet> but they also have the routines to enable cache, mmu
<Boulet> starting at ffff2614
<Boulet> mmu is quite a complex beast to me, you guys know how it is setup ?
<Boulet> and it is needed for cache to operate if i remember correctly
<Boulet> RaYmAn : http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344k/ch02s14s08.html
<Boulet> the MMU, cache info are not in that register
<hno> there is also plenty of unknown fel commands
<Boulet> ffff2614 is enable brand predictor
<Boulet> ffff2628 is enable ICache
<Boulet> ffff2640 is enable DCache
<Boulet> ffff2658 i don't know
<RaYmAn> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0344i/I1002400.html
<RaYmAn> enable/disable mmu
<Boulet> rayman you should run fel from SDRAM and debug it ahahahhaha
<Boulet> actually can't you debug it directly from BROM ?
<RaYmAn> I'm not sure
<RaYmAn> I can't reset and start in halt or anything
<hno> should work fine to debug fel, if openocd could understand the mmu state
<Boulet> everything after ffff25f4 seems dedicated to MMU, caches .... cp15
<Boulet> and some cpsr stuff
<Boulet> hno, after ffff4000 it is dedicated to the loaders ?
<Boulet> so the USB setup and fel commands fit in the first 0x25f0 bytes
<hno> yes
<hno> it's two searate programs. BROM and FEL
<hno> BROM jumps to FEL when forced or booting failure
<hno> boot0, boot1 and boot.exf also jumps to fel on failure or explicit trigger
<Boulet> ok
<hno> but jumping to FEL from u-boot fails for some reason
Vayun has joined #arm-netbook
<Boulet> maybe because of the mmu ?
Vayu has quit [Ping timeout: 276 seconds]
<Boulet> if someone could disassemble the fel+brom files in https://github.com/hno/Allwinner-Info/tree/master/A13
<Boulet> that would be neat
<Boulet> i don't know how to do that
<Boulet> need to go to bed now, good night all
Boulet has quit []
Vayun has quit [Ping timeout: 248 seconds]
<mnemoc> RaYmAn: if the nand driver is y, yes, /dev/nand* are detected immediately
<mnemoc> uh, hipboi switched to freeshipping for the uhost thingie
Quarx|2 has quit []
Quarx|2 has joined #arm-netbook
Quarx|2 is now known as Quarx
Quarx has quit [Client Quit]
Quarx has joined #arm-netbook
<RaYmAn> mnemoc: hrm. I'm getting [ 0.950000] [ccmu] set nfc clock rate to 60000000 failed!
<RaYmAn> :(
<Turl> nfc hmm
<RaYmAn> it's nand stuff
<Turl> RaYmAn: :/
<RaYmAn> mnemoc: any chance you have time to try out fel kernel boot on that a13 olinuxino? :>
<Turl> RaYmAn: while I was working on cpufreq I've seen some similar messages
<Turl> when I failed and wrote invalid stuff :P
<RaYmAn> I guess maybe it's expecting some clocks to have been set already by bootloader
<Turl> probably
<mnemoc> RaYmAn: ah, 1m
<Turl> RaYmAn: a10 or a13 btw?
<RaYmAn> Turl: 13
<Turl> might be that then
<mnemoc> RaYmAn: we "fixed" that in sun4i's
<mnemoc> in 3.4 both drivers are merged but not in 3.0
<RaYmAn> ah
<mnemoc> vi
<RaYmAn> nano
<RaYmAn> :P
<mnemoc> in
<mnemoc> er
<mnemoc> I can'\t type
<mnemoc> f* f* f*
* mnemoc breaths
<Turl> nano ftw ;)
<mnemoc> in drivers/block/sun5i_nand/nfd/nand_blk.c
* RaYmAn consistently uses nano
<mnemoc> commented #define USE_SYS_CLK out
<mnemoc> comment #define USE_SYS_CLK out
<Turl> RaYmAn: I do too
<RaYmAn> my colleagues laugh at me :(
<mnemoc> i would too
<RaYmAn> mnemoc: that's it? :)
<Turl> yeah I have a friend who laughs because I don't use vi :P
<mnemoc> RaYmAn: yes, just comment that #define out
<RaYmAn> I switch systems too much to use vi(m), emacs or similar.
Almamuerta has joined #arm-netbook
<mnemoc> vi is pretty consistent across systems
Almamuerta has quit [Client Quit]
<mnemoc> emacs is certainly different everywhere
<RaYmAn> yeah, but it's not really that good on mac or windows
<Turl> I'd s/consistent/consistently weird/ :P
<RaYmAn> I use Visual Studio in part of my work as well
<RaYmAn> Having to remember all the special keys for VI or emacs is just too much trouble for me =P
* mnemoc won't be able to look at RaYmAn in the same way again
<RaYmAn> lol
<RaYmAn> I like doing different things :)
<mnemoc> *cough*
<Turl> I just hope you don't program VB6
<RaYmAn> If I did, I'd certainly never have taken this job
<RaYmAn> .Net 4.0 and C#
<RaYmAn> that's half or so
<RaYmAn> the rest is python, wsgi and postgresql
<RaYmAn> mostly
<RaYmAn> a bit of C too
Quarx has quit []
<RaYmAn> mnemoc: that at least made partitions appear :)
<RaYmAn> PHY_PageReadSpare : too much ecc err,bank 0 block 0,page 1
<RaYmAn> :S
<RaYmAn> but I guess that's not really an issue
<RaYmAn> is it common to end up with uhm, "vibrating" coloured bars when this thing fails to boot? :P
<mnemoc> no idea, never booted a device with display :p
<RaYmAn> lol
<RaYmAn> olinuxino uses lcd pins though :P
<RaYmAn> I get this when booting that kernel (from memory) skumler.net/colorbars.jpg
<RaYmAn> at least that means it initializes the LCD correctly :P
<Turl> RaYmAn: yeah I also get the ecc thing on my A10
<RaYmAn> 'k
<Turl> but no issues so far other than it being printed
<WarheadsSE> trying 3.0.39 for ALARM
<RaYmAn> I think me or someone else is going to have to hack together an atag creator
<RaYmAn> if we want to be able to properly boot over fel
<RaYmAn> mnemoc: Ijust noticed I'm using an old fork on my github, lol (kernel)
<RaYmAn> might help to update :>
<mnemoc> :)
<RaYmAn> I just realized that if I can get a minimal ramdisk linux (with console over uart) going from this, I can dump nand completely without ever having flashed anything to device
<WarheadsSE> heh
<WarheadsSE> mnemoc: remember when I was having those issues with xorg
* RaYmAn looks around for volounteers for writing a createatags program
<WarheadsSE> Also, funny as hell .. => configure exorg to use fbdev & /dev/fb0 ;)
<WarheadsSE> load up the mali drivers, then start X
<WarheadsSE> "interesting" behavior
<Turl> isn't that how everyone is doing it WarheadsSE?
<WarheadsSE> i don't think so
<WarheadsSE> I compiled w/ the mali driver
<Turl> RaYmAn: I might be able to help :)
<RaYmAn> ooh, a volounteer! :D
<Turl> RaYmAn: do you have docs for the atag format?
<RaYmAn> Turl: no, but I have a program that reads a binary atag file and dumps the contents
<RaYmAn> :)
<Turl> works I guess
<Turl> lol
<Turl> linky? :P
<RaYmAn> it has a statically compiled version of the app too - and included an atag dump from mele a1000
<Turl> RaYmAn: so what's the expected behaviour?
<Turl> (of the createatags program)
<RaYmAn> Turl: in particular, it needs to drop in the ATAG_CORE as first tag, then an ATAG_mem based on user params, optionally an ATAG_CMDLINE with cmdline (usually max 1024 chars) and an INITRD2 ATAG based on uhm, providing offset and a ramdisk file (or just manually specify size)
<RaYmAn> the rest of the atag's aren't really required for this purpose
<RaYmAn> tbh, it doesn't need to be fancy - I'm planning to write wrapper scripts around it anyways. (e.g. fel-boot.sh --kernel somekernel --ramdisk someramdisk --board a13 ) and let that handle uploading the right stuff to memory and passing suitable parameters
<RaYmAn> make sense?
<Turl> so ./createatags --cmdline "console=ttyS0" --initrd-offset 0xsomething --initrd-size something --output something.atags
<Turl> works for you?
<WarheadsSE> anyone seens Jeff Doozans little a10_display too l?
<RaYmAn> Turl: yeah, that could work
<RaYmAn> Turl: maybe a --memory_size a swell?
<Turl> "ATAG MEM" RaYmAn?
<RaYmAn> not sure what you are asking? :P
<Turl> memory-{start,size}
<RaYmAn> ah, yeah
<mnemoc> I think we should generate a .h used then to compile this boot0^Wtest1
<mnemoc> initializing DRAM and populating ATAGs
<RaYmAn> mm
<RaYmAn> I guess
<RaYmAn> I figured it was easier to just have a createatags app that gives you a binary you can fel write to 0x40000100 :)
<Turl> yeah
<Turl> the app just needs to malloc and pack some structs together :P
<mnemoc> but you need to know mem info to initialize the dram
<RaYmAn> but if Turl just writes it so the actual atag handling code is seperated out from the main app, it could be ported easily
<mnemoc> so the boot0 needs to be custom made anyway
<RaYmAn> yeah
<RaYmAn> this was mostly for testing anyways
<RaYmAn> for now :)
<RaYmAn> it's useful to be able to test the atag generation standalone anyways :)
<RaYmAn> anyways, gtg for a bit
<RaYmAn> mnemoc: have a good holiday
<mnemoc> RaYmAn: I hope to be able to connect often, don't want to miss all the fun when you both get your olinuxinos
<Turl> holiday? what did I miss? :P
<Turl> you're on vacaction mnemoc? :)
<mnemoc> Turl: since tomorrow
<Turl> enjoy the while they last then :)
<mnemoc> today is stressful last-day-before-vacations day
<Turl> them*
<mnemoc> :)
<RaYmAn> mnemoc: it's not being sent till 20th earliest though :(
<RaYmAn> hehe
<RaYmAn> but at least a lot of stuff seems to be the same on this a13 tab so
<Turl> what's the olinuxino size?
* Turl imagines putting an olinuxino inside the mele case :P
<RaYmAn> it's nano-itx isn't it?
<RaYmAn> that's 12x12cm
<mnemoc> RaYmAn: I'll be out for 2w, that is after you receive yours
<RaYmAn> ah
arokux_h has joined #arm-netbook
revident has quit [Quit: Combustible lemons? Bah, I bring you weaponized asparagus!]
<hno> I will be back in town on sunday. If all is well I have an A13 wating for me.
<hno> we should make a fel bootloader setting up atag, mach type etc.
<hno> such loader also useful for those using allwinner bootloader without uboot.
<hno> starting kernel without preparing the required registers & referenced atag is not nice
<mnemoc> a free boot0
gimli has joined #arm-netbook
<hno> mnemoc, SPL is a free boot0.
gimli_ has quit [Ping timeout: 248 seconds]
<mnemoc> hno: once it learns to initialize dram ;-)
<mnemoc> well... i mean generically
<hno> what I am talking about above is merely 3 instructions to load r0, r1, r2 with proper values so kernel do not need to override at startup.
<hno> SPL will soon be as generic as boot0 I hope. I.e. needing a matching script.bin and running a tool to copy the needed parameters into the bootloader.
<mnemoc> i was wondering how to reduce code duplication between this mini-spl and spl
<mnemoc> mini-spl doing dram, minimal atag, and r0,r1,r2 .... then the spl part that knows to read nand/mmc on any sunxi, then fancy full uboot, then linux
<mnemoc> or, when using fel, linux directly after mini-spl
<mnemoc> that would allow a larger spl i believe
<mnemoc> because dram is already initialized
<mnemoc> does uboot allow something like that?
<mnemoc> back in ~1h
tuliom_ has joined #arm-netbook
tuliom_ is now known as tuliom
<hno> I am not very fond of the idea of SPL trying to guess the DRAM parameters.
<hno> The whole clock & dram setup code can be shared by fel and spl booting.
<xxiao> someone used pogoplug's ulimit storage space, $19.99 per year for ulimited space? that beats everyone else, too good to be true
<WarheadsSE> xxiao: wut
<WarheadsSE> Ah, the family
<Turl> mnemoc: :D
<WarheadsSE> basically mini-team
<WarheadsSE> the "unlimited" is your device.
<Turl> mnemoc: we got gold :D
<xxiao> i hook 4 usb 1TB on it
<WarheadsSE> that'd work
<xxiao> it's idle on my desk for a long while but now i want to use it, then found out pogoplug's storage is too good to be true
<WarheadsSE> its not cloud storage!
<xxiao> WarheadsSE: it is, they sync your local disks to their cloud storage, $19.99 per year
<WarheadsSE> where are you seeing this ?
<WarheadsSE> Yes.
<WarheadsSE> STORAGE IS YOUR DEVICE
<WarheadsSE> NOT CLOUD
<WarheadsSE> "Continuous backup of your family’s computers and mobile devices even when you’re away from home" means the software will backup your phone -TO YOUR DEVICE-
<xxiao> i think you're right, shoot
<WarheadsSE> nah, shit, the dude hat exploits the crap out of their devices and services is right ...
<xxiao> i got distracted by this before i decide to load debian/archlinux/openwrt to hack it
<WarheadsSE> The only bit of this is the *multi-account* part
<xxiao> ic
<xxiao> debian-on-it(or openwrt, if i can put that to NAND instead of wasting a usb port for debian image)
<xxiao> mount S3 as FUSE to do 'cloud-backup' along with local storage
<WarheadsSE> get real performance, put sata on it ;)
<xxiao> should be very doable
<xxiao> it's mostly for archiving and backup, speed is not that unbearable
* xxiao is still waiting for self-powered-eSATA pogoplug-alike cheap boxes
<WarheadsSE> You're expecting a device like this to have eSATAp
<xxiao> not sure how much esatap disks are
gimli has quit [Quit: Verlassend]
<arokux_h> I've successfully booted 3.0.39+, not a big deal for you guys, but I'm happy, since I've found a bug in scripts/depmod.sh if kmod was compiled with --with-rootprefix=<some_directory>
pwhalen has quit [Read error: Connection reset by peer]
<Turl> RaYmAn: ping
<Turl> I've got the atag generator thing working :)
pwhalen has joined #arm-netbook
mnemoc_ has joined #arm-netbook
arokux_h has quit [Remote host closed the connection]
mnemoc_ has quit [Client Quit]
mnemoc_ has joined #arm-netbook
<hno> xxiao, backups which are stored in your home is fail. If your home burns down or you hae a burgler stealing your stuff then all is gone.
<hno> Turl, great. Please make sure it finds it's way into sunxi-tools.
<Turl> hno: yep :) need to ask RaYmAn what license does he want me to stick on his code and we'll have dumpatags + atags generator
<xxiao> hno: right. i'm thinking about truecrypt local pogoplug, S3 remotely dual copy
<xxiao> just built openwrt for pogoplug
* hno have a nas kind of device at his mother in law.
<hno> and don't care about encryption. Sensitive stuff is kept encrypted at file level.
mnemoc has quit [Quit: leaving]
mnemoc_ has quit [Quit: ZNC - http://znc.in]
mnemoc has joined #arm-netbook