Debian Bookworm for OpenFrame

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

We've had a little hiccough on the build server for Bookworm, but it's all fixed now.

The build script couldn't find the latest version of the kernel to download, so we hung on 6.1.92 for a while there. Version 6.1.96 is compiling now with all fresh packages. 👍
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

roobarb! wrote: Wed Jul 03, 2024 2:15 pm We've had a little hiccough on the build server for Bookworm, but it's all fixed now.

The build script couldn't find the latest version of the kernel to download, so we hung on 6.1.92 for a while there. Version 6.1.96 is compiling now with all fresh packages. 👍
Hi Boss

O2 Joggler: image on usb stick

Just to report that the wireless network is not working on either the Bullseye or Bookworm Images :(

Ethernet works

I fill in the necessary details, save and upon boot/reboot there is no IP address printed on the Joggler screen

Further investigation reveals that /boot/network.yaml is wiped clean

ronnie
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

Ta, Ronnie - I'll see if I can investigate this evening.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

I'm afraid it's working perfectly at this end on both versions running Bookworm with 6.1.98 and Bullseye with 5.10.222. This is with the default RT2700 USB stick though - have you changed yours for an updated model?
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

roobarb! wrote: Thu Jul 25, 2024 1:38 am I'm afraid it's working perfectly at this end on both versions running Bookworm with 6.1.98 and Bullseye with 5.10.222. This is with the default RT2700 USB stick though - have you changed yours for an updated model?
I never realised there was / is a 'Default' usb stick :)

I just pick up the nearest one that is lying around and have never experienced this problem before.

I'll try with a Samsung Fit that I have and also a SD card in a reader (which is pretty ugly)

Thanks anyway, I'll report back.

Before you jet of again to Blackpool 8-) I sent a Mammoth message a while ago, and posted on here (somewhere) a link to a post from Ralphy on Slimdevices forum about a change that is required for Squeezeplay. I did not see an acknowledgement, so I guess you missed it, it should still be up that that board ?.

I have to say I don't grasp how the messaging thing works, so I might have got it wrong :roll:

ronnie
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

I just tried again with the last Bookworm image burnt to a Sandisk SD card in a usb reader/writer

I connected it to the O2 Jogller via a usb hub and plugged in a keyboard.

I connected an Ethernet cable to the Joggler and powered it on

By the way, when the install completes the default screen message has no IP address displayed

I logged in and filled in my details in /boot/network.yaml, saved and rebooted

When the Joggler came back up there was only an ethernet connection and the /boot/network.yaml files was blank.

I rebooted again and found I could not log in via SSH using PuTTY

Screenshot

Image

ronnie
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

Man in a van wrote:Thu Jul 25, 2024 7:54 amI never realised there was / is a 'Default' usb stick :)
Sorry, I mean the USB stick which is the wifi interface inside the Joggler - it's just a USB adapter plugged into an internal port and is easily swapped for another type. The default is a Ralink RT2700, but you could swap it for something with 5 GHz wireless. I've even used cellular 5G adapters!
Man in a van wrote:I logged in and filled in my details in /boot/network.yaml, saved and rebooted
Are you definitely getting the format right in that file? For a network called "BadgerTimes" and the password "lemonade" it should be:

Code: Select all

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: true
  wifis:
    wlan0:
      dhcp4: true
      access-points:
        BadgerTimes:
          password: lemonade
Here's something that'll show the problem - start with a fresh image and SSH into it. Configure /boot/network.yaml and instead of rebooting, run

Code: Select all

sudo of-netplan
and post back what the output says.
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

@roobarb!

I'm such a fool :( :? :roll:

I have been filling that form in for years and this week, for some reason decided the network name went on the right of the colon

I'm so ashamed :oops: :oops: :oops:

I do apologise for wasting your time

Code: Select all

of@openframe:~$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 02:0e:8e:22:9d:76 brd ff:ff:ff:ff:ff:ff
    altname enp1s0
    inet 192.168.1.207/24 brd 192.168.1.255 scope global dynamic eth0
       valid_lft 1814349sec preferred_lft 1814349sec
    inet6 2a00:23c6:eb99:d701:e:8eff:fe22:9d76/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 297sec preferred_lft 117sec
    inet6 fe80::e:8eff:fe22:9d76/64 scope link
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:0e:8e:22:9d:76 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.96/24 brd 192.168.1.255 scope global dynamic wlan0
       valid_lft 1814349sec preferred_lft 1814349sec
    inet6 2a00:23c6:eb99:d701:20e:8eff:fe22:9d76/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 249sec preferred_lft 69sec
    inet6 fe80::20e:8eff:fe22:9d76/64 scope link
       valid_lft forever preferred_lft forever
of@openframe:~$

ronnie
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

Man in a van wrote: Fri Jul 26, 2024 2:34 pm I'm such a fool :( :? :roll:
Haha, easily done! :D

To be fair, it should probably do something more sensible than breaking the networking when it's formatted incorrectly. I shall endeavour to improve it!
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
shadow1901
Posts: 67
Joined: Wed Jan 15, 2014 4:03 pm

Re: Debian Bookworm for OpenFrame

Post by shadow1901 »

Man in a van wrote: Mon Jul 10, 2023 1:28 pm Just a note to say that "sudo of-expand" still does not work on the internal ram of the Cisco Openframe :?: :!: :?

On both Bullseye and Bookworm it goes into a boot loop on rebooting :roll:

Sigh.....................................................!

ronnie
Any news about?
By my OpenFrame's 2 devices it doesn't works
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

shadow1901 wrote: Wed Aug 07, 2024 12:59 pm
Man in a van wrote: Mon Jul 10, 2023 1:28 pm Just a note to say that "sudo of-expand" still does not work on the internal ram of the Cisco Openframe :?: :!: :?

On both Bullseye and Bookworm it goes into a boot loop on rebooting :roll:

Sigh.....................................................!

ronnie
Any news about?
By my OpenFrame's 2 devices it doesn't works
Can confirm the situation is unchanged

Image


Code: Select all

of@openframe:~$ sudo of-expand

This will expand the root filesystem to use any unallocated space on this drive.

The system will reboot immediately to begin resizing. Please DO NOT interrupt the
process while there is drive activity and the /tmp/expanding file still exists.

WARNING! Resizing the root partition risks potential data loss!

Cancel with <CTRL-C> otherwise resizing now...

Found / on /dev/mmcblk2 partition 2 starting at .

Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

This disk is currently in use - repartitioning is probably a bad idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.


Command (m for help):
Disk /dev/mmcblk2: 1.91 GiB, 2055208960 bytes, 4014080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0af4ce3c

Device         Boot Start     End Sectors   Size Id Type
/dev/mmcblk2p1 *        1   83984   83984    41M  e W95 FAT16 (LBA)
/dev/mmcblk2p2      83985 2006111 1922127 938.5M 83 Linux

Command (m for help): Partition number (1,2, default 2):
Partition 2 has been deleted.

Command (m for help): Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (83985-4014079, default 86016): Last sector, +/-sectors or +/-size{K,M,G,T,P} (86016-4014079, default 4014079):
Created a new partition 2 of type 'Linux' and of size 1.9 GiB.

Command (m for help): All space for primary partitions is in use.

Command (m for help): The partition table has been altered.
Failed to remove partition 2 from system: Device or resource busy
Failed to add partition 2 to system: Device or resource busy

The kernel still uses the old partitions. The new table will be used at the next reboot.
Syncing disks.

Disk /dev/mmcblk2: 1.91 GiB, 2055208960 bytes, 4014080 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0af4ce3c

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk2p1 *        1   83984   83984   41M  e W95 FAT16 (LBA)
/dev/mmcblk2p2      86016 4014079 3928064  1.9G 83 Linux


The table for /dev/mmcblk22 has been extended and the partition must now be resized.
This will take a few minutes, depending upon the size of the new partition.

Do not power off the system until the file /tmp/expanding has disappeared.

The system will reboot now...

Broadcast message from root@openframe on pts/1 (Wed 2024-08-07 22:36:06 BST):

The system will reboot now!

of@openframe:~$
ronnie
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

shadow1901 wrote: Wed Aug 07, 2024 12:59 pm
Man in a van wrote: Mon Jul 10, 2023 1:28 pm Just a note to say that "sudo of-expand" still does not work on the internal ram of the Cisco Openframe :?: :!: :?

On both Bullseye and Bookworm it goes into a boot loop on rebooting :roll:

Sigh.....................................................!

ronnie
Any news about?
By my OpenFrame's 2 devices it doesn't works
I tried with Bullseye; this is the internal ram

Image

I ran sudo of-expand and the joggler went into a boot loop

Image

I had seen this screen on the Bookworm image and I used GParted to format it to ext2.

When I closed the joggler, removed the usb hub with the xubuntu and rebooted it still went into a boot loop.

This does not happen when using an external device (ssd, usb or sd card) to run either Bullseye or Bookworm image



ronnie
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

Did you OCR the command line output? I spotted what appears to be a mistake, but I'm not certain.

I'm not near any OpenFrames at the moment (weird, I know) but if I can coax an OF2 into life I'll take a look. In the meantime you could try running the commands by hand - the instructions would be the same as those for a Raspberry Pi manual resize. Don't format or you'll lose the OS. :)
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

roobarb! wrote: Thu Aug 08, 2024 6:36 pm Did you OCR the command line output? I spotted what appears to be a mistake, but I'm not certain.

I'm not near any OpenFrames at the moment (weird, I know) but if I can coax an OF2 into life I'll take a look. In the meantime you could try running the commands by hand - the instructions would be the same as those for a Raspberry Pi manual resize. Don't format or you'll lose the OS. :)
I had to look up OCR :roll:

I guess you are referring to

Code: Select all

Command (m for help): The partition table has been altered.
Failed to remove partition 2 from system: Device or resource busy
Failed to add partition 2 to system: Device or resource busy
I just copied the printout from PuTTY ;)

I'll check if the lines are there with an external usb stick

ronnie
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

I Just made a Bulleye image and ran th expand comand, which completed successfully, no warnings

Code: Select all

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
of@openframe:~$ sudo of-expand

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for of:

This will expand the root filesystem to use any unallocated space on this drive.

The system will reboot immediately to begin resizing. Please DO NOT interrupt the
process while there is drive activity and the /tmp/expanding file still exists.

WARNING! Resizing the root partition risks potential data loss!

Cancel with <CTRL-C> otherwise resizing now...

Found / on /dev/sda partition 2 starting at 83985.

Welcome to fdisk (util-linux 2.36.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): Disk /dev/sda: 29.72 GiB, 31914983424 bytes, 62333952 sectors
Disk model: 1081CS0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1c4dcb95

Device     Boot Start     End Sectors   Size Id Type
/dev/sda1  *        1   83984   83984    41M  e W95 FAT16 (LBA)
/dev/sda2       83985 2006111 1922127 938.5M 83 Linux

Command (m for help): Partition number (1,2, default 2):
Partition 2 has been deleted.

Command (m for help): Partition type
   p   primary (1 primary, 0 extended, 3 free)
   e   extended (container for logical partitions)
Select (default p): Partition number (2-4, default 2): First sector (83985-62333951, default 86016): Last sector, +/-sectors or +/-size{K,M,G,T,P} (83985-62333951, default 62333951):
Created a new partition 2 of type 'Linux' and of size 29.7 GiB.
Partition #2 contains a ext2 signature.

Command (m for help):
All space for primary partitions is in use.

Command (m for help): The partition table has been altered.
Syncing disks.

Disk /dev/sda: 29.72 GiB, 31914983424 bytes, 62333952 sectors
Disk model: 1081CS0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1c4dcb95

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1  *        1    83984    83984   41M  e W95 FAT16 (LBA)
/dev/sda2       83985 62333951 62249967 29.7G 83 Linux


The table for /dev/sda2 has been extended and the partition must now be resized.
This will take a few minutes, depending upon the size of the new partition.

Do not power off the system until the file /tmp/expanding has disappeared.

The system will reboot in 3
ronnie
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

@roobarb

There has been no Bookworm since July 12th, is it broken ?

ronnie
User avatar
roobarb!
Posts: 1756
Joined: Sat Mar 05, 2011 1:30 pm
Location: Salford, UK
Contact:

Re: Debian Bookworm for OpenFrame

Post by roobarb! »

Man in a van wrote: Fri Sep 13, 2024 4:01 pmThere has been no Bookworm since July 12th, is it broken ?
It did break, and I told myself I'd fix it and didn't get chance.

Turned out is was just my rudimentary kernel matching which fell over when 6.11 was added. The script would match 6.11 before 6.1, then fall over as there's no .config file for that kernel version.

Version 6.1.111 is being compiled right now. 👍
BirdsLikeWires - Get fresh builds of Debian Bullseye and Bookworm for OpenFrame with the latest 5.10 and 6.1 kernels! 8-)
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

Good show :)
Man in a van
Posts: 504
Joined: Sun Aug 25, 2013 2:39 pm
Location: Staffordshire. UK

Re: Debian Bookworm for OpenFrame

Post by Man in a van »

@roobarb!

the last two Bookworm images both fail to start with a kernel panic 17th and 21 st October

ronnie
Post Reply