Download ABLE User Guide - Simtec Electronics

Transcript
Chapter 6. Starting an Operating System Manually
The previous section described how to identify a possible data source within ABLE. Typically these data sources
are a raw unprocessed set of data, to be useful a data source is generally partitioned and has a filing system placed
upon it. The process of building upon a raw data source is sometimes referred to as “cooking” which gives a
cooked data source.
To make the users interaction with ABLE easier a set of alias sources are automatically generated. Each of these
aliases may be referred to as a source in its own right. The ls command can be used to list these aliases.
Example 6.2. Using the ls command to list cooked sources
The ls command performed on the root directory.
>ls -l /
lrwxrwxrwx
lrwxrwxrwx
lrwxrwxrwx
lrwxrwxrwx
>
1
1
1
1
0
0
0
0
0
0
0
0
11
8
15
7
hd0 ->
nvram0
flash1
flash0
(hdc1):ext2
-> 24cxx0p1
-> (nand0p2):jffs2
-> nand0p1
ABLE detects and creates a cooked source for every raw source that can provide files. Each of the raw sources will
be examined for recognised filesystems and, if a partitioned device, each partition will be scanned. ABLE can interpret several filesystems, these include EXT2, FFS, ISO9660 (including rockridge extensions) and FAT. Filesystems are only scanned for on suitable sources i.e. ISO9660 filesystems would only be searched for on cdrom
sources.
The user need not use the aliases and may specify the full source descriptor if desired. The sources “(hd0)” and
“((hdc1):ext2)” from the previous examples are completely equivalent. The full construct may be used to attempt
to force ABLE to interpret filesystems where it has not automatically detected one but this will almost certainly
result in unexpected and incorrect behaviour.
6.3. Network sources
The network is treated differently to other sources. It is accessed through a source which defines the access protocol. Currently the only supported access protocol is TFTP. The tftpboot source uses the currently configured network interface which is set with ifconfig. Chapter 8, Networking describes the configuring and setup of network
interfaces in more detail.
The tftpboot source cannot be enumerated, that is a list of files cannot be obtained with the ls command, the filename to be retrieved must be already known. To use the filename provided by the DHCP server the tftpboot source
can be used without a file specified.
Example 6.3. Using the tftpboot source
This example shows that the tftpboot source is unable to enumerate the contents of the source, using the tftpboot
source with an explicit filename and using the server provided filename when its present and when not set.
>ls -l (tftpboot)
-r--r--r-0 0 0
-1 (tftpboot)
>sum (tftpboot)batty
18014 33 (tftpboot)batty
>sum (tftpboot)
tftpboot: using bootp filename 'batty'
18014 33 (tftpboot)
>sum (tftpboot)
tftpboot: using bootp filename ''
warning: filename is null, tftp may fail
Error loading (tftpboot) :No such file or directory
>
40
Simtec Electronics