IRC #olimex 2015-05-18

[13:03:51] <mark___> Hi! I have a A10 board which worked before, but now the memory appears to have become corrupt. Reading the UART output mentions "mmc init failed" with errcide -1 (full output https://bpaste.net/show/9bd9ebb47397). Also pressed the RESET button as suggested. Is there a common cause for this error, and can I try anything to fix it?
[13:12:05] <adj_> mark___, DRAM: 0 MiB?
[13:12:40] <adj_> are you using internal flash for writing?
[13:13:26] <lukas2511> i don't think it can init anything without memory :D
[13:14:26] <lukas2511> try a different uboot build, if that doesn't work.. well.. probably broken
[13:15:06] <mark___> adj_: Eh.. I use a sdhc for writing
[13:16:05] <adj_> try reloading the internal flash
[13:16:56] <mark___> how?
[13:27:22] <mark___> I'll try recompiling uboot from source and see if that changes anything
[13:27:47] <lukas2511> could also try to change the frequency
[13:27:48] <lukas2511> lower it a bit
[13:27:59] <lukas2511> (memory frequency)
[13:28:12] <mark___> Ok. How? :D
[13:28:22] <lukas2511> uh, somewhere in the uboot source :D
[13:28:42] <mark___> Haha, well that seems like a long shot given that it worked fine before
[13:29:05] <lukas2511> yea, but well, it wouldn't make things worse ;)
[13:30:11] <adj_> mark___, https://www.olimex.com/wiki/A10-OLinuXino-LIME
[13:30:12] <adj_> How to download new Android image to the NAND memory of my A10 board?
[13:30:50] <mark___> adj_: It doesnt have the 4GB nand flash memory
[13:31:00] <mark___> Using sdhc
[13:31:24] <adj_> then the next question of the same page
[13:31:38] <adj_> How do I write the official Android image to a micro SD card for my A10 board?
[13:32:05] <adj_> backup any useful information in the sd card
[13:32:39] <adj_> maybe sd card is faulty
[13:33:51] <mark___> Doesn't seem so, it mounts just fine on debian
[13:34:25] <adj_> mounting is not enough, returning healthy data is also important
[13:34:27] <adj_> ;)
[13:35:01] <adj_> maybe the image just corrupted, and wrinting it again resolves the issue
[13:35:12] <mark___> that could be
[13:35:16] <mark___> will try a different card
[14:44:51] <mark___> lukas2511: tried with latest u-boot source, different error now https://bpaste.net/show/fbdb4d1394c0
[14:44:56] <mark___> forgot about the frequency, will try that next
[15:28:45] <mark___> lukas2511: 768MHz https://bpaste.net/show/86b74900a2a1
[15:29:22] <lukas2511> not cpu, memory
[15:29:28] <mark___> ugh
[15:29:31] <mark___> yes
[15:29:57] <mark___> I blame the bad coffee
[15:30:28] <lukas2511> but still, the error message is weird
[15:33:09] <lukas2511> and uh, are you sure you are using the right bootloader config? this really is an a10 lime and not one of the old a10s micros or something else?
[15:34:04] <nedko> i have an idea to modify u-boot (spl) to work on all olinuxino variants i have
[15:34:18] <nedko> and store the configuration for specific board in the eeprom
[15:34:56] <nedko> do you think it could work?
[15:35:25] <mark___> lukas2511: yeah, that's what was ordered at least. The bootloader works just fine on a dozen other boards that were delivered together with this one
[15:36:17] <lukas2511> nedko: i don't think it will work
[15:36:49] <lukas2511> nedko: uboot changes stuff that gets compiled with the defintions on your device config
[15:37:02] <lukas2511> nedko: it's not just a runtime option that is predefined or something
[15:37:53] <nedko> lukas2511: can't all things get all things required be compiled in?
[15:38:16] <lukas2511> nedko: maybe, if you change the entire codebase of uboot...
[15:39:36] <nedko> alternatively, i could create some program that i'll load via FEL/USB that will read the EEPROM and then i will send the appropriate u-boot/kernel/etc via USB/FEL
[15:39:54] <lukas2511> mark___: maybe it had bad soldering from the beginning, happens from time to time
[15:40:19] <lukas2511> can sometimes run through all hardware tests without problems but will die on itself some time later
[15:41:04] <lukas2511> but i would test with different mmc and stuff, because the error looks weird, maybe uboot just says "0 MB", for weird reasons
[15:41:22] <mark___> lukas2511: I might try placing it in the oven on 200 degrees for 15 seconds... worked for Nvidia cards, who knows
[15:41:37] <lukas2511> yea
[15:41:41] <mark___> :P
[15:42:12] <lukas2511> i did that to some gpus, but the problems were mostly reoccuring some time later
[15:42:23] <lukas2511> but hey, it kinda works!
[15:42:59] <lukas2511> but i'd try everything else before throwing it in an oven
[15:43:16] <lukas2511> like try booting it with FEL and a usb stick
[15:44:02] <lukas2511> also try different uboot versions, mainline uboot is currently what you'd want, but maybe the old uboot-sunxi works better
[15:45:21] <lukas2511> which reminds me that i still need to figure out why my lime2 is dropping network packets like crazy... meh
[15:45:33] <nedko> mainline uboot failed for my new board (lime2) :(
[15:45:46] <lukas2511> naah it works perfectly fine on the lime2
[15:46:14] <nedko> lukas2511: what mainline u-boot git commit sha-1?
[15:47:39] <lukas2511> have 4564faeafbf11feb839e2e3f927be2f1a919ba96
[15:47:53] <lukas2511> but i guess it should work with newest version too
[15:50:46] <lukas2511> mark___: oh and uhm, most obvious thing, try different power supply
[15:51:45] <lukas2511> those cheap&crappy chinese power supplies are noisy as hell
[15:51:57] <nedko> lukas2511: i'll try
[15:52:33] <mark___> lukas2511: there've been other a10 lime boards which didn't boot because of mmc block read errors and such, changing the mod-poe-v2 never helped in those cases
[15:52:33] <nedko> i tried latest master and it didnt work
[15:53:40] <lukas2511> mark___: can you try connecting a 5V supply directly to the board? not with poe and stuff
[15:54:59] <lukas2511> nedko: mh, if i don't forget it i'll try latest master in the next few days
[16:00:24] <mark___> lukas2511: tried with 5V from a 230V adapter, same outcome (still cant mmc device)
[16:00:27] <mark___> +find
[16:00:31] <lukas2511> okay
[16:01:06] <nedko> lukas2511: a20 lime, correct?
[16:01:11] <nedko> uhm a20 lime2
[16:01:22] <lukas2511> nedko: yup
[16:01:56] <lukas2511> history says "make CROSS_COMPILE=armv7l-unknown-linux-gnueabihf- A20-OLinuXino-Lime2_defconfig"
[16:39:14] <nedko> lukas2511: maybe the fel variant doesnt work...
[16:39:37] <nedko> there isnt fel variant in that sha-1 :(
[16:40:03] <nedko> i'll try the non-fel variant with new boot method
[16:40:16] <lukas2511> uh fel, i actually never really used fel
[16:41:18] <nedko> it is very useful for my needs
[16:51:29] <nedko> lukas2511: the version you use boots my board as well
[16:53:09] <lukas2511> nedko: if you could check if you have packet loss when using this bootloader, that'd be nice
[17:29:52] <nedko> lukas2511: at some point i will. i need a kernel and a rootfs too :)