##########################################Y # I am working from home without a BBBW so # these notes are from memory. ##########################################Y The BeagleBone Black (BBB) Nuttx build yields an executable in nuttx.bin. The build must be completed on one of the kits, the Linux machines physically located in the Projects Lab. You can ssh to one of the kits from otter (eg ssh kit1). After a successful build, the resulting executable (nuttx.bin) must be copied to a FAT32 partition on an SD card. This in-turn, will be used to boot Nuttx on the BBB Wireless (BBBW). Build ===== Download and untar nuttx.tar from the course web page. I have built Nuttx and selected the hello world example to be included in the shell (type help after booting Nuttx to see what shell commands are available). After a successful build, you can find nuttx.bin in the nuttx-8.2 sub directory (or download nuttx.bin directly from the course web page). I suggest you use the hello world example as the basis for your application. In this way, if you modify the hello world source, you can remake the nuttx.bin by executing make in the nuttx-8.2 sub directory. I assume you are located in nuttx-8.2. To clean the system in preparation for building the system from scratch, execute make distclean. To configure your environment execute ./tools/configure.sh beaglebone-black:nsh. Note that in the link about compiling to BBB, the command is written ./tools/configure.sh beaglebone-black/nsh. I got an error using this command. The next step is to execute make menuconfig. This executes a menus-driven configuration tool. I will use indentation to indicate menu and sub-menu selection. Build Setup Build Host Platform Linux Application Configuration Examples Hello World Save and exit the tool. This should yield a configuration file. Now execute make to compile and produce nuttx.bin. Booting ======= Copy nuttx.bin to your SD card (must be a FAT 32 partition). Load the SD card into BBBW. You must power the BBBW using the USB power adaptor (the cord with the 3 wires). Connect minicom so as you can see the boot messages as it boots up. BBBW uses UBoot autoboot as its boot loader. When prompted, press the space-bar to stop the boot process. You should see the U-Boot# prompt. Now execute the following U-Boot commands: load mmc 0 0x8a000000 nuttx.bin go 0x8a000000 Nuttx should now boot and execute the Nuttx shell. Execute mount -t binfs /bin to access the build-in applications and execute help to see shell commands. Simulator ========= There is also a basic simulator available. The simulator Nuttx build yields an executable in nuttx. After a successful build, you can find nuttx in the nuttx-8.2 sub directory (or download nuttx directly from the course web page). I assume you are located in nuttx-8.2. To configure your environment execute ./tools/configure.sh sim:nsh. Now execute make to compile and produce nuttx. Execute ./nuttx. You will be prompted for a userid and password. The defaults are admin and Administrator respectively. Execute mount -t binfs /bin to access the build-in applications and execute help to see shell commands.