• solo
    • post

    SFTP implementation-level notes

    some of the server implementations appear to be buggy and/or not totally spec compliant. SFTP is a “subsystem” mechanism of SSH, slightly vaguely defined at the connection protocol RFC-4254 layer of the SSH arch. first you have to open a session, then you can start a shell, execution of some command, or a “predefined subsystem” on the server. SFTP is one of the latter. it turns out there are actually a whole bunch of different SFTP versions, not one of which appears to have made it to an official RFC number from IETF, all remain personal or official drafts.
    • solo
    • post

    emitting uevents with extra env info

    the number of different uevent actions that can be emitted by the kernel these days is limited, and seems to be fixed. from include/linux/kobject.h: 40 /* 41 * The actions here must match the index to the string array 42 * in lib/kobject_uevent.c 43 * 44 * Do not add new actions here without checking with the driver-core 45 * maintainers. Action strings are not meant to express subsystem 46 * or device specific properties.
    • solo
    • post

    crosstool-NG HOWTO & gotchas

    cross-toolchains are typically used to build code that is supposed to run on a machine with a different architecture, e.g. when developing embedded code for an ARM-based box on a x86 dev machine. however, they’re also very useful when you want to make sure that all the devs in a group use exactly the same set of toolchain binaries and libraries regardless of which versions of gcc, headers and libraries those devs have installed locally on their dev machines.