### Install Qt Examples Source: https://elinux.org/ECE497_LabXX_Qt Install additional Qt examples from the linuxtag-ics package. ```bash beagle$ **opkg install linuxtag-ics** # 1 minute ``` -------------------------------- ### Install and start the service Source: https://elinux.org/EBC_systemd Copy the service file to the system directory and start it. ```bash bone$ **cp boneServer.service /lib/systemd/system** ``` ```bash bone$ **systemctl start boneServer** ``` -------------------------------- ### Installing and Starting VNC Server Source: https://elinux.org/CI20_Headless_Setup Install tightvncserver and initialize the VNC session. ```bash ci20@ci20:~$ su Password: root@ci20:/home/ci20# apt-get install tightvncserver root@ci20:/home/ci20# exit exit ci20@ci20:~$ vncserver You will require a password to access your desktops. Password: Verify: Would you like to enter a view-only password (y/n)? n New 'X' desktop is ci20:1 Creating default startup script /home/ci20/.vnc/xstartup Starting applications specified in /home/ci20/.vnc/xstartup Log file is /home/ci20/.vnc/ci20:1.log ``` -------------------------------- ### Launch Server Source: https://elinux.org/ECE497_Project_Coffee_Pot_Control Execute the setup script and start the main server application. ```bash cd ECE497_finalproject/project/http ./setup.sh ./boneServer.js ``` -------------------------------- ### Run Hello World Example Source: https://elinux.org/Jetson/Installing_ArrayFire Steps to execute the Hello World example to verify the CUDA backend installation. ```bash cd /path/to/dir/arrayfire/build/examples/ ./helloworld_cuda ``` -------------------------------- ### Build and install drivers Source: https://elinux.org/EBC_Exercise_06_Installing_Python Navigates to the repository directory and executes the setup script to install the drivers. ```bash bone$ **cd adafruit-beaglebone-io-python** bone$ **sudo python3 setup.py install** ``` -------------------------------- ### Execute Setup Script Source: https://elinux.org/EBC_Exercise_04_Setup_Scripts Command to run the student installation script on the host machine. ```bash host$ ./installStudent.sh ``` -------------------------------- ### Install Qt v5 on Host Source: https://elinux.org/ECE497_LabXX_Qt Commands to install Qwt development files and examples on the host system. ```bash host$ **sudo apt-get update** host$ **sudo apt-get install libqwt-dev** # 1 minute host$ **opkg intall libqwt-examples** # 1 minute ``` -------------------------------- ### Configure and compile a specific DTB Source: https://elinux.org/index.php?oldid=578827&title=Device_Tree_Reference Examples showing how to verify configuration settings and compile a specific device tree blob. ```makefile arch/arm/boot/dts/Makefile: dtb-$(CONFIG_ARCH_QCOM) += \ ... qcom-msm8960-cdp.dtb \ ... ``` ```bash $ grep CONFIG_ARCH_QCOM .config CONFIG_ARCH_QCOM=y ``` -------------------------------- ### Sample secret key list output Source: https://elinux.org/index.php?oldid=97226&title=PgpKey Example output from listing secret keys. ```text sec 4096R/59E066B1 2012-02-08 [expires: 2017-02-06] uid John Doe ssb 4096R/DE192E71 2012-02-08 ``` -------------------------------- ### Install and Configure DHCP Server Source: https://elinux.org/index.php?oldid=586939&title=Jetson%2FL4T%2Fperipheral%2F Commands and configuration for setting up the isc-dhcp-server on the host machine. ```bash $ sudo apt install isc-dhcp-server ``` ```bash INTERFACESv4="XXX" INTERFACESv6="" DHCPDARGS="XXX" ``` ```bash subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.11 192.168.0.20; option routers 192.168.0.1; # Required for PXE Boot class "pxeclients" { match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; filename "efi/grubnetaa64.efi.signed"; # TFTP Server IP address next-server 192.168.0.1; option root-path "/tftp/"; } } host mytegra { hardware ethernet 48:B0:2D:68:B2:9C; fixed-address 192.168.0.10; } ``` ```bash $ sudo ifconfig enx00e04c360130 192.168.0.1 $ sudo systemctl restart isc-dhcp-server $ sudo systemctl status isc-dhcp-server ``` -------------------------------- ### Kernel Boot Timing Log with Base Reference Source: https://elinux.org/index.php?printable=yes&title=Printk_Times_Sample3 Example output of kernel boot logs processed with show_delta, showing timing deltas relative to the 'Calibrating' event. ```text base= "Calibrating" [13.206492 < -0.453813 >] Linux version 2.4.20-celf1 (tbird@tim_hp) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)) #1 Wed Jan 28 10:10:47 PST 2004 [13.206505 < -0.453800 >] BIOS-provided physical RAM map: [13.206509 < -0.453796 >] BIOS-e820: 0000000000000000 - 000000000009fc00 (usable) [13.206513 < -0.453792 >] BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved) [13.206516 < -0.453789 >] BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved) [13.206520 < -0.453785 >] BIOS-e820: 0000000000100000 - 000000001ffe7800 (usable) [13.206523 < -0.453782 >] BIOS-e820: 000000001ffe7800 - 0000000020000000 (reserved) [13.206526 < -0.453779 >] BIOS-e820: 00000000fec00000 - 0000000100000000 (reserved) [13.206531 < -0.453774 >] 0MB HIGHMEM available. [13.206533 < -0.453772 >] 511MB LOWMEM available. [13.207373 < -0.452932 >] On node 0 totalpages: 131047 [13.212686 < -0.447620 >] zone(0): 4096 pages. [13.212938 < -0.447367 >] zone(1): 126951 pages. [13.217979 < -0.442326 >] zone(2): 0 pages. [13.218314 < -0.441991 >] Kernel command line: ro root=/dev/hda3 init=/sbin/celinux-init [13.218322 < -0.441983 >] Initializing CPU#0 [13.658919 < -0.001387 >] Detected 2992.547 MHz processor. [13.660085 < -0.000221 >] Console: colour VGA+ 80x25 [13.660305 < 0.000000 >] Calibrating delay loop... 5976.88 BogoMIPS [13.928392 < 0.268087 >] Use CONFIG_INSTANT_ON_LPJ=29884416 for Instant On. [13.953166 < 0.292861 >] Memory: 515600k/524188k available (1150k kernel code, 8200k reserved, 455k data, 116k init, 0k highmem) [13.953235 < 0.292929 >] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes) [13.953398 < 0.293093 >] Inode cache hash table entries: 32768 (order: 6, 262144 bytes) [13.953659 < 0.293354 >] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes) [13.953745 < 0.293440 >] Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes) [13.953883 < 0.293578 >] Page-cache hash table entries: 131072 (order: 7, 524288 bytes) [13.954387 < 0.294081 >] CPU: L1 I cache: 0K, L1 D cache: 8K [13.954404 < 0.294099 >] CPU: L2 cache: 512K [13.954419 < 0.294113 >] Intel machine check architecture supported. [13.954437 < 0.294132 >] Intel machine check reporting enabled on CPU#0. [13.954461 < 0.294155 >] CPU: After generic, caps: bfebfbff 00000000 00000000 00000000 [13.954464 < 0.294159 >] CPU: Common caps: bfebfbff 00000000 00000000 00000000 [13.954467 < 0.294162 >] CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz stepping 09 [13.954496 < 0.294191 >] Enabling fast FPU save and restore... done. [13.954517 < 0.294212 >] Enabling unmasked SIMD FPU exception support... done. [13.954545 < 0.294240 >] Checking 'hlt' instruction... OK. [13.988384 < 0.328079 >] POSIX conformance testing by UNIFIX [13.988412 < 0.328107 >] mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au) [13.988415 < 0.328109 >] mtrr: detected mtrr type: Intel [13.988713 < 0.328407 >] PCI: PCI BIOS revision 2.20 entry at 0xec6 ... ``` -------------------------------- ### Configure KFT static trace triggers Source: https://elinux.org/index.php?oldid=7914&title=Kernel_Function_Trace Sets the default start and stop points for tracing the entire kernel initialization process. ```text trigger start entry start_kernel trigger stop entry to_userspace ``` -------------------------------- ### Capture serial output Source: https://elinux.org/index.php?oldid=7483&printable=yes&title=Grabserial Example of capturing serial port data to a file. ```bash grabserial -e 20 >/tmp/bootlog.txt ``` -------------------------------- ### Prepare External UART Transfer Test Source: https://elinux.org/index.php?oldid=587056&title=Jetson%2FL4T%2Fperipheral%2F Setup steps for external transfer between two devices, including file creation and transfer. ```bash [TX device] $ sudo mkdir /data $ dd if=/dev/urandom of=/data/tx_testfile.bin bs=1 count=1024 $ scp /data/txtestfile.bin @:~/ [RX device] $ sudo cp ~/tx_testfile.bin /data/tx_testfile.bin ``` -------------------------------- ### Example GCC Verbose Output Source: https://elinux.org/index.php?oldid=351410&title=GCC_Tips This output demonstrates the detailed information provided by GCC when running with verbose flags, including search paths and internal tool invocations. ```text Reading specs from /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/specs Configured with: ../configure --prefix=/opt/timesys/toolchains/ppc7xx-linux --mandir=/opt/timesys/toolchains/ppc7xx-linux/share/man --infodir=/opt/timesys/toolchains/ppc7xx-linux/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++ --with-sysroot=/here/workdir/i386-x-ppc7xx/deleteme --disable-libgcj --build=i686-timesys-linux --host=i686-timesys-linux --target=powerpc-linux --program-prefix=ppc7xx-linux- Thread model: posix gcc version 3.4.1 20040714 (TimeSys 3.4.1-7) /opt/timesys/toolchains/ppc7xx-linux/libexec/gcc/powerpc-linux/3.4.1/cc1 -quiet -v -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix -I/opt/timesys/toolchains/ppc7xx-linux/powerpc-linux/include/nptl file.c -quiet -dumpbase file.c -auxbase file -version -o /tmp/ccShiHn4.s ignoring nonexistent directory "/here/workdir/i386-x-ppc7xx/deleteme/usr/local/include" ignoring nonexistent directory "/here/workdir/i386-x-ppc7xx/deleteme/usr/include" #include "..." search starts here: #include <...> search starts here: /opt/timesys/toolchains/ppc7xx-linux/powerpc-linux/include/nptl /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/include /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/include End of search list. GNU C version 3.4.1 20040714 (TimeSys 3.4.1-7) (powerpc-linux) compiled by GNU C version 3.2.2 20030222 (Red Hat Linux 3.2.2-5). GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32138 /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/bin/as -mppc -many -V -Qy -o /tmp/ccWeV3a3.o /tmp/ccShiHn4.s GNU assembler version 2.15.90.0.3 (powerpc-linux) using BFD version 2.15.90.0.3 20040415 /opt/timesys/toolchains/ppc7xx-linux/libexec/gcc/powerpc-linux/3.4.1/collect2 --eh-frame-hdr -V -Qy -L/opt/timesys/toolchains/ppc7xx-linux/powerpc-linux/lib/nptl --rpath-link /opt/timesys/toolchains/ppc7xx-linux/powerpc-linux/lib/tls -m elf32ppclinux -dynamic-linker /lib/ld.so.1 -o file /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/lib/crt1.o /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/lib/crti.o /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/crtbegin.o -L/opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1 -L/opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/lib /tmp/ccWeV3a3.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/crtsavres.o /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/crtend.o /opt/timesys/toolchains/ppc7xx-linux/lib/gcc/powerpc-linux/3.4.1/../../../../powerpc-linux/lib/crtn.o GNU ld version 2.15.90.0.3 20040415 Supported emulations: elf32ppclinux elf32ppc elf32ppcsim ``` -------------------------------- ### PWM Pin Mapping Examples Source: https://elinux.org/index.php?oldid=586318&title=Jetson%2FL4T%2Fperipheral%2F Lists of PWM pin assignments for different Jetson development kits and L4T versions. ```text PIN15(GPIO12, PN.01): pwm1, 3280000.pwm PIN33(GPIO13, PH.00): pwm5, 32c0000.pwm PIN32(GPIO07, PG.06): pwm7, 32e0000.pwm ``` ```text PIN15: pwm1, 3280000.pwm PIN18: pwm5, 32c0000.pwm PIN13: pwm8, 32f0000.pwm pwm3, 32a0000.pwm pwm6, 32d0000.pwm pwm4, c340000.pwm pwm2, 3290000.pwm pwm7, 32e0000.pwm ``` ```text GPIO07, PIN32(PV.00): pwm0, 7000a000.pwm (tegra_pwm) GPIO13, PIN33(PE.06): pwm2, 70110000.pwm (tegra_pwm_dfll) ``` -------------------------------- ### Workaround for mono-common installation issue Source: https://elinux.org/index.php?oldid=74101&title=RidgeRun_LeopardBoard_SDK_Hints Commands to bypass the mono-common check by modifying host requirements or creating a symbolic link. ```text bsp/arch/host.required ``` ```bash sudo ln -s /usr/bin/gmcs /usr/bin/gmcs2 ``` -------------------------------- ### Configure directory and build examples Source: https://elinux.org/EBC_Exercise_39_Setting_Up_tidl_on_X15 Create the target directory, set permissions, and build the examples. ```bash x15$ **sudo mkdir -p /usr/share/ti/tidl** x15$ **sudo chown -R 1000:1000 /usr/share/ti/tidl/** x15$ **make -j2 build-examples** # 4m33s ``` -------------------------------- ### Execute install and setup scripts Source: https://elinux.org/ECE497_Project_Sudoku_Solver Run the installation and setup scripts to configure the environment. ```bash ./install.sh ./setup.sh ``` -------------------------------- ### Install and start NFS server Source: https://elinux.org/Special%3AAbuseFilter/examine/log/251 Install and start the NFS server services on Debian/Ubuntu or Fedora. ```bash sudo apt-get install nfs-kernel-server nfs-common ``` ```bash sudo /etc/init.d/nfs-kernel-server start ``` ```bash sudo yum install nfs-utils ``` ```bash sudo systemctl enable rpcbind.service sudo systemctl enable nfs-server.service sudo systemctl enable nfs-lock.service sudo systemctl enable nfs-idmap.service sudo systemctl start rpcbind.service sudo systemctl start nfs-server.service sudo systemctl start nfs-lock.service sudo systemctl start nfs-idmap.service ``` -------------------------------- ### Install and start NFS server on Fedora Source: https://elinux.org/Special%3AAbuseLog/256 Commands to install, enable, and start NFS services on Fedora. ```bash sudo yum install nfs-utils ``` ```bash sudo systemctl enable rpcbind.service sudo systemctl enable nfs-server.service sudo systemctl enable nfs-lock.service sudo systemctl enable nfs-idmap.service sudo systemctl start rpcbind.service sudo systemctl start nfs-server.service sudo systemctl start nfs-lock.service sudo systemctl start nfs-idmap.service ``` -------------------------------- ### Initialize PTXdist setup Source: https://elinux.org/PTXdist Launch the Kconfig-UI to perform the initial setup for the BSP. ```bash ./p setup ``` -------------------------------- ### Install and Start NFS Server on Debian/Ubuntu Source: https://elinux.org/Special%3AAbuseFilter/examine/log/251 Commands to install the NFS kernel server and start the service on Debian-based systems. ```bash sudo apt-get install nfs-kernel-server nfs-common ``` ```bash sudo /etc/init.d/nfs-kernel-server start ``` -------------------------------- ### Initialize the project setup Source: https://elinux.org/ECE497_SPI_Project Run the setup script on the host machine to modify Kconfig and Makefile. This should only be executed once. ```bash host$ **cd ~/FinalProject** host$ **./setup.sh** ``` -------------------------------- ### Compile Project Setup Source: https://elinux.org/ECE434_Project_-_Bluetooth_Speaker Run the setup script to configure GPIOs and prepare the LED matrix. ```bash bone$ **./setup.sh** ``` -------------------------------- ### Install grabserial Source: https://elinux.org/Grabserial Use the setup script to install the grabserial package and its dependencies. ```bash sudo python setup.py install ``` -------------------------------- ### Install the application Source: https://elinux.org/ECE434_Project-_LED_Matrix_Information_Board Execute the installation script from the command line. ```bash _$host_ sudo ./install.sh ``` -------------------------------- ### Install and configure Avahi Source: https://elinux.org/FR%3ARPi_Advanced_Setup Commands to install the Avahi daemon and register it to start on boot. ```bash sudo apt-get install avahi-daemon ``` ```bash sudo update-rc.d avahi-daemon defaults ``` ```bash sudo insserv avahi-daemon ``` -------------------------------- ### Install to SD Card Source: https://elinux.org/BeagleBoardUbuntuKarmic Run the setup script to install the image onto the SD card. ```bash ./setup_sdcard.sh --mmc /dev/sdX --ignore_md5sum ``` -------------------------------- ### QEMU Sample Boot Commands Source: https://elinux.org/api.php?action=feedcontributions&feedformat=atom&user=Tperrot Various QEMU command-line examples for x86 emulation. ```bash qemu-system-x86 -kernel linux-2.6.26/arch/i386/boot/bzImage -hda rootfs.img -append "console=ttyS0 root=/dev/hda" -nographic qemu-system-x86 -kernel linux-2.6.26/arch/i386/boot/bzImage -hda rootfs.img -append "console=ttyS0 root=/dev/hda init=/bin/ash" -nographic qemu-system-x86 -kernel linux-2.6.26/arch/i386/boot/bzImage -hda rootfs.img -append "console=ttyS0 root=/dev/hda panic=1" -nographic -no-reboot killall qemu-system-x86 ```