Android application to manipulate sd image from the site
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 ... 15
Theo Markettos (89) 919 posts |
I’m afraid you’re out of luck regards writing FileCore (ADFS) filesystems on Linux using the kernel driver. Linux has an adfs module. Out of the box adfs will: If you compile with ADFS write support (marked ‘danger, experimental’) it will: What the adfs module doesn’t have is code to handle the F+ free space map. So it cannot: That means it’s pretty useless for building modern disc images. The best suggestion I have is to boot RISC OS in an emulator (like RPCEmu) and get that to build the images. However on Android you’re still going to need root to write the raw block device (/dev/sda or whatever) if you want to write to an SD card. |
h0bby1 (2567) 480 posts |
aaaaa |
h0bby1 (2567) 480 posts |
aaaaa |
Theo Markettos (89) 919 posts |
App icons can usually be found in ! AppName.! Sprites with some suffix on the name representing the pixel density compared to the standard 34×17 (eg 22 for 2 times = 34×34). They’re RISC OS sprite format. The system sprites are in the ROM – look in Resources:$.Resources.Wimp on RISC OS for the file. I don’t know of an easy way to pull them out of the ROM without running RISC OS. You may be able to use them from CVS – look at Desktop and Wimp . Icons for non-system files are found inside the app that opens them (eg ! AppName.! Sprites(22) contains icons file_ab3 and small_ab3 for files with filetype 0xAB3). That means that you’d have to scan any apps you want to display files for. SparkFS reads standard zip files – they just have extensions for RISC OS filetype information . It’s probably possible to build in a zip/SparkFS archive, however it’ll be slow because SparkFS will be constantly resizing and re-cataloguing the metadata. |
h0bby1 (2567) 480 posts |
aaaaa |
Rick Murray (539) 13806 posts |
No. |
Chris Hall (132) 3554 posts |
precludes not sure it is any different, in principle, from carefully arranging the RISC OS partition so that the FAT partition is (a) readable/writeable from RISC OS and (b) in its correct position for the bootloader. All RISC OS sees is the filecore partition. |
h0bby1 (2567) 480 posts |
aaaaa |
Rick Murray (539) 13806 posts |
I suppose raw booting is possible on a Beagle xM… “In raw mode, an image can be at offset 0 or 128KB and must not be bigger than 128KB. Raw mode is detected by reading sector 0 and sector 256.”. Space could be marked out in the SD image to hold the first stage bootloader (if marked as “bad blocks” then the whole thing can be hidden from the user) and this is loaded by the OMAP to initialise the board and retrieve the ROM image from the FileCore “partition”. Don’t know about the Pi, not enough documentation. That said, I think a better use of resources (in the long term) would be to make FileCore “partition aware” so it could coexist with other partitions on an SD card; for instance a 4GiB card could be built (thinking of the xM where the user button can select what to boot) that contains the little FAT boot partition, a 2GiB extfs partition for Linux, and a 2GiB FileCore partition for RISC OS… Something like that, at least. |
h0bby1 (2567) 480 posts |
aaaaa |
Steffen Huber (91) 1949 posts |
You mean like…the bounty “Filing system improvements (step 2)”? |
h0bby1 (2567) 480 posts |
aaaaa |
h0bby1 (2567) 480 posts |
aaaaa |
Steve Pampling (1551) 8155 posts |
Yes. You might say it’s broken in a strange way in order to make it work. |
h0bby1 (2567) 480 posts |
aaaaa |
Steve Pampling (1551) 8155 posts |
Don’t worry, the existing method is a quick work around for a problem. Actually fixing the problem with proper partition support etc is the real answer. |
h0bby1 (2567) 480 posts |
aaaa |
David Feugey (2125) 2709 posts |
… could be to have an old format (full disc) and a new one (only for RISC OS 5), compatible with other systems.
IMHO, there is no other solution. And it’s really not a problem. ROS 3 or ROS 4 will probably never need to read such discs. And A7000/RPC users can softload RISC OS 5 too :) Sometimes, we just need to go ahead. IMHO, partition is also a good time for some refactoring around ADFS format (bigger and more files, bigger partitions, adaptation of map to partitioned discs, first step of TRIM support for SSD, etc.). |
h0bby1 (2567) 480 posts |
aaaa |
Chris Hall (132) 3554 posts |
The filename is shown on screen with spaces but the separater between wimp and beginner is actually ASCII character &A0 which is how RISC OS stores a space in a file name – i.e. as a hard space. The PRM 2-12 says you should not as a general rule use top-bit-set characters in filenames although some filecore-based filing systems support them, also that filenames should be no longer than ten characters and should not use fullstop, colon, asterisk, hash, dollar, ampersand, at, uparrow (exponentiation), percent or backslash. So it’s a bit out of date! |
h0bby1 (2567) 480 posts |
aaaaa |
h0bby1 (2567) 480 posts |
aaaa |
WPB (1391) 352 posts |
The above is correct – it’s not a valid UTF-8 string. I haven’t checked, but I’d be pretty much willing to bet that Filecore just assumes the system alphabet for filenames. If you want to display them on a system which expects UTF-8 strings, you’ll need to transcode them. You might just have to take a guess at the source encoding – it will usually be Latin1 (ISO/IEC 8859-1), but if my assumption is correct, you can’t know that for sure. For maximum flexibility, you perhaps need to give the user the option of selecting their source encoding from a list of known RISC OS encodings. (See here for example – sorry, that’s from the Others. Ah, here is a better reference for Us.) |
Jeffrey Lee (213) 6048 posts |
Yeah, FileCore doesn’t do any character translation, so whatever is on disc is interpreted using the system alphabet. RISC OS (or at least FileCore?) doesn’t support spaces in filenames, so non-breaking spaces (char 0xa0) are generally used instead (and I think there are various points at which the OS/apps will automatically convert spaces to non-breaking spaces). Worth bearing in mind if you’re planning on doing any kind of filename manipulation (renaming, searching, etc.) |
Rick Murray (539) 13806 posts |
The string is ISO 8859/1 (usually), not any form of Unicode. You will either need to handle strings yourself or convert it on the fly. It’ll be more fun if/when RISC OS supports UTF-8; then who knows what will be what. ;-) |
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 ... 15