Re: msdos partition is too small in arm64/miniroot68.img
On 2021-01-07, tech-lists wrote: > What I wanted to do was to write latest firmwares from > https://github.com/pftf/RPi4 as described in OpenBSD/6.8/arm64/INSTALL.arm64 > into the (mdconfig-mounted) msdos partition of miniroot68.img prior to writing > it to the sdcard as I didn't have an additional USB storage device. That is not as described in the install notes, they specifically say to use a second storage device exactly to avoid this complication. (They don't need to describe every possible method, only a simple one that works).
Re: msdos partition is too small in arm64/miniroot68.img
On Thu, Jan 07, 2021 at 01:01:53PM +, tech-lists wrote: > On Wed, Jan 06, 2021 at 09:01:19PM +, a...@sdf.org wrote: > > [...method...] > > thanks for that, I'll let you know how I get on. I think your > problem with spontaneous crashes might be down to swapfile, > sdcard is unsuitable for this. I've had good results with > arm64/freebsd-current/swapfile on usb3 spinning rust/ > tmpdir on tmpfs. Very quick for what it is. This other rpi4 > will hopefully be a desktop replacement. Part of the reason > I'd like openbsd for this is for binary OS upgrades on this > platform. > -- > J. So after advising the list to put tmp on mfs, you think I'm using swap. In the sd card. Come on man!
Re: msdos partition is too small in arm64/miniroot68.img
tech-lists wrote: > On Thu, Jan 07, 2021 at 09:55:28AM -0700, Theo de Raadt wrote: > >tech-lists wrote: > > > >> On Wed, Jan 06, 2021 at 09:25:01AM -0700, Theo de Raadt wrote: > >> >The miniroot is 33MB because it contains many install firmwares, and > >> >it is 97% full. > >> > > >> >I suggest you find another way of installing. > >> > > >> > >> Is there a technical (or some other reason I'm not seeing) why > >> miniroot68.fs > >> has been made as small as it is, and not some other size like 48MB, which > >> would allow the msdos partition to be made larger? > > > >Why 48MB? Why not 2GB? Why not make miniroot68.img be 2GB for download > >to satisfy some bizzare usage pattern? > > > >All media are created to be small, no larger than they need to be. > > OK I get it. The install requires an additional USB storage device. > > What I wanted to do was to write latest firmwares from > https://github.com/pftf/RPi4 as described in > OpenBSD/6.8/arm64/INSTALL.arm64 > into the (mdconfig-mounted) msdos partition of miniroot68.img prior to writing > it to the sdcard, as I didn't have an additional USB storage device. Modifying the miniroot is not a stock usage case. I firmly believe that INSTALL.arm64 text *should not exist*. Such special cases increase the messiness of using OpenBSD. > The latest firmwares (v1.22) unzip to 5.4MB but the msdos partition is only > 4.0MB. The firmware should be updated in the tree, and instructions encouraging people to do weird stuff should not exist. That is my take on this.
Re: msdos partition is too small in arm64/miniroot68.img
On Thu, Jan 07, 2021 at 09:55:28AM -0700, Theo de Raadt wrote: tech-lists wrote: On Wed, Jan 06, 2021 at 09:25:01AM -0700, Theo de Raadt wrote: >The miniroot is 33MB because it contains many install firmwares, and >it is 97% full. > >I suggest you find another way of installing. > Is there a technical (or some other reason I'm not seeing) why miniroot68.fs has been made as small as it is, and not some other size like 48MB, which would allow the msdos partition to be made larger? Why 48MB? Why not 2GB? Why not make miniroot68.img be 2GB for download to satisfy some bizzare usage pattern? All media are created to be small, no larger than they need to be. OK I get it. The install requires an additional USB storage device. What I wanted to do was to write latest firmwares from https://github.com/pftf/RPi4 as described in OpenBSD/6.8/arm64/INSTALL.arm64 into the (mdconfig-mounted) msdos partition of miniroot68.img prior to writing it to the sdcard, as I didn't have an additional USB storage device. The latest firmwares (v1.22) unzip to 5.4MB but the msdos partition is only 4.0MB. thanks, -- J. signature.asc Description: PGP signature
Re: msdos partition is too small in arm64/miniroot68.img
tech-lists wrote: > On Wed, Jan 06, 2021 at 09:25:01AM -0700, Theo de Raadt wrote: > >The miniroot is 33MB because it contains many install firmwares, and > >it is 97% full. > > > >I suggest you find another way of installing. > > > > Is there a technical (or some other reason I'm not seeing) why miniroot68.fs > has been made as small as it is, and not some other size like 48MB, which > would allow the msdos partition to be made larger? Why 48MB? Why not 2GB? Why not make miniroot68.img be 2GB for download to satisfy some bizzare usage pattern? All media are created to be small, no larger than they need to be.
Re: msdos partition is too small in arm64/miniroot68.img
Christer Solskogen wrote: > On Wed, Jan 6, 2021 at 5:39 PM Theo de Raadt wrote: > > The miniroot is 33MB because it contains many install firmwares, and > it is 97% full. > > True, but the miniroot has space available to expand the msdos partition. The miniroot has two filesystems. a is UFS and 97% full i is msdos and 93% full. We build all miniroots as small as possible. Can this conversation backtrack please: Explain why you think the filesystems need to be larger.
Re: msdos partition is too small in arm64/miniroot68.img
On Thu, Jan 07, 2021 at 02:20:54PM +, a...@sdf.org wrote: On Thu, Jan 07, 2021 at 01:01:53PM +, tech-lists wrote: On Wed, Jan 06, 2021 at 09:01:19PM +, a...@sdf.org wrote: [...method...] thanks for that, I'll let you know how I get on. I think your problem with spontaneous crashes might be down to swapfile, sdcard is unsuitable for this. I've had good results with arm64/freebsd-current/swapfile on usb3 spinning rust/ tmpdir on tmpfs. Very quick for what it is. This other rpi4 will hopefully be a desktop replacement. Part of the reason I'd like openbsd for this is for binary OS upgrades on this platform. -- J. So after advising the list to put tmp on mfs, you think I'm using swap. In the sd card. Come on man! ;) (in mitigation, I didn't want to presume). Also, I don't know what openbsd actually has in this context, as I've not got to the install stage yet. It's just that I found similar random crashes with raspios, and that *did* have a swapfile. I'm not sure how it's mounted or how it works in the raspios context, other than "it is a swapfile". -- J. signature.asc Description: PGP signature
Re: msdos partition is too small in arm64/miniroot68.img
On Wed, Jan 06, 2021 at 09:01:19PM +, a...@sdf.org wrote: [...method...] thanks for that, I'll let you know how I get on. I think your problem with spontaneous crashes might be down to swapfile, sdcard is unsuitable for this. I've had good results with arm64/freebsd-current/swapfile on usb3 spinning rust/ tmpdir on tmpfs. Very quick for what it is. This other rpi4 will hopefully be a desktop replacement. Part of the reason I'd like openbsd for this is for binary OS upgrades on this platform. -- J. signature.asc Description: PGP signature
Re: msdos partition is too small in arm64/miniroot68.img
On Wed, Jan 06, 2021 at 09:25:01AM -0700, Theo de Raadt wrote: The miniroot is 33MB because it contains many install firmwares, and it is 97% full. I suggest you find another way of installing. Is there a technical (or some other reason I'm not seeing) why miniroot68.fs has been made as small as it is, and not some other size like 48MB, which would allow the msdos partition to be made larger? thanks, -- J. signature.asc Description: PGP signature
Re: msdos partition is too small in arm64/miniroot68.img
On Wed, Jan 06, 2021 at 03:53:53PM +, tech-lists wrote: > Hi, > > I'm trying to install openbsd 6.8 on a raspberry pi 4/8GB. The files I need > to add to the msdos partition are, in total, too > large to fit (the partition is only 4MB) > > Is there some method of increasing the msdos partition size > of the miniroot.fs image? I'd be doing this from either a freebsd > or linux desktop. On freebsd, I can virtualise the image with mdconfig. Or > is there some other way round this, like re-writing the image. I've been testing openbsd on a raspberry pi 4 8GB, on the sd card. I use only openbsd, but you can virtualize it with qemu to format and copy the partitions. This is my experience: * Download the current miniroot.fs (I've used only current). * Create a vnode disk with vnconfig(8) of the miniroot image to mount its partitions. * Format the sd card with fdisk, using mbr partitions: +8M fat. rest for openbsd. * Disklabel the sd card and create the file systems. * Copy the content of the miniroot partitions to the sd card. * Copy the content of the uefi firmware to the fat partition of the sd card: https://github.com/pftf/RPi4/releases * Boot the rpi, press Esc to enter the uefi menu. Disable the RAM limit. Set acpi+dtb. * At the installer prompt, set the tty to the framebuffer: set tty fb0 * Install OpenBSD like any other arm board. I suggest to use a mfs disk for tmp, the performance of iridium is enormously improved. I've problems with some applications been killed randomly. At first I thought that the limits on login.conf were responsible, but it doesn't look like that. If I found the problem I'll post it. Regards, adr.
Re: msdos partition is too small in arm64/miniroot68.img
On Wed, Jan 6, 2021 at 5:39 PM Theo de Raadt wrote: > The miniroot is 33MB because it contains many install firmwares, and > it is 97% full. > > True, but the miniroot has space available to expand the msdos partition. OP: Search the list, I've described a way to do that after you've written the image to a USB drive/stick.
Re: msdos partition is too small in arm64/miniroot68.img
The miniroot is 33MB because it contains many install firmwares, and it is 97% full. I suggest you find another way of installing. > I'm trying to install openbsd 6.8 on a raspberry pi 4/8GB. The files I > need to add to the msdos partition are, in total, too > large to fit (the partition is only 4MB) > > Is there some method of increasing the msdos partition size > of the miniroot.fs image? I'd be doing this from either a freebsd > or linux desktop. On freebsd, I can virtualise the image with > mdconfig. Or is there some other way round this, like re-writing the > image. > > thanks, > -- > J.
msdos partition is too small in arm64/miniroot68.img
Hi, I'm trying to install openbsd 6.8 on a raspberry pi 4/8GB. The files I need to add to the msdos partition are, in total, too large to fit (the partition is only 4MB) Is there some method of increasing the msdos partition size of the miniroot.fs image? I'd be doing this from either a freebsd or linux desktop. On freebsd, I can virtualise the image with mdconfig. Or is there some other way round this, like re-writing the image. thanks, -- J. signature.asc Description: PGP signature