runnibg tftp command on Ubuntu - embedded-linux

So i have one embedded platform Zedboard upon which i am able to run the Xilinx Linux.Also in mine board i have enabled the wifi interface and also i have busybox application in mine root file system and when i typd the command
busybox
it shows the msg
BusyBox v1.22.1 (2016-11-01 12:04:21 GMT) multi-call binary.
Now i have one Ubuntu PC. From this Ubuntu PC i can ping mine Zedboard.
Could somebody tell me how to transfer some file form Ubuntu PC to this embedded platform Zedboard using tftp protocol step by step as well as necessary settings that need be enabled prior to the communication in the Ubuntu PC.
Regards
Aditya

I think This link will help you. I used this tutorial to setup the TFTP server and successfully worked with loading binary files to Beagleboneblack with U-boot bootloader over TFTP from my host PC.

Related

macOS Catalina kernel debug

Anyone did Catalina kernel debug? I tried to copy the development edition of kernel from KDK folder(Catalina 536) to /System/Library/Kernels in the VMWare fusion target VM (Catalina beta8) according their readme file, anyhow that folder is readonly, you cannot copy any file there,
anyone has the solution?
One possible way is that reboot into recovery mode, but with VMWare fusion VM, it seems both latest version (Beta 8) and one vmx download from internet are not working, I tried both Cmd-R and 'reboot recovery' with nram settings.
Remoutning the root file system using
$ mount -u -w /
Worked for me to be able to copy the new kernel over. However my laptop is still slowly booting the debug kernel so I have not been able to verify end to end kernel debugging yet.

High Sierra - KDP is not listening for new connections

I created a setup of a guest virtual machine High Sierra which runs by VirtualBox.
I KDP on both guest and host.
I copied the development version of XNU from the KDP directory into the kernel directory on both guest and host.
I read that VirtualBox does not have the implementation for NVRAM so I had to use the following command to setup the kernel boot arguments for kernel debugging.
VBoxManage setextradata “your virtual machine name>" "VBoxInternal2/EfiBootArgs" [here go the kernel boot arguments]
However, I tried the combination of Command+Option+Control+Shift+Esc however it does not work.
As far as I'm aware, Command+Option+Control+Shift+Esc has a special meaning in hardware on Mac laptops. For a VM, you probably want to set the 0x8000 bit in the debug kernel argument and just send an ACPI power event to trigger the debugger instead.
I can't say if this will work in VirtualBox though as I haven't used that to do kernel debugging for a number of years.
My preferred method for attaching to a VM is using DTrace:
sudo dtrace -w -n "BEGIN { breakpoint(); }"
Then from the host you can:
kdp-remote <vm-ip>

Copy a file from remote Windows machine to Linux machine without Cygwin

I am looking for a possibility to copy a file from Windows to a Linux machine, and my Windows machine will not have Cygwin installed .
The command I am trying is
linux #> scp windows-machine:e:\file.txt
Since you say "my windows machine will not have cygwin installed", I'm assuming you cannot install arbitrary software on the Windows side but that you have control of the Linux machine. Under those assumptions, you can use the Windows FTP client to transfer files to the Linux machine. (Of course, you will have to enable the FTP daemon on the Linux machine, most likely via inetd or systemctl.)

How can I run a docker windows container on osx?

I'm running docker for mac and want to start up a windows container. From what I see this should work via a virtual machine. But I'm unclear where to find out how to get it to work? Or does it only work for linux containers? Thanks in advance!
docker build nanoserver/
Sending build context to Docker daemon 2.56kB
Step 1/6 : FROM microsoft/nanoserver:10.0.14393.1480
10.0.14393.1480: Pulling from microsoft/nanoserver
bce2fbc256ea: Pulling fs layer
baa0507b781f: Pulling fs layer
image operating system "windows" cannot be used on this platform
I know I am late to the party but as of 2021, this is the easiest setup to get a windows container running on macOS:
https://github.com/StefanScherer/windows-docker-machine
Install vagrant and virtual box
Clone the repository above and change directory into it
vagrant up --provider virtualbox 2019-box
docker context use 2019-box
I followed this setup and I could use the following windows image
mcr.microsoft.com/windows/servercore:ltsc2019
Please note that the windows version of your host must match the container image. This is mentioned here: https://hub.docker.com/_/microsoft-windows
Windows requires the host OS version to match the container OS
version. If you want to run a container based on a newer Windows
build, make sure you have an equivalent host build.
See this link:
https://forums.docker.com/t/how-do-i-start-a-windows-docker-container-on-my-mac-os-x/12953/2
Text if you can't follow the link:
On OS X, get VirtualBox.
Get Windows Server 2016 Tech Preview 5 ISO167 (free download from Microsoft)
Create WS 2016 TP5 VM in virtualbox
Run this206 in the new VM
Now you can run Windows Containers in the VM. To make the setup a little easier to use, see this: https://forums.docker.com/t/windows-server-2016-tp5-docker-server-remote-management/10315/5317
You could also install Bootcamp on your machine which allows you to dual boot your computer between OS X and Windows 10. You could then use the full power of your hardware dedicated to Windows and docker instead of virtualization.
Additionally, you can make the use of VMWare Fusion for Mac OS or Parallels, which allow you to ALSO access the dual boot windows partition from within the Mac OS for maximum flexibility. During installation make sure you do not create a Virtual Machine drive, but instead access the bootcamp partition directly.

Accessing machine through wifi

I have one computer running ubuntu operating system. It is having a wifi router connected to it. I have other laptop which runs windows 7 operating system.
Is there a way to access the ubuntu machine from windows machine through wifi and vice versa ?
You can use TeamViewer in both windows and linux. It will give you full control of the remote machine but I'm not sure if you can do file transfering...
For file transferring, connecting from windows to linux I would use winSCP, which access files through ssh, so you would have to install an run sshd on your linux box. If you haven't sshd in your ubuntu box, install it by doing $ sudo apt-get install ssh. You can start ssh daemon in ubuntu 11.10 with the command $ sudo service ssh start. From linux (Ubuntu 11.10) to windows (w7), I have successfully got into w7 machines in my local network by exploring the Network section in the left bar of the nautilus explorer. Sometimes, for some folders it would ask me for credentials to log into the remote machine, and file transferring was as simple as doing copy and paste (Ctrl+c, Ctrl+v)
hope to be helpful! good luck!
VNC is good for remote work on both Windows and Linux. You'll need to install VNC on Windows but I believe it comes by default with Ubuntu. You need to configure one to be the server and then you can use a client from the other machine to connect to it and remotely control the server machine.
Here are some resources for VNC in Ubuntu: https://help.ubuntu.com/community/VNC
And I use TightVNC when I'm working on Windows (server and client included in the install).
Install XRDP on Ubuntu.
on windows then run msrtc -v
if over the internet , I say use
https://www.dwservice.net/en/download.html
free and lot better than teamviwer.

Resources