Hi, EDIT, at the end EDIT(2), at the end Reading some earlier post by Paul Read, I look for `dd' syntax to save and restore my work on uSD card. Providing uSD card is formatted as 256MB FAT + 65MB OBERON. Restore my work indexed as `1' may work like this, $ dd if=OBERON1.FS of=/dev/sdc bs=1024 seek=262145 By how about saving the work first, $ dd if=/dev/sdc of=OBERON1.FS bs=1024 skip=262145 count=??? What count should I use? `System.Watch' may give a clue, but does not seem exact. EDIT, correction I could also use a fixed value of the whole 65MB Oberon partition, but not sure if below is correct $ dd if=/dev/sdc of=OBERON1.FS bs=1024 skip=262145 count=$((65*1024)) EDIT(2), correction Reading `dd' manual, allows for suffixes, $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=65K Correct? Many thanks. Tomas
Hi Christopher, Thank you, I have in the end resorted to: $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=65K `System.Watch' reports 921 sectors used, so I tempted to try $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=921, instead. Which goes very fast on RPI here. Tomas On Thu, 13 Apr 2017 20:43:16 +0200 Tomas Kral <thomas.kral@email.cz> wrote:
Hi,
EDIT, at the end EDIT(2), at the end
Reading some earlier post by Paul Read, I look for `dd' syntax to save and restore my work on uSD card.
Providing uSD card is formatted as 256MB FAT + 65MB OBERON.
Restore my work indexed as `1' may work like this, $ dd if=OBERON1.FS of=/dev/sdc bs=1024 seek=262145
By how about saving the work first, $ dd if=/dev/sdc of=OBERON1.FS bs=1024 skip=262145 count=???
What count should I use? `System.Watch' may give a clue, but does not seem exact.
EDIT, correction
I could also use a fixed value of the whole 65MB Oberon partition, but not sure if below is correct $ dd if=/dev/sdc of=OBERON1.FS bs=1024 skip=262145 count=$((65*1024))
EDIT(2), correction
Reading `dd' manual, allows for suffixes, $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=65K Correct?
Many thanks. Tomas -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Tomas, I think Chris' method is safer. If the Kernel reports 921 sectors in use, it doesn't necessarily mean they are contiguous. Cheers, Paul
Hi Christopher,
Thank you, I have in the end resorted to: $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=65K
`System.Watch' reports 921 sectors used, so I tempted to try $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=921, instead.
Which goes very fast on RPI here.
Tomas
On Thu, 13 Apr 2017 20:43:16 +0200 Tomas Kral <thomas.kral@email.cz> wrote:
Hi,
EDIT, at the end EDIT(2), at the end
Reading some earlier post by Paul Read, I look for `dd' syntax to save and restore my work on uSD card.
Providing uSD card is formatted as 256MB FAT + 65MB OBERON.
Restore my work indexed as `1' may work like this, $ dd if=OBERON1.FS of=/dev/sdc bs=1024 seek=262145
By how about saving the work first, $ dd if=/dev/sdc of=OBERON1.FS bs=1024 skip=262145 count=???
What count should I use? `System.Watch' may give a clue, but does not seem exact.
EDIT, correction
I could also use a fixed value of the whole 65MB Oberon partition, but not sure if below is correct $ dd if=/dev/sdc of=OBERON1.FS bs=1024 skip=262145 count=$((65*1024))
EDIT(2), correction
Reading `dd' manual, allows for suffixes, $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=65K Correct?
Many thanks. Tomas -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Paul, Probably yes, I was curious how original RISC.ing was produced as it has only used sectors in it, some 321? So the creator must have had some fairly good guess, and I want to do the same. Tomas On Fri, 14 Apr 2017 13:45:17 +0100 Paul Reed <paulreed@paddedcell.com> wrote:
Hi Tomas,
I think Chris' method is safer. If the Kernel reports 921 sectors in use, it doesn't necessarily mean they are contiguous.
Cheers, Paul
Hi Christopher,
Thank you, I have in the end resorted to: $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=65K
`System.Watch' reports 921 sectors used, so I tempted to try $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=921, instead.
Which goes very fast on RPI here.
Tomas
On Thu, 13 Apr 2017 20:43:16 +0200 Tomas Kral <thomas.kral@email.cz> wrote:
Hi,
EDIT, at the end EDIT(2), at the end
Reading some earlier post by Paul Read, I look for `dd' syntax to save and restore my work on uSD card.
Providing uSD card is formatted as 256MB FAT + 65MB OBERON.
Restore my work indexed as `1' may work like this, $ dd if=OBERON1.FS of=/dev/sdc bs=1024 seek=262145
By how about saving the work first, $ dd if=/dev/sdc of=OBERON1.FS bs=1024 skip=262145 count=???
What count should I use? `System.Watch' may give a clue, but does not seem exact.
EDIT, correction
I could also use a fixed value of the whole 65MB Oberon partition, but not sure if below is correct $ dd if=/dev/sdc of=OBERON1.FS bs=1024 skip=262145 count=$((65*1024))
EDIT(2), correction
Reading `dd' manual, allows for suffixes, $ dd if=/dev/sdc of=OBERON1.FS bs=1K skip=265K count=65K Correct?
Many thanks. Tomas -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
-- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hi Tomas,
Probably yes, I was curious how original RISC.ing was produced as it has only used sectors in it, some 321?...So the creator must have had some fairly good guess, and I want to do the same.
When the original Oberon system was ported by members of ETH to commercial personal computers, such as Unix, Macs, DOS and Windows, they chose to implement Oberon file semantics on top of the host operating systems' file systems in such a way as to conveniently expose Oberon files as individual host files. My cross-tools for generating the FPGA RISC Oberon filesystem image, on the other hand, and most of my Oberon based compilers for that matter, take a different approach: I map the entire filesystem into a single image file, just by re-implementing the Kernel GetSector and PutSector routines, without changing the FileDir or Files modules. This simpler approach has served me well over the years, even though it has the inconvenience (compared with the ETH method) that separate utilities are needed to import and export host files to and from the Oberon filesystem. (When I started building Oberon tools, I needed them to work on MS-DOS, where Oberon filenames could not easily even be mapped to host filenames anyway!) So when I create the RISC filesystem image, it is actually as a side-effect of letting the Oberon tools run on what they think is an Oberon system. The reimplemented PutSector routine seeks to and writes the relevant 1024-byte region of the image file - it is assumed that the host operating system will fill-in any unused space, either with garbage or zeros (those old enough - ahem - to have had the privilege of working with, e.g. CP/M or TurboDOS would not assume this!). :) The result is that the filesystem image naturally ends up being as big as to include the highest sector number written, and that's what I append to the 256MB protective FAT partition to create the SD-card image. (See also my previous post about the RISC.img format.) If you want to use a raw copy program to copy all relevant sectors from the image, but no more, to a backup image, you could as an exercise replicate the operation of the FileDir Init procedure which is called at startup. This is effectively the garbage collection of the filesystem, gathering and marking as allocated each sector of each file reachable from the directory. Chapter 7 of the book explains the disk allocation process in detail. I think it's great you are thinking about efficiency and not wasting disk space: embedded systems programmers do not have the luxury of gigahertz processors and terabytes of disk, and Oberon is certainly a model of efficiency with many good lessons to learn - which can be effectively applied in large systems as well. On the other hand, often (especially in a commercial environment!) it's more important to be pragmatic and choose your battles, which is why I suggested copying the whole image; and Chris pointed out this can easily be compressed. Perhaps, for a quick but safe backup on a slow disk like that of the Raspberry Pi, it might simply be necessary to re-order the commands you use, ie pipe the raw image directly into the compression software before writing the compressed output to disk. HTH, Paul
Paul wrote:
I map the entire filesystem into a single image file, just by re-implementing the Kernel GetSector and PutSector routines, without changing the FileDir or Files modules.
The same approach was taken by the "Linux in a virtual box" implementations running under Windows. For example, coLinux or Virtual Box. I am using both VB and coLinux a lot. Their filesystems take the form of the .img files under Windows. Inside the .img file, Linux is maintaining the ext2 or ext3 filesystem. I found this approach very convenient for taking backups. I just zip an entire filesystem .img file and copy it into a backup storage. Typically, I can zip the 8-gig .img file into about one GB. Just like Paul said, copying files between the Linux .img and the Windows side requires using tools such as samba, Secure Copy, or Filezilla. It is an extra step. It quite OK in practice. My biggest concern about Oeron FS is its limited size. Wojtek ________________________________________ From: Oberon [oberon-bounces@lists.inf.ethz.ch] on behalf of Paul Reed [paulreed@paddedcell.com] Sent: Wednesday, April 19, 2017 8:36 PM To: ETH Oberon and related systems Subject: Re: [Oberon] FPGA - Save / Restore OBERON.FS Hi Tomas,
Probably yes, I was curious how original RISC.ing was produced as it has only used sectors in it, some 321?...So the creator must have had some fairly good guess, and I want to do the same.
When the original Oberon system was ported by members of ETH to commercial personal computers, such as Unix, Macs, DOS and Windows, they chose to implement Oberon file semantics on top of the host operating systems' file systems in such a way as to conveniently expose Oberon files as individual host files. My cross-tools for generating the FPGA RISC Oberon filesystem image, on the other hand, and most of my Oberon based compilers for that matter, take a different approach: I map the entire filesystem into a single image file, just by re-implementing the Kernel GetSector and PutSector routines, without changing the FileDir or Files modules. This simpler approach has served me well over the years, even though it has the inconvenience (compared with the ETH method) that separate utilities are needed to import and export host files to and from the Oberon filesystem. (When I started building Oberon tools, I needed them to work on MS-DOS, where Oberon filenames could not easily even be mapped to host filenames anyway!) So when I create the RISC filesystem image, it is actually as a side-effect of letting the Oberon tools run on what they think is an Oberon system. The reimplemented PutSector routine seeks to and writes the relevant 1024-byte region of the image file - it is assumed that the host operating system will fill-in any unused space, either with garbage or zeros (those old enough - ahem - to have had the privilege of working with, e.g. CP/M or TurboDOS would not assume this!). :) The result is that the filesystem image naturally ends up being as big as to include the highest sector number written, and that's what I append to the 256MB protective FAT partition to create the SD-card image. (See also my previous post about the RISC.img format.) If you want to use a raw copy program to copy all relevant sectors from the image, but no more, to a backup image, you could as an exercise replicate the operation of the FileDir Init procedure which is called at startup. This is effectively the garbage collection of the filesystem, gathering and marking as allocated each sector of each file reachable from the directory. Chapter 7 of the book explains the disk allocation process in detail. I think it's great you are thinking about efficiency and not wasting disk space: embedded systems programmers do not have the luxury of gigahertz processors and terabytes of disk, and Oberon is certainly a model of efficiency with many good lessons to learn - which can be effectively applied in large systems as well. On the other hand, often (especially in a commercial environment!) it's more important to be pragmatic and choose your battles, which is why I suggested copying the whole image; and Chris pointed out this can easily be compressed. Perhaps, for a quick but safe backup on a slow disk like that of the Raspberry Pi, it might simply be necessary to re-order the commands you use, ie pipe the raw image directly into the compression software before writing the compressed output to disk. HTH, Paul -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.inf.ethz.ch_mailman_listinfo_oberon&d=DwICAg&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=uUiA_zLpwaGJIlq-_BM9w1wVOuyqPwHi3XzJRa-ybV0&m=NfdzU9eOCeHEVUX5KxsMfokQNxUUuktWORttDlDh9jg&s=64U89Eo8diqHvscpMsF-16U3wGXpq93Yi-Y-lQxF5ck&e=
On 20 April 2017 at 05:42, Skulski, Wojciech <skulski@pas.rochester.edu> wrote:
My biggest concern about Oeron FS is its limited size.
Is this still true in the A2/Bluebottle OS? I am a little surprised that nobody on this list seems to even mention that... -- Liam Proven • Profile: https://about.me/liamproven Email: lproven@cix.co.uk • Google Mail/Talk/Plus: lproven@gmail.com Twitter/Facebook/Flickr: lproven • Skype/LinkedIn/AIM/Yahoo: liamproven UK: +44 7939-087884 • ČR/WhatsApp/Telegram/Signal: +420 702 829 053
Hi In A2 / Blubottle (and Minos/HeliOS) the conceptual OberonFS file system size limitation is 8-16 TB with sector/block size of 4K (16 TB if unsigned operations are implemented correctly, otherwise using signed longints it is 8 TB). Upper file size limit is 4 GB; more presizely it is 4 GiB + 1 MiB + 3528 B: a File entry comprises 3528 Bytes of data, 128 pointers to data block and 1 pointer to a doubly indirect index block, the rest is metadata (such as filename, mark bit, ...) Rgds Felix
On 20 April 2017 at 05:42, Skulski, Wojciech <skulski@pas.rochester.edu> wrote:
My biggest concern about Oeron FS is its limited size.
Is this still true in the A2/Bluebottle OS?
I am a little surprised that nobody on this list seems to even mention that...
On 20 April 2017 at 13:52, Felix Friedrich <felix.friedrich@inf.ethz.ch> wrote:
In A2 / Blubottle the conceptual OberonFS file system size limitation is 8-16 TB
That's generous. Should be enough for most purposes.
(and Minos/HeliOS)
I don't know about these. I know of one OS called Helios or HeliOS, by Parhelion for Transputer hardware, but it's long dead. https://en.wikipedia.org/wiki/HeliOS I found a Fortran code analyser: https://en.wikipedia.org/wiki/MINOS_(optimization_software) The only other ETH Zürich thing I know of is Barrelfish: http://www.barrelfish.org/ -- Liam Proven • Profile: https://about.me/liamproven Email: lproven@cix.co.uk • Google Mail/Talk/Plus: lproven@gmail.com Twitter/Facebook/Flickr: lproven • Skype/LinkedIn/AIM/Yahoo: liamproven UK: +44 7939-087884 • ČR/WhatsApp/Telegram/Signal: +420 702 829 053
participants (5)
-
Felix Friedrich -
Liam Proven -
Paul Reed -
Skulski, Wojciech -
Tomas Kral