Playing with AI - Pt. 2 and some Beaglebone Black fun
So I did continue playing with AI and got local GPT4All installation
on my new lenovo ideapad 3. Before that I did one thing I had been
dreading. I got rid of partition 2. Emptied it and deleted it, and
then expanded Partition 1 into that area. This was needed because my
WSL installation has been swelling up and up and I really needed more
space in C: drive. And managing junk in 100GB had become a chore.
Anyway after doing this, now I'm seeing regular hangups and issues
with volume-mgr. So there's some negative effect, but screw it. I
played around with GTP4All and found it to be a good enough solution
for local offline AI. Unfortunately I don't have any use case for such
a thing. I tried to configure it as an agent in Visual Studio Code and
things just would not work. There were errors, documentation said one
thing and another happened at runtime, and there were issues. So I
gave up after some time. So yeah tools like Cursor which give you an
amazingly well-working agent are of some value.
What next? I have been using ChatGT, Claude etc to create some
software code and they work decently. Good for a lazy person. Coming
back to Beaglebone black, I don't remember if I have mentioned it here
on this blog at any time. Let me check. Yes I did. I played around
with it and actually did not use it at all. I had bought it as a
placeholder for an office project and I had to get another dev-board
eventually on which I did all the development. So coming back to the
beaglebone black, I thougt I could check out some of these libraries
I'm making with the help from AI on this board and maybe get some more
learnings out of it. Boy oh boy, was I in for a shock!! So much
learnings.
Let me start from what the board had - a 32GB card with debian 11 on
it and working to a console GUI. I tried to get wifi to work and it
did not work. Then I used my spare Asus router that I use as kind of
wifi-extender and basically wired ethernet hub. Connected both via
ethernet cable and beagle had internet. Tried to get weston working
but no luck. Most all suggested to use X11 with OpenBox. But those
days are quite in past so I looked around and found out there is
debian 12 image. Downloaded it to SD Card and got it booted. Getting
weston to work was a pain. But a lot of R&D finally pointed to
settings of use-pixman=true and backend of drm and color of rgb565.
Very specific settings and with these only it works. Anyway got weston
working and copied my code, built demo app and had it launched. Then
ran into performance issues. Turns out debian 12 does not have any
drivers for powervr sgx gpu. And all the rendering is happening in
software. No problem for a 4.3/7Inch screen with max 800x480
resolution. I was in 1280x720 resolution. Anyway spend 8 hours trying
to go back to kernel 5.10 (debian 12 comes with 6.13) and failed to
get weston working. So lots of trial and error and lots of
frustration. Anyway at last I have given up on hardware assisted
rendering and HMI performance. I can see the apps launch and work
decently and that's good enough. Maybe I'll try to figure out GPIO
channels and try to use them. That would be awesome. Cheers!!
on my new lenovo ideapad 3. Before that I did one thing I had been
dreading. I got rid of partition 2. Emptied it and deleted it, and
then expanded Partition 1 into that area. This was needed because my
WSL installation has been swelling up and up and I really needed more
space in C: drive. And managing junk in 100GB had become a chore.
Anyway after doing this, now I'm seeing regular hangups and issues
with volume-mgr. So there's some negative effect, but screw it. I
played around with GTP4All and found it to be a good enough solution
for local offline AI. Unfortunately I don't have any use case for such
a thing. I tried to configure it as an agent in Visual Studio Code and
things just would not work. There were errors, documentation said one
thing and another happened at runtime, and there were issues. So I
gave up after some time. So yeah tools like Cursor which give you an
amazingly well-working agent are of some value.
What next? I have been using ChatGT, Claude etc to create some
software code and they work decently. Good for a lazy person. Coming
back to Beaglebone black, I don't remember if I have mentioned it here
on this blog at any time. Let me check. Yes I did. I played around
with it and actually did not use it at all. I had bought it as a
placeholder for an office project and I had to get another dev-board
eventually on which I did all the development. So coming back to the
beaglebone black, I thougt I could check out some of these libraries
I'm making with the help from AI on this board and maybe get some more
learnings out of it. Boy oh boy, was I in for a shock!! So much
learnings.
Let me start from what the board had - a 32GB card with debian 11 on
it and working to a console GUI. I tried to get wifi to work and it
did not work. Then I used my spare Asus router that I use as kind of
wifi-extender and basically wired ethernet hub. Connected both via
ethernet cable and beagle had internet. Tried to get weston working
but no luck. Most all suggested to use X11 with OpenBox. But those
days are quite in past so I looked around and found out there is
debian 12 image. Downloaded it to SD Card and got it booted. Getting
weston to work was a pain. But a lot of R&D finally pointed to
settings of use-pixman=true and backend of drm and color of rgb565.
Very specific settings and with these only it works. Anyway got weston
working and copied my code, built demo app and had it launched. Then
ran into performance issues. Turns out debian 12 does not have any
drivers for powervr sgx gpu. And all the rendering is happening in
software. No problem for a 4.3/7Inch screen with max 800x480
resolution. I was in 1280x720 resolution. Anyway spend 8 hours trying
to go back to kernel 5.10 (debian 12 comes with 6.13) and failed to
get weston working. So lots of trial and error and lots of
frustration. Anyway at last I have given up on hardware assisted
rendering and HMI performance. I can see the apps launch and work
decently and that's good enough. Maybe I'll try to figure out GPIO
channels and try to use them. That would be awesome. Cheers!!
Comments
Post a Comment