while install pymodbus it is showing like
root@ruggedboard:~# python3 --version
Python 3.5.5
root@ruggedboard:~# pip3 install pymodbus
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/pip-9.0.2-py3.5.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python3.5/site-packages/pip-9.0.2-py3.5.egg/pip/commands/install.py", line 289, in run
delete=build_delete) as build_dir:
File "/usr/lib/python3.5/site-packages/pip-9.0.2-py3.5.egg/pip/utils/build.py", line 22, in __init__
name = os.path.realpath(tempfile.mkdtemp(prefix="pip-build-"))
File "/usr/lib/python3.5/tempfile.py", line 358, in mkdtemp
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
File "/usr/lib/python3.5/tempfile.py", line 130, in _sanitize_params
dir = gettempdir()
File "/usr/lib/python3.5/tempfile.py", line 296, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python3.5/tempfile.py", line 231, in _get_default_tempdir
dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home]
root@ruggedboard:~#
Please check the date on the board by typing "date"
also
the syntax for date is date 081916012019
So, type date in your terminal followed by 08 which will stand for Month then 19 which will stand for the present Date of that month then 16 which stands for Time (24-Hour format), 01 for Mins finally 2019 which stands for Year.
even after trying this it is getting like that only
root@ruggedboard:~# date 012012532020
Mon Jan 20 12:53:00 UTC 2020
root@ruggedboard:~# pip3 install pymodbus
Exception:
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/pip-9.0.2-py3.5.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python3.5/site-packages/pip-9.0.2-py3.5.egg/pip/commands/install.py", line 289, in run
delete=build_delete) as build_dir:
File "/usr/lib/python3.5/site-packages/pip-9.0.2-py3.5.egg/pip/utils/build.py", line 22, in __init__
name = os.path.realpath(tempfile.mkdtemp(prefix="pip-build-"))
File "/usr/lib/python3.5/tempfile.py", line 358, in mkdtemp
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
File "/usr/lib/python3.5/tempfile.py", line 130, in _sanitize_params
dir = gettempdir()
File "/usr/lib/python3.5/tempfile.py", line 296, in gettempdir
tempdir = _get_default_tempdir()
File "/usr/lib/python3.5/tempfile.py", line 231, in _get_default_tempdir
dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home]
Please check whether you are able to ping to google.com from your board
yes its pinging
root@ruggedboard:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=57 time=16.270 ms
64 bytes from 8.8.8.8: seq=1 ttl=57 time=14.317 ms
64 bytes from 8.8.8.8: seq=2 ttl=57 time=16.345 ms
64 bytes from 8.8.8.8: seq=3 ttl=57 time=18.546 ms
^Z[1]+ Stopped ping 8.8.8.8
Not 8.8.8.8 just ping google.com
it is not pinging
Okay so you will have to boot the board through SD card then your internet will work and you will be able to install pymodbus using pip3
how to boot the board using sd card
from where i have to download these Images of OS i.e. boot.bin, uboot.bin, zImage, at91-sama5d27_som1_ek.dtb all these files
you could not install pymodbus since root filesystem is readonly....
what i have to do now
let me know ur booting boot with sdcard or nor flash..there is possibility if you boot board with sdcard .
i didn't boot the board through sdcard and also i didn't do any flashing also...
if you wish to do add any more packages have to boot board with sdcard since flash is limited memory space .
k sir, can you share steps to boot board with sd card
make two partictions 1.boot 2.rootfs
copy all images in boot partition except rootfs & copy the rootfs in rootfs partition . follow the below steps
step1: get the prebuilt images from Ashraful and directly copy into boot partition by using cp command (cp boot.bin /media/gopal/boot)
Note: boot partition should be bootable.
step2: for flashing rootfs follow below command
sudo tar -xvf rootfs-name -C /media/gopal/rootfs
k sir
at91-sama5d27_som1_ek.dtb
boot.bin
core-image-minimal-sama5d27-som1-ek-sd-20191203074105.rootfs.tar.gz
core-image-minimal-sama5d27-som1-ek-sd.squashfs
u-boot.bin
u-boot-dtb.bin
zImage
i made sd card into two partictions 1.boot 2.rootfs
i have copied boot.bin,u-boot.bin,zImage in boot partition and core-image-minimal-sama5d27-som1-ek-sd-20191203074105.rootfs.tar.gz in rootfs partition now where i have to copy remaining files
even after booting it is not pinging to www.google.com
follow below to ping google.com
vi /etc/resolv.conf
nameserver 8.8.8.8
and save. then ping the google by below command
ping www.google.com
Internet is given on RB. Till, I am unable to install pymodbus.
Please set the date as below date mmddhhmmyyyy.ss For exmaple : DEC 15 1:51 PM 2020 date 121513512020.22 hwclock -w -f /dev/rtc0
hwclock -r -f /dev/rtc0 then install using pip3
Thanks. Problem resolved.