On 14-05-11 10:59 PM, Sascha Hauer wrote: > On Fri, May 09, 2014 at 03:59:11PM -0700, Owen Kirby wrote: >> From 299ffc6a961c807b118605bdd9e736c7b096fec9 Mon Sep 17 00:00:00 2001 >> From: Owen Kirby <osk@xxxxxxxxxx> >> Date: Fri, 9 May 2014 15:14:30 -0700 >> Subject: [PATCH] Add readmem command to read values out of memory. >> >> I was trying to do something conditionally from a shell script based on the type >> of image present in flash, and finding it rather cumbersome to do. So I added a >> command that reads values out of memory and into shell variables as hexadecimal. > Such a functionality might come in handy and indeed it seems to be hard > to archieve with other commands. > > Have you looked into the filetype stuff? This could solve your problem > without having to interpret hex values from shell. See common/filetype.c > and commands/filetype.c. Ooh! That's exactly what I needed, and it looks much more sophisticated than what I threw together. I really should have spent more time to RTFM first. Please feel free to drop this patchsince it's no longer needed. > >> +config CMD_READMEM >> + tristate >> + default y > No default y please, just drop this line. My bad, that was a copy/paste error. Thanks, Owen _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox