![Phidgets 1070 - PhidgetSBC Скачать руководство пользователя страница 32](http://html.mh-extra.com/html/phidgets/1070-phidgetsbc/1070-phidgetsbc_product-manual_1537224032.webp)
32
1070_0_Product_Manual - October 28, 2010 8:52 AM
Wireless Networking System
Wireless networking is supported using the supplied adapter and is configured through the configuration interface.
The back end of the system will be explained here.
Wireless networking is supported using wpasupplicant. When Udev detects that a wifi adapter is plugged in, it will
start an instance of each wpa_supplicant and wpa_cli using the script ‘/sbin/wifi’. The wpa_supplicant daemon
reads from it configuration file at ‘/mnt/userspace/.config/wpa_supplicant.conf’ and takes care of associating with
whichever networks are available and specified in the config file. The wpa_cli daemon then waits for attach and
detach notifications from wpa_supplicant and runs the ‘/sbin/wpa_action’ shell script to deal with setting up IP
address, etc. based on the wireless network configuration file ‘/mnt/userspace/.config/wireless_network.conf’
All of this should work behind the scenes. You may need to manually edit the wpa_supplicant.conf file in order to
connect to unusually configured access points, of ad-hoc networks.
Configuration System
The configuration system used by the website is stored in ‘/mnt/userspace/.config’. These files should generally not
be changed manually, but there is no reason why they could not be. It’s very easy to enter invalid data that could
cause the system to behave unexpectedly or not boot.
Nand Layout
The board contains 64MB on Nand. This nand is split into 7 partitions as follows:
0: u-boot
size: 256K
Read Only
1: u-boot_env
size: 16K
Read Only
2: recovery_kernel
size: 2M
Read Only
3: kernel
size: 2M
Writable
4: recovery_fs
size: 4M
Read Only
5: rootfs
size: 50M
Writable
6: userspace
size: ~5.5M
Writable
The final size of userspace depends on NAND factory bad blocks, but will always be at least 5M.
U-Boot and recovery kernel and filesystem cannot be written from Linux - this is a safety measure.
Boot Process
This describes the boot process from power on.
1. Processor loads first 4 bytes from NAND into Steppingstone and runs it.
2. Steppingstone sets up RAM, copies u-boot from NAND into RAM and runs U-Boot.
3. U-Boot initializes the processor, sets GPIO state, etc., copies the linux kernel into RAM, sets up the kernel
command line arguments, checks that the kernel image is valid, and boots it.
4. Linux boots, bringing up USB, Networking, NAND, etc. and then mounts the rootfs NAND partition on /.
5. init gets run as the parents of all processes, as uses the /etc/inittab script to bring up the system. This includes
mounting other filesystems, settings the hostname, and running the scripts in /etc/init.d, among other things.
6. inittab then runs any custom user applications.