I have found that in this way you can get a nice message from nolo when an error occurs.. maybe this command can be useful for non-errored commands. this is the sample code and a demo:
(This reminds me to type a nolo commands table.) --------------------- char nolomsg[2048]; memset(nolomsg, '\0', 2048); usb_control_msg(dev, 192, 5, 0, 0, nolomsg, 2048, 2000); printf("NOLO says: %s\n", nolomsg); --------------------- $ sudo ./0xFFFF -p ../..//../os2k7on770dev.jffs2 Waiting for device... |found n770 (0421:0105) HW revision string: 'prod_code SU-18 hw_rev 1802' Root device is: flash Device's USB mode is 'client' RD mode is: on Current rd flag setting: disable OMAP watchdog : not set disable RETU watchdog : not set disable lifeguard reset: not set enable serial console : not set disable USB timeout : not set SWVERSION GOT: version:sw-release NOLO Version 0.9.14 Flashing rootfs (../..//../os2k7on770dev.jffs2) | hash: 0x7c30 size: 83886080 (05 00 00 00) [=] Bulkwriting the rootfs piece... 0% [-----------------------------------------------------------------] NOLO says: 0x00000000 | 49 6e 76 61 6c 69 64 20 6d 61 67 69 63 20 6f 6e Invalid magic on 0x00000010 | 20 4a 46 46 53 32 20 62 6c 6f 63 6b 20 30 00 00 JFFS2 block 0.. 0x00000020 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0x00000030 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0x00000040 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0x00000050 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0x00000060 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 0x00000070 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ - Invalid magic on JFFS2 block 0 --pancake _______________________________________________ 0xffff mailing list 0xffff@lists.nopcode.org https://lists.nopcode.org/mailman/listinfo/0xffff