RC15
Rick Murray (539) 13806 posts |
I think the image ought to be 4GB. I don’t know about you guys, but it is damn near impossible to find 2GB cards in the shops, and when you do find one, it is often noted as being “SD” as opposed to “SDHC” for compatibility with older devices. That’s a clever way of saying “costs more than a 16GB branded card”! |
Jess Hampshire (158) 865 posts |
I still don’t understand why we have to have this dos partition as a file hack. It would be much nicer if the disk structure had ADFS as the first partition, with a DOS style entry for the registered type, and then had the FAT partition after. (The remainder of the disk would be able to be manipulated with regular tools on other systems.) |
Chris Hall (132) 3554 posts |
It is possible to mark the RISC OS partition with its length etc. (appears in partitioning software as type unknown) and to mark the DOS partition (as normal) but you then have difficulty in saving CMOS settings as you can’t easily see the DOS partition and not at all from SDFS. Using fat32fs has its own issues. Better is to make RISC OS aware of partition tables, identifying where the filecore partition and the DOS partition (separate) are located so that it can see the DOS partition on is own. |
Steve Pampling (1551) 8155 posts |
Because the RO file system doesn’t support multiple partitions at present and the first stage bootloader needs a FAT style partition to load the second stage bootloader from.
Indeed it would, which is probably why the Filing System Improvements part 2 bounty was created… |
Jess Hampshire (158) 865 posts |
But that’s not what I suggested. RISC OS doesn’t support partitioning at present. However it does support different disk sizes. It also ignores partition tables. Therefore create a regular format as though the disk is smaller, Then make a corresponding entry in the partition table (apparently ROOL have registered a type for ADFS). Then the FAT partition (and others for different OSes) can be created in the space remaining. This should work with current RISC OS (for the single partition only) and be compatible with partition aware OSes (including hopefully a future RISC OS). i.e a small stepping stone to the bounty |
Rick Murray (539) 13806 posts |
Problem. ADFS expects that it is the first (only?) thing on a device. If it was as simple as sticking FAT at the end, we wouldn’t need this complicated bit of magic… |
Jess Hampshire (158) 865 posts |
Is the bootloader that dumb? It just looks at where the first partition should start rather than the partition table? (Even it it’s hard wired to the first entry, that’s shouldn’t be a problem) |
Steve Pampling (1551) 8155 posts |
Minor amendment to your text. ADFS isn’t the issue and I’m pretty sure it isn’t present on various of the current builds (OMAP3 for one) |
Steve Pampling (1551) 8155 posts |
Yes. That looks for a file system holding the second stage bootloader which is what sits in that hacked in FAT based partition. Limited space for the code and consequent limited capability for reading file systems. |
Rick Murray (539) 13806 posts |
Steve – fair point, I was writing it in a hurry… It is likely FileCore rather than any specific file system (although some in the past have worked around this in various proprietary ways, such as Simtec IDEFS). Yes – bootloaders are generally extremely dumb. Look at the OMAP where not only does the FAT have to be the first thing on the device, it also needs “MLO” to be the first thing it finds or else it just won’t boot… |
Jess Hampshire (158) 865 posts |
Update – I just used gparted on an old pi card I removed all the partitions except the pi-boot. I then resized and moved it so there was 1GB empty before it, and formatted it. I copied the contents of a NOOBS download to it and tried it. It worked as far as to the partition resizing, (understandable). This implies that whereas RISCOS needs the first space on the drive, the bootloader needs the first partition entry. These are not mutually exclusive, though I expect there will be a limit within which the pi boot partition must be contained. |
David Feugey (2125) 2709 posts |
We don’t. It’s just a way to access the DOS partition from RISC OS. With Systemdisc you have: Alternative : And it will work perfectly too. But no Loader any more. |
Rick Murray (539) 13806 posts |
I should point out that the Pi bootloader is quite clever – so one can do stuff like unpacking NOOBS to a blank card and It Just Works. |
Jess Hampshire (158) 865 posts |
As I said, I tested my Pi with a single partition that was not at the physical start of the the disk and it loaded. This thread is about the Pi release, not those for any other systems, so if they look for a DOS partition at the start of the drive, rather than where the first partition entry says, why would that be relevant? Although it would potentially allow one image to do the Pi and another system. |
Rick Murray (539) 13806 posts |
I wonder how many people have taken the Pi image, reformatted the FAT part, and set it up for a different device? Certainly it is simpler than a FAT (micro)SD card and a FileCore partition on another (USB) device. When I formatted my uSD card with SystemDisc, I set it up first with the boot files for the Beagle. Afterwards, I added the Pi files. So it should boot on either device, though I’ve not tried the Beagle boot as my Pi is always on, but it should work. As I said earlier, the Pi’s bootloader is pretty (impressively) flexible. |
Steve Pampling (1551) 8155 posts |
It started as a thread about a potential new release of the full blown system image tailored for the Pi but the proper use of partitions vs hacks was raised – thread drift. Now make the loader sit in a partition along with the ROM image (it needs to sit where the bootloader can see it). Now save your CMOS settings to the ROM image, or to the distinct file, sitting in the FAT partition – isn’t that a bit difficult if RO doesn’t understand partitions? |
Steve Pampling (1551) 8155 posts |
I suspect that if you had that setup in a bootable FAT partition and RO understood partitions then a partition based build should be more portable in fact the loader/OS image partition can be changed independently of the System/application partition. Preparation of new loader/OS partitions can be done on other platforms with standard tools. |
Martin Avison (27) 1491 posts |
I created an SD card which boots in both my RPi and my Beagleboard, after I got fed up keeping separate ones in step, and then wondering which was which! Just a matter of being very careful what is in the Loader partition. |
Rick Murray (539) 13806 posts |
Steve – I used my XP box to blank and copy the FAT “partition” files, then did chkdsk on the PC and CheckMap when back in RISC OS. ;-) Of course, proper partition support would be easier, but….. [insert long list of things Acorn should have done] |
jan de boer (472) 78 posts |
@ Chris Evans: |
Steve Pampling (1551) 8155 posts |
bq. I see where you are coming from, Small misunderstanding Jan, the words “I see where you are coming from” are a colloquialism meaning they understand how you are thinking when you say “An idea for RCxx distribution” BTW. The bq use needs a blank line before the quoted line ( blank line, bq dot space ) and a blank line to end the quoted bit. |
jan de boer (472) 78 posts |
I’m sorry Steve. |
Steve Pampling (1551) 8155 posts |
No problem. |
Rick Murray (539) 13806 posts |
That’s okay. Expressions are often confusing in any language. In English when it rains hard, “it’s raining cats and dogs”. I’ve had a few soakings in my life but I’ve never ever seen any furry creature fall out of the sky… Here in France, calling somebody an “espèce de chameau” is so much worse than calling them a “chameau”. And when the poop hits the fan, a phrase often heard is “la vache!”. I refer to this as “invoking the cow” as saying “the cow!” doesn’t make a lot of sense. Then again saying “bloody hell!” doesn’t either… (^_^) |
Steve Pampling (1551) 8155 posts |
That because they’ve “got the hump?” :) |