after this command i am getting an error like "sudo: ./scripts/bootstrap-rootfs-overlay-demo.sh: command not found " can you look this and give me some suggestion.
this command i am running in my SD card ROOFS/mender-converter: folder. here its not running, but if i run the same command outside then its running smoothly. i am not getting why?
During the image conversion process the rootfs_overlay_demo directory will be installed on the target root filesystem and the resulting images from mender-convert should have the content specific in rootfs_overlay_demo.
The following steps should be run as the initial setup: git clone -b next git@github.com:mendersoftware/mender-convert.git
cd mender-convert mkdir input
=> Place appropriate BBB/Debian image in input/ directory
./scripts/bootstrap-rootfs-overlay-demo.sh --output-dir {PWD}/rootfs_overlay_demo --tenant-token "<Paste token from Hosted
Mender>"
./docker-build
this are the initial commands i should run in the “/media/anil/ROOTFS” SD card which i will put later into the BBB. so if i run 1st cloning command itself i am getting error like
but now i would like to deploy my image into the SD card so i tried this
anil@ubuntu-anil-pc:/media/anil/mender-convert$ sudo dd if=deploy/beaglebone-sdcard-Nestle_Ver3.0.0.sdimg o f=/dev/mmcblk0p1 bs=8000 conv=fdatasync
[sudo] password for anil:
dd: fdatasync failed for ‘/dev/mmcblk0p1’: Input/output error
1072168+1 records in
1072168+1 records out
8577351680 bytes (8.6 GB, 8.0 GiB) copied, 1315.71 s, 6.5 MB/s
anil@ubuntu-anil-pc:/media/anil/mender-convert$ sudo dd if=deploy/beaglebone-sdcard-Nestle_Ver3.0.0.sdimg of=/dev/mmcblk0 bs=8000 conv=fdatasync
[sudo] password for anil:
dd: fdatasync failed for ‘/dev/mmcblk0’: Input/output error
1072168+1 records in
1072168+1 records out
8577351680 bytes (8.6 GB, 8.0 GiB) copied, 1402.51 s, 6.1 MB/s
anil@ubuntu-anil-pc:/media/anil/mender-convert$ sudo dd if=deploy/beaglebone-sdcard-Nestle_Ver3.0.0.sdimg of=/dev/mmcblk0 conv=fdatasync
[sudo] password for anil:
see this errors. i am trying to deploy the image into the SD card which is connected to PC. See the Attached image for this. Am i doing something wrong here?
I realize we discussed this in email but I’ll follow up here in case the response is helpful to others.
You definitely want to use the “of=/dev/mmcblk0” form rather than the “of=/dev/mmcblk0p1”.
Also, I think you should use “bs=8mb” instead of “bs=8000”. I think it will use blocks of 8000 bytes with the latter which is an odd block size and will likely be fairly slow.
Interestingly the error here seems specifically related to the “conv=fdatasync” parameter so you may just drop that from the command to see if it helps. In that case, make sure to run “sync” from your command prompt after the dd command and before ejecting the SD Card.
this document i followed to create my own server. I given login ID and PWD and then going to local host and login there.
and by using
sudo ./up i am running my server.
sorry my mistake,
Actually i am running a demo server only,not a hosted mender (Which is paid - i have to given credit /debit card details)
I am running a demo server now.
So how many changes i have to make in the programming while doing all the process.
you just help me which URL and which file i have to do the changes.
almost i have done all the things.
i think only this things is remained or mistaken by me.
Hi @Anil9860. You need to edit the “/etc/hosts” file so that the domain names “docker.mender.io” and “s3.docker.mender.io” resolve to the IP address of the system running your mender demo server. You cannot use localhost as that means the Mender client will try to connect to itself. Add the file into your build system in the rootfs_overlay_demo with the following contents, making sure to change 192.168.7.36 to the appropriate IP address for your system.
127.0.0.1 localhost
127.0.1.1 beaglebone.localdomain beaglebone
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.7.36 docker.mender.io s3.docker.mender.io
Also, update the ServerURL in rootfs_overlay_demo/etc/mender/mender.conf to point to https://docker.mender.io.
like wise i have done.
then copied the file from that location and pasted in the mender-converter folder which i downloaded by github. Am i right till here?
after that
in the home directory also mender there is a one folder with same name mender-converter there rootfs_overlay_demo/etc/mender/mender.conf in this file i have done the changes in the server URL.
{
“InventoryPollIntervalSeconds”: 5,
“RetryPollIntervalSeconds”: 30,
“ServerURL”: “https://docker.mender.io”,
“ServerCertificate”: “/etc/mender/server.crt”,
“TenantToken”: “Paste your Hosted Mender token here”,
“UpdatePollIntervalSeconds”: 5
}
see this
and after that i created a new file with the name of server.crt in the location of “/home/anil/mender-convert/rootfs_overlay_demo/etc” and copied the certificates into it which you have given.
and as you can see above i have done changes in the “/home/anil/mender-convert/rootfs_overlay_demo/etc/mender” mender.cnf file like above.
i am not getting the meaning of this command and why i have to run this.
after running this command i have done changes in the “/home/anil/mender-convert/rootfs_overlay_demo/etc/mender” mender.cnf file with server URL changes and other changes you suggested for crt file.