SPRAD09A December   2021  – July 2022 DRA821U , DRA821U-Q1

 

  1.   Abstract
  2.   Trademarks
  3. 1Hardware and Software Required Stuff
  4. 2DRA821U Boot Mode With Fast Boot Method
  5. 3Detailed Steps
    1. 3.1 Step1: Patch and Build/Copy the u-boot
    2. 3.2 Step2: Optimizations by Switching to xSPI Boot: Copy Bootloaders to xSPI
    3. 3.3 Step 3: Optimize the DTSI by Disabling Nodes not Mandatory for Linux Boot
    4. 3.4 Step 4: Create Bootable SD Card, Switch to TinyFS
    5. 3.5 Step 5: Switch to eMMC Filesystem
    6. 3.6 Step 6: Optimizations With Bootargs
    7. 3.7 Step 7: Hijack the init
  6. 4Debug Commands
    1. 4.1 SF Probe
    2. 4.2 mmcblk
    3. 4.3 How to Check Mounted Devices?
    4. 4.4 How to Check Your Partitions?
    5. 4.5 How to Restore Your Boot Setting?
  7. 5Fast Boot Result Review
  8. 6References
  9. 7Revision History

Step2: Optimizations by Switching to xSPI Boot: Copy Bootloaders to xSPI

This step is to copy the SD card uboot files onto the xSPI.

So, there are 2 boot switch settings in this step2.

The SD card is used to boot first, then the xSPI switch is used.

1st time Boot Switch setting:

#EVM to set SD Boot Mode, refer /psdk_rtos_auto/docs/user_guide/J7_EVM_SETUP.html

SW8[1-8] = 1000 0010

SW9[1-8] = 0000 0000 <--Rio: Read EVM user guide

SW3[1-10] = 0110001001

Commands:

When in uboot prompt, do these. (Do this on the EVM!)

sf probe

fatload mmc 1 ${loadaddr} tiboot3.bin; sf update $loadaddr 0x0 $filesize;

fatload mmc 1 ${loadaddr} tispl.bin; sf update $loadaddr 0x100000 $filesize;

fatload mmc 1 ${loadaddr} u-boot.img; sf update $loadaddr 0x300000 $filesize;

After doing those actions above, do this:

  1. Turn off the board.
  2. Change the dip switch settings to xSPI as below:

2nd time Boot switch setting:

#EVM to set xSPI Boot Mode

SW8[1-8]: 1000 0010

SW9[1-8]: 0011 0000

SW3[1-10]: 0111 0010 10

After this point, do not change the SW8/SW9/SW3.

Now, hereafter, you only can use this setting, no need to change again.