Creating a Bootable NuttX SD Card From Scratch¶
To create a bootable Micro SD card, here are the steps:
Format the card with a FAT filesystem
Under macOS, you can use Disk Utility. Under Linux, here are the commands (replace
/dev/sdbwith the path to your SD Card device:
$ sudo parted /dev/sdb --script -- mklabel JUPITERNANO $ sudo parted /dev/sdb --script -- mkpart primary fat32 1MiB 100% $ sudo mkfs.vfat -F32 /dev/sdb1
Copy the U-Boot binary and U-Boot environment files to the SD Card.
uboot.envfrom a working bootable NuttX SD Card. I’ll post instructions for building them using the Jupiter Nano Tools later.
nuttx.binbinary to the SD Card
$ cp nuttx.bin /media/your_user_name/JUPITERNANO/
Now you can take the SD Card out of the reader, put it into the Jupiter Nano, and boot it.