The Raspberry Pi initialization will configure the Raspbian kernel version to 4.7.x and enable IEEE 802.15.4 radio. A successful installed Raspberry Pi is able to use the radio and 6LoWPAN networks. The installation instructions are as following:
Plug the SD card (with the Raspbian system) into the SD card reader then connect it to a Linux machine.
Copy the deploy package “CSIRO” to a preferred location and go to the location.
- Edit configuration files in “<location path>/CSIRO/smit/pisetup/”. There are two configuration files: “config” and “config_kernel”. Go to the directory “<location path>/CSIRO/smit” after modification.
- “config”: contains general configuration for kernel and radio, etc.
- “config_kernel”: contains configuration for kernel compilation.
- To recover the default configuration, copy backup configuration files ”.config” and ”.config_kernel” to “config” and “config_kernel”, respectively.
- To install the Raspbian and the package on a new SD card, please use the following command.
$ sudo python smit_deploy.py -install p11 -f xxx
- Specify the device lable “xxx”, such that “sdb” or “mmcblk0” to install the Raspbian system and the package. Note that do not specify the partition lable such as “sdb1” or “mmcblk0p1”.
- Optional argument ‘-c’ specifies the checkout options for Linux kernel installation.
- The script (online) installs needed dependencies.
- If the kernel is successfully configured, a “CSIRO” folder, which is the same as the unzipped folder of Step 2, will be copied to Raspberry Pi at “/opt/src/CSIRO” (by default).
- Before installation, it is strongly recommended to use “-d” option to check the device name of the SD card. Please ensure the device name is correct, otherwise other disks would be damaged.
- (Optional) To install package p11 on SD card which already contains Raspbian system.
$ sudo python smit_deploy.py -install p11 -b sdb1 -t sdb2
- “boot” and “root” partitions (on SD card) must be provided, such that sdb1 and sdb2.
Plug the SD card back to a Raspberry Pi and boot the system. Then, set the system timezone to the same as that of the device which will be used as CA later.
Go to the directory “/opt/src/CSIRO/smit”.
- Run the script “smit_deploy.py” and install package p12 to enable IEEE 802.15.4 radio on Raspberry Pi.
$ sudo python smit_deploy.py -install p12
- To enable the specific radio, modify the configuration file “config” in /smit/pisetup before installation.
- The radios can only be installed on Raspberry Pi.
- If kernel configuration is not required for installation, please manually copy the folder “CSIRO” to Raspberry Pi.
At the end of installation, please reboot the system before use.