Project: The Handheld Hacking device, Clockwork Pi uConsole with Nerves

Off and on I’ve been trying to get the Clockwork Pi uConsole with a Raspberry Pi CM4 in it to work with Nerves.

Today before packing up for Code BEAM I actually got it going!

The hacked-at system is available here.

The part that eluded me from their original code was that some of the drivers were not compatible with Linux beyond the 5.1 or whatever they made it for. Connor helped me find a good patchset someone made for Raspberry Pi’s Linux kernel. I’m not finding the link right now.

I set it up. Then I had some challenges effectively moving the .dtbo files from the build directory to the right place.

Finally wrapped that up and it works.

I’ve done a number of iterations while travelling but haven’t managed to rotate the text mode display.

I also haven’t gotten the wifi working. If I don’t mount it in config.txt and run dtoverlay devterm-wifi it will tell me error -30 and that it failed to write /config which seems very odd.

I almost got USB connection working but the USB-C ports are weird on Pi-derived devices sometimes and this seems weird. I think I might get it if I find my OTG USB-A-to-A cable.

4 Likes

I tried rotating this sucker for my entire train ride up until the night train heading to Code BEAM.

Frank found the incantation in the last few hours if the conference (I think it took him several minutes and ChatGPT did not give the necessary answer).

2 Likes

Time to try and put a kiosk firmware on it and do some LiveView :slight_smile:

Kiosk!

2 Likes

And now it is a … LivePad?

The Liveputer? Livebook Pi?

4 Likes

Okay, trackball is not mis-installed. It is consistently 90 degrees off and cannot be mounted. So I have a config off or needed somewhere :smiley:

Fixed rollerball. Was a weston.ini config that differed from the ReTerminal DM which I am hacking off of.

Was lovely to use until it … turned off. Speculating but I think the default overclock of the ReTerminal is no good on battery/no cooling. So removing that.

Works, is stable. Need to fix wifi and hopefully USB tethering?

Took a break to improve the appearance and clarify what this device is for.

3 Likes

And now I have WiFi. Need to redo a bit of this on top of the rpi4 and rpi4 kiosk systems to slim things down and figure out what actually matters.

This patch has a lot of kernel config. Much of it irrelevant.

@ericr3r asked for the rotation of the text-mode display and I hadn’t even pushed the commit. So I did. Here it is:

The entire diff is this on the linux defconfig:

+ CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y

This allows fbcon to control the framebuffer orientation and all that. I didn’t have to change any rotation which I guess… great? Otherwise I could have put that in the cmdline.txt.

1 Like

This leaves me wondering. Is there a way to inject some UI into Livebook in a graveful way. Would be cool to have battery status and connection indicator :smiley: