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.

6 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).

4 Likes

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

1 Like

Kiosk!

3 Likes

And now it is a … LivePad?

The Liveputer? Livebook Pi?

7 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:

1 Like

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.

1 Like

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.

5 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.

1 Like

@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.

2 Likes

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:

1 Like

Carried on a wave of @doawoo I put Flutter on this bad, bad boy.

The worst part of this boy is that the mouse pointer is sideways because that’s not something Sony has implemented in their Flutter Embedder. Otherwise seems great.

If you haven’t seen that Digit is talking about Flutter :heart: Nerves at Code BEAM America you best get up to speed: https://codebeamamerica.com/

I did none of the work. I’m essentially doing QA :slight_smile:

5 Likes

That is such a cool device. I am also a big fan of Flutter. I’m glad to see that it’s found use in Nerves (which I don’t follow as closely as I should. Too many cool things, not enough time…)

2 Likes

Find where mouse pointer asset is and override it with rotated one as a workaround.

2 Likes

it also tracks in the wrong direction on the trackball :smiley:
But good try