#qi-hardware IRC log for Monday, 2013-02-18

apeleteI have a question for the people who work on the openwrt image for the nanonote14:06
apeletehow do you guys debug the uboot bootloader when working on it ?14:06
apeletedo you have a jtag accessory or do you use another tool ?14:08
xiangfu_using 'printf' and documents.14:30
xiangfu_and the ingenic released a very old u-boot source code. 1.1.6 IIRC. so we are not start from 0. there are some code that we can look into.14:31
apeletexiangfu_: ok, but what do you do when something goes wrong at uboot level ?14:38
apeleteI'm trying to modify the qi uboot to add jffs2 support in addition to ubifs14:39
xiangfu_apelete: I use 'printf' and double check the code.14:40
apeletexiangfu_: you use 'printf' in the uboot code ?14:41
xiangfu_apelete: there is jtag pins in ben nanonte. but I never use that.14:41
xiangfu_apelete: or serial_puts14:41
apeletexiangfu_: my uboot+kernel+image setup does not boot. I'm wondering if I should solder my nanonote to add a jtag/serial debug port14:42
xiangfu_you have to use serial port for sure.14:42
xiangfu_for the kernel output and uboot output.14:42
apeletexiangfu_: I guess I have no other choice then: I will have to solder a serial port on my nanonote...14:44
apeletethanks :)14:44
xiangfu_you are welcome.14:45
wpwrakyeha, jtag is overkill for something like this. i once used it (on gta02, not the ben) to debug an issue in the very first instructions of u-boot, long before it even had the serial port ready. there it was somewhat useful. but that's really a once-in-ten-years sort of situation.14:52
apeletewpwrak: the problem is I don't know another way of debugging early processes like uboot and the kernel14:55
apeletewpwrak: and the ben screen/resolution is way to small to read anything useful when these processes are crashing. do you have any advice ?14:56
apeletes/to small/too small/14:56
apelete(wow, a grammar bot :) )14:57
biotoh my god14:58
biotthat's great :-)14:58
wpwrakthe screen may not be reliable for such things. what works best is a serial console. that way, you can read the system's last words even if it completely shuts down afterwards.14:59
apeletehow do you setup a serial console without a serial/jtag port ?14:59
apeletethere is no serial output on the ben by default (hardware wise I mean)15:00
wpwrakhere is a drawing of serial debug hardware i once added: http://www.almesberger.net/misc/ben/idbg-v2-install.jpg15:00
wpwrakthere is also a second set of contacts but there, the outside->ben direction is shared with another function. here are more details: http://en.qi-hardware.com/wiki/Serial_console15:02
apeletewpwrak: ok, so we're back at the same point: I need to solder a few pins to have a serial console.15:10
wpwrakand something compatible with 3.3 V you can connect to. e.g., another ben or similar. or a RS-232 cable with a level converter, as described in the wiki15:13
apeletewpwrak: thanks for the tips. I was afraid to come down to the soldering iron solution, but I guess I will have no other choice.15:16
wpwraksince your code runs fairly late in the life of the system and crashes may be fairly benign to overall system status (e.g., you're unlikely to disable DRAM refresh or upset address translation), you may also be able to succeed with printing on the screen. if the amount of output is too large, you need to do some limiting. e.g., stop the system after the first error. then you have time to examine the reports, and some of the non-error status output th15:16
wpwrakat may have gone before them.15:16
wpwrakbut a serial console is certainly more convenient15:16
kristianpaulwpwrak: abstraction to a higher layer like verilog? or a foorplan description language?17:45
wpwrakoh, just anything above it. typically, it would be a very small abstraction. e.g., if wolfgang uses uint8_t for pin numbers in one and uint16_t in another, then the unifying interface would have uint16_t and maybe check the numbers when going to a uint8_t item.17:58
wpwrakbut it would really depend on the nature of the differences17:58
wpwraki'd assume that xc6 and xc7 are not fundamentally different. i.e., that xc7 still has flip-flops, luts, routes, etc. not, say, descriptions of quantum state.17:59
larscespecially the high level work flows will quite likely be the same20:06
ArtlavHi all.20:06
ArtlavAnyone know of an SSTV decoder for NanoNote?20:07
wpwrakArtlav: in my crystal ball, i see one in the future ... one that shall be called Artlav's SSTV decoder :)21:00
ArtlavWell, if i get to make one i'll share it. :) Would be a pity to waste the effort if there is one already, however.21:02
wpwraki wonder if anyone here has ever heard of SSTV before you mentioned it :)21:03
wpwrakperhaps you could adapt QSSTV (or take the parts you can use, and transplant them onto SDL)21:05
ArtlavSounds like a nice use for the nn - put it next to the receiver instead of a bulky laptop, and watch the pictures.21:28
--- Tue Feb 19 201300:00

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!