Tuesday, 16 September 2008

Busybox keymaps

I'm currently developing an embedded system using BusyBox. I've had it up and running for a week or two and I'd been putting up with a US keyboard layout, quite annoying when I'm using a UK keyboard.

I finally took the time to look into solving it and found out that BusyBox uses a binary keymap rather than the usual Linux keymaps ("man keymaps" for more info).

Quick solution was to apt-get install busybox on my ubuntu box and run busybox dumpkmap > uk to dump my current keymap into the binary keymap format busybox understands. Running loadkmap <>in busybox now gives me the correct keymap. No more ">" when I'm expecting "|"!